/* ==========================================================================
   PREMIUM LOCAL TUITION - RESTRAINED EDITORIAL DESIGN SYSTEM
   80-90% Neutrals, Single Unified Brand Color, Calm, Trustworthy
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primary Brand Color (Single, Unified Trust Navy) */
  --brand-primary:   #0f2042;      /* Deep Trust Navy */
  --brand-primary-hover: #0a162e;
  --brand-tint:      #f0f4f9;      /* Very subtle brand wash */
  --brand-accent:    #2563eb;      /* Subtle active indicator */

  /* Neutral Surface & Background Colors */
  --bg-page:         #f8fafc;      /* Base page off-white */
  --bg-surface:      #ffffff;      /* Card & panel pure white */
  --bg-subtle:       #f1f5f9;      /* Subtle alternate sections */
  --bg-muted:        #e2e8f0;      /* Inactive pills / borders */

  /* Typography & Neutral Text */
  --text-primary:    #0f172a;      /* Deep Charcoal Headings */
  --text-body:       #334155;      /* Slate Body Text */
  --text-secondary:  #64748b;      /* Muted Secondary / Meta */
  --text-tertiary:   #94a3b8;      /* Placeholder / Sub-labels */

  /* Subtle Borders */
  --border-subtle:   #e2e8f0;      /* Standard card border */
  --border-dark:     #cbd5e1;      /* Interactive hover border */
  --border-focus:    #94a3b8;

  /* Semantic Colors (Used sparingly for small badges and statuses ONLY) */
  --semantic-success-bg:   #f0fdf4;
  --semantic-success-text: #166534;
  --semantic-success-border: #bbf7d0;

  --semantic-warning-bg:   #fffbeb;
  --semantic-warning-text: #92400e;
  --semantic-warning-border: #fde68a;

  --semantic-danger-bg:    #fef2f2;
  --semantic-danger-text:  #991b1b;
  --semantic-danger-border: #fecaca;

  /* Typography Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Spacing Scale */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs:  0.5rem;   /* 8px */
  --space-sm:  0.75rem;  /* 12px */
  --space-md:  1rem;     /* 16px */
  --space-lg:  1.5rem;   /* 24px */
  --space-xl:  2rem;     /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4.5rem;   /* 72px */

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Restrained Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* Centered Content Container */
  --container-width: min(95%, 1200px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, Opera and WebKit browsers */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

body.menu-open {
  overflow: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: break-word;
}

h1 { font-size: clamp(1.75rem, 3.4vw + 0.4rem, 2.65rem); }
h2 { font-size: clamp(1.35rem, 2.4vw + 0.2rem, 1.95rem); }
h3 { font-size: clamp(1.1rem, 1.6vw + 0.1rem, 1.35rem); }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-body);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.6;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--brand-accent);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Centered Content Container & Full-Width Sections
   -------------------------------------------------------------------------- */
.container {
  width: var(--container-width);
  margin-inline: auto;
}

.section {
  width: 100%;
  padding: var(--space-3xl) 0;
}
.section-sm {
  padding: var(--space-xl) 0;
}
.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-warm {
  background-color: #faf8f5;
  border-top: 1px solid #efe8df;
  border-bottom: 1px solid #efe8df;
}
.section-tint {
  background-color: var(--brand-tint);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-dark {
  background-color: #0a1733;
  color: #f8fafc;
}
.section-dark .section-title,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}
.section-dark .section-desc,
.section-dark p {
  color: #94a3b8;
}
.section-dark .section-subtitle {
  background-color: rgba(255, 255, 255, 0.08);
  color: #93c5fd;
  border-color: rgba(255, 255, 255, 0.15);
}
.section-dark .panel-card,
.section-dark .result-card,
.section-dark .feature-card {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}
.section-dark .result-subject {
  color: #cbd5e1;
}
.section-dark .score-after {
  color: #60a5fa;
}
.section-dark .score-before {
  color: #64748b;
}
.section-dark .result-note {
  color: #94a3b8;
}
.section-dark .result-progress-track {
  background-color: rgba(255, 255, 255, 0.1);
}
.section-dark .result-progress-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.section-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.section-dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}
.section-dark .btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.section-dark .btn-primary:hover {
  background-color: #1d4ed8;
}

