/* ================================================================
   FreNiMi — Enterprise Design System
   Version 2.0
   
   TABLE OF CONTENTS
   1.  Design Tokens (CSS Variables)
   2.  Base / Reset
   3.  Typography
   4.  Layout Utilities
   5.  Buttons
   6.  Header & Navigation
   7.  Hero Section
   8.  Section Components (shared)
   9.  Feature Cards
   10. Step Cards
   11. Photo Progress Demo
   12. Testimonials
   13. Pricing
   14. CTA Section
   15. Footer
   16. Contact Page
   17. Blog Pages
   18. Nutrition Page
   19. Workout Page
   20. Progress Page
   21. Auth Pages (Login, Register, Profile Setup)
   22. User Dashboard
   23. Admin Panel
   24. Back to Top
   25-A. Dark Mode Toggle Button
   25-B. Dark Mode Theme
   26-A. Exercise Timer
   26-B. Calorie Progress Ring
   26-C. FAQ Accordion
   26-D. Motivational Quote
   28. Before / After Comparison Slider
   29. Blog Table of Contents
   30. Cookie Consent Banner
   31. BMI History Chart
   32. Scroll-to-Top Progress Ring
   33. Responsive
   ================================================================ */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Brand Palette */
  --primary:       #4f46e5;
  --primary-dark:  #3730a3;
  --primary-light: #818cf8;
  --primary-50:    rgba(79, 70, 229, 0.05);
  --primary-100:   rgba(79, 70, 229, 0.10);
  --primary-200:   rgba(79, 70, 229, 0.15);

  --accent:        #06b6d4;
  --accent-dark:   #0891b2;
  --accent-50:     rgba(6, 182, 212, 0.10);

  /* Surface */
  --bg-subtle:     #f1f5f9;

  /* Semantic Colors */
  --success:       #10b981;
  --success-50:    rgba(16, 185, 129, 0.10);
  --warning:       #f59e0b;
  --warning-50:    rgba(245, 158, 11, 0.10);
  --danger:        #ef4444;
  --danger-50:     rgba(239, 68, 68, 0.10);

  /* Neutral Scale */
  --dark:          #0f172a;
  --gray-900:      #1e293b;
  --gray-800:      #334155;
  --gray-700:      #475569;
  --gray-600:      #64748b;
  --gray-500:      #94a3b8;
  --gray-400:      #cbd5e1;
  --gray-300:      #e2e8f0;
  --gray-200:      #f1f5f9;
  --gray-100:      #f8fafc;
  --white:         #ffffff;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-dark:  linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-hero:  linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #312e81 100%);
  --gradient-1:     linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-2:     linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-3:     linear-gradient(135deg, #10b981, #059669);
  --gradient-4:     linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-5:     linear-gradient(135deg, #ec4899, #8b5cf6);
  --gradient-6:     linear-gradient(135deg, #14b8a6, #06b6d4);

  /* Elevation / Shadows */
  --shadow-xs:     0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:        0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-lg:     0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl:     0 25px 50px -12px rgba(0, 0, 0, 0.18);
  --shadow-primary: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 16px rgba(79, 70, 229, 0.22);
  --shadow-primary-lg: 0 2px 4px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(79, 70, 229, 0.28);

  /* Radii */
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  /* Spacing Scale (multiples of 4px) */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  --transition: all var(--duration) var(--ease);

  /* Font Families */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", var(--font-body);

  /* Z-Index Scale */
  --z-dropdown: 50;
  --z-sticky:   60;
  --z-overlay:  70;
  --z-modal:    80;
  --z-header:   997;
  --z-mobile-nav: 999;
}

/* ================================================================
   2. BASE / RESET
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  overflow: hidden;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

.container {
  z-index: 2;
  position: relative;
}

/* ================================================================
   4. LAYOUT UTILITIES
   ================================================================ */
.section {
  padding: var(--space-24) 0;
}

.bg-light {
  background: var(--gray-100) !important;
}

.section-heading {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-heading .accent {
  color: var(--primary);
}

.section-subheading {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 550px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

/* Gradient utility classes — single source of truth */
.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }
.gradient-4 { background: var(--gradient-4); }
.gradient-5 { background: var(--gradient-5); }
.gradient-6 { background: var(--gradient-6); }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-black   { color: var(--dark) !important; }

/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
  border: none;
  padding: var(--space-3) var(--space-8) !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  line-height: 1.5;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-200);
}

.btn-primary {
  background: var(--gradient-brand) !important;
  color: var(--white) !important;
  border: none;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
}

.btn-outline-primary {
  background: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: var(--white) !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--white) !important;
}

.btn-lg {
  padding: var(--space-4) var(--space-10) !important;
  font-size: 1rem;
}

.btn-cta {
  background: var(--white) !important;
  color: var(--primary) !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-get-started {
  background: var(--gradient-brand);
  color: var(--white) !important;
  padding: var(--space-2) var(--space-6) !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 15px;
}

.btn-get-started:hover {
  opacity: 0.92;
  color: var(--white);
}

/* ================================================================
   6. HEADER & NAVIGATION
   ================================================================ */
#header {
  height: 80px;
  transition: var(--transition);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
}

#header.header-scrolled {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 65px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

#header .logo h1 {
  font-size: 26px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: var(--white);
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.page-home-bold #header,
.page-home-bold #header.header-scrolled {
  height: 96px;
}

.page-home-bold .logo-img {
  height: 72px;
}

/* Public inner pages (contact, blog, about, legal, status, help) — match
   the bold-minimal light theme instead of the old dark inner-page hero. */
.page-public-bold #header,
.page-public-bold #header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e7e9ee;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-public-bold .logo h1 a,
.page-public-bold .dash-logo-link,
.page-public-bold .navbar a,
.page-public-bold .navbar a:focus,
.page-public-bold .nav-link-login {
  color: #0f1115 !important;
}

.page-public-bold .navbar a:hover,
.page-public-bold .navbar .active {
  color: var(--primary) !important;
}

.page-public-bold .navbar .btn-get-started,
.page-public-bold .navbar .btn-get-started:hover {
  background: #0f1115 !important;
  color: #fff !important;
}

.page-public-bold .navbar-mobile {
  background: rgba(255, 255, 255, 0.98) !important;
}

.page-public-bold .navbar-mobile ul {
  background-color: #ffffff !important;
  border: 1px solid #e7e9ee;
}

/* Dark mode counterparts — the light-theme rules above use !important,
   so dark mode needs its own !important overrides at equal-or-higher
   specificity, otherwise nav text stays dark-on-dark and disappears. */
html.dark .page-public-bold #header,
html.dark .page-public-bold #header.header-scrolled {
  background: rgba(15, 23, 42, 0.97) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

html.dark .page-public-bold .logo h1 a,
html.dark .page-public-bold .dash-logo-link,
html.dark .page-public-bold .navbar a,
html.dark .page-public-bold .navbar a:focus,
html.dark .page-public-bold .nav-link-login {
  color: #f1f5f9 !important;
}

html.dark .page-public-bold .navbar a:hover,
html.dark .page-public-bold .navbar .active {
  color: var(--primary) !important;
}

html.dark .page-public-bold .navbar .btn-get-started,
html.dark .page-public-bold .navbar .btn-get-started:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html.dark .page-public-bold .navbar-mobile {
  background: rgba(15, 23, 42, 0.97) !important;
}

html.dark .page-public-bold .navbar-mobile ul {
  background-color: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.page-public-bold .navbar-mobile a,
.page-public-bold .navbar-mobile a:focus {
  color: #0f1115 !important;
}

.page-public-bold .navbar-mobile .btn-get-started {
  color: #fff !important;
}

/* Dark-mode toggle icon — base color (rgba(255,255,255,0.7)) was built
   for the old dark headers. On the now-light public/home headers it's
   a white icon on a white background, i.e. invisible. */
.page-public-bold .dark-toggle,
.page-home-bold .dark-toggle {
  color: rgba(15, 17, 21, 0.55) !important;
}

.page-public-bold .dark-toggle:hover,
.page-home-bold .dark-toggle:hover {
  color: #0f1115 !important;
}

html.dark .page-public-bold .dark-toggle,
html.dark .page-home-bold .dark-toggle {
  color: rgba(241, 245, 249, 0.7) !important;
}

html.dark .page-public-bold .dark-toggle:hover,
html.dark .page-home-bold .dark-toggle:hover {
  color: #f1f5f9 !important;
}

.page-public-bold .hero-section.inner-page {
  background: #f7f8fa !important;
  padding-top: 96px;
}

.page-public-bold .hero-section.inner-page::before,
.page-public-bold .hero-section.inner-page::after {
  display: none;
}

.page-public-bold .hero-section .badge-pill {
  background: #ffffff;
  color: #0f1115;
  border: 1px solid #e7e9ee;
  animation: none !important;
}

.page-public-bold .hero-section h1 {
  color: #0f1115 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.page-public-bold .hero-section p {
  color: #5b6270 !important;
}

.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--white);
}

/* Dropdown */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: 0.3s;
  border-radius: var(--radius);
  min-width: 220px;
  border: 1px solid var(--gray-200);
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--gray-700);
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
  color: var(--primary);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle { display: block; }
  .navbar ul { display: none; }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.96);
  transition: 0.3s;
  z-index: var(--z-mobile-nav);
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px; right: 15px; bottom: 15px; left: 15px;
  padding: 10px 0;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--gray-700);
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: var(--primary);
}

.navbar-mobile .btn-get-started {
  margin: 10px 20px;
  display: block;
  text-align: center;
  color: var(--white) !important;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: var(--z-dropdown);
  opacity: 1;
  visibility: visible;
  background: var(--gray-100);
  box-shadow: none;
  border: none;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/* ================================================================
   7. HERO SECTION
   ================================================================ */
.hero-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section .min-vh-100 {
  min-height: 100vh;
  padding: 120px 0 80px;
}

.hero-section h1 {
  font-size: 3.5rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-section .hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
}

.stat-item {
  text-align: center;
  max-width: 220px;
}

.stat-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.stat-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  z-index: 2;
}

.phone-mockup {
  width: 300px;
  margin: 0 auto;
  background: var(--gradient-dark);
  border-radius: 30px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  background: var(--gray-900);
  border-radius: 22px;
  overflow: hidden;
  padding: 20px 16px;
}

.mock-header {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-600);
}
.mock-dot:first-child { background: var(--danger); }
.mock-dot:nth-child(2) { background: var(--warning); }
.mock-dot:nth-child(3) { background: var(--success); }

.mock-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-stat-card i          { font-size: 24px; color: var(--primary-light); }
.mock-stat-card.accent i   { color: var(--accent); }
.mock-stat-card.success i  { color: var(--success); }
.mock-stat-card small       { display: block; color: var(--gray-500); font-size: 0.75rem; }
.mock-stat-card strong      { color: var(--white); font-size: 1rem; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-top: 20px;
  padding: 0 10px;
}

