/* ==========================================================================
   FACEBOOK REVIEWS & ORDER POPUP STYLES - BEEWAX VIET NAM
   ========================================================================== */

:root {
  --fb-bg-bubble: #f0f2f5;
  --fb-bg-bubble-hover: #e4e6eb;
  --fb-primary: #1877f2;
  --fb-text-main: #050505;
  --fb-text-sub: #65676b;
  --fb-border: #e4e6eb;
  --honey-primary: #d97706;
  --honey-accent: #b45309;
  --honey-light: #fef3c7;
  --honey-bg: #fffbeb;
}

/* --- Review Section Wrapper --- */
.fb-reviews-section {
  background: #ffffff;
  padding: 32px 16px;
  border-top: 1px solid #f0e6d6;
  border-bottom: 1px solid #f0e6d6;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fb-text-main);
}

.fb-reviews-container {
  max-width: 860px;
  margin: 0 auto;
}

/* --- Section Header & Stats (Sleek Compact) --- */
.fb-stats-box {
  background: linear-gradient(135deg, #fffdf8 0%, #fffbeb 100%);
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.06);
}

.fb-stats-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.fb-stats-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-verified-icon {
  width: 22px;
  height: 22px;
  background: #1877f2;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(24, 119, 242, 0.25);
}

.fb-stats-title-row h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #78350f;
  margin: 0;
  line-height: 1.2;
}

.fb-stats-highlight {
  color: #d97706;
  font-weight: 900;
}

.fb-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #fde68a;
  margin-left: auto;
}

.fb-stars-row {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.fb-rating-num {
  font-size: 0.88rem;
  font-weight: 900;
  color: #b45309;
}

.fb-stats-subtitle {
  font-size: 0.78rem;
  color: #92400e;
  margin: 0;
  line-height: 1.35;
  opacity: 0.9;
}

/* Filter Tags (Compact Chips) */
.fb-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fb-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  transition: all 0.15s ease;
}

.fb-pill:hover,
.fb-pill.active {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
}

/* --- Tabs Header (Compact Segmented Navigation) --- */
.fb-tabs-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.fb-tabs-nav {
  display: flex;
  width: 100%;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.fb-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #475569;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 6px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.fb-tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #1e293b;
}

.fb-tab-btn.active {
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}

.fb-tab-badge {
  display: none;
}

.fb-tab-info-text {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
  text-align: right;
  padding-right: 4px;
}

/* --- Facebook Comments List --- */
.fb-comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.fb-comment-item {
  display: flex;
  gap: 12px;
  position: relative;
  animation: fbFadeIn 0.3s ease;
}

@keyframes fbFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.fb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(217, 119, 6, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
}

.fb-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.fb-avatar-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.fb-online-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #31a24c;
  border: 2px solid #fff;
  border-radius: 50%;
}

.fb-comment-body {
  flex: 1;
  min-width: 0;
}

.fb-comment-bubble {
  background: var(--fb-bg-bubble);
  border-radius: 18px;
  padding: 12px 16px;
  display: inline-block;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

.fb-comment-author-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.fb-author-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: #050505;
  text-decoration: none;
}

.fb-author-name:hover {
  text-decoration: underline;
}

.fb-badge-fan {
  background: #e7f3ff;
  color: #1877f2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.fb-badge-buyer {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.fb-stars-mini {
  color: #f59e0b;
  font-size: 0.82rem;
  margin-left: 2px;
}

.fb-comment-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #050505;
  margin: 4px 0 0 0;
  word-break: break-word;
}

.fb-comment-meta-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: #78350f;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
  font-weight: 600;
}

/* Attached Images */
.fb-comment-images-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.fb-comment-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #f3f4f6;
}

.fb-comment-img-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fb-comment-img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  display: block;
}

.fb-img-zoom-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Actions Footer */
.fb-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--fb-text-sub);
  margin-top: 5px;
  padding-left: 6px;
  position: relative;
}

.fb-action-btn {
  background: none;
  border: none;
  font-weight: 700;
  color: var(--fb-text-sub);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.fb-action-btn:hover {
  text-decoration: underline;
}

.fb-action-btn.liked {
  color: var(--fb-primary) !important;
}

.fb-time-ago {
  color: var(--fb-text-sub);
  font-size: 0.78rem;
}

/* Reaction Count Pill */
.fb-reaction-pill {
  position: absolute;
  bottom: -6px;
  right: 8px;
  background: #ffffff;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #65676b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.fb-reaction-icons {
  display: flex;
  margin-right: 2px;
}

.fb-react-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
}