/* Checklist / What Your Child Gets */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--bg-surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.checklist-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-dark);
}
.checklist-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checklist-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.checklist-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Dashboard Showcase Preview */
.dashboard-showcase-wrapper {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
}
.dashboard-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.dashboard-showcase-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.dashboard-showcase-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
}
.dashboard-showcase-box-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.dashboard-showcase-box-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}
.dashboard-showcase-note {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

/* Tier tabs */
.class-tier-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.class-tier-tab {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.class-tier-tab:hover, .class-tier-tab.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.section-header {
  max-width: 680px;
  margin: 0 auto var(--space-2xl) auto;
  text-align: center;
}
.section-subtitle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: var(--space-xs);
  padding: 0.2rem 0.65rem;
  background-color: var(--brand-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}
.section-title {
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* --------------------------------------------------------------------------
   4. Buttons & Unified Action System
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  min-height: 42px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Primary Action - Unified Brand Navy */
.btn-primary, .btn-accent {
  background-color: var(--brand-primary);
  color: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover, .btn-accent:hover {
  background-color: var(--brand-primary-hover);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Secondary Action - Clean White Neutral */
.btn-outline {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-dark);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  min-height: 34px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  min-height: 46px;
}

.btn-block {
  width: 100%;
}

/* Clean Contact Buttons */
.btn-whatsapp {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #166534;
}
.btn-whatsapp:hover {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
}

.btn-call {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
}
.btn-call:hover {
  background-color: var(--brand-tint);
  border-color: var(--border-dark);
}

/* --------------------------------------------------------------------------
   5. Header & Mobile Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 4.25rem;
  width: min(95%, 1440px);
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  flex-shrink: 0;
  min-width: 0;
}
.nav-brand-icon {
  width: 34px;
  height: 34px;
  background-color: var(--brand-primary);
  color: var(--bg-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-brand-text {
  min-width: 0;
}
.nav-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: block;
  line-height: 1.15;
  white-space: nowrap;
}
.nav-brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.8vw, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-xs) 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.2rem;
  right: 0.2rem;
  height: 2px;
  background-color: var(--brand-primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.desktop-nav-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  min-width: 0;
  margin-left: auto;
}

.nav-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-brand-logo-img {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Compact Language Switcher Pill */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  height: 34px;
  box-sizing: border-box;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  line-height: 1;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}
.lang-btn:hover {
  color: var(--brand-primary);
}
.lang-btn.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.lang-divider {
  color: var(--border-subtle);
  font-size: 0.7rem;
  user-select: none;
  padding: 0 1px;
}

.mobile-nav-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0.35rem;
  color: var(--text-primary);
  height: 34px;
  width: 34px;
  min-height: 34px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}
.hamburger-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-dark);
}
.hamburger-btn svg {
  width: 20px;
  height: 20px;
}
.hamburger-btn:hover {
  background-color: var(--bg-subtle);
}
.hamburger-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Drawer Overlay */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100% - 3rem, 330px);
  background-color: var(--bg-surface);
  z-index: 1200;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
}
.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-body);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.mobile-user-card {
  background-color: var(--bg-subtle);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-subtle);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-link {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-md);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--brand-tint);
  color: var(--brand-primary);
}

.mobile-nav-actions {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* --------------------------------------------------------------------------
   6. Hero Section - Visually Calm & Editorial
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-2xl) 0;
  background-color: var(--bg-page);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem var(--space-sm);
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--brand-primary);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(1.85rem, 3.4vw + 0.4rem, 2.9rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.18;
}
.hero-title span {
  color: var(--brand-primary);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}