.mock-chart .bar {
  flex: 1;
  background: rgba(79, 70, 229, 0.25);
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.mock-chart .bar.active    { background: var(--primary); }
.mock-chart .bar.highlight { background: var(--gradient-brand); }

/* Inner page hero */
.hero-section.inner-page {
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-section.inner-page h1 {
  font-size: 2.75rem;
}

.hero-section.inner-page p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* ================================================================
   8. SECTION COMPONENTS (shared)
   ================================================================ */
/* Base card pattern — all cards inherit this foundation */
.card-base {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.card-base:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ================================================================
   9. FEATURE CARDS
   ================================================================ */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: 100%;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
}

.new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-brand);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.feature-icon i {
  font-size: 28px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

.feature-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-link:hover i { transform: translateX(4px); }
.feature-link i       { transition: transform 0.3s; }

/* ================================================================
   10. STEP CARDS
   ================================================================ */
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  display: block;
  margin-bottom: var(--space-2);
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.step-icon i {
  font-size: 30px;
  color: var(--white);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.step-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ================================================================
   11. PHOTO PROGRESS DEMO
   ================================================================ */
.comparison-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.comparison-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-md);
  flex: 1;
  border: 2px solid var(--gray-200);
}

.comparison-card.after {
  border-color: var(--success);
}

.comparison-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.silhouette-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.silhouette-placeholder .silhouette-figure { width: 56px; height: 112px; color: var(--gray-400); filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.08)); }
.silhouette-placeholder.improved .silhouette-figure { color: var(--success); }
.comparison-meta span  { font-size: 0.85rem; font-weight: 600; }
.comparison-arrow      { font-size: 1.5rem; color: var(--primary); }

.ai-insight-box {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.ai-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--gradient-brand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-icon i { color: var(--white); font-size: 18px; }

.ai-insight-box p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-1);
  font-size: 0.95rem;
}

.feature-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.check-item {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.check-item i {
  color: var(--success);
  margin-right: 6px;
}

/* ================================================================
   12. TESTIMONIALS
   ================================================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: 100%;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card .stars { margin-bottom: var(--space-4); }
.testimonial-card .stars i { color: var(--warning); font-size: 1rem; }

.testimonial-card p {
  color: var(--gray-700);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--dark); }
.testimonial-author span   { font-size: 0.8rem; color: var(--gray-500); }

/* ================================================================
   13. PRICING
   ================================================================ */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.pricing-card.popular:hover {
  transform: scale(1.04) translateY(-6px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: var(--white);
  padding: 6px 22px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 { font-size: 1.4rem; margin-bottom: var(--space-4); }

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--space-6);
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  text-align: left;
}

.pricing-card ul li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.pricing-card ul li i { margin-right: 8px; font-size: 1rem; }
.pricing-card ul li i.bi-check2 { color: var(--success); }
.pricing-card ul li i.bi-x      { color: var(--gray-400); }
.pricing-card ul li.disabled     { color: var(--gray-400); }

/* ================================================================
   14. CTA SECTION
   ================================================================ */
.cta-section {
  background: var(--gradient-brand);
  padding: var(--space-20) 0;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: var(--space-8);
}

.cta-input {
  max-width: 360px;
  height: 52px;
  border-radius: var(--radius) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--white) !important;
  padding: 0 20px;
  font-size: 1rem;
}

.cta-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.cta-input:focus {
  border-color: var(--white) !important;
  box-shadow: none !important;
  outline: none;
}

/* ================================================================
   15. FOOTER
   ================================================================ */
.footer {
  background: var(--dark);
  padding: var(--space-20) 0 var(--space-8);
  color: rgba(255, 255, 255, 0.65);
}

.footer h3 { color: var(--white); font-size: 1.4rem; margin-bottom: var(--space-2); }
.footer h4 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: var(--space-5); }
.footer p  { font-size: 0.9rem; line-height: 1.7; color: rgba(255, 255, 255, 0.5); }
.footer-tagline {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light, #a5b4fc);
  margin-bottom: var(--space-3);
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}

.footer ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer .social {
  display: flex;
  gap: 10px;
  margin-top: var(--space-5);
}

.footer .social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer .social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ================================================================
   16. CONTACT PAGE
   ================================================================ */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-info-card:hover { box-shadow: var(--shadow); }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1.2rem;
}

.contact-info-card h4 { font-size: 1rem; color: var(--dark); margin-bottom: var(--space-1); }
.contact-info-card p  { color: var(--gray-600); margin-bottom: 0; font-size: 0.9rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.contact-form-wrapper h3 { font-size: 1.4rem; color: var(--dark); }

html.dark .contact-form-wrapper {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* Form Controls (shared) */
.form-control {
  height: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  font-size: 0.95rem;
  padding: 10px 16px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-control:active,
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-100);
  border-color: var(--primary);
}

textarea.form-control { min-height: 160px; }

.contact-form .form-control {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: 0.95rem;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.9rem;
}

/* PHP Email Form */
.php-email-form .error-message {
  display: none;
  color: var(--white);
  background: var(--danger);
  text-align: left;
  padding: 15px;
  font-weight: 600;
  border-radius: var(--radius);
}

.php-email-form .sent-message {
  display: none;
  color: var(--white);
  background: var(--success);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: var(--radius);
}

.php-email-form .loading {
  display: none;
  background: var(--white);
  text-align: center;
  padding: 15px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px; height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--success);
  border-top-color: #eee;
  animation: spin 1s linear infinite;
}

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

/* Accordion (FAQ) */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius) !important;
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-50);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px var(--primary-100);
}

/* ================================================================
   17. BLOG PAGES
   ================================================================ */
.blog-featured {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.blog-featured h2 { font-size: 1.6rem; color: var(--dark); }

.blog-img-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  border: 1px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.blog-img-placeholder.small {
  min-height: 160px;
  padding: var(--space-8);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-body { padding: var(--space-6); }

.blog-tags {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-100);
  color: var(--primary);
}

.blog-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); line-height: 1.4; }
.blog-card h3 a { color: var(--dark); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: var(--space-3); }

/* Blog Article (single post) */
.blog-article {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-800);
}

.blog-article h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: var(--space-10) 0 var(--space-4);
}

.blog-article p  { margin-bottom: var(--space-5); }

.blog-article ul,
.blog-article ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.blog-article li { margin-bottom: var(--space-2); }

.blog-article blockquote {
  border-left: 4px solid var(--primary);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  background: var(--primary-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-700);
}

.blog-article a { color: var(--primary); text-decoration: underline; }
.blog-author    { border: 1px solid var(--gray-200); }

/* Legacy post entry */
.post-entry {
  margin-bottom: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.post-entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-entry img   { width: 100%; height: 200px; object-fit: cover; }
.post-entry .post-text { padding: var(--space-6); }
.post-entry .post-text .post-meta { color: var(--gray-500); font-size: 0.8rem; display: block; margin-bottom: 8px; }
.post-entry .post-text h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.post-entry .post-text h3 a { color: var(--dark); }
.post-entry .post-text h3 a:hover { color: var(--primary); }
.post-entry .post-text .readmore { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ================================================================
   18. NUTRITION PAGE
   ================================================================ */
.nutrition-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  height: 100%;
  transition: var(--transition);
}

.nutrition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nutrition-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.nutrition-icon i { font-size: 26px; color: var(--white); }

.macro-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.macro-bar .fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.macro-bar .fill.protein { background: var(--primary); }
.macro-bar .fill.carbs   { background: var(--accent); }
.macro-bar .fill.fat     { background: var(--warning); }

.meal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  transition: var(--transition);
}

.meal-card:hover { box-shadow: var(--shadow); }
.meal-emoji { font-size: 2rem; }
.meal-info h4 { font-size: 1rem; margin-bottom: var(--space-1); }
.meal-info small { color: var(--gray-500); }

/* ================================================================
   19. WORKOUT PAGE
   ================================================================ */
.workout-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.workout-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.workout-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--primary-100);
}

.workout-header h3 { font-size: 1.3rem; margin-bottom: var(--space-2); color: var(--dark); }

.workout-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); }

.workout-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-100);
  color: var(--primary);
}

.workout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: var(--space-4) 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.workout-meta i { color: var(--primary); margin-right: 4px; }

.workout-difficulty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  font-size: 0.85rem;
  color: var(--gray-600);
}

.workout-difficulty .dots { display: flex; gap: 4px; }

.workout-difficulty .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.workout-difficulty .dot.filled { background: var(--primary); }

.workout-exercises {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  flex-grow: 1;
}

.workout-exercises li {
  padding: var(--space-1) 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.workout-exercises i { color: var(--success); margin-right: 8px; }

.workout-video-slot { margin-bottom: var(--space-3); }

.workout-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
}

.workout-video-frame iframe,
.workout-video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================================================
   20. PROGRESS PAGE
   ================================================================ */
.upload-zone {
  border: 2px dashed var(--gray-400);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  background: var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.upload-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 1.8rem;
  color: var(--primary);
}

.upload-zone h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: var(--space-2); }
.upload-zone p  { color: var(--gray-500); font-size: 0.9rem; margin-bottom: var(--space-4); }

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--success-50);
  color: var(--success);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.privacy-badge i { font-size: 1.2rem; }

.progress-timeline {
  position: relative;
  padding-left: var(--space-8);
}

.progress-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 3px;
  background: var(--gray-300);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: var(--space-8);
  padding-bottom: var(--space-10);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: calc(var(--space-8) * -1);
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-200);
  z-index: 1;
}

.timeline-marker.active {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-50);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-6);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}

.timeline-content h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 0; }

.timeline-photo-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border: 1px dashed var(--gray-300);
}

.timeline-photo-placeholder i { font-size: 2rem; color: var(--gray-400); display: block; margin-bottom: var(--space-2); }
.timeline-photo-placeholder small { color: var(--gray-500); }

.ai-insight-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--space-3) var(--space-4);
  background: var(--primary-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.ai-insight-inline i {
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ================================================================
   21. AUTH PAGES (Login, Register, Profile Setup)
   ================================================================ */
.auth-section {
  background: var(--gray-100);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 7rem 0 3rem;
}

.auth-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: var(--gradient-brand);
  z-index: 0;
}

.auth-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
}

.auth-header h2 { font-size: 1.75rem; margin-bottom: var(--space-1); }
.auth-header p   { color: var(--gray-600); margin-bottom: var(--space-6); }

/* Social Login */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--dark);
}

.btn-social:hover {
  border-color: var(--primary);
  background: var(--gray-100);
}

.btn-social i { font-size: 1.2rem; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-6);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.auth-divider span {
  padding: 0 var(--space-4);
  color: var(--gray-500);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Auth Form */
.auth-form .form-group {
  margin-bottom: var(--space-5);
}

.auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--dark);
  font-size: 0.9rem;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap > i:first-child {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1.1rem;
  pointer-events: none;
}

.input-icon-wrap input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) 2.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  background: var(--gray-100);
  color: var(--dark);
  font-family: var(--font-body);
}

.input-icon-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.toggle-password {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
}

.toggle-password:hover { color: var(--primary); }

