/* ==========================================================================
   BioDynamix Consumer & Verification Portal
   Clean, Minimalist Light Aesthetic
   - Editorial Row Reviews (Option 2)
   - Pure Minimalist Complaints & Resolutions (Option 4)
   - Seamlessly Blended Footer (Attached naturally with website body)
   ========================================================================== */

:root {
  /* Neutral Color System */
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --bg-subtle: #f3f4f6;

  --border-light: #e5e7eb;
  --border-subtle: #f1f5f9;
  --border-hover: #cbd5e1;

  --text-main: #111827;
  --text-body: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Brand Accents */
  --color-primary: #1e3a8a;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-green: #059669;
  --color-green-bg: #ecfdf5;
  --color-green-border: #a7f3d0;
  --color-star: #f59e0b;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Curves & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-hero: 0 10px 25px -5px rgba(0, 0, 0, 0.06);

  --transition-fast: 0.15s ease;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  overflow-x: hidden;
  width: 100%;
}

.page-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  width: 100%;
  overflow-x: hidden;
}

/* Top Simple Notice Bar (No Header) */
.portal-notice-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.portal-notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

/* ==========================================================================
   SUBPAGE NAVIGATION & HEADER BAR
   ========================================================================== */

.subpage-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
}

.subpage-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
}

.subpage-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.subpage-nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.subpage-nav-links a:hover,
.subpage-nav-links a.active {
  color: var(--color-accent);
}

.subpage-nav-links a.btn-nav-official {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
  background-size: 200% auto;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
}

.subpage-nav-links a.btn-nav-official:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.65);
  color: #ffffff !important;
}

.subpage-nav-links a.btn-nav-official span {
  color: #ffffff !important;
  font-weight: 700;
}

.subpage-nav-links a.btn-nav-official svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  transition: transform 0.2s ease;
}

.subpage-nav-links a.btn-nav-official:hover svg {
  transform: translateX(2px);
}

.nav-beacon-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.8);
  animation: cta-beacon-pulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.btn-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-nav-back:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: #f1f5f9;
}

.subpage-card-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

/* ==========================================================================
   HERO SECTION: Big Rectangle Container (Loading -> Homepage Preview)
   ========================================================================== */

.hero-container {
  width: 100%;
  margin-bottom: 64px;
}

.hero-box {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}