.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}
.hero-highlight-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* Hero Preview Card - Neutral Aesthetic */
.hero-card-preview {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.hero-card-user {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.hero-avatar {
  width: 38px;
  height: 38px;
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.hero-stat-box {
  background-color: var(--bg-page);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}
.hero-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin-top: 2px;
}

.hero-observation-box {
  background-color: var(--bg-page);
  border-left: 3px solid var(--brand-primary);
  padding: var(--space-sm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.45;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   7. Features & Value Pillars
   -------------------------------------------------------------------------- */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.feature-card {
  background: var(--bg-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-dark);
}

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.feature-icon-wrapper svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2xs);
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. Class Visual Cards & Responsive Grid
   -------------------------------------------------------------------------- */
.class-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.class-image-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.class-image-card:hover,
.class-image-card:focus-within,
.class-image-card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.class-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.class-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.class-image-card:hover .class-card-img,
.class-image-card:active .class-card-img {
  transform: scale(1.04);
}

.class-card-badge {
  position: absolute;
  bottom: var(--space-xs);
  left: var(--space-xs);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.class-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.class-card-title {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: var(--space-2xs);
  font-weight: 700;
}

.class-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  flex: 1;
}

.class-card-focus {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.class-card-focus strong {
  display: block;
  color: var(--brand-primary);
  margin-bottom: 2px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   8.1 Classes 1-12 Interactive Selector
   -------------------------------------------------------------------------- */
.class-selector-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  max-width: 860px;
  margin: 0 auto;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.class-btn {
  padding: var(--space-xs) 0;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.class-btn:hover {
  background-color: var(--brand-tint);
  border-color: var(--border-dark);
  color: var(--brand-primary);
}
.class-btn.active {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.class-display-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.class-display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.class-display-title {
  font-size: 1.3rem;
  color: var(--text-primary);
}
.class-badge {
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}
.class-display-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.class-focus-box {
  background-color: var(--bg-surface);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-sm);
}
.class-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}
/* --------------------------------------------------------------------------
   8.2 Real Classroom Photo Gallery & Lightbox Modal
   -------------------------------------------------------------------------- */
.gallery-section {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  outline: none;
  aspect-ratio: 4 / 3;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f172a;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img,
.gallery-card:focus-visible .gallery-img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0.95;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 10%, rgba(15, 23, 42, 0.92) 100%);
}

.gallery-overlay-body {
  color: #ffffff;
}

.gallery-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.gallery-card-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--space-xs) 0;
  line-height: 1.35;
}

.gallery-zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  box-sizing: border-box;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 34, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lightboxFadeIn 0.25s ease;
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-figure {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.lightbox-img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #000;
  display: block;
}

.lightbox-caption-box {
  padding: var(--space-md);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.lightbox-caption {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.lightbox-close-btn {
  position: absolute;
  top: -42px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.lightbox-prev {
  left: -22px;
}

.lightbox-next {
  right: -22px;
}

.lightbox-nav-btn:hover {
  background: var(--brand-primary);
  transform: translateY(-50%) scale(1.08);
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightboxScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
  }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close-btn { top: -38px; right: 4px; }
}

/* --------------------------------------------------------------------------
   9. Teaching Approach (4 Steps) - Unified System
   -------------------------------------------------------------------------- */
.approach-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.approach-step {
  background: var(--bg-surface);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  text-align: center;
}
.step-number {
  width: 38px;
  height: 38px;
  background-color: var(--brand-primary);
  color: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto var(--space-md) auto;
}
.approach-step h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2xs);
  color: var(--text-primary);
}
.approach-step p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Results & Improvements
   -------------------------------------------------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.result-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  text-align: center;
}
.result-subject {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.result-stat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.score-before {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-decoration: line-through;
}
.score-arrow {
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1.2rem;
}
.score-after {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--semantic-success-text);
  font-family: var(--font-heading);
}
.result-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Teachers & Testimonials - Calm Neutrals
   -------------------------------------------------------------------------- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  justify-content: center;
}
.teacher-profile-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.teacher-card-top {
  background-color: var(--brand-primary);
  padding: var(--space-xl) var(--space-lg) var(--space-md) var(--space-lg);
  text-align: center;
  color: var(--bg-surface);
}
.teacher-avatar-large {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 auto var(--space-sm) auto;
  border: 2px solid var(--border-subtle);
}
.teacher-name {
  font-size: 1.2rem;
  color: var(--bg-surface);
  margin-bottom: 2px;
}
.teacher-meta {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
}
.teacher-card-body {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.teacher-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.teacher-info-val {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.teacher-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.testimonial-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-stars {
  color: #d97706;
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}
.testimonial-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-sm);
}
.author-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.author-class {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  min-height: 42px;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15, 32, 66, 0.08);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Flash Messages */
.flash-container {
  width: var(--container-width);
  margin: var(--space-md) auto 0 auto;
}
.alert {
  padding: 0.85rem var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-success { background-color: var(--semantic-success-bg); color: var(--semantic-success-text); border: 1px solid var(--semantic-success-border); }
.alert-warning { background-color: var(--semantic-warning-bg); color: var(--semantic-warning-text); border: 1px solid var(--semantic-warning-border); }
.alert-danger  { background-color: var(--semantic-danger-bg);  color: var(--semantic-danger-text);  border: 1px solid var(--semantic-danger-border); }
.alert-info    { background-color: var(--brand-tint);          color: var(--brand-primary);        border: 1px solid var(--border-subtle); }

/* --------------------------------------------------------------------------
   13. Parent Dashboard - Cohesive Neutral Treatment
   -------------------------------------------------------------------------- */
.dashboard-wrapper {
  padding: var(--space-xl) 0 var(--space-3xl) 0;
}

.parent-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
}
.parent-header-left {
  flex: 1 1 auto;
}
.dashboard-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.dashboard-title {
  font-size: clamp(1.5rem, 2.5vw + 0.4rem, 2.2rem);
  color: var(--text-primary);
  margin: 0 0 var(--space-xs) 0;
}