.auth-link-sm {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  color: var(--gray-600) !important;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.btn-auth-submit {
  width: 100%;
  padding: var(--space-3);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: var(--gradient-brand);
  cursor: pointer;
  transition: var(--transition);
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-auth-submit:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-auth-outline {
  padding: var(--space-3);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.btn-auth-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.auth-footer { margin-top: var(--space-6); }
.auth-footer p { color: var(--gray-600); }
.auth-footer a { font-weight: 600; color: var(--primary); }

.auth-feedback {
  display: none;
  margin-top: var(--space-4);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-feedback.is-visible {
  display: block;
}

.auth-feedback.is-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
}

.auth-feedback.is-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #b91c1c;
}

.auth-feedback.is-info {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: #0369a1;
}

.auth-security {
  margin-top: var(--space-6);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.auth-security i { margin-right: var(--space-1); }

.auth-enterprise {
  background:
    linear-gradient(180deg, #eef3f8 0%, #f8fafc 46%, #ffffff 100%);
}

.auth-enterprise::before {
  background:
    linear-gradient(90deg, #0f172a 0%, #16253d 55%, #1f3a5f 100%);
  height: 100%;
  width: min(44vw, 520px);
  right: auto;
}

.auth-enterprise-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.auth-enterprise-aside {
  height: 100%;
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.auth-enterprise-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-enterprise-aside h1 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-4);
  color: var(--white);
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.08;
  max-width: 11ch;
}

.auth-enterprise-copy {
  margin-bottom: var(--space-6);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  max-width: 54ch;
}

.auth-enterprise-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.auth-enterprise-metric {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-enterprise-metric-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.auth-enterprise-metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--white);
}

.auth-enterprise-metric p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-enterprise-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-enterprise-note i {
  font-size: 1.2rem;
  margin-top: 0.1rem;
  color: #7dd3fc;
}

.auth-enterprise-note strong,
.auth-enterprise-note span {
  display: block;
}

.auth-enterprise-note strong {
  color: var(--white);
  margin-bottom: 0.2rem;
}

.auth-enterprise-note span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  font-size: 0.9rem;
}

.auth-enterprise-panel {
  border-radius: 0;
  min-height: 100%;
  padding: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  box-shadow: none;
}

.auth-enterprise-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.auth-enterprise-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.auth-enterprise-panel-head h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
}

.auth-enterprise-panel-head p {
  margin-bottom: 0;
  color: var(--gray-600);
}

.auth-enterprise-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-enterprise-status i {
  color: #0891b2;
}

.auth-enterprise-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: var(--space-5);
}

.auth-enterprise-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-enterprise-strip i {
  color: #0f766e;
}

.auth-enterprise-social {
  margin-bottom: var(--space-5);
}

.auth-enterprise-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.auth-enterprise-form-row-stack {
  justify-content: flex-start;
}

.auth-enterprise-inline-note {
  color: var(--gray-500);
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-enterprise-submit {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
}

.auth-enterprise-security {
  color: rgba(255, 255, 255, 0.88);
}

.setup-enterprise-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.setup-enterprise-progress {
  margin-bottom: var(--space-6);
  justify-content: flex-start;
}

.setup-enterprise-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.settings-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  margin-bottom: var(--space-5);
  border-radius: 24px;
  background:
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.settings-hero-copy h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.settings-hero-copy p {
  margin: 0;
  max-width: 64ch;
  color: var(--gray-600);
}

.settings-hero-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.settings-hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  min-width: 210px;
}

.settings-hero-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.settings-hero-stat span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-hero-stat strong {
  color: var(--dark);
  font-size: 1rem;
}

.settings-side-card,
.settings-main-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.settings-section-head {
  margin-bottom: var(--space-4);
}

.settings-section-head h3,
.settings-section-head h4 {
  margin-bottom: 0.4rem;
}

.settings-section-head p {
  margin: 0;
  color: var(--gray-600);
}

.settings-section-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.settings-actions-grid .btn {
  min-width: 160px;
}

.feature-ops-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.feature-ops-kicker,
.feature-section-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.feature-section-label {
  margin-bottom: 0.45rem;
}

.feature-ops-copy h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
}

.feature-ops-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--gray-600);
}

.feature-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: var(--space-3);
  min-width: min(480px, 100%);
}

.feature-ops-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.feature-ops-stat small,
.feature-ops-stat span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gray-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-ops-stat strong {
  color: var(--dark);
  font-size: 1rem;
}

.feature-card-enterprise {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.feature-timer-enterprise {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.coach-form-grid {
  display: grid;
  gap: 1rem;
}

.coach-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.coach-mini-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coach-mini-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coach-pill,
.coach-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coach-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.coach-summary-card,
.coach-detail-card,
.nutrition-recommendation-item {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
}

.coach-summary-card {
  padding: 1rem 1.05rem;
}

.coach-summary-card small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gray-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coach-summary-card strong {
  color: var(--dark);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
}

.coach-detail-card {
  height: 100%;
  padding: 1.1rem 1.1rem 1.15rem;
}

.coach-detail-card h4 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.coach-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-700);
}

.coach-list li {
  line-height: 1.55;
}

.nutrition-recommendations {
  display: grid;
  gap: 0.75rem;
}

.nutrition-recommendation-item {
  padding: 0.9rem 1rem;
}

.nutrition-recommendation-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 0.18rem;
}

.nutrition-recommendation-item small {
  display: block;
  color: var(--gray-600);
  line-height: 1.45;
}

.coach-score-pill {
  min-width: 3rem;
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
}

@media (max-width: 991px) {
  .coach-summary-grid,
  .coach-mini-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coach-mini-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .coach-mini-grid,
  .coach-mini-grid-3,
  .coach-mini-grid-4,
  .coach-summary-grid {
    grid-template-columns: 1fr;
  }
}

.legal-document-card,
.public-toolbar-card,
.blog-surface-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.legal-document-card {
  padding: clamp(1.6rem, 2.8vw, 2.5rem);
}

.legal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
}

.legal-meta-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.legal-meta-card small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gray-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-meta-card strong {
  color: var(--dark);
  font-size: 0.98rem;
}

.legal-document-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.legal-document-card p,
.legal-document-card li {
  color: var(--gray-700);
}

.legal-document-card ul {
  padding-left: 1.15rem;
}

.public-toolbar-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-300);
  border-radius: 4px;
  overflow: hidden;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}

.strength-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  white-space: nowrap;
}

/* Profile Setup Wizard */
.setup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
  gap: 0;
}

.setup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gray-300);
  color: var(--gray-600);
  transition: var(--transition);
}

.setup-step.active .step-circle {
  background: var(--gradient-brand);
  color: var(--white);
}

.setup-step.completed .step-circle {
  background: var(--success);
  color: var(--white);
}

.setup-step span { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }
.setup-step.active span { color: var(--primary); font-weight: 600; }

.setup-step-line {
  width: 60px;
  height: 3px;
  background: var(--gray-300);
  margin: 0 var(--space-2);
  margin-bottom: 1.2rem;
  border-radius: 3px;
  transition: background 0.35s ease;
}

.setup-step-line.completed {
  background: var(--success);
}

/* Option Cards */
.option-grid { display: grid; gap: var(--space-3); }
.option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.option-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.option-card { cursor: pointer; display: block; }
.option-card input { display: none; }

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}

.option-content i { font-size: 1.5rem; color: var(--gray-500); transition: color var(--duration) var(--ease); }
.option-content span { font-weight: 600; font-size: 0.85rem; color: var(--gray-700); }

.option-card input:checked + .option-content {
  border-color: var(--primary);
  background: var(--primary-50);
}

.option-card input:checked + .option-content i    { color: var(--primary); }
.option-card input:checked + .option-content span  { color: var(--primary); }

/* Upload Zone Mini */
.upload-zone-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.upload-zone-mini:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.upload-zone-mini i    { font-size: 2rem; color: var(--gray-500); }
.upload-zone-mini span { font-weight: 600; font-size: 0.85rem; color: var(--gray-600); }

.upload-zone-mini .upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.privacy-badge-inline {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--success-50);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: var(--space-4);
  border-radius: var(--radius);
}

.privacy-badge-inline i      { font-size: 1.5rem; color: var(--success); flex-shrink: 0; }
.privacy-badge-inline strong  { color: var(--dark); font-size: 0.9rem; }
.privacy-badge-inline p       { color: var(--gray-600); font-size: 0.85rem; }

/* ================================================================
   22. USER DASHBOARD
   ================================================================ */
.dashboard-body {
  display: flex;
  min-height: 100vh;
  background: var(--gray-100);
  overflow-x: hidden;
}

/* Dashboard Sidebar */
.dash-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #ffffff;
  color: #0f1115;
  border-right: 1px solid #e7e9ee;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: width var(--duration) ease;
}

.dash-sidebar.collapsed { width: 0; overflow: hidden; }

.dash-sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid #e7e9ee;
}

.dash-sidebar-header h2 { color: #0f1115; font-size: 1.4rem; margin: 0; }
.dash-sidebar-header h2 a { color: #0f1115; }

.dash-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-logo-link .logo-icon-img {
  height: 26px;
}

.dash-nav { flex: 1; padding: var(--space-4) 0; overflow-y: auto; }
.dash-nav-label {
  padding: var(--space-3) var(--space-6) var(--space-2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa1ad;
  font-weight: 600;
  margin: 0;
}

.dash-nav ul { list-style: none; padding: 0; margin: 0; }

.dash-nav li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: #5b6270;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dash-nav li a:hover {
  color: #0f1115;
  background: #f7f8fa;
}

.dash-nav li.active a {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  border-left-color: var(--primary);
}

.dash-nav li a i { font-size: 1.2rem; }

/* Weekly Brief components — these had no CSS at all, so JS-rendered
   <strong><small> pairs with no source whitespace between them ran
   together with no space ("Activate one plan firstPhase B guidance..."). */
.dash-brief-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f4;
}

.dash-brief-list-item:last-child { border-bottom: none; }

.dash-brief-list-item > i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.dash-brief-list-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-brief-list-item strong {
  font-size: 0.9rem;
  color: #0f1115;
  font-weight: 600;
}

.dash-brief-list-item small {
  font-size: 0.82rem;
  color: #5b6270;
  line-height: 1.4;
}

.dash-brief-list-card {
  background: #f7f8fa;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  padding: 16px 18px;
  height: 100%;
}

.dash-brief-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-brief-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f7f8fa;
  border: 1px solid #e7e9ee;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5b6270;
}

.dash-brief-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-brief-signal {
  flex: 1;
  min-width: 160px;
  background: #f7f8fa;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-brief-signal span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa1ad;
  font-weight: 600;
}

.dash-brief-signal strong {
  font-size: 0.88rem;
  color: #0f1115;
}

.dash-brief-readout,
.dash-brief-decision {
  background: #f7f8fa;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  padding: 18px 20px;
}

.dash-brief-readout-top,
.dash-brief-decision-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dash-brief-decision-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-brief-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dash-brief-decision-card {
  background: #ffffff;
  border: 1px solid #e7e9ee;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-brief-decision-card span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa1ad;
  font-weight: 600;
}

.dash-brief-decision-card strong {
  font-size: 0.85rem;
  color: #0f1115;
}

.dash-brief-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dash-brief-action-status {
  color: #5b6270;
  font-size: 0.82rem;
}

.dash-command-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dash-command-item {
  flex: 1;
  min-width: 160px;
  background: #f7f8fa;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-command-item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa1ad;
  font-weight: 600;
}

.dash-command-item strong {
  font-size: 0.85rem;
  color: #0f1115;
}

.dash-goal-progress {
  background: #f7f8fa;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}

html.dark .dash-goal-progress {
  background: #1a2332;
  border-color: rgba(148, 163, 184, 0.16);
}

.dash-reminder-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-reminder-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: #f7f8fa;
  border-radius: 10px;
  border: 1px solid #e7e9ee;
}