.fb-react-like {
  background: #1877f2;
  color: #fff;
  z-index: 2;
}

.fb-react-heart {
  background: #fa383e;
  color: #fff;
  margin-left: -3px;
  z-index: 1;
}

/* Replies (Beewax Store Response) */
.fb-replies-list {
  margin-top: 12px;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid #e4e6eb;
  padding-left: 14px;
}

.fb-reply-item {
  display: flex;
  gap: 10px;
}

.fb-reply-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.fb-reply-bubble {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.fb-badge-author {
  background: #d97706;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

/* --- Typing Indicator --- */
.fb-typing-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-top: 10px;
  margin-bottom: 20px;
}

.fb-typing-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e4e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #65676b;
  font-size: 13px;
}

.fb-typing-bubble {
  background: #f0f2f5;
  border-radius: 16px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fb-typing-dot {
  width: 6px;
  height: 6px;
  background: #90949c;
  border-radius: 50%;
  display: inline-block;
  animation: fbBounce 1.4s infinite ease-in-out both;
}

.fb-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.fb-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes fbBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
    background: #1877f2;
  }
}

.fb-typing-text {
  font-size: 0.85rem;
  color: #65676b;
  font-style: italic;
  font-weight: 500;
}

/* --- Pagination Controls --- */
.fb-pagination-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.fb-page-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fb-page-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.fb-page-btn.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
}

.fb-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 16px auto 0 auto;
}

.fb-load-more-btn:hover {
  background: #fde68a;
  transform: translateY(-1px);
}

/* --- Interactive Comment Input Box --- */
.fb-comment-input-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-top: 24px;
}

.fb-input-header {
  font-size: 0.92rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fb-input-field {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  resize: vertical;
  min-height: 48px;
}

.fb-input-field:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.fb-submit-comment-btn {
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fb-submit-comment-btn:hover {
  background: #b45309;
}

/* ==========================================================================
   TOP-LEFT REAL-TIME PURCHASE POPUP
   ========================================================================== */
.order-popup-toast {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1.5px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(217, 119, 6, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.order-popup-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Tự động ẩn hoàn toàn toast khi có modal đặt hàng hoặc xác nhận đang mở */
body.modal-open .order-popup-toast,
body.modal-open #order-purchase-popup,
.order-modal-backdrop.active ~ #order-purchase-popup,
.order-popup-toast.suppressed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.order-popup-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #fde68a;
  flex-shrink: 0;
  background: #fffbeb;
}

.order-popup-body {
  flex: 1;
  min-width: 0;
}

.order-popup-user-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.order-popup-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-popup-phone {
  font-size: 0.8rem;
  color: #d97706;
  font-weight: 700;
}

.order-popup-product {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.3;
  margin-bottom: 3px;
  font-weight: 500;
}

.order-popup-product strong {
  color: #b45309;
}

.order-popup-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #9ca3af;
}

.order-popup-time {
  color: #059669;
  font-weight: 600;
}

.order-popup-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  align-self: flex-start;
  transition: color 0.2s;
}

.order-popup-close:hover {
  color: #111827;
}

/* ==========================================================================
   IMAGE MODAL (LIGHTBOX)
   ========================================================================== */
.fb-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fb-lightbox-modal.is-open {
  display: flex;
}

.fb-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fb-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.fb-lightbox-caption {
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 16px;
  border-radius: 20px;
}

.fb-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: #ffffff;
  color: #111;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .order-popup-toast {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: calc(100vw - 20px);
    padding: 10px 12px;
  }
  
  .fb-comment-img {
    width: 100px;
    height: 85px;
  }
  
  .fb-stats-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .fb-tabs-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.fb-review-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.fb-review-photo {
  width: min(100%, 250px);
  margin: 0;
}

.fb-review-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: zoom-in;
}

.fb-review-photo figcaption {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.68rem;
  line-height: 1.35;
}

.fb-page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.fb-badge-sample {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
}

.fb-ai-gallery {
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #eadbbd;
  border-radius: 14px;
  background: #fffaf0;
}

