/* ═══════════════════════════════════════════════
   PadhAI — CBSE Class 9 & 10 Platform
   Design System: Playful-Futuristic
   Palette: Deep Navy + Electric Green + Amber + Coral
   Fonts: Outfit (display) + Nunito (body)
═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --navy:        #050B1F;
  --navy-mid:    #0A1535;
  --navy-card:   #0F1E45;
  --navy-light:  #162454;
  --green:       #00E676;
  --green-dim:   #00C853;
  --green-glow:  rgba(0,230,118,0.15);
  --amber:       #FFB300;
  --amber-dim:   #FF8F00;
  --amber-glow:  rgba(255,179,0,0.15);
  --coral:       #FF4757;
  --coral-dim:   #E53935;
  --coral-glow:  rgba(255,71,87,0.15);
  --purple:      #7C4DFF;
  --purple-glow: rgba(124,77,255,0.15);
  --teal:        #00BCD4;
  --teal-glow:   rgba(0,188,212,0.15);
  --pink:        #E91E8C;
  --pink-glow:   rgba(233,30,140,0.15);
  --text-primary:   #F0F4FF;
  --text-secondary: #A8B8D8;
  --text-muted:     #5A6A8A;
  --border:         rgba(255,255,255,0.08);
  --border-bright:  rgba(255,255,255,0.16);
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Nunito', sans-serif;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow-green: 0 0 32px rgba(0,230,118,0.25);
  --shadow-glow-amber: 0 0 32px rgba(255,179,0,0.25);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── PARTICLES ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleDrift linear infinite;
  opacity: 0;
}
@keyframes particleDrift {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5,11,31,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: #000;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}
.logo-tag {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--green-glow);
  border: 1px solid rgba(0,230,118,0.3);
  color: var(--green);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.lang-pill:hover { border-color: var(--border-bright); }
.lang-opt { transition: var(--transition); }
.lang-opt.active { color: var(--green); }
.lang-sep { opacity: 0.3; }
.btn-nav {
  padding: 9px 20px;
  background: var(--green);
  color: #000;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--green-dim); transform: translateY(-1px); box-shadow: var(--shadow-glow-green); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
  background: rgba(5,11,31,0.97);
}
.mobile-menu a {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu.open { display: flex; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--green);
  color: #000;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--green-dim); transform: translateY(-2px); box-shadow: var(--shadow-glow-green); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-bright);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-sm {
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-sm:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.btn-sm.danger { border-color: rgba(255,71,87,0.3); color: var(--coral); }
.btn-sm.danger:hover { background: var(--coral-glow); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--green);
  top: -200px; left: -200px;
  animation: blobPulse 8s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--amber);
  bottom: -150px; right: -100px;
  animation: blobPulse 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 400px; height: 400px;
  background: var(--purple);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: blobPulse 12s ease-in-out infinite;
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--green);
}

/* ── PHONE MOCKUP ── */
.hero-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}
.phone-mockup {
  position: relative;
  width: 280px;
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.phone-screen {
  background: var(--navy-card);
  border: 2px solid var(--border-bright);
  border-radius: 32px;
  padding: 24px 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 8px;
  background: var(--navy);
  border-radius: var(--radius-full);
}
.phone-video {
  background: linear-gradient(135deg, #0A1535, #162454);
  border-radius: var(--radius-md);
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.phone-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,230,118,0.1), rgba(255,179,0,0.1));
}
.video-play-btn {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #000;
  font-weight: 900;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0,230,118,0.4);
  animation: playPulse 2s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,230,118,0.4); }
  50% { box-shadow: 0 0 40px rgba(0,230,118,0.7); }
}
.video-label {
  position: absolute;
  bottom: 8px; left: 10px; right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  z-index: 1;
}
.video-lang-badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 3px 8px;
  background: rgba(0,230,118,0.15);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  z-index: 1;
}
.phone-progress { margin-bottom: 14px; }
.pp-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.pp-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}
.pp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  border-radius: var(--radius-full);
}
.pp-meta { font-size: 0.7rem; color: var(--text-muted); }
.phone-subjects { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-chip {
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.floating-badge {
  position: absolute;
  padding: 8px 14px;
  background: var(--navy-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  animation: badgeFloat ease-in-out infinite;
}
.fb-1 { top: 20px; right: -60px; animation-duration: 3s; animation-delay: 0s; border-color: rgba(0,230,118,0.3); color: var(--green); }
.fb-2 { top: 50%; right: -70px; animation-duration: 3.5s; animation-delay: 0.5s; border-color: rgba(255,179,0,0.3); color: var(--amber); }
.fb-3 { bottom: 40px; left: -60px; animation-duration: 4s; animation-delay: 1s; border-color: rgba(0,188,212,0.3); color: var(--teal); }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── TICKER ── */
.ticker-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,179,0,0.08);
  border-top: 1px solid rgba(255,179,0,0.15);
  border-bottom: 1px solid rgba(255,179,0,0.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-label {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--amber);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 600;
  padding: 10px 0;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
.section { padding: 80px 24px; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--green-glow);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── CLASS CARDS ── */
.class-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.class-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.class-card:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.class-9:hover { box-shadow: 0 20px 60px rgba(0,230,118,0.15); border-color: rgba(0,230,118,0.3); }
.class-10:hover { box-shadow: 0 20px 60px rgba(255,179,0,0.15); border-color: rgba(255,179,0,0.3); }
.cc-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  top: -100px; right: -100px;
}
.class-9 .cc-glow { background: var(--green); }
.class-10 .cc-glow { background: var(--amber); }
.class-card:hover .cc-glow { opacity: 0.12; }
.cc-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.15;
}
.class-9 .cc-number { color: var(--green); }
.class-10 .cc-number { color: var(--amber); }
.cc-body { flex: 1; }
.cc-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cc-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.cc-subjects { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cc-subjects span {
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.cc-meta { display: flex; gap: 16px; }
.cc-meta span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.cc-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--transition);
  align-self: center;
  flex-shrink: 0;
}
.class-card:hover .cc-arrow { transform: translateX(6px); color: var(--text-primary); }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.fc-green::before { background: var(--green); }
.fc-amber::before { background: var(--amber); }
.fc-coral::before { background: var(--coral); }
.fc-purple::before { background: var(--purple); }
.fc-teal::before { background: var(--teal); }
.fc-pink::before { background: var(--pink); }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.fc-green:hover { box-shadow: 0 12px 40px rgba(0,230,118,0.12); }
.fc-amber:hover { box-shadow: 0 12px 40px rgba(255,179,0,0.12); }
.fc-coral:hover { box-shadow: 0 12px 40px rgba(255,71,87,0.12); }
.fc-purple:hover { box-shadow: 0 12px 40px rgba(124,77,255,0.12); }
.fc-teal:hover { box-shadow: 0 12px 40px rgba(0,188,212,0.12); }
.fc-pink:hover { box-shadow: 0 12px 40px rgba(233,30,140,0.12); }
.fc-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.fc-link { font-size: 0.82rem; font-weight: 700; color: var(--green); transition: var(--transition); }
.fc-link:hover { color: var(--green-dim); }

/* ── SUBJECTS GRID ── */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.subject-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.subject-tile:hover { transform: translateY(-3px); border-color: var(--border-bright); }
.st-green:hover { box-shadow: 0 8px 30px rgba(0,230,118,0.12); border-color: rgba(0,230,118,0.25); }
.st-amber:hover { box-shadow: 0 8px 30px rgba(255,179,0,0.12); border-color: rgba(255,179,0,0.25); }
.st-coral:hover { box-shadow: 0 8px 30px rgba(255,71,87,0.12); border-color: rgba(255,71,87,0.25); }
.st-purple:hover { box-shadow: 0 8px 30px rgba(124,77,255,0.12); border-color: rgba(124,77,255,0.25); }
.st-teal:hover { box-shadow: 0 8px 30px rgba(0,188,212,0.12); border-color: rgba(0,188,212,0.25); }
.st-pink:hover { box-shadow: 0 8px 30px rgba(233,30,140,0.12); border-color: rgba(233,30,140,0.25); }
.st-icon { font-size: 1.8rem; flex-shrink: 0; }
.st-body { flex: 1; }
.st-body h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.st-body p { font-size: 0.75rem; color: var(--text-muted); }
.st-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ── HOW IT WORKS ── */
.steps-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-card {
  flex: 1;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,230,118,0.15);
  line-height: 1;
  margin-bottom: 8px;
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.6; }
.step-arrow { font-size: 1.5rem; color: var(--text-muted); flex-shrink: 0; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.testi-card:hover { transform: translateY(-3px); border-color: var(--border-bright); }
.testi-stars { font-size: 0.9rem; margin-bottom: 12px; }
.testi-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #000;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.88rem; font-weight: 700; }
.testi-author span { font-size: 0.75rem; color: var(--text-muted); }

/* ── CTA BANNER ── */
.cta-banner {
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,230,118,0.08), rgba(255,179,0,0.08));
  border-top: 1px solid rgba(0,230,118,0.15);
  border-bottom: 1px solid rgba(0,230,118,0.15);
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner p { color: var(--text-secondary); font-size: 1rem; }