.dash-reminder-summary-item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa1ad;
  font-weight: 600;
}

html.dark .dash-reminder-summary-item {
  background: #1a2332;
  border-color: rgba(148, 163, 184, 0.16);
}

html.dark .dash-reminder-summary-item span {
  color: #64748b;
}

html.dark .dash-reminder-summary-item strong {
  color: #f1f5f9;
}

.dash-reminder-summary-item strong {
  font-size: 0.92rem;
  color: #0f1115;
  font-weight: 600;
}

.dash-sidebar-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid #e7e9ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dash-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.dash-user-info strong { display: block; font-size: 0.9rem; color: #0f1115; }
.dash-user-info small  { color: #5b6270; font-size: 0.8rem; }

html.dark .dash-sidebar,
html.dark .admin-sidebar {
  background: #0c1222;
  color: #f1f5f9;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

html.dark .dash-sidebar-header,
html.dark .dash-sidebar-footer,
html.dark .admin-sidebar-header,
html.dark .admin-sidebar-footer {
  border-color: rgba(148, 163, 184, 0.16);
}

html.dark .dash-sidebar-header h2,
html.dark .dash-sidebar-header h2 a {
  color: #f1f5f9;
}

html.dark .dash-nav-label,
html.dark .admin-nav-label {
  color: #64748b;
}

html.dark .dash-nav li a,
html.dark .admin-nav li a {
  color: #94a3b8;
}

html.dark .dash-nav li a:hover,
html.dark .admin-nav li a:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.08);
}

html.dark .dash-nav li.active a,
html.dark .admin-nav li.active a {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.14);
  border-left-color: var(--primary-light);
}

html.dark .dash-user-info strong {
  color: #f1f5f9;
}

html.dark .dash-user-info small {
  color: #94a3b8;
}

.dash-logout {
  color: #5b6270;
  font-size: 1.2rem;
}
.dash-logout:hover { color: var(--danger); }

/* Dashboard Main */
.dash-main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left var(--duration) ease;
}

.dash-main.expanded { margin-left: 0; }

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.dash-toggle-sidebar {
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
}

.dash-greeting { flex: 1; padding: 0 var(--space-4); }
.dash-greeting h1 { font-size: 1.35rem; margin-bottom: 0; }
.dash-greeting p   { color: var(--gray-500); margin: 0; font-size: 0.9rem; }

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dash-notif {
  position: relative;
  border: none;
  background: none;
  font-size: 1.3rem;
  color: var(--gray-600);
  cursor: pointer;
}

.notif-dot {
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.dash-avatar-sm {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.dash-content { padding: var(--space-8); }

.dash-section-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.dash-overview-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background:
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
}

.dash-overview-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 2.1vw, 2.35rem);
}

.dash-overview-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--gray-600);
}

.dash-overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: var(--space-3);
  min-width: min(360px, 100%);
}

.dash-overview-metric {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dash-overview-metric span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gray-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-overview-metric strong {
  color: var(--dark);
  font-size: 1rem;
}

.dash-action-card {
  padding: clamp(1.4rem, 2.3vw, 1.8rem);
}

.dash-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.dash-action-link {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 112px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--dark);
  transition: var(--transition);
}

.dash-action-link i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 1.1rem;
}

.dash-action-link span {
  font-weight: 700;
}

.dash-action-link:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

/* Dashboard Stat Cards */
.dash-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.dash-stat-card-enterprise,
.dash-card-enterprise {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.dash-stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}

.dash-stat-info { flex: 1; min-width: 0; }
.dash-stat-info small { color: var(--gray-500); font-size: 0.8rem; font-weight: 500; }
.dash-stat-info h3    { font-size: 1.5rem; margin: var(--space-1) 0; color: var(--dark); }
.dash-stat-info h3 span { font-size: 0.85rem; font-weight: 400; color: var(--gray-500); }

.dash-stat-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dash-stat-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* Dashboard Cards */
.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  height: 100%;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.dash-card-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.dash-card-header h3 i { color: var(--primary); margin-right: var(--space-2); }

.dash-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Photo Timeline (dashboard) */
.dash-photo-timeline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.dash-photo-entry { text-align: center; flex-shrink: 0; }

.dash-photo-placeholder {
  width: 100px; height: 120px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  position: relative;
}

.dash-badge-new {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--success);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
}

.dash-photo-meta strong { display: block; font-size: 0.85rem; color: var(--dark); margin-top: var(--space-2); }
.dash-photo-meta small  { color: var(--gray-500); font-size: 0.75rem; }
.dash-photo-arrow       { color: var(--gray-400); font-size: 1.2rem; }

/* AI Insight (dashboard) */
.dash-ai-insight {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: var(--space-4);
  border-radius: var(--radius);
}

.dash-ai-icon {
  width: 36px; height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.dash-ai-insight strong { font-size: 0.85rem; color: var(--dark); display: block; margin-bottom: var(--space-1); }
.dash-ai-insight p      { font-size: 0.9rem; color: var(--gray-600); margin: 0; }

/* Meal List (dashboard) */
.dash-meal-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }

.dash-meal-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease);
}

.dash-meal-item:hover { background: var(--gray-100); }
.dash-meal-icon       { font-size: 1.6rem; flex-shrink: 0; }
.dash-meal-info       { flex: 1; }
.dash-meal-info strong { font-size: 0.9rem; display: block; color: var(--dark); }
.dash-meal-info small  { color: var(--gray-500); font-size: 0.8rem; }
.dash-meal-cal         { font-weight: 700; font-size: 0.85rem; color: var(--dark); white-space: nowrap; }

/* Macro Rings */
.dash-macros {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.dash-macro-ring {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--clr) calc(var(--pct) * 1%), var(--gray-200) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dash-macro-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--white);
  border-radius: 50%;
}

.dash-macro-ring span {
  position: relative;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dark);
}

.dash-macro small { display: block; margin-top: var(--space-2); font-size: 0.75rem; color: var(--gray-500); font-weight: 500; }

/* Workout List (dashboard) */
.dash-workout-list { display: flex; flex-direction: column; gap: var(--space-3); }

.dash-workout-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.dash-workout-item.active-today {
  border-color: var(--primary);
  background: var(--primary-50);
}

.dash-workout-day { text-align: center; min-width: 48px; }
.dash-workout-day strong { display: block; font-size: 0.9rem; color: var(--dark); }
.dash-workout-day small  { color: var(--gray-500); font-size: 0.75rem; }
.dash-workout-info { flex: 1; }
.dash-workout-info h4 { font-size: 0.95rem; margin-bottom: var(--space-1); color: var(--dark); }

.dash-workout-tags { display: flex; gap: var(--space-2); }

.dash-tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--primary-100);
  color: var(--primary);
}

.dash-workout-status { color: var(--primary); font-size: 1.5rem; }

/* Goals */
.dash-goal-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }

.dash-goal-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.dash-goal-item.completed span { text-decoration: line-through; color: var(--gray-500); }
.dash-goal-item.completed i    { color: var(--success); }
.dash-goal-item i               { font-size: 1.1rem; color: var(--gray-400); }

/* Badges */
.dash-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.dash-badge-item {
  text-align: center;
  opacity: 0.35;
  transition: opacity var(--duration) var(--ease);
}

.dash-badge-item.earned { opacity: 1; }

.dash-badge-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  margin: 0 auto var(--space-2);
  background: var(--gray-300);
}

.dash-badge-item.earned .dash-badge-icon { background: var(--gradient-brand); }
.dash-badge-item small { font-size: 0.75rem; color: var(--gray-600); font-weight: 500; }

/* ================================================================
   23. ADMIN PANEL
   ================================================================ */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--gray-100);
  overflow-x: hidden;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #ffffff;
  color: #0f1115;
  border-right: 1px solid #e7e9ee;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: width var(--duration) ease;
}

.admin-sidebar.collapsed { width: 0; overflow: hidden; }

.admin-sidebar-header {
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid #e7e9ee;
}