.fb-ai-gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.fb-ai-gallery-heading h4 {
  margin: 0;
  color: #374151;
  font-size: 0.9rem;
}

.fb-ai-gallery-note {
  margin: -4px 0 9px;
  color: #7c6b50;
  font-size: 0.72rem;
  line-height: 1.4;
}

.fb-ai-gallery-heading span,
.fb-ai-photo-card figcaption {
  color: #7c6b50;
  font-size: 0.68rem;
}

.fb-ai-photo-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 7px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.fb-ai-photo-card {
  flex: 0 0 190px;
  width: 190px;
  margin: 0;
  scroll-snap-align: start;
}

.fb-ai-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
}

.fb-ai-photo-open img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fb-ai-photo-card figcaption {
  margin-top: 4px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .fb-ai-gallery {
    padding: 10px;
  }

  .fb-ai-photo-card {
    flex-basis: min(66vw, 230px);
    width: min(66vw, 230px);
  }
}


/* ==========================================================================
   VIDEO PROOF SECTION (BÁC ĐỨC LƯƠNG - TRẢI NGHIỆM THỰC TẾ)
   Tối ưu hóa siêu nhẹ, chống giật lag cho máy cấu hình cũ
   ========================================================================== */
.video-proof-section {
  background: linear-gradient(180deg, #fcf9f2 0%, #fffdf8 100%);
  padding: 30px 16px 16px;
  text-align: center;
  border-top: 1px solid #f3ebd8;
}

.video-proof-container {
  max-width: 600px;
  margin: 0 auto;
}

.video-proof-title {
  font-family: "Lora", serif;
  font-size: clamp(1.2rem, 3.6vw, 1.65rem);
  font-weight: 700;
  color: #1e293b;
  margin: 10px 0 6px;
  line-height: 1.35;
}

.video-proof-title em {
  font-style: italic;
  color: #b45309;
}

.video-proof-subtitle {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0 auto 16px;
  max-width: 480px;
  line-height: 1.5;
}

.video-proof-card {
  background: #ffffff;
  border: 1.5px solid #fde68a;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.08);
  max-width: 310px;
  margin: 0 auto;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transform: translateZ(0); /* Hardware Acceleration on older chips */
}

.intro-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top control strip (Duration & Mute) */
.video-top-control-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

.video-duration-badge {
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-sound-toggle-btn {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.video-sound-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.92);
  transform: scale(1.05);
}

/* Center Play Button Overlay */
.video-play-overlay-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.22);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-player-wrapper.is-playing .video-play-overlay-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-icon-box {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding-left: 3px;
}

.video-play-overlay-btn:hover .video-play-icon-box {
  transform: scale(1.1);
}

.video-play-pulse-ring {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.7);
  animation: 2s infinite videoRipple;
  pointer-events: none;
}

@keyframes videoRipple {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.video-play-label {
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* Slim Bottom Progress Line */
.video-slim-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 7;
}

.video-slim-progress-fill {
  height: 100%;
  background: #f59e0b;
  width: 0%;
  transition: width 0.15s linear;
}

.video-proof-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  color: #475569;
  text-align: left;
}

.video-trust-item, .video-hotline-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  font-size: 0.9375rem;
}

.video-tel-link {
  color: #d97706;
  font-weight: 700;
  text-decoration: none;
}

.video-tel-link:hover {
  text-decoration: underline;
}

/* Keep the portrait demo readable on phones while using more of the screen. */
.video-proof-container {
  max-width: 760px;
}

.video-proof-card {
  max-width: min(100%, 520px);
  padding: 14px;
}

.video-player-wrapper {
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

@media (max-width: 520px) {
  .video-proof-section {
    padding: 24px 12px 18px;
  }

  .video-proof-container {
    max-width: 100%;
  }

  .video-proof-title {
    font-size: clamp(1.18rem, 5vw, 1.45rem);
    line-height: 1.3;
  }

  .video-proof-subtitle {
    max-width: 40rem;
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .video-proof-card {
    width: 100%;
    max-width: 420px;
    padding: 10px;
    border-radius: 16px;
  }

  .video-player-wrapper {
    width: 100%;
    max-height: min(118vw, 70dvh);
    border-radius: 12px;
  }

  .video-proof-footer {
    font-size: 0.8rem;
  }
}