/* State 1: Finding The Official Website (Loader) */
.hero-loading-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #ffffff;
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.hero-loading-view.hidden-state {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner-ring {
  width: 52px;
  height: 52px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.loading-heading {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.loading-subheading {
  font-size: 0.95rem;
  color: var(--text-body);
  text-align: center;
  max-width: 500px;
  margin-bottom: 30px;
}

.progress-card {
  width: 100%;
  max-width: 440px;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.progress-label {
  font-weight: 500;
  color: var(--text-main);
}

.progress-percent {
  font-weight: 600;
  color: var(--color-accent);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 9999px;
  transition: width 0.15s ease-out;
}

/* State 2: Browser Preview */
.hero-preview-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.hero-preview-view.active-state {
  opacity: 1;
  visibility: visible;
}

.browser-header-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.browser-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-1 { background: #f87171; }
.dot-2 { background: #fbbf24; }
.dot-3 { background: #34d399; }

.browser-url-box {
  flex: 1;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
}

.lock-symbol {
  color: var(--color-green);
  display: flex;
  align-items: center;
}

.url-domain {
  font-weight: 600;
  color: var(--text-main);
}

.url-path {
  color: var(--text-muted);
}

.browser-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--color-green-bg);
  border: 1px solid var(--color-green-border);
  color: var(--color-green);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-replay-scan {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-replay-scan:hover {
  background: #f3f4f6;
  color: var(--text-main);
}

.btn-visit-official {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
  background-size: 200% auto;
  color: #ffffff;
  border-radius: 9px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-visit-official:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.65);
  color: #ffffff;
}

/* Pulsing live beacon dot */
.cta-beacon-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: cta-beacon-pulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes cta-beacon-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.8);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* Eye-catching shimmer sweep across button */
.eye-catching-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  animation: cta-shimmer-sweep 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cta-shimmer-sweep {
  0% {
    left: -70%;
  }
  30%, 100% {
    left: 150%;
  }
}

/* Ambient attention pulse glow */
@keyframes cta-pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45), 0 0 0 0 rgba(37, 99, 235, 0.5);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.7), 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.eye-catching-cta {
  animation: cta-pulse-glow 2.4s infinite;
}

/* Subtle micro-bounce on the forward arrow */
.cta-arrow-icon {
  transition: transform 0.2s ease;
  animation: cta-arrow-nudge 2s infinite ease-in-out;
}

@keyframes cta-arrow-nudge {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

.btn-visit-official:hover .cta-arrow-icon {
  animation: none;
  transform: translateX(4px);
}

/* State 2: Official Website Live Iframe Viewport */
.iframe-viewport-container {
  width: 100%;
  height: 570px;
  flex: 1;
  position: relative;
  background: #ffffff;
  overflow: hidden;
  user-select: none;
}

.preview-iframe {
  width: 100%;
  /* Shift iframe upward by 155px to completely crop out the external 'Order Now' and 'FAQ' navbar */
  height: calc(100% + 155px);
  margin-top: -155px;
  border: none;
  display: block;
  pointer-events: none; /* Completely disables link clicking, hover states, and internal scrolling */
  overflow: hidden;
}

/* Transparent shield overlay: prevents interaction/scrolling inside the iframe without being a clickable link */
.iframe-barrier-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

/* Floating Action Pill over the bottom of the iframe preview */
.iframe-floating-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: auto;
  width: calc(100% - 24px);
  max-width: 480px;
  display: flex;
  justify-content: center;
}

.floating-official-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  line-height: 1.3;
}

.floating-official-btn:hover {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.floating-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.floating-cta-text {
  color: #f8fafc;
}

.floating-arrow {
  color: #60a5fa;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.floating-official-btn:hover .floating-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   MOBILE HERO PREVIEW (Guarantees Official Hero Banner is visible on phones)
   ========================================================================== */

.mobile-hero-preview-container {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  box-sizing: border-box;
}

.mobile-hero-banner-link {
  display: block;
  width: 100%;
  max-width: 380px;
  text-decoration: none;
  transition: transform 0.2s ease;
  margin: 0 auto;
}

.mobile-hero-banner-link:active {
  transform: scale(0.98);
}

.mobile-hero-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
}

.mobile-hero-banner-img {
  width: 100%;
  height: auto;
  max-width: 360px;
  max-height: 380px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.09));
}

.mobile-hero-featured-bar {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.mobile-featured-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.mobile-featured-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mobile-logo-img {
  height: 20px;
  width: auto;
  max-width: 65px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(20%);
  transition: opacity 0.2s ease;
}

.mobile-hero-cta-wrap {
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

.mobile-preview-cta {
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  font-size: 0.875rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   COMMON SECTION HEADERS
   ========================================================================== */

.content-section {
  margin-bottom: 64px;
}

.section-header-block {
  margin-bottom: 24px;
}

.section-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.section-badge-tag.orange {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.section-main-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-lead-text {
  font-size: 0.95rem;
  color: var(--text-body);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.section-trust-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  font-weight: 500;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
}

.stat-pill strong {
  color: #0f172a;
}

.stat-pill-star {
  color: var(--color-star);
}

/* ==========================================================================
   REVIEWS SECTION: Option 2 Editorial Rows (Zero Avatars)
   ========================================================================== */

.editorial-reviews-list {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.editorial-review-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 28px 32px;
  border-bottom: 1px solid #f1f5f9;
  gap: 32px;
  align-items: flex-start;
  transition: background-color var(--transition-fast);
}

.editorial-review-row:last-child {
  border-bottom: none;
}

.editorial-review-row:hover {
  background-color: #fafafa;
}

.editorial-reviewer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.reviewer-location {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.verified-purchase-tag {
  font-size: 0.75rem;
  color: var(--color-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.purchase-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.editorial-review-body {
  display: flex;
  flex-direction: column;
}

.star-rating-row {
  color: var(--color-star);
  font-size: 0.95rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.star-empty {
  color: #cbd5e1;
}

.review-quote-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.review-story {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   COMPLAINTS SECTION: Option 4 Pure Minimalist Q&A / Resolution
   Visually distinct from reviews
   ========================================================================== */

.minimalist-complaints-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.complaint-resolution-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f97316;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.complaint-resolution-card:hover {
  border-color: #cbd5e1;
  border-left-color: #ea580c;
}

.complaint-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.complaint-case-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  color: #475569;
}

.complaint-customer-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.complaint-issue-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.issue-tag {
  font-size: 0.725rem;
  font-weight: 700;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.issue-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.issue-description {
  font-size: 0.885rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
}

.resolution-badge-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.835rem;
  color: #166534;
  line-height: 1.5;
}

.resolution-check-icon {
  font-weight: 800;
  font-size: 0.95rem;
  color: #15803d;
  flex-shrink: 0;
  margin-top: 1px;
}

.resolution-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   SUPPORT SECTION (Synced with Joint Genesis Official Support)
   ========================================================================== */

.support-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.support-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.support-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.09);
  transform: translateY(-2px);
}

.support-card.primary-card {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.support-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.support-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.support-badge.email {
  color: #0d9488;
  background: #f0fdfa;
}

.support-badge.phone {
  color: #7c3aed;
  background: #f5f3ff;
}

.support-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-support-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-support-action:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

.btn-support-action.secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
}

.btn-support-action.secondary:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.support-locations-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.loc-item {
  flex: 1;
  min-width: 260px;
  line-height: 1.5;
}

.loc-item strong {
  color: var(--text-main);
}

.loc-divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
}

/* ==========================================================================
   LEGAL & POLICIES SECTION (Privacy Policy & Terms of Service)
   ========================================================================== */

.legal-policy-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.legal-tabs-nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.legal-tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.legal-tab-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.legal-tab-btn.active {
  color: var(--color-accent);
  background: #ffffff;
  border-bottom-color: var(--color-accent);
}

.legal-tab-panel {
  display: none;
  padding: 32px;
}

.legal-tab-panel.active {
  display: block;
}

.legal-panel-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.legal-panel-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.legal-update-date {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.legal-content-body {
  font-size: 0.885rem;
  color: var(--text-body);
  line-height: 1.7;
}

.legal-content-body h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 22px 0 6px;
}

.legal-content-body p {
  margin-bottom: 14px;
}

.legal-content-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ==========================================================================
   CONTACT SUPPORT MODAL (Sync with completejointcare.net modal)
   ========================================================================== */

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.contact-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.open .contact-modal-dialog {
  transform: scale(1) translateY(0);
}

.contact-modal-header {
  background: var(--color-primary);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-close-btn:hover {
  color: #ffffff;
}

.contact-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: all var(--transition-fast);
}

.modal-contact-row:hover {
  border-color: var(--color-accent);
  background: #f8fafc;
  transform: translateY(-1px);
}

.modal-contact-row.order-row {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.modal-contact-row.order-row:hover {
  background: #dbeafe;
}

.modal-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.modal-row-text {
  flex-grow: 1;
}

.modal-row-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.modal-row-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.modal-footer-note {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SEAMLESSLY BLENDED FOOTER (Natural extension of the body)
   No jarring dark background; flows directly with the light page background
   ========================================================================== */

.site-footer {
  margin-top: 16px;
  background: transparent;
  color: var(--text-body);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  width: 100%;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand-block h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-block p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 360px;
}

.footer-links-col h5 {
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--color-accent);
}

.footer-trust-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.footer-trust-card h6 {
  color: var(--color-primary);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-trust-card p {
  font-size: 0.775rem;
  line-height: 1.5;
  color: var(--text-body);
}

.footer-legal-disclaimer {
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.footer-legal-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-copyright-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-quick-links {
  display: flex;
  gap: 18px;
}

.footer-quick-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-quick-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .editorial-review-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .preview-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .preview-doctor-note {
    justify-content: center;
  }
  .preview-button-row {
    justify-content: center;
  }
  .support-channels-grid {
    grid-template-columns: 1fr;
  }
  .support-locations-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .loc-divider {
    display: none;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 20px 14px 40px;
  }
  
  /* Subpage Navigation Bar */
  .subpage-nav-bar {
    padding: 14px 16px;
    margin-bottom: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .subpage-brand {
    justify-content: center;
  }
  .subpage-nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
  }
  .subpage-nav-links a {
    font-size: 0.8125rem;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 6px;
  }
  .subpage-nav-links a.btn-nav-official {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 16px;
    border: none;
  }

  /* Subpage Card Container */
  .subpage-card-container {
    padding: 24px 16px;
    margin-bottom: 32px;
    border-radius: var(--radius-md);
  }

  /* Section Headers */
  .content-section {
    margin-bottom: 44px;
  }
  .section-header-block {
    margin-bottom: 20px;
  }
  .section-main-heading {
    font-size: 1.45rem;
    letter-spacing: -0.01em;
  }
  .section-lead-text {
    font-size: 0.875rem;
  }
  .section-trust-stats {
    gap: 6px;
  }
  .stat-pill {
    font-size: 0.725rem;
    padding: 3px 8px;
  }

  /* Hero Container & Browser Bar */
  .hero-container {
    margin-bottom: 44px;
  }
  .hero-box {
    min-height: auto;
    border-radius: var(--radius-lg);
  }
  .hero-loading-view {
    padding: 36px 16px;
    min-height: 380px;
  }
  .loading-heading {
    font-size: 1.4rem;
  }
  .loading-subheading {
    font-size: 0.875rem;
    margin-bottom: 20px;
  }

  .browser-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .browser-dots {
    display: none;
  }
  .browser-url-box {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    padding: 6px 10px;
  }
  .url-domain {
    font-size: 0.775rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .browser-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .verified-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .btn-replay-scan {
    font-size: 0.725rem;
    padding: 4px 8px;
  }
  .btn-visit-official {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* Toggle preview containers for mobile */
  .desktop-only-iframe {
    display: none !important;
  }
  .mobile-hero-preview-container {
    display: flex !important;
  }

  /* Editorial Review Rows */
  .editorial-review-row {
    padding: 18px 16px;
    gap: 12px;
  }
  .editorial-reviewer-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
  }
  .reviewer-name {
    font-size: 0.875rem;
  }
  .reviewer-location {
    font-size: 0.75rem;
  }
  .verified-purchase-tag {
    font-size: 0.7rem;
    margin-top: 0;
  }
  .purchase-meta {
    font-size: 0.7rem;
    width: 100%;
  }
  .review-quote-title {
    font-size: 0.95rem;
  }
  .review-story {
    font-size: 0.875rem;
  }

  /* Complaints Cards */
  .minimalist-complaints-container {
    gap: 12px;
  }
  .complaint-resolution-card {
    padding: 16px 14px;
    border-radius: var(--radius-sm);
  }
  .complaint-meta-row {
    gap: 6px 8px;
  }
  .complaint-case-id {
    font-size: 0.675rem;
  }
  .complaint-issue-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .issue-tag {
    font-size: 0.6875rem;
    white-space: normal;
  }
  .issue-title {
    font-size: 0.95rem;
  }
  .issue-description {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .resolution-badge-note {
    padding: 10px 12px;
    gap: 8px;
    font-size: 0.8rem;
    flex-direction: row;
  }
  .resolution-pill {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  /* Support Grid */
  .support-channels-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .support-card {
    padding: 18px 16px;
  }
  .support-locations-box {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .loc-item {
    min-width: 100%;
    width: 100%;
  }

  /* Legal Tabs */
  .legal-tab-panel {
    padding: 20px 16px;
  }
  .legal-tab-btn {
    padding: 10px 12px;
    font-size: 0.825rem;
  }

  /* Footer */
  .site-footer {
    padding-top: 32px;
    margin-top: 40px;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-copyright-bar {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
  }
  .footer-quick-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 16px 12px 36px;
  }

  .loading-heading {
    font-size: 1.25rem;
  }
  
  .section-main-heading {
    font-size: 1.3rem;
  }

  .floating-official-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    border-radius: 10px;
    gap: 5px;
  }

  .floating-badge {
    display: none; /* Hide badge on tiny mobile screens to prioritize call to action text */
  }

  .floating-cta-text {
    font-size: 0.725rem;
    font-weight: 600;
  }

  .stat-pill {
    width: 100%;
    justify-content: center;
  }
}