.admin-sidebar-header h2 { color: #0f1115; font-size: 1.4rem; margin: 0; }
.admin-sidebar-header h2 a { color: #0f1115; }

.admin-badge {
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.admin-nav { flex: 1; padding: var(--space-4) 0; overflow-y: auto; }
.admin-nav ul { list-style: none; padding: 0; margin: 0; }

.admin-nav li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: #5b6270;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav li a:hover {
  color: #0f1115;
  background: #f7f8fa;
}

.admin-nav li.active a {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  border-left-color: var(--primary);
}

.admin-nav li a i { font-size: 1.2rem; }

.admin-sidebar-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid #e7e9ee;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.admin-avatar { font-size: 2rem; color: var(--primary); }
.admin-user-info strong { display: block; font-size: 0.9rem; color: #0f1115; }
.admin-user-info small  { color: #5b6270; font-size: 0.8rem; }

.admin-logout {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: #5b6270;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-logout:hover { color: var(--danger); }

/* Admin Main */
.admin-main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left var(--duration) ease;
}

.admin-main.expanded { margin-left: 0; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.admin-toggle-sidebar {
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: var(--space-1);
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.admin-search { position: relative; }

.admin-search i {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

.admin-search input {
  padding: var(--space-2) var(--space-4) var(--space-2) 2.25rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  width: 260px;
  transition: border-color var(--duration) var(--ease);
  background: var(--gray-100);
  font-family: var(--font-body);
}

.admin-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.admin-notif {
  position: relative;
  border: none;
  background: none;
  font-size: 1.3rem;
  color: var(--gray-600);
  cursor: pointer;
}

.admin-content { padding: var(--space-8); }

.admin-page-header { margin-bottom: var(--space-6); }
.admin-page-header h1 { font-size: 1.75rem; margin-bottom: var(--space-1); }
.admin-page-header p  { color: var(--gray-600); margin: 0; }

/* Admin Stat Cards */
.admin-stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-info h3 { color: var(--white); font-size: 1.75rem; margin: 0; }
.stat-info p  { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.stat-change  { font-size: 0.8rem; font-weight: 600; }
.stat-change.positive { color: rgba(255, 255, 255, 0.9); }
.stat-change.negative { color: #fca5a5; }

/* Admin Cards */
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  height: 100%;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.admin-card-header h3 { font-size: 1.1rem; margin: 0; }

.admin-link { font-size: 0.9rem; font-weight: 600; color: var(--primary); }

.admin-card-actions { display: flex; gap: var(--space-2); }

.btn-pill {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pill.active,
.btn-pill:hover,
.nav-pills .btn-pill.nav-link.active,
.nav-pills .btn-pill.nav-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.dash-quote-enterprise {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-pills .btn-pill.nav-link {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Chart */
.admin-chart-placeholder {
  height: 250px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4) 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  width: 100%;
  height: 100%;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-brand);
  border-radius: 8px 8px 0 0;
  position: relative;
  min-height: 20px;
  transition: height 0.5s ease;
}

.chart-bar span {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Plan Distribution */
.plan-breakdown { display: flex; flex-direction: column; gap: var(--space-5); }

.plan-item { display: flex; align-items: center; gap: var(--space-3); }

.plan-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 90px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
}

.plan-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.plan-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.plan-bar { height: 100%; border-radius: 8px; transition: width 0.5s ease; }
.plan-pct { font-size: 0.85rem; font-weight: 700; color: var(--dark); min-width: 35px; text-align: right; }

/* Admin Table */
.admin-table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
  text-align: left;
  padding: var(--space-3);
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
  padding: var(--space-3);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.user-cell { display: flex; align-items: center; gap: var(--space-3); }

.user-cell-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.user-cell strong { display: block; font-size: 0.9rem; color: var(--dark); }
.user-cell small  { color: var(--gray-500); }

.table-badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.table-badge.pro  { background: var(--primary-100); color: var(--primary); }
.table-badge.free { background: var(--accent-50); color: var(--accent-dark); }
.table-badge.team { background: var(--success-50); color: var(--success); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--space-1);
}

.status-dot.active   { background: var(--success); }
.status-dot.pending  { background: #f59e0b; }
.status-dot.inactive { background: var(--gray-400); }

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; gap: var(--space-4); }

.activity-item { display: flex; align-items: flex-start; gap: var(--space-3); }

.activity-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.activity-content p     { margin: 0; font-size: 0.9rem; color: var(--gray-700); }
.activity-content small { color: var(--gray-500); font-size: 0.8rem; }

.notif-item.notif-unread {
  background: rgba(79, 70, 229, 0.06);
}

.admin-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  z-index: 1400;
}

.admin-editor-backdrop.is-open { display: flex; }

.admin-editor-dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.admin-editor-header,
.admin-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
}

.admin-editor-header {
  border-bottom: 1px solid var(--gray-200);
}

.admin-editor-footer {
  border-top: 1px solid var(--gray-200);
}

.admin-editor-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.admin-editor-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.admin-editor-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-editor-body {
  padding: var(--space-5) var(--space-6);
}

.admin-editor-status {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.admin-editor-status.danger {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.admin-editor-status.success {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.admin-editor-grid-span {
  grid-column: 1 / -1;
}

.admin-editor-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.admin-editor-code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .admin-editor-backdrop {
    padding: var(--space-3);
  }

  .admin-editor-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .admin-editor-header,
  .admin-editor-body,
  .admin-editor-footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .admin-editor-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   24. BACK TO TOP — see Section 32 (progress ring version)
   ================================================================ */

/* ================================================================
   25-A. DARK MODE TOGGLE BUTTON
   ================================================================ */
.dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  transition: color var(--duration) var(--ease);
}
.dark-toggle:hover { color: var(--white); }

/* Dashboard / Admin topbar dark toggle */
.dash-topbar .dark-toggle,
.admin-topbar .dark-toggle {
  color: var(--gray-600);
  font-size: 18px;
}
.dash-topbar .dark-toggle:hover,
.admin-topbar .dark-toggle:hover { color: var(--primary); }

/* ================================================================
   25-B. DARK MODE THEME
   ================================================================ */
html.dark {
  --bg-subtle:     #1e293b;
  --gray-100:      #1a2332;
  --gray-200:      #1e293b;
  --gray-300:      #334155;
  --gray-400:      #475569;
  --gray-500:      #94a3b8;
  --gray-600:      #94a3b8;
  --gray-700:      #e2e8f0;
  --gray-800:      #f1f5f9;
  --gray-900:      #f8fafc;
  --dark:          #f1f5f9;
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow:        0 4px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-md:     0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 20px 25px -5px rgba(0, 0, 0, 0.45);
  --primary-light: #a5b4fc;
}

html.dark body {
  background: #0c1222;
  color: #e2e8f0;
}

/* Bootstrap's own .text-muted uses Bootstrap's --bs-secondary-color, which
   this project's custom .dark class never touches (dark mode here is a
   hand-rolled class, not Bootstrap's own [data-bs-theme=dark] attribute).
   Left unpatched, every .text-muted element (200+ across the site) stays
   near-black text on a near-black background — effectively invisible. */
html.dark .text-muted {
  color: var(--gray-600) !important;
}

/* Same problem as .text-muted: Bootstrap's raw .bg-white utility is
   hardcoded and never adapts to this project's custom .dark class. */
html.dark .bg-white {
  background-color: #131b2e !important;
}

/* .dash-brief-list-item / .dash-brief-signal strong+small use hardcoded
   light-mode hex colors with no dark variant, so they read as near-black
   text on the dark card background (Photo Progress guidance, Adaptive
   Plan Cues, Weekly Transformation Brief loop-score band). */
html.dark .dash-brief-list-item strong,
html.dark .dash-brief-signal strong {
  color: #f1f5f9;
}

html.dark .dash-brief-list-item small {
  color: #94a3b8;
}

/* Bootstrap's badge bg-light/text-dark pairing (pricing "Active" badge,
   billing plan-price badges) is meant to always render as a light pill —
   the blanket html.dark .bg-light override above turns the background
   dark while text-dark stays dark too, making the badge unreadable. */
html.dark .badge.bg-light.text-dark {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Cookie banner Decline button: --gray-400 text against the banner's own
   dark surface is too close in tone to read comfortably. */
html.dark .cookie-banner .btn-cookie-decline {
  color: #94a3b8;
  border-color: #475569;
}

/* .meal-card hardcodes background: var(--white) (not the --gray-100
   token), so it never picks up the dark surface color while its heading
   text (h1-h6 use --dark, which IS remapped) turns light — light text on
   a still-white card. */
html.dark .meal-card {
  background: #131b2e;
}

/* Same hardcoded background: var(--white) issue as .meal-card, on the
   progress-page photo timeline's empty-state card. */
html.dark .timeline-content {
  background: #131b2e;
}

/* Empty-state icons — a gentle breathing pulse so "no data yet" states
   feel intentional and alive rather than static/dead. */
.dash-goal-item i,
.meal-card > i {
  display: inline-block;
  animation: emptyStateBreathe 2.4s ease-in-out infinite;
}

@keyframes emptyStateBreathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-goal-item i,
  .meal-card > i {
    animation: none;
  }
}

/* — Header — */
html.dark #header.header-scrolled {
  background: rgba(12, 18, 34, 0.95);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

/* — Hero wave fill — */
html.dark .hero-wave svg path { fill: #0c1222; }

/* — Backgrounds — */
html.dark .bg-light { background: #111827 !important; }

/* — Section headings: solid light text, indigo accent phrase — */
html.dark .section-heading {
  color: #f1f5f9;
}

html.dark .section-heading .accent {
  color: #a5b4fc;
}

/* — Cards — */
html.dark .feature-card,
html.dark .step-card,
html.dark .testimonial-card,
html.dark .contact-info-card,
html.dark .cta-stat,
html.dark .blog-card,
html.dark .blog-featured,
html.dark .blog-article,
html.dark .blog-author,
html.dark .blog-cta,
html.dark .auth-card,
html.dark .faq-card,
html.dark .nutrition-card,
html.dark .workout-card,
html.dark .comment-item {
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark .feature-card:hover,
html.dark .step-card:hover,
html.dark .testimonial-card:hover,
html.dark .blog-card:hover,
html.dark .workout-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* — Pricing cards — */
html.dark .pricing-card {
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.08);
}
html.dark .pricing-card.popular {
  background: linear-gradient(145deg, #1e293b 0%, #1a2744 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 8px 30px rgba(79, 70, 229, 0.12);
}
html.dark .pricing-card ul li.disabled { color: #475569; }

/* — Dropdowns — */
html.dark .navbar .dropdown ul {
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.dark .navbar .dropdown ul a { color: #cbd5e1; }
html.dark .navbar .dropdown ul a:hover { color: #a5b4fc; background: rgba(99, 102, 241, 0.06); }

/* — CTA Section — */
html.dark .cta-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%);
}
html.dark .cta-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

/* — Dashboard & Admin — */
html.dark .dash-main,
html.dark .admin-main { background: #0c1222; }

html.dark .dash-topbar,
html.dark .admin-topbar {
  background: #1e293b;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

html.dark .dash-stat-card,
html.dark .dash-card,
html.dark .admin-stat-card,
html.dark .admin-card,
html.dark .stat-card {
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.08);
}
html.dark .admin-card {
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.08);
}
html.dark .dash-overview-card {
  background: linear-gradient(135deg, #111827 0%, #172554 100%);
}
html.dark .dash-overview-copy h2,
html.dark .dash-overview-metric strong {
  color: #e2e8f0;
}
html.dark .dash-overview-copy p,
html.dark .dash-overview-metric span {
  color: #94a3b8;
}
html.dark .dash-section-kicker {
  color: #67e8f9;
}
html.dark .dash-overview-metric,
html.dark .dash-action-link,
html.dark .dash-quote-enterprise {
  background: #162032;
  border-color: #334155;
}
html.dark .dash-action-link {
  color: #e2e8f0;
}

html.dark .admin-editor-dialog {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-color: rgba(148, 163, 184, 0.16);
}

html.dark .admin-editor-header,
html.dark .admin-editor-footer {
  border-color: rgba(148, 163, 184, 0.14);
}

html.dark .admin-editor-close {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.14);
  color: var(--gray-200);
}

html.dark .admin-editor-status {
  background: rgba(99, 102, 241, 0.16);
}

html.dark .admin-editor-status.danger {
  background: rgba(220, 38, 38, 0.16);
}

html.dark .admin-editor-status.success {
  background: rgba(22, 163, 74, 0.16);
}
html.dark .dash-action-link i {
  background: rgba(103, 232, 249, 0.12);
  color: #67e8f9;
}
html.dark .dash-action-link:hover {
  border-color: #475569;
}

html.dark .dash-stat-bar { background: #334155; }

/* — Tables — */
html.dark .table { color: #e2e8f0; }
html.dark .table thead th { border-color: #334155; color: #94a3b8; }
html.dark .table td { border-color: rgba(99, 102, 241, 0.06); }
html.dark .table-striped > tbody > tr:nth-of-type(odd) > * { background: rgba(99, 102, 241, 0.03); }

/* — Forms — */
html.dark .form-control,
html.dark .form-select,
html.dark .input-icon-wrap input,
html.dark .comment-form textarea {
  background: #162032;
  color: #e2e8f0;
  border-color: #334155;
}
html.dark .form-control:focus,
html.dark .input-icon-wrap input:focus,
html.dark .comment-form textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
html.dark .input-icon-wrap i { color: #64748b; }

/* — Auth cards — */
html.dark .auth-card {
  background: #1e293b;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
html.dark .auth-divider span { background: #1e293b; color: #64748b; }
html.dark .btn-social { background: #162032; color: #cbd5e1; border-color: #334155; }
html.dark .btn-social:hover { background: #1a2744; border-color: #475569; }
html.dark .auth-enterprise {
  background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #111827 100%);
}
html.dark .auth-enterprise::before {
  background: linear-gradient(180deg, #020617 0%, #0b1729 100%);
}
html.dark .auth-enterprise-shell {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(71, 85, 105, 0.36);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
html.dark .auth-enterprise-metric {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.12);
}
html.dark .auth-enterprise-note {
  border-top-color: rgba(148, 163, 184, 0.12);
}
html.dark .auth-enterprise-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
}
html.dark .auth-enterprise-kicker {
  color: #67e8f9;
}
html.dark .auth-enterprise-panel-head p,
html.dark .auth-enterprise-inline-note {
  color: #94a3b8;
}
html.dark .auth-enterprise-status,
html.dark .auth-enterprise-strip span {
  background: #162032;
  border-color: #334155;
  color: #cbd5e1;
}
html.dark .auth-enterprise-status i,
html.dark .auth-enterprise-strip i {
  color: #67e8f9;
}
html.dark .setup-enterprise-card,
html.dark .settings-side-card,
html.dark .settings-main-card {
  border-color: rgba(71, 85, 105, 0.36);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}
html.dark .settings-hero {
  background: linear-gradient(135deg, #111827 0%, #172554 100%);
  border-color: rgba(71, 85, 105, 0.36);
}
html.dark .settings-hero-copy p,
html.dark .settings-section-head p,
html.dark .settings-hero-stat span {
  color: #94a3b8;
}
html.dark .settings-hero-stat {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(71, 85, 105, 0.36);
}
html.dark .legal-document-card,
html.dark .public-toolbar-card,
html.dark .blog-surface-card {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(71, 85, 105, 0.36);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}
html.dark .legal-meta-card {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(71, 85, 105, 0.3);
}
html.dark .legal-meta-card small {
  color: #94a3b8;
}
html.dark .legal-meta-card strong,
html.dark .legal-document-card h2 {
  color: #e2e8f0;
}
html.dark .legal-document-card p,
html.dark .legal-document-card li {
  color: #cbd5e1;
}
html.dark .settings-hero-stat strong,
html.dark .settings-hero-copy h2,
html.dark .settings-section-head h3,
html.dark .settings-section-head h4 {
  color: #e2e8f0;
}
html.dark .settings-hero-kicker,
html.dark .settings-section-label {
  color: #67e8f9;
}
html.dark .feature-ops-card {
  background: linear-gradient(135deg, #111827 0%, #172554 100%);
  border-color: rgba(71, 85, 105, 0.36);
}
html.dark .feature-ops-copy h2,
html.dark .feature-ops-stat strong {
  color: #e2e8f0;
}
html.dark .feature-ops-copy p,
html.dark .feature-ops-stat span {
  color: #94a3b8;
}
html.dark .feature-ops-kicker,
html.dark .feature-section-label {
  color: #67e8f9;
}
html.dark .feature-ops-stat {
  background: #162032;
  border-color: #334155;
}
html.dark .feature-timer-enterprise {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

/* — Accordion — */
html.dark .coach-pill {
  background: rgba(103, 232, 249, 0.12);
  color: #67e8f9;
}
html.dark .coach-score-pill {
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
}
html.dark .coach-summary-card,
html.dark .coach-detail-card,
html.dark .nutrition-recommendation-item {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(71, 85, 105, 0.3);
}
html.dark .coach-summary-card small,
html.dark .nutrition-recommendation-item small {
  color: #94a3b8;
}
html.dark .coach-summary-card strong,
html.dark .coach-detail-card h4,
html.dark .nutrition-recommendation-item strong {
  color: #e2e8f0;
}
html.dark .coach-list {
  color: #cbd5e1;
}

html.dark .accordion-item {
  background: #1e293b;
  border-color: rgba(99, 102, 241, 0.08) !important;
}
html.dark .accordion-button {
  background: transparent;
  color: #e2e8f0;
}
html.dark .accordion-button:not(.collapsed) {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.06);
}
html.dark .accordion-button::after { filter: invert(0.7); }
html.dark .accordion-body { color: #94a3b8; }

/* — Footer — */
html.dark .footer {
  background: #080e1a;
  border-top: 1px solid rgba(99, 102, 241, 0.06);
}
html.dark .footer h4 { color: #e2e8f0; }
html.dark .footer ul li a { color: #94a3b8; }
html.dark .footer ul li a:hover { color: #a5b4fc; }
html.dark .footer-bottom { border-color: rgba(99, 102, 241, 0.08); }

/* — Workout timer — */
html.dark .workout-timer { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); }

/* — Toasts & misc — */
html.dark .badge-pill { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }
html.dark .popular-badge { background: var(--primary); }

html.dark .back-to-top .btt-inner { box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4); }
html.dark .back-to-top .progress-ring-bg { stroke: #334155; }

/* — Comparison slider dark — */
html.dark .compare-slider { background: #1e293b; }
html.dark .compare-placeholder { background: linear-gradient(135deg, #1e293b, #162032); color: #64748b; }
html.dark .compare-placeholder.after { background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.1)); }

/* — Blog ToC dark — */
html.dark .blog-toc { background: #162032; border-color: rgba(99,102,241,0.1); }
html.dark .blog-toc h4 { color: #64748b; }
html.dark .blog-toc-list a { color: #94a3b8; }
html.dark .blog-toc-list a:hover,
html.dark .blog-toc-list a.active { color: #a5b4fc; background: rgba(99,102,241,0.1); border-left-color: #a5b4fc; }

/* — Cookie banner dark — */
html.dark .cookie-banner { background: #1e293b; border-top: 1px solid rgba(99,102,241,0.08); }

/* — Notification dropdown — */
html.dark #notifDropdown { background: #1e293b !important; border: 1px solid rgba(99,102,241,0.1); }
html.dark #notifDropdown div[style*="border-bottom"] { border-color: #334155 !important; }

/* — Dashboard quote — */
html.dark .dash-quote { background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%); }

/* — Smooth transition for everything — */
html.dark * { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-brand);
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
}

/* Blog Comments */
.blog-comments { margin-top: var(--space-12); }
.blog-comments h3 { margin-bottom: var(--space-6); }
.comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--duration) var(--ease);
}
.comment-form textarea:focus { outline: none; border-color: var(--primary); }
.comment-item {
  padding: var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
.comment-item .comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: 0.85rem;
  color: var(--gray-500);
}
.comment-item .comment-meta strong { color: var(--gray-800); }

/* Pricing Toggle */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  font-weight: 500;
  color: var(--gray-600);
}
.pricing-toggle .toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.pricing-toggle .toggle-switch.active { background: var(--primary); }
.pricing-toggle .toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--duration) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
html.dark .pricing-toggle .toggle-switch::after { background: #f1f5f9; }
.pricing-toggle .toggle-switch.active::after { transform: translateX(24px); }
.pricing-toggle .save-badge {
  background: var(--success-50);
  color: var(--success);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ================================================================
   26-A. EXERCISE TIMER
   ================================================================ */
.workout-timer {
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.workout-timer::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(79,70,229,0.12);
  border-radius: 50%;
}
.timer-display {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: var(--space-4) 0;
  font-variant-numeric: tabular-nums;
}
.timer-controls { display: flex; gap: var(--space-3); justify-content: center; }
.timer-controls .btn { min-width: 110px; }
.timer-presets { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }
.timer-presets button {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.timer-presets button:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ================================================================
   26-B. CALORIE PROGRESS RING
   ================================================================ */
.calorie-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-3);
}
.calorie-ring-wrap svg { transform: rotate(-90deg); }
.calorie-ring-wrap .ring-bg { stroke: var(--gray-300); fill: none; stroke-width: 8; }
.calorie-ring-wrap .ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.calorie-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.calorie-ring-center h3 { font-size: 1.5rem; margin: 0; }
.calorie-ring-center small { font-size: 0.7rem; color: var(--gray-500); }

/* ================================================================
   26-C. FAQ ACCORDION
   ================================================================ */
.faq-section { background: var(--gray-100); }
.faq-section .accordion-item { border: 1px solid var(--gray-300); border-radius: var(--radius) !important; margin-bottom: var(--space-3); overflow: hidden; }
.faq-section .accordion-button { font-weight: 600; font-family: var(--font-heading); background: transparent; box-shadow: none; }
.faq-section .accordion-button:not(.collapsed) { color: var(--primary); background: var(--primary-50); }
.faq-section .accordion-body { color: var(--gray-700); }

/* ================================================================
   26-D. MOTIVATIONAL QUOTE
   ================================================================ */
.dash-quote {
  background: var(--gradient-brand);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  color: #fff;
  font-style: italic;
  position: relative;
}
.dash-quote::before {
  content: '\201C';
  font-size: 3rem;
  position: absolute;
  top: 4px;
  left: 12px;
  opacity: 0.3;
  font-style: normal;
}

/* ================================================================
   28. BEFORE / AFTER COMPARISON SLIDER
   ================================================================ */
.compare-slider-wrap {
  text-align: center;
}
.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  background: var(--gray-100);
  box-shadow: var(--shadow-lg);
}
.compare-before,
.compare-after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.compare-after {
  clip-path: inset(0 0 0 50%);
}
.compare-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--gray-500);
  font-weight: 600;
  font-size: 1rem;
}
.compare-placeholder.after {
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08));
}
.compare-placeholder i {
  font-size: 3rem;
  margin-bottom: .5rem;
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.compare-handle-line {
  flex: 1;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.3);
}
.compare-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.compare-upload-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.progress-ai-overlay {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15,23,42,0.02), rgba(15,23,42,0.05));
  padding: var(--space-4);
}
.progress-ai-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-3);
}
.progress-ai-overlay-image {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: #fff;
}
.progress-ai-guidance {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-3);
}
.progress-ai-guidance ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-700);
}
.progress-ai-guidance li + li {
  margin-top: .35rem;
}
.progress-ai-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.progress-ai-metric-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.02);
  padding: 14px 16px;
}
.progress-ai-metric-card span {
  display: block;
  font-size: .78rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.progress-ai-metric-card strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
}
.progress-ai-angle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: var(--space-3);
}
.progress-ai-angle-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px 16px;
}
.progress-ai-angle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.progress-ai-angle-head strong {
  color: var(--dark);
  font-size: .92rem;
  text-transform: capitalize;
}
.progress-ai-angle-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
}
.progress-ai-angle-metrics {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.progress-ai-angle-metrics + .progress-ai-angle-metrics {
  margin-top: 8px;
}
.progress-ai-angle-metrics span {
  color: var(--gray-500);
  font-size: .78rem;
}
.progress-ai-angle-metrics strong {
  color: var(--dark);
  font-size: .9rem;
}
.progress-ai-failures {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-3);
}
.progress-ai-failures ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-700);
}
.progress-ai-failures li + li {
  margin-top: .35rem;
}

/* ================================================================
   29. BLOG TABLE OF CONTENTS
   ================================================================ */
.blog-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-subtle, var(--gray-50));
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--gray-200);
}
.blog-toc h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}
.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-toc-list li {
  margin-bottom: 6px;
}
.blog-toc-list a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.blog-toc-list a:hover,
.blog-toc-list a.active {
  color: var(--primary);
  background: rgba(79,70,229,.06);
  border-left-color: var(--primary);
}

/* ================================================================
   30. COOKIE CONSENT BANNER
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: #e2e8f0;
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform .4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  font-size: .9rem;
  max-width: 680px;
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner .btn-cookie {
  padding: 8px 24px;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  font-size: .85rem;
  transition: all .2s;
}
.cookie-banner .btn-cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .btn-cookie-accept:hover {
  background: var(--primary-hover);
}
.cookie-banner .btn-cookie-decline {
  background: transparent;
  color: var(--gray-400);
  border: 1px solid var(--gray-600);
}
.cookie-banner .btn-cookie-decline:hover {
  color: #fff;
  border-color: var(--gray-400);
}

/* ================================================================
   31. BMI HISTORY CHART
   ================================================================ */
.bmi-chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  margin-top: var(--space-4);
}
.bmi-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

html.dark .progress-ai-overlay {
  border-color: rgba(148,163,184,0.2);
  background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.9));
}
html.dark .progress-ai-overlay-image {
  border-color: rgba(148,163,184,0.2);
  background: #0f172a;
}
html.dark .progress-ai-guidance {
  border-top-color: rgba(148,163,184,0.2);
}
html.dark .progress-ai-guidance ul {
  color: #cbd5e1;
}
html.dark .progress-ai-metric-card,
html.dark .progress-ai-angle-card {
  border-color: rgba(148,163,184,0.2);
  background: rgba(15,23,42,0.72);
}
html.dark .progress-ai-metric-card span,
html.dark .progress-ai-angle-metrics span {
  color: #94a3b8;
}
html.dark .progress-ai-metric-card strong,
html.dark .progress-ai-angle-head strong,
html.dark .progress-ai-angle-metrics strong {
  color: #f8fafc;
}
html.dark .progress-ai-angle-pill {
  background: rgba(59,130,246,0.18);
  color: #bfdbfe;
}
html.dark .progress-ai-failures {
  border-top-color: rgba(148,163,184,0.2);
}
html.dark .progress-ai-failures ul {
  color: #cbd5e1;
}

/* ================================================================
   32. SCROLL-TO-TOP PROGRESS RING
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top svg.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
.back-to-top .progress-ring-bg {
  fill: none;
  stroke: var(--gray-300);
  stroke-width: 3;
}
.back-to-top .progress-ring-bar {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 60ms linear;
}
.back-to-top .btt-inner {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
  transition: background .2s;
  z-index: 1;
}
.back-to-top:hover .btt-inner {
  background: var(--primary-hover);
}

/* ================================================================
   33. RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 2.25rem; text-align: center; }
  .hero-section .hero-subtitle { text-align: center; margin: 0 auto var(--space-8); }
  .hero-section .hero-btns { text-align: center; }
  .hero-section .hero-stats { justify-content: center; }
  .blog-featured .row { flex-direction: column; }
  .contact-form-wrapper { padding: var(--space-6); }
  .feature-checklist { grid-template-columns: 1fr; }
  .legal-meta-grid { grid-template-columns: 1fr; }

  /* Dashboard & Admin responsive */
  .dash-sidebar,
  .admin-sidebar {
    width: 0;
    overflow: hidden;
  }
  .dash-sidebar.show,
  .admin-sidebar.show { width: 260px; }
  .dash-main,
  .admin-main { margin-left: 0; }
  .admin-search input { width: 180px; }
}

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section-heading { font-size: 2rem; }
  .hero-section .min-vh-100 { padding: 100px 0 60px; }
  .phone-mockup { width: 240px; }
  .comparison-container { flex-direction: column; }
  .comparison-arrow { transform: rotate(90deg); }
  .hero-btns .btn { display: block; width: 100%; margin-bottom: 10px; }
  .hero-btns .btn.me-3 { margin-right: 0 !important; }
  .timeline-content { padding: var(--space-4); }
  .upload-zone { padding: var(--space-6) var(--space-4); }
  .blog-article { font-size: 1rem; }
  .cta-section h2 { font-size: 2rem; }
  .cta-input { max-width: 100%; }
  .auth-enterprise::before {
    width: 100%;
  }
  .auth-enterprise-shell {
    border-radius: 24px;
  }
  .auth-enterprise-aside h1 {
    max-width: none;
  }
  .auth-enterprise-panel-head {
    flex-direction: column;
  }
  .auth-enterprise-form-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-ops-card {
    flex-direction: column;
  }
  .feature-ops-grid {
    min-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-overview-card {
    flex-direction: column;
  }
  .dash-overview-metrics {
    min-width: 100%;
  }
  .settings-hero {
    flex-direction: column;
  }
  .settings-hero-meta {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-content,
  .admin-content { padding: var(--space-4); }
  .dash-topbar,
  .admin-topbar { padding: var(--space-3) var(--space-4); }
  .compare-slider { aspect-ratio: 3 / 4; }
  .compare-handle-circle { width: 36px; height: 36px; font-size: .9rem; }
  .cookie-banner { padding: var(--space-3) var(--space-4); flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .admin-search { display: none; }
  .option-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: var(--space-6); }
  .auth-enterprise-aside,
  .auth-enterprise-panel {
    padding: var(--space-6);
  }
  .auth-enterprise-copy {
    font-size: 0.96rem;
  }
  .feature-ops-grid {
    grid-template-columns: 1fr;
  }
  .dash-overview-metrics,
  .dash-action-grid {
    grid-template-columns: 1fr;
  }
  .auth-enterprise-strip {
    gap: 0.45rem;
  }
  .auth-enterprise-strip span {
    width: 100%;
    justify-content: center;
  }
  .settings-hero-meta {
    grid-template-columns: 1fr;
  }
  .settings-actions-grid .btn {
    width: 100%;
  }
  .setup-step-line { width: 30px; }
  .dash-badge-grid { grid-template-columns: 1fr 1fr; }
  .dash-photo-placeholder { width: 80px; height: 100px; font-size: 2rem; }
}

/* ================================================================
   PAGE-HOME-OVERHAUL â€” Landing Page Custom CSS
   Reconstructed from session data + HTML structure
   ================================================================ */

/* ----------------------------------------------------------------
   HERO â€” Command section
   ---------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e2a4a 60%, #16213e 100%);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-copy-col { padding: 2rem 0; }

.hero-section h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-section h1 span {
  display: block;
}

.hero-section h1 span:last-child {
  color: var(--primary-light);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-actions-desktop { margin-bottom: 1.5rem; }

.hero-btns { margin-bottom: 1rem; }

.hero-proof-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
}

/* Command strip chips below the CTA */
.hero-command-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-command-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  min-width: 0;
}

.hero-command-chip > i {
  font-size: 1.1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.hero-command-chip > div { min-width: 0; }

.hero-command-chip span {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-command-chip strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero visual â€” phone mockup side */
.hero-visual-col { position: relative; }

.home-command-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-composition {
  position: relative;
  display: inline-block;
}

/* Backdrop glow effect */
.home-visual-backdrop {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 0;
}

.home-visual-panel {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.04) 100%);
}

.home-visual-panel-soft {
  background: radial-gradient(ellipse at 60% 30%, rgba(79, 70, 229, 0.18) 0%, transparent 65%);
}

.home-visual-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Phone mockup frame */
.home-phone-mockup {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 100%;
  background: #1e2a3d;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 20px 40px rgba(79, 70, 229, 0.2);
}

/* Notch / dynamic island */
.home-phone-mockup::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #1e2a3d;
  border-radius: 20px;
  z-index: 2;
}