/* Student Identity Card */
.student-id-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-surface);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  margin-top: var(--space-xs);
  max-width: fit-content;
}
.student-avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: var(--bg-surface);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.student-id-info {
  min-width: 0;
}
.student-id-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  flex-wrap: wrap;
}
.student-id-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.parent-header-right {
  flex-shrink: 0;
}
.child-switcher-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.switcher-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.child-switcher-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.child-pill-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.child-pill-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}
.child-pill-btn.active {
  background-color: var(--brand-primary);
  color: var(--bg-surface);
  border-color: var(--brand-primary);
}

.dashboard-section-heading {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.dashboard-section-heading h2 {
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* 5 Statistics Grid - ALL NEUTRAL WHITE TREATMENT */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.metric-card {
  background: var(--bg-surface);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  text-align: center;
}
.metric-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.metric-number {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
}
.metric-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Teacher Observation & Upcoming Banner - NEUTRAL WHITE TREATMENT */
.dashboard-callouts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.observation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-xs);
}
.upcoming-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-xs);
}
.callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xs);
  flex-wrap: wrap;
  gap: 4px;
}
.callout-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--text-secondary);
}
.callout-badge {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
}
.callout-text {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}

/* 2-Column Panels */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.panel-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: var(--space-lg);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-xs);
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.panel-title {
  font-size: 1.15rem;
  color: var(--text-primary);
}
.panel-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Recent Learning Topic List */
.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space-md);
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: var(--space-xs);
}
.topic-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.topic-subject {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Status Badges - Subtle and Restrained */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.badge-completed {
  background-color: var(--semantic-success-bg);
  color: var(--semantic-success-text);
  border: 1px solid var(--semantic-success-border);
}
.badge-progress  {
  background-color: var(--semantic-warning-bg);
  color: var(--semantic-warning-text);
  border: 1px solid var(--semantic-warning-border);
}
.badge-pending   {
  background-color: var(--semantic-danger-bg);
  color: var(--semantic-danger-text);
  border: 1px solid var(--semantic-danger-border);
}
.badge-role      {
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   14. Tables & Mobile Cards
   -------------------------------------------------------------------------- */
.desktop-table-view {
  display: block;
  width: 100%;
}
.mobile-cards-view {
  display: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.table th {
  background-color: var(--bg-page);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:hover td {
  background-color: var(--bg-page);
}

/* Mobile Cards */
.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  list-style: none;
}
.mobile-data-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.mobile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xs);
}
.mobile-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mobile-card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.mobile-card-body {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.45;
  margin: var(--space-2xs) 0;
}
.mobile-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-top: var(--space-2xs);
  border-top: 1px dashed var(--border-subtle);
}

/* --------------------------------------------------------------------------
   15. Footer - Unified Dark Navy
   -------------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  background-color: var(--brand-primary);
  color: #94a3b8;
  padding: var(--space-3xl) 0 var(--space-lg) 0;
  border-top: 1px solid #1e293b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.footer-title {
  color: var(--bg-surface);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--bg-surface);
}
.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* --------------------------------------------------------------------------
   16. Breakpoint System
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .nav-links,
  .desktop-nav-tools,
  .desktop-nav-actions {
    display: none !important;
  }
  
  .mobile-nav-controls {
    display: inline-flex !important;
  }

  .hamburger-btn {
    display: inline-flex !important;
  }

  .class-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-callouts {
    grid-template-columns: 1fr;
  }
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  :root {
    --space-3xl: 2.75rem;
    --space-2xl: 1.75rem;
  }

  .class-cards-grid {
    grid-template-columns: 1fr;
  }

  .nav-brand-sub {
    display: none;
  }

  .hero {
    padding: var(--space-xl) 0;
  }
  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.3rem);
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  .class-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .parent-dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
  .student-id-card {
    max-width: 100%;
  }
  .child-switcher-container {
    width: 100%;
  }
  .child-switcher-pills {
    width: 100%;
  }
  .child-pill-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }
  .metric-card {
    padding: var(--space-sm) var(--space-2xs);
  }
  .metric-number {
    font-size: 1.45rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .desktop-table-view {
    display: none !important;
  }
  .mobile-cards-view {
    display: block !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .nav-brand-title {
    font-size: 1.02rem;
  }
  .nav-brand-icon {
    width: 30px;
    height: 30px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 0.74rem;
  }
  .mobile-nav-controls {
    gap: 0.35rem;
  }

  .class-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .nav-brand-title {
    font-size: 0.92rem;
  }
  .lang-btn {
    padding: 2px 5px;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   AMBIENT & MOTION SYSTEM (Zero Emojis, 60fps)
   ========================================================================== */