/* ── FOOTER ── */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── AI BUBBLE ── */
.ai-bubble-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,230,118,0.4);
  transition: var(--transition);
  border: none;
}
.ai-bubble-btn:hover { transform: scale(1.1); }
.ai-bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0,230,118,0.4);
  animation: bubblePulse 2s ease-in-out infinite;
}
@keyframes bubblePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
}
.ai-bubble-chat {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 340px;
  background: var(--navy-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideIn 0.3s ease;
}
.ai-bubble-chat.open { display: flex; }
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.abc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0,230,118,0.1), rgba(0,188,212,0.1));
  border-bottom: 1px solid var(--border);
}
.abc-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.abc-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.abc-close:hover { color: var(--text-primary); }
.abc-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}
.abc-messages::-webkit-scrollbar { width: 4px; }
.abc-messages::-webkit-scrollbar-track { background: transparent; }
.abc-messages::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }
.abc-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}
.abc-msg.bot {
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.15);
  color: var(--text-secondary);
  align-self: flex-start;
}
.abc-msg.user {
  background: var(--green);
  color: #000;
  font-weight: 600;
  align-self: flex-end;
}
.abc-msg.typing {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
  align-self: flex-start;
}
.abc-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.abc-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.abc-input:focus { border-color: var(--green); }
.abc-input::placeholder { color: var(--text-muted); }
.abc-send {
  width: 38px; height: 38px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.abc-send:hover { background: var(--green-dim); }

/* ── SUBJECT PAGE ── */
.page-hero {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.page-hero p { color: var(--text-secondary); font-size: 1rem; max-width: 520px; margin: 0 auto 32px; }
.class-filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cft-btn {
  padding: 10px 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.cft-btn:hover { border-color: var(--border-bright); color: var(--text-primary); }
.cft-btn.active { background: var(--green); border-color: var(--green); color: #000; }

/* ── LESSON PAGE ── */
.lesson-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  position: relative;
  z-index: 1;
}
.lesson-main { min-width: 0; }
.lesson-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Video Player */
.video-player-wrap {
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.video-player-screen {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #050B1F, #0A1535);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.vp-animation-area {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-formula {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--green);
  text-shadow: 0 0 40px rgba(0,230,118,0.5);
  animation: formulaReveal 3s ease-in-out infinite;
  text-align: center;
  padding: 20px;
}
@keyframes formulaReveal {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.vp-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
  gap: 12px;
}
.vp-play {
  width: 40px; height: 40px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.vp-play:hover { background: var(--green-dim); }
.vp-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
}
.vp-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--radius-full);
  width: 35%;
  transition: width 0.1s;
}
.vp-time { font-size: 0.75rem; color: rgba(255,255,255,0.7); white-space: nowrap; }
.vp-lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius-full);
  padding: 3px;
}
.vp-lang-btn {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.vp-lang-btn.active { background: var(--green); color: #000; }

/* Content Tabs */
.content-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}
.content-tab {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.content-tab.active { background: var(--green); color: #000; }
.content-tab:hover:not(.active) { color: var(--text-primary); }

/* Lesson Panels */
.lesson-panel { display: none; }
.lesson-panel.active { display: block; }

/* Notes */
.notes-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.notes-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--green);
}
.notes-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.formula-box {
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.2);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: monospace;
  font-size: 1rem;
  color: var(--green);
  margin: 16px 0;
  letter-spacing: 0.02em;
}
.key-box {
  background: rgba(255,179,0,0.06);
  border: 1px solid rgba(255,179,0,0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
}
.key-box h4 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.key-box ul { list-style: none; padding: 0; }
.key-box li {
  display: flex;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.key-box li:last-child { border-bottom: none; }
.key-box li::before { content: '→'; color: var(--amber); flex-shrink: 0; }

/* Quiz */
.quiz-q {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.quiz-q h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 16px; line-height: 1.5; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.quiz-opt:hover { background: rgba(255,255,255,0.08); border-color: var(--border-bright); color: var(--text-primary); }
.quiz-opt.correct { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.4); color: var(--green); }
.quiz-opt.wrong { background: rgba(255,71,87,0.1); border-color: rgba(255,71,87,0.4); color: var(--coral); }
.opt-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.quiz-opt.correct .opt-letter { background: var(--green); color: #000; }
.quiz-opt.wrong .opt-letter { background: var(--coral); color: #fff; }

/* Sidebar Cards */
.sidebar-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.chapter-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.chapter-list::-webkit-scrollbar { width: 3px; }
.chapter-list::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }
.chapter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.chapter-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.chapter-item.active { background: rgba(0,230,118,0.1); color: var(--green); }
.chapter-num {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.chapter-item.active .chapter-num { background: var(--green); color: #000; }

/* XP Bar */
.xp-bar-wrap { display: flex; align-items: center; gap: 8px; }
.xp-label { font-size: 0.72rem; font-weight: 800; color: var(--amber); white-space: nowrap; }
.xp-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: var(--radius-full); overflow: hidden; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--green)); border-radius: var(--radius-full); }
.xp-val { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* Badges */
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.badge-chip {
  padding: 4px 10px;
  background: rgba(255,179,0,0.1);
  border: 1px solid rgba(255,179,0,0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
}

/* ── QUIZ PAGE ── */
.quiz-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
}
.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.quiz-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,71,87,0.1);
  border: 1px solid rgba(255,71,87,0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--coral);
}
.quiz-score-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green);
}
.quiz-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 32px;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.quiz-question-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 20px;
}
.quiz-question-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.5;
}
.quiz-explanation {
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}
.quiz-explanation.show { display: block; }
.quiz-explanation strong { color: var(--green); }
.xp-toast {
  position: fixed;
  top: 90px; right: 24px;
  padding: 12px 24px;
  background: var(--green);
  color: #000;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 300;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.xp-toast.show { transform: translateY(0); opacity: 1; }

/* ── ADMIN ── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.login-card {
  background: var(--navy-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.login-logo { font-size: 3rem; margin-bottom: 16px; }
.login-card h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.login-card > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 32px; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--green); background: rgba(0,230,118,0.04); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }
.login-error { color: var(--coral); font-size: 0.82rem; margin-top: 10px; min-height: 20px; }
.admin-panel { display: none; min-height: 100vh; }
.admin-panel.visible { display: flex; }
.admin-sidebar {
  width: 240px;
  background: var(--navy-mid);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 12px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
}
.admin-logo { padding: 0 8px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.admin-nav-item.active { background: rgba(0,230,118,0.1); color: var(--green); }
.admin-nav-icon { font-size: 1rem; flex-shrink: 0; }
.admin-content {
  margin-left: 240px;
  flex: 1;
  padding: 0;
  min-height: 100vh;
  background: var(--navy);
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-topbar h1 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.admin-section { display: none; padding: 28px 32px; }
.admin-section.active { display: block; }
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.admin-stat-card:hover { border-color: var(--border-bright); }
.stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--green); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.admin-table-wrap {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.admin-table-header h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
td {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.status-published { background: rgba(0,230,118,0.1); color: var(--green); border: 1px solid rgba(0,230,118,0.2); }
.status-draft { background: rgba(255,179,0,0.1); color: var(--amber); border: 1px solid rgba(255,179,0,0.2); }
.status-urgent { background: rgba(255,71,87,0.1); color: var(--coral); border: 1px solid rgba(255,71,87,0.2); }
.announcement-form {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.announcement-form h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: rgba(0,230,118,0.2); border-color: rgba(0,230,118,0.4); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--green); }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-label strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.settings-label span { font-size: 0.78rem; color: var(--text-muted); }
.notif-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}
.notif-card:hover { border-color: var(--border-bright); }
.notif-card.urgent { border-color: rgba(255,71,87,0.3); background: rgba(255,71,87,0.04); }
.notif-card.info { border-color: rgba(0,188,212,0.3); background: rgba(0,188,212,0.04); }
.notif-icon { font-size: 1.5rem; flex-shrink: 0; }
.notif-body { flex: 1; }
.notif-body strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.notif-body p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }
.notif-meta { display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.notif-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-nav { display: none; }
  .hamburger { display: flex; }
  .hero { flex-direction: column; padding: 100px 24px 40px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .class-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-section { padding: 20px 16px; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .lesson-sidebar { grid-template-columns: 1fr; }
  .ai-bubble-chat { width: calc(100vw - 48px); right: 24px; }
}
@media (max-width: 480px) {
  .admin-stats-row { grid-template-columns: 1fr 1fr; }
  .quiz-header-bar { flex-direction: column; align-items: flex-start; }
}