/* Side buttons (decorative box-shadow) */
.home-phone-mockup::after {
  content: "";
  position: absolute;
  top: 80px;
  right: -3px;
  width: 3px;
  height: 60px;
  background: #15202e;
  border-radius: 0 4px 4px 0;
  box-shadow:
    0 84px 0 0 #1e2a3d,
    299px 54px 0 0 #1e2a3d;
}

.home-phone-screen {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}

/* Status bar */
.home-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 18px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f172a;
}

.home-phone-status-icons {
  display: flex;
  gap: 5px;
  font-size: 0.75rem;
}

/* App content panel */
.home-command-panel {
  flex: 1;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Toolbar */
.home-phone-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.home-phone-toolbar-copy span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-phone-toolbar-copy strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.home-phone-toolbar-actions {
  display: flex;
  gap: 6px;
}

.home-phone-action {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

/* Summary row */
.home-phone-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-phone-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.home-phone-profile strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.home-phone-profile span {
  font-size: 0.65rem;
  color: #94a3b8;
}

.home-phone-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f59e0b;
}

/* App bar with score */
.home-phone-appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 7px 12px;
}

.feature-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}

.home-command-score {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

/* Hero mini-text */
.home-phone-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, transparent 100%);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
}

.home-phone-hero h3 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.3;
}