/* 0. Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), #3b82f6);
  z-index: 1200;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* 1. Navbar Scroll State & Elevation */
.navbar.is-scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(203, 213, 225, 0.6);
}

.nav-brand-icon {
  transition: background-color 0.2s ease;
}

/* Hamburger button active morph */
.hamburger-btn.is-active svg {
  transform: rotate(90deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Hero Section Ambient Canvas & Motion */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-ambient-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(15, 32, 66, 0.03) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ambientGlowMove 15s ease-in-out infinite alternate;
  filter: blur(30px);
}

@keyframes ambientGlowMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 35px) scale(1.12); }
  100% { transform: translate(30px, -25px) scale(0.92); }
}

.hero-ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 32, 66, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
}

.hero-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-shape-1 {
  top: 18%;
  left: 3%;
}

.hero-shape-2 {
  bottom: 12%;
  right: 5%;
}

.hero-shape svg {
  animation: floatSlow 9s ease-in-out infinite alternate;
}

.hero-shape-2 svg {
  animation-duration: 12s;
  animation-delay: -4s;
}

@keyframes floatSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(8deg); }
}

.hero-badge {
  transition: transform 0.2s ease;
}

.hero-badge-dot {
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
}

.hero-visual-wrapper {
  position: relative;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 10;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-chip svg {
  color: var(--brand-primary);
}

.chip-top {
  top: -14px;
  right: -10px;
  animation: chipFloatTop 7s ease-in-out infinite alternate;
}

.chip-bottom {
  bottom: -14px;
  left: -10px;
  animation: chipFloatBottom 8.5s ease-in-out infinite alternate 1.2s;
}

@keyframes chipFloatTop {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes chipFloatBottom {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

.hero-card-preview {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hero-card-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
}

/* 4. Continuous Moving Marquee Ribbon */
.marquee-wrapper {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  position: relative;
}

.marquee-track {
  display: flex;
  width: fit-content;
  animation: marqueeLoop 30s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.marquee-sep {
  color: var(--brand-primary);
  opacity: 0.4;
}

@keyframes marqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 5. Clean, Non-Destructive Scroll Reveal System */
/* By default, elements are 100% visible and unclipped */
.reveal-init,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade,
.reveal-stagger {
  opacity: 1;
  transform: none;
}

/* When JavaScript is active, below-the-fold items get progressive reveal */
.js-enabled .js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.js-enabled .js-reveal.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* 6. Card Base Interaction */
.card-interactive, .feature-card, .result-card, .testimonial-card, .teacher-profile-card, .panel-card {
  position: relative;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.22s ease-out;
  -webkit-tap-highlight-color: transparent;
}

/* Desktop Only Hover Effects */
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .result-card:hover,
  .teacher-profile-card:hover,
  .testimonial-card:hover,
  .panel-card:hover,
  .card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
  }

  .feature-card:hover .feature-icon-wrapper {
    background-color: var(--brand-primary);
    color: #ffffff;
  }

  .result-card:hover .score-arrow svg {
    transform: translateX(3px);
  }

  .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }

  .btn:hover svg {
    transform: translateX(2px);
  }

  .btn-call:hover svg,
  .btn-whatsapp:hover svg {
    transform: scale(1.08) rotate(-4deg);
  }

  .class-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
}

/* Dedicated Mobile Touch Feedback & Press States */
.btn:active,
.btn.touch-active {
  transform: scale(0.97) !important;
  box-shadow: none !important;
}

.feature-card:active,
.feature-card.touch-active,
.result-card:active,
.result-card.touch-active,
.teacher-profile-card:active,
.teacher-profile-card.touch-active,
.panel-card:active,
.panel-card.touch-active {
  transform: scale(0.99);
  border-color: var(--brand-primary);
}

.class-btn:active,
.class-btn.touch-active {
  transform: scale(0.93) !important;
  background-color: var(--brand-tint);
  border-color: var(--brand-primary);
}

/* 7. Classes 1 to 12 Interactive Transition */
.class-btn {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.class-btn.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.class-display-card {
  transition: opacity 0.15s ease;
}

.class-display-card.is-updating {
  opacity: 0.4;
}

/* 8. Teaching Approach Progressive Scroll Flow */
.approach-step {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.approach-step.is-step-active {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.approach-step.is-step-active .step-number {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 32, 66, 0.1);
}

.approach-step.is-step-completed {
  border-color: var(--border-dark);
}

.step-number {
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* 9. Results Card & Animated Progress Track */
.score-arrow svg {
  transition: transform 0.2s ease;
}

.result-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  margin: 0.75rem 0 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.result-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--border-dark), var(--brand-primary));
  border-radius: var(--radius-full);
  transition: width 0.7s ease-out;
}

/* 10. Teacher Profile Cards */
.teacher-profile-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.teacher-avatar-large {
  transition: transform 0.2s ease;
}

/* 11. Testimonials Slider / Carousel */
.testimonials-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: var(--space-xs) 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.3s ease-out;
  gap: var(--space-lg);
}