.home-phone-hero p {
  font-size: 0.68rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Capture card */
.home-phone-capture-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
}

.home-phone-capture-thumb {
  position: relative;
  width: 36px;
  height: 44px;
  flex-shrink: 0;
}

.home-phone-capture-frame {
  position: absolute;
  border-radius: 6px;
  width: 28px;
  height: 36px;
  background: #e2e8f0;
}

.home-phone-capture-frame-back {
  top: 0;
  left: 0;
  background: #cbd5e1;
}

.home-phone-capture-frame-front {
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0.7;
}

.home-phone-capture-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  border: 2px solid #fff;
}

.home-phone-capture-copy span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
}

.home-phone-capture-copy strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

/* Metrics compact */
.home-command-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.home-command-metrics-compact .home-command-metric {
  padding: 7px 10px;
}

.home-command-metric {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 12px;
}

.home-command-metric span {
  display: block;
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.home-command-metric strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

/* Next step card */
.home-next-step-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.03) 100%);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-next-step-card span {
  font-size: 0.62rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-next-step-card strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

/* Tab bar */
.home-phone-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 2px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.home-phone-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.58rem;
  font-weight: 600;
  color: #94a3b8;
}

.home-phone-tabbar span.is-active { color: var(--primary); }

.home-phone-tabbar span i {
  font-size: 1rem;
}

.home-phone-home-indicator {
  height: 4px;
  margin: 6px auto 0;
  width: 100px;
  background: #1e2a3d;
  border-radius: 99px;
}

/* Stats strip below hero */
.hero-stats-row {
  padding: 0 0 3.5rem;
}

.hero-stats-row .hero-stats {
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------------------
   FEATURES â€” Pillars grid
   ---------------------------------------------------------------- */
.home-pillar-section {
  padding: 6rem 0;
}

.home-section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-50);
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
}

.home-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-pillar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
}

.home-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.home-pillar-card-primary {
  border-color: rgba(79, 70, 229, 0.2);
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.04) 0%, #fff 100%);
}

.home-pillar-card-analytics {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.04) 0%, #fff 100%);
}

.home-pillar-card-action {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.04) 0%, #fff 100%);
}

.home-bento-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 200px);
  gap: 1.25rem;
}

.home-bento-tile {
  position: relative;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-bento-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.home-bento-tile-large {
  grid-row: 1 / 3;
}

.home-bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 17, 21, 0.75) 100%);
}

.home-bento-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  right: 1.25rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  z-index: 1;
}

@media (max-width: 767px) {
  .home-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .home-bento-tile-large,
  .home-bento-tile {
    grid-row: auto;
    height: 220px;
  }
}

.home-pillar-photo {
  margin: -2rem -2rem 0;
  height: 168px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.home-pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.home-pillar-card:has(.home-pillar-photo) .home-pillar-top {
  margin-top: -2.4rem;
}

.home-pillar-card:has(.home-pillar-photo) .home-pillar-kicker {
  background: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.home-pillar-card:has(.home-pillar-photo) .feature-icon {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  border: 3px solid #fff;
}

.home-pillar-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.home-pillar-card-analytics .home-pillar-kicker { color: var(--success); }
.home-pillar-card-action .home-pillar-kicker { color: var(--warning); }

.home-pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin: 0;
}

.home-pillar-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.home-pillar-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.home-pillar-points span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.7rem;
}

/* ----------------------------------------------------------------
   HOW IT WORKS â€” Process section
   ---------------------------------------------------------------- */
.home-process-section { padding: 6rem 0; }

.home-process-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.home-process-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-process-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.home-process-item:hover {
  background: #f8fafc;
}

.home-process-item.is-active {
  background: rgba(79, 70, 229, 0.05);
  border-left-color: var(--primary);
}

.home-process-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}

.home-process-item.is-active .home-process-number {
  background: var(--primary);
  color: #fff;
}

.home-process-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.home-process-item p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
  line-height: 1.65;
}

/* Preview panel */
.home-process-preview {}

.home-process-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-process-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-process-preview-top span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}

.home-process-preview-top strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark);
}

.home-process-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.home-process-metric {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.home-process-metric span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.home-process-metric strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.home-process-guidance {
  border-top: 1px solid #e8edf5;
  padding-top: 1rem;
}

.home-process-guidance p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0.5rem 0 0;
}

/* ----------------------------------------------------------------
   SHOWCASE â€” Photo progress feature
   ---------------------------------------------------------------- */
.home-showcase-section { padding: 6rem 0; }

.progress-demo {
  position: relative;
}

/* ----------------------------------------------------------------
   MARQUEE STRIP
   ---------------------------------------------------------------- */
.marquee-strip {
  overflow: hidden;
  background: var(--gray-100);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}

.marquee-item i { color: var(--primary); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

html.dark .marquee-strip {
  background: #131b2e;
  border-color: rgba(148, 163, 184, 0.12);
}

html.dark .marquee-item { color: #94a3b8; }
html.dark .marquee-item i { color: var(--primary-light); }

/* ----------------------------------------------------------------
   SPLIT USE-CASE PANELS
   ---------------------------------------------------------------- */
.split-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.split-panel {
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--gray-100);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.split-panel-accent {
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.18);
}

.split-panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.split-panel .badge-pill { margin-bottom: 1rem; }

.split-panel h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.split-panel p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .split-panel-grid { grid-template-columns: 1fr; }
}

html.dark .split-panel {
  background: #131b2e;
  border-color: rgba(148, 163, 184, 0.14);
}

html.dark .split-panel-accent {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.22);
}

html.dark .split-panel-icon {
  background: #1a2332;
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--primary-light);
}

html.dark .split-panel h3 { color: #f1f5f9; }
html.dark .split-panel p { color: #94a3b8; }

/* ----------------------------------------------------------------
   COMPARISON TABLE
   ---------------------------------------------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.95rem;
}

.comparison-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  font-weight: 700;
  background: var(--gray-100);
}

.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--dark);
}

.comparison-table td i.bi-dash-lg { color: var(--gray-400); margin-right: 6px; }
.comparison-table td i.bi-check-lg { color: #10b981; margin-right: 6px; }

.comparison-table-highlight {
  background: rgba(79, 70, 229, 0.06);
  font-weight: 600;
  color: var(--dark);
}

html.dark .comparison-table {
  background: #131b2e;
  border-color: rgba(148, 163, 184, 0.16);
}

html.dark .comparison-table th,
html.dark .comparison-table td {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

html.dark .comparison-table thead th {
  background: #1a2332;
  color: #94a3b8;
}

html.dark .comparison-table tbody td:first-child {
  color: #f1f5f9;
}

html.dark .comparison-table-highlight {
  background: rgba(99, 102, 241, 0.14);
  color: #f1f5f9;
}

@media (max-width: 767px) {
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 0.75rem 1rem; }
}

/* ----------------------------------------------------------------
   FOUNDER'S NOTE
   ---------------------------------------------------------------- */
.founder-note-card {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.founder-note-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 1.25rem 0;
}

.founder-note-card p strong {
  color: var(--dark);
}

.founder-note-signoff {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.92rem;
}

/* ----------------------------------------------------------------
   PROOF â€” Testimonials section
   ---------------------------------------------------------------- */
.home-proof-section { padding: 6rem 0; }

.home-proof-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.home-proof-lead {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-proof-lead h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.home-proof-lead p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.75;
  margin: 0;
}

.home-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.home-proof-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
}

.home-proof-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-proof-story {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.home-proof-story:hover {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.home-proof-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.6rem;
  color: var(--warning);
  font-size: 0.8rem;
}

.home-proof-story > span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.home-proof-story > strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.home-proof-story p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 0.85rem;
}

/* ----------------------------------------------------------------
   PRICING section
   ---------------------------------------------------------------- */
.home-pricing-section { padding: 6rem 0; }

/* ----------------------------------------------------------------
   FAQ section
   ---------------------------------------------------------------- */
.home-faq-section { padding: 6rem 0; }

/* ----------------------------------------------------------------
   CTA section additions
   ---------------------------------------------------------------- */
.home-cta-section { padding: 6rem 0; }

.cta-form { margin-top: 2rem; }

.cta-input {
  min-width: 280px;
  border-radius: var(--radius);
}

/* ----------------------------------------------------------------
   page-home-overhaul â€” section/card overrides
   ---------------------------------------------------------------- */
.page-home-overhaul .feature-card,
.page-home-overhaul .step-card,
.page-home-overhaul .testimonial-card {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.page-home-overhaul .home-proof-story p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.page-home-overhaul .home-pricing-section .toggle-label {
  color: #334155 !important;
}

/* ----------------------------------------------------------------
   Dark mode overrides
   ---------------------------------------------------------------- */
html.dark .home-pillar-card,
html.dark .home-proof-story,
html.dark .home-process-shell,
html.dark .home-process-preview-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .home-pillar-card-primary {
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.08) 0%, #1e293b 100%);
}

html.dark .home-pillar-card-analytics {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.07) 0%, #1e293b 100%);
}

html.dark .home-pillar-card-action {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.07) 0%, #1e293b 100%);
}

html.dark .home-pillar-card h3,
html.dark .home-proof-story > strong,
html.dark .home-process-item strong,
html.dark .home-proof-lead h3,
html.dark .home-process-preview-top strong {
  color: #f1f5f9;
}

html.dark .home-pillar-points span,
html.dark .home-process-metric {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 250, 252, 0.7);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .home-process-item.is-active {
  background: rgba(79, 70, 229, 0.1);
}

html.dark .home-phone-screen {
  background: #f8fafc;
}

html.dark .home-proof-lead p,
html.dark .home-proof-story p,
html.dark .home-process-item p,
html.dark .home-process-guidance p {
  color: rgba(248, 250, 252, 0.6);
}

html.dark .home-command-metric,
html.dark .home-process-metric {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .home-command-metric strong,
html.dark .home-process-metric strong {
  color: rgba(248, 250, 252, 0.85);
}

html.dark .home-next-step-card {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
}

/* ----------------------------------------------------------------
   Add-ons recovered from session (session be698f43)
   ---------------------------------------------------------------- */
.nav-link-login {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem !important;
  transition: color 0.2s;
}

.nav-link-login:hover { color: var(--white) !important; }
.navbar-scrolled .nav-link-login { color: var(--gray-700) !important; }
.navbar-scrolled .nav-link-login:hover { color: var(--primary) !important; }

/* Trust Signals Strip */
.home-trust-strip {
  background: #f8fafc;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
  padding: 0.9rem 0;
}

.home-trust-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.75rem;
  flex-wrap: wrap;
}

.home-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.home-trust-item i {
  color: var(--primary);
  font-size: 0.9rem;
}

html.dark .home-trust-strip {
  background: #1a2236;
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .home-trust-item { color: rgba(248, 250, 252, 0.7); }

/* Comparison Table Section */
.home-compare-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.home-compare-table {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.home-compare-header,
.home-compare-row {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  align-items: center;
}

.home-compare-header {
  background: var(--dark);
  padding: 1rem 1.5rem;
}

.home-compare-header .home-compare-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-compare-col { text-align: center; }

.home-compare-header .home-compare-col {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
}

.home-compare-header .home-compare-other {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.home-compare-header .home-compare-us {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
}

.home-compare-row {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.9rem 1.5rem;
  transition: background 0.15s;
}

.home-compare-row:hover { background: #f8fafc; }
.home-compare-row-last { border-bottom: none; }

.home-compare-row .home-compare-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
}

.home-compare-row .home-compare-col {
  font-size: 0.85rem;
  font-weight: 500;
}

.home-compare-row .home-compare-other { color: #94a3b8; }
.home-compare-row .home-compare-other i { color: #94a3b8; margin-right: 4px; }
.home-compare-row .home-compare-other strong { color: #ef4444; }
.home-compare-row .home-compare-us { color: var(--success); font-weight: 700; }
.home-compare-row .home-compare-us i { color: var(--success); margin-right: 4px; }
.home-compare-row .home-compare-us strong { color: var(--primary); }

html.dark .home-compare-section { background: linear-gradient(180deg, #111827 0%, #0f1729 100%); }
html.dark .home-compare-table { border-color: rgba(255, 255, 255, 0.07); }
html.dark .home-compare-row { background: #1e2a3d; border-color: rgba(255, 255, 255, 0.05); }
html.dark .home-compare-row:hover { background: #243148; }
html.dark .home-compare-row .home-compare-label { color: rgba(248, 250, 252, 0.82); }

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-sticky-cta.visible { transform: translateY(0); }

html.dark .mobile-sticky-cta {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Pricing toggle active label */
.toggle-label-active {
  font-weight: 700;
  color: var(--dark);
}

html.dark .toggle-label-active { color: #f8fafc; }

/* Footer login button and bottom links */
.footer-login-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.footer-login-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p { margin: 0; }

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: rgba(255, 255, 255, 0.8); }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 991px) {
  .home-pillars-grid,
  .home-proof-layout {
    grid-template-columns: 1fr;
  }

  .home-process-shell {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .home-phone-mockup {
    width: 280px;
    margin: 0 auto;
  }

  .hero-command-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .hero-section { padding-top: 90px; }

  .hero-section h1 { font-size: 2.2rem; }

  .hero-command-chip strong { white-space: normal; }

  .home-pillars-grid { grid-template-columns: 1fr; gap: 1rem; }

  .home-proof-layout { grid-template-columns: 1fr; gap: 2rem; }

  .home-process-preview-grid { grid-template-columns: 1fr; }

  .home-phone-mockup {
    width: 260px;
    border-radius: 36px;
  }

  .home-phone-mockup::before {
    border-radius: 32px;
    left: 50%;
    right: auto;
    top: 48px;
    transform: translateX(-50%);
  }

  .home-phone-screen { border-radius: 22px; }

  .home-phone-mockup::after {
    box-shadow:
      0 84px 0 0 #1e2a3d,
      299px 54px 0 0 #1e2a3d;
  }

  .page-home-overhaul .home-pillar-card,
  .page-home-overhaul .home-process-rail,
  .page-home-overhaul .home-process-preview-card,
  .page-home-overhaul .home-proof-story { border-radius: 16px; }

  .page-home-overhaul .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 18px;
  }

  .page-home-overhaul .hero-stats .stat-item {
    min-width: 0;
    width: 100%;
  }

  .home-trust-grid {
    gap: 0.7rem 1.5rem;
    justify-content: flex-start;
  }

  .home-trust-item { white-space: normal; }

  .home-compare-header,
  .home-compare-row {
    grid-template-columns: 1fr 100px 120px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { flex-wrap: wrap; gap: 0.75rem 1rem; }
}