.testimonials-track .testimonial-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
}

@media (max-width: 900px) {
  .testimonials-track .testimonial-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .testimonials-track .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.slider-btn:active {
  transform: scale(0.94);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.slider-dot.active {
  width: 20px;
  background: var(--brand-primary);
}

/* 12. Buttons & Micro-Interactions */
.btn {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  transition: transform 0.15s ease;
}

/* 13. Form Focus States */
.form-control {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15, 32, 66, 0.08);
  background-color: #ffffff;
  outline: none;
}

.form-group.is-focused .form-label {
  color: var(--brand-primary);
  transition: color 0.2s ease;
}

/* 14. Mobile Drawer Staggered Item Entrance */
.mobile-nav-drawer.open .mobile-drawer-nav li {
  animation: drawerItemIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(1) { animation-delay: 0.04s; }
.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(2) { animation-delay: 0.08s; }
.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(3) { animation-delay: 0.12s; }
.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(4) { animation-delay: 0.16s; }
.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(5) { animation-delay: 0.20s; }
.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(6) { animation-delay: 0.24s; }
.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(7) { animation-delay: 0.28s; }
.mobile-nav-drawer.open .mobile-drawer-nav li:nth-child(8) { animation-delay: 0.32s; }

@keyframes drawerItemIn {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 15. Dashboard Metrics & Pills Interaction */
.metric-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.metric-card:active {
  transform: scale(0.97);
}

.child-pill-btn {
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.child-pill-btn:active {
  transform: scale(0.94);
}

/* 16. Accessibility: Reduced Motion */
/* --------------------------------------------------------------------------
   Parent Review & Testimonial Workflow Styles
   -------------------------------------------------------------------------- */
.parent-review-section {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.star-rating-picker {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: var(--space-xs) 0 var(--space-sm);
}

.star-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--border-strong, #cbd5e1);
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.star-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  pointer-events: none;
}

.star-btn:hover,
.star-btn:focus-visible {
  color: #f59e0b;
  transform: scale(1.15);
  outline: none;
}

.star-btn.is-active {
  color: #d97706;
}

.review-char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.review-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xs);
}

.review-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.badge-status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-status-approved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-status-rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  transition: var(--transition-normal);
}

.admin-review-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.admin-review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.admin-review-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.admin-review-quote {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: var(--space-xs) 0 var(--space-sm);
  background: var(--bg-subtle);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-primary);
}

.admin-review-actions {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-fade,
  .reveal-stagger {
    opacity: 1 !important;
    transform: none !important;
  }
  .main-content {
    animation: none !important;
  }
  .hero-ambient-glow,
  .hero-shape,
  .chip-top,
  .chip-bottom,
  .marquee-track {
    animation: none !important;
  }
  .scroll-progress-bar {
    display: none !important;
  }
}

