/* ═══════════════════════════════════════════════════════════════
   ALL IN ONE FOR SSC — Premium Design System
   Palette: Emerald Green + Deep Teal + White Glassmorphism
   Fonts: Bricolage Grotesque (Display) + Plus Jakarta Sans (Body)
═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --teal-400:  #2dd4bf;
  --teal-500:  #14b8a6;
  --teal-600:  #0d9488;

  --blue-500:  #3b82f6;
  --blue-600:  #2563eb;
  --purple-500:#8b5cf6;
  --amber-500: #f59e0b;
  --red-500:   #ef4444;

  /* Semantic */
  --primary:        var(--green-500);
  --primary-dark:   var(--green-600);
  --primary-light:  var(--green-400);
  --accent:         var(--teal-500);
  --accent-dark:    var(--teal-600);

  /* Light Theme */
  --bg:             #f8fffe;
  --bg-2:           #f0fdf4;
  --bg-3:           #ffffff;
  --surface:        rgba(255,255,255,0.85);
  --surface-2:      rgba(255,255,255,0.6);
  --border:         rgba(34,197,94,0.15);
  --border-2:       rgba(34,197,94,0.25);
  --text-primary:   #0a1628;
  --text-secondary: #374151;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.08);
  --shadow-green: 0 8px 32px rgba(34,197,94,.25);
  --shadow-glow:  0 0 40px rgba(34,197,94,.3);

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
  --grad-hero:     linear-gradient(135deg, #0a1628 0%, #0d2b1a 50%, #0a1628 100%);
  --grad-card:     linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(240,253,244,.8) 100%);
  --grad-text:     linear-gradient(135deg, #22c55e 0%, #14b8a6 50%, #3b82f6 100%);

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease-out);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg:             #060d0a;
  --bg-2:           #0a1410;
  --bg-3:           #0f1f16;
  --surface:        rgba(15,31,22,0.9);
  --surface-2:      rgba(15,31,22,0.6);
  --border:         rgba(34,197,94,0.12);
  --border-2:       rgba(34,197,94,0.2);
  --text-primary:   #f0fdf4;
  --text-secondary: #d1fae5;
  --text-muted:     #6ee7b7;
  --text-light:     #4ade80;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.5);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.6);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── CURSOR GLOW ────────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
}

/* ── LOADING SCREEN ─────────────────────────────────────────── */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--grad-hero);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }

.loader-content { text-align: center; }
.loader-logo {
  display: flex; align-items: center; gap: 12px;
  justify-content: center; margin-bottom: 32px;
}
.loader-icon { font-size: 48px; animation: loaderBounce 1s ease infinite; }
.loader-brand {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: #fff;
}
.loader-brand em { color: var(--green-400); font-style: normal; }

.loader-bar-wrap {
  width: 280px; height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  overflow: hidden; margin: 0 auto 16px;
}
.loader-bar {
  height: 100%; width: 0;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}
.loader-text { color: rgba(255,255,255,.6); font-size: 14px; }

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

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s var(--ease-out);
}
.navbar.scrolled {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 0;
}

.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex; align-items: center; gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-icon { font-size: 28px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
}
.logo-text em { color: var(--primary); font-style: normal; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex: 1;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--green-50); }
.nav-arrow { font-size: 10px; transition: transform 0.3s; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  min-width: 680px;
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(20px);
}
.nav-item:hover .mega-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-col h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: 10px;
}
.mega-col a {
  display: block; padding: 6px 0;
  font-size: 13px; color: var(--text-secondary);
  transition: color 0.2s;
}
.mega-col a:hover { color: var(--primary); }
.mega-featured {
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border-radius: var(--radius-md);
  padding: 16px !important;
}
.mega-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.mega-featured h4 { color: var(--green-700); font-size: 14px; text-transform: none; letter-spacing: 0; }
.mega-featured p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.mega-cta {
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.nav-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--green-100); color: var(--primary); }

.btn-nav-login {
  padding: 8px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-2);
  transition: var(--transition);
}
.btn-nav-login:hover { color: var(--primary); border-color: var(--primary); }

.btn-nav-signup {
  padding: 8px 20px;
  font-size: 14px; font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}
.btn-nav-signup:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(34,197,94,.35); }

.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed; top: 0; right: -100%;
  width: min(360px, 100vw); height: 100vh;
  background: var(--bg-3);
  z-index: 1100;
  padding: 24px;
  transition: right 0.4s var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.mobile-drawer.open { right: 0; }
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1099;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.drawer-overlay.show { opacity: 1; visibility: visible; }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.drawer-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-2);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.drawer-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.drawer-link:hover { background: var(--green-50); color: var(--primary); }
.drawer-link i { width: 20px; color: var(--primary); }
.drawer-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-full-login, .btn-full-signup {
  width: 100%; padding: 14px;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600;
  transition: var(--transition);
}
.btn-full-login {
  border: 2px solid var(--border-2);
  color: var(--text-primary);
}
.btn-full-signup {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-green);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex; align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.6;
}

.hero-orbs {
  position: absolute; inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,.2) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,.15) 0%, transparent 70%);
  bottom: -50px; left: -50px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}

.hero-container {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px; font-weight: 500;
  color: var(--green-300);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.badge-new {
  background: var(--green-500);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-full);
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  display: flex; flex-direction: column;
  gap: 4px; margin-bottom: 24px;
}
.title-line {
  display: block;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255,255,255,.9);
  letter-spacing: -0.02em;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-accent {
  color: var(--green-400) !important;
  -webkit-text-fill-color: var(--green-400) !important;
  text-shadow: 0 0 60px rgba(34,197,94,.4);
}
.title-sparkle {
  display: inline-block;
  animation: sparkle 2s ease infinite;
}
@keyframes sparkle {
  0%,100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(15deg) scale(1.2); }
  75% { transform: rotate(-15deg) scale(0.9); }
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Hero Search */
.hero-search {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 20px;
  max-width: 760px; margin: 0 auto 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.search-tabs {
  display: flex; gap: 4px;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-md);
  padding: 4px; margin-bottom: 16px;
}
.search-tab {
  flex: 1; padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.search-tab.active {
  background: rgba(34,197,94,.2);
  color: var(--green-300);
}
.search-panel { display: none; }
.search-panel.active { display: block; }

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}
.search-bar:focus-within {
  border-color: rgba(34,197,94,.5);
  box-shadow: 0 0 0 3px rgba(34,197,94,.1);
}
.search-icon { color: rgba(255,255,255,.4); font-size: 16px; flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 15px; color: #fff;
  font-family: var(--font-body);
}
.search-input::placeholder { color: rgba(255,255,255,.35); }
.search-voice {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-voice:hover, .search-voice.listening {
  background: rgba(239,68,68,.2);
  color: #ef4444;
}
.search-btn {
  padding: 10px 22px;
  background: var(--grad-primary);
  color: #fff; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
}
.search-btn:hover { transform: translateY(-1px); }

.search-suggestions {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
  margin-bottom: 8px;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s;
}
.suggestion-item:hover { background: var(--green-50); color: var(--primary); }
.suggestion-item i { color: var(--text-muted); font-size: 12px; }

.search-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.search-tag {
  padding: 5px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  font-size: 12px; color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: var(--transition);
}
.search-tag:hover {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.3);
  color: var(--green-300);
}

/* Advanced Filters */
.advanced-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.filter-select {
  flex: 1; min-width: 140px;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}
.filter-select option { background: #1a2e1a; color: #fff; }
.btn-filter-search {
  padding: 10px 20px;
  background: var(--grad-primary);
  color: #fff; font-size: 13px; font-weight: 600;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}

/* Search Results Preview */
.search-results-preview {
  max-width: 760px; margin: 0 auto 24px;
  display: none;
}
.search-results-preview.show { display: block; }
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.result-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.result-card:hover {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.3);
}
.result-card-type {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--green-400); margin-bottom: 6px;
}
.result-card-title { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; }
.result-card-meta { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 4px; }

.hero-cta {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 48px;
}
.btn-primary-hero {
  padding: 14px 32px;
  background: var(--grad-primary);
  color: #fff; font-size: 16px; font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
  font-family: var(--font-display);
}
.btn-primary-hero:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(34,197,94,.4); }
.btn-secondary-hero {
  padding: 14px 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); font-size: 16px; font-weight: 600;
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  font-family: var(--font-display);
}
.btn-secondary-hero:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: var(--green-400);
  display: inline;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--green-400);
}
.stat-label {
  display: block;
  font-size: 12px; color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.15);
}

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 12px;
  animation: scrollHint 2s ease infinite;
}
.scroll-arrow {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
@keyframes scrollHint {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ── NEWS TICKER ────────────────────────────────────────────── */
.news-ticker {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  height: 44px; overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--grad-primary);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-content {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-content span {
  font-size: 13px; color: var(--text-secondary);
  flex-shrink: 0;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION COMMONS ────────────────────────────────────────── */
.reveal-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 16px;
}
[data-theme="dark"] .section-badge {
  background: rgba(34,197,94,.15);
  color: var(--green-400);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 16px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
  line-height: 1.6;
}

/* ── STATS SECTION ──────────────────────────────────────────── */
.stats-section { padding: 60px 0; background: var(--bg-2); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-info { flex: 1; }
.big-num {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: var(--text-primary);
}
.stat-info span:not(.big-num) {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--text-primary);
}
.stat-info p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── FEATURES ───────────────────────────────────────────────── */
.features-section { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}
.feature-large {
  grid-row: span 2;
  background: linear-gradient(135deg, var(--green-900) 0%, #0a1628 100%);
  border-color: rgba(34,197,94,.2);
}
.feature-glow {
  position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(34,197,94,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.feature-icon-big { font-size: 56px; margin-bottom: 20px; }
.feature-large h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.feature-large p { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 20px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags span {
  padding: 5px 12px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--radius-full);
  font-size: 12px; color: var(--green-400);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card:not(.feature-large) h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.feature-card:not(.feature-large) p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── ARCHIVE ────────────────────────────────────────────────── */
.archive-section { background: var(--bg-2); }
.archive-filters {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 36px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-3);
  transition: var(--transition);
}
.filter-pill.active, .filter-pill:hover {
  background: var(--primary);
  color: #fff; border-color: var(--primary);
}
.archive-select {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-secondary);
  font-size: 13px; outline: none;
  cursor: pointer;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.archive-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.archive-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.archive-card:hover::before { transform: scaleX(1); }
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }

.archive-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.archive-type-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge-board { background: rgba(34,197,94,.12); color: var(--green-600); }
.badge-model { background: rgba(59,130,246,.12); color: var(--blue-600); }
.badge-suggestion { background: rgba(245,158,11,.12); color: #d97706; }
.badge-mcq { background: rgba(139,92,246,.12); color: #7c3aed; }
.badge-cq { background: rgba(239,68,68,.12); color: #dc2626; }

.archive-year {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-muted);
  background: var(--bg-2);
  padding: 3px 8px; border-radius: var(--radius-sm);
}
.archive-card h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.archive-card-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.archive-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted);
}
.archive-meta-item i { font-size: 11px; color: var(--primary); }
.archive-card-actions {
  display: flex; gap: 8px;
}
.btn-archive-view, .btn-archive-dl {
  flex: 1; padding: 8px;
  border-radius: var(--radius-md);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.btn-archive-view {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.btn-archive-view:hover { background: var(--green-100); }
.btn-archive-dl {
  background: var(--bg-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-archive-dl:hover { background: var(--border); }

[data-theme="dark"] .btn-archive-view {
  background: rgba(34,197,94,.1);
  color: var(--green-400);
  border-color: rgba(34,197,94,.2);
}

.archive-load-more { text-align: center; }
.btn-load-more {
  padding: 12px 32px;
  border: 2px solid var(--border-2);
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-load-more:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── SUBJECTS ───────────────────────────────────────────────── */
.subjects-section { background: var(--bg); }
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.subject-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.subject-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.subject-card:hover::after { opacity: .06; }
.subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.subject-emoji { font-size: 40px; margin-bottom: 12px; display: block; }
.subject-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.subject-count { font-size: 12px; color: var(--text-muted); }
.subject-bar-wrap {
  height: 3px; background: var(--border);
  border-radius: var(--radius-full);
  margin-top: 12px; overflow: hidden;
}
.subject-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
}

/* ── MCQ SECTION ────────────────────────────────────────────── */
.mcq-section { background: var(--bg-2); }
.mcq-layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 28px;
  margin-bottom: 60px;
}

.mcq-config {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  height: fit-content;
  box-shadow: var(--shadow-md);
}
.mcq-config h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 24px;
}
.config-group { margin-bottom: 20px; }
.config-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .06em;
}
.config-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.config-pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: var(--transition);
}
.config-pill.active {
  background: var(--primary);
  color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(34,197,94,.3);
}
.config-pill:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.btn-start-mcq {
  width: 100%; padding: 14px;
  background: var(--grad-primary);
  color: #fff; font-size: 16px; font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
  font-family: var(--font-display);
  margin-top: 8px;
}
.btn-start-mcq:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(34,197,94,.4); }

/* Quiz Area */
.mcq-quiz-area {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.quiz-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.quiz-info { display: flex; align-items: center; gap: 12px; }
.quiz-subject {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: var(--radius-full);
}
[data-theme="dark"] .quiz-subject { background: rgba(34,197,94,.15); color: var(--green-400); }
.quiz-progress { font-size: 13px; color: var(--text-muted); }
.quiz-timer {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-2);
  padding: 8px 16px; border-radius: var(--radius-md);
}
.quiz-timer.warning { color: var(--red-500); animation: timerPulse 1s ease infinite; }
@keyframes timerPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.quiz-progress-bar {
  height: 6px; background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden; margin-bottom: 28px;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease-out);
}

.quiz-question-card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 24px;
}
.question-num {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); margin-bottom: 12px;
}
.question-text {
  font-size: 17px; font-weight: 500;
  color: var(--text-primary); line-height: 1.6;
  margin-bottom: 24px;
}
.options-grid { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px; color: var(--text-primary);
  text-align: left; cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.option-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--green-50);
  color: var(--green-700);
}
.option-btn.selected {
  border-color: var(--primary);
  background: rgba(34,197,94,.08);
  color: var(--green-700);
}
.option-btn.correct {
  border-color: var(--green-500);
  background: rgba(34,197,94,.12);
  color: var(--green-700);
}
.option-btn.wrong {
  border-color: var(--red-500);
  background: rgba(239,68,68,.08);
  color: var(--red-500);
}
[data-theme="dark"] .option-btn:hover:not(:disabled),
[data-theme="dark"] .option-btn.selected { background: rgba(34,197,94,.1); color: var(--green-400); }
.option-letter {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}
.option-btn.selected .option-letter { background: var(--primary); color: #fff; }

.quiz-nav {
  display: flex; align-items: center; justify-content: space-between;
}
.btn-quiz-prev, .btn-quiz-next {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-quiz-prev {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-quiz-prev:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-quiz-prev:disabled { opacity: .4; cursor: not-allowed; }
.btn-quiz-next {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-quiz-next:hover { transform: translateY(-1px); }
.question-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.q-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.q-dot.answered { background: var(--primary); }
.q-dot.current { background: var(--accent); transform: scale(1.3); }

/* Results */
.mcq-results {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.results-emoji { font-size: 64px; margin-bottom: 12px; }
.mcq-results h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--text-primary); margin-bottom: 6px;
}
.mcq-results p { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

.results-score-ring {
  position: relative; width: 160px; height: 160px;
  margin: 0 auto 28px;
}
.score-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.ring-fill {
  fill: none; stroke: url(#ringGrad); stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}
.score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-pct {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  color: var(--text-primary);
}
.score-label { font-size: 12px; color: var(--text-muted); }

.results-breakdown {
  display: flex; gap: 20px; justify-content: center;
  margin-bottom: 20px;
}
.breakdown-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  min-width: 80px;
}
.breakdown-item.correct { background: rgba(34,197,94,.08); }
.breakdown-item.wrong { background: rgba(239,68,68,.08); }
.breakdown-item.skipped { background: rgba(107,114,128,.08); }
.breakdown-item i { font-size: 18px; }
.breakdown-item.correct i { color: var(--green-500); }
.breakdown-item.wrong i { color: var(--red-500); }
.breakdown-item.skipped i { color: var(--text-muted); }
.breakdown-item span { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text-primary); }
.breakdown-item p { font-size: 12px; color: var(--text-muted); }

.results-xp {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.2);
  color: #d97706;
  font-size: 14px; font-weight: 700;
  padding: 8px 20px; border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.results-xp i { color: var(--amber-500); }

.results-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-retry, .btn-review, .btn-new-test {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-retry { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-green); }
.btn-review { border: 1px solid var(--border-2); color: var(--text-secondary); }
.btn-review:hover { border-color: var(--primary); color: var(--primary); }
.btn-new-test { border: 1px solid var(--border); color: var(--text-muted); }

/* Mock Test Cards */
.subsection-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 20px;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.mock-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  cursor: pointer;
}
.mock-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.mock-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.mock-difficulty {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
}
.diff-easy { background: rgba(34,197,94,.1); color: var(--green-600); }
.diff-medium { background: rgba(245,158,11,.1); color: #d97706; }
.diff-hard { background: rgba(239,68,68,.1); color: var(--red-500); }
.mock-card h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.mock-card-meta {
  display: flex; gap: 14px; margin-bottom: 16px;
}
.mock-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.mock-meta i { color: var(--primary); font-size: 11px; }
.btn-start-mock {
  width: 100%; padding: 10px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.btn-start-mock:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="dark"] .btn-start-mock { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.2); color: var(--green-400); }

/* ── AI SECTION ─────────────────────────────────────────────── */
.ai-section {
  background: var(--bg);
  position: relative; overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,.05) 0%, transparent 70%);
  border-radius: 50%;
}
.ai-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.ai-desc {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 24px;
}
.ai-features-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.ai-features-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text-secondary);
}
.ai-features-list i { color: var(--primary); font-size: 16px; }
.btn-ai-try {
  padding: 14px 32px;
  background: var(--grad-primary);
  color: #fff; font-size: 16px; font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
  font-family: var(--font-display);
}
.btn-ai-try:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(34,197,94,.4); }

/* Chat Window */
.chat-window {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--grad-primary);
  color: #fff;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-header strong { font-size: 15px; font-weight: 700; display: block; }
.online-dot { font-size: 11px; opacity: .8; }
.chat-messages {
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 320px; overflow-y: auto;
  background: var(--bg-2);
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px; line-height: 1.6;
}
.chat-msg.bot .msg-bubble {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
  background: var(--grad-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-input-row {
  display: flex; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}
.chat-input-preview {
  flex: 1; padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px; color: var(--text-primary);
  outline: none;
}
.chat-input-preview:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chat-send-btn:hover { transform: scale(1.1); }

/* ── DASHBOARD ──────────────────────────────────────────────── */
.dashboard-section { background: var(--bg-2); }
.dashboard-layout {
  display: grid; grid-template-columns: 340px 1fr; gap: 28px;
}
.dash-profile-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  font-family: var(--font-display);
}
.profile-level {
  position: absolute; bottom: -4px; right: -4px;
  background: var(--amber-500);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--radius-full);
  border: 2px solid var(--bg-3);
}
.profile-info { flex: 1; }
.profile-info h4 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 2px;
}
.profile-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.xp-bar-wrap {
  height: 6px; background: var(--border);
  border-radius: var(--radius-full); overflow: hidden;
  margin-bottom: 4px;
}
.xp-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}
.xp-text { font-size: 11px; color: var(--text-muted); }

.dash-streak-card {
  background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(239,68,68,.05));
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.streak-fire { font-size: 32px; }
.dash-streak-card strong { font-size: 15px; font-weight: 700; color: var(--text-primary); display: block; }
.dash-streak-card p { font-size: 12px; color: var(--text-muted); }

.dash-mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.mini-stat {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center;
}
.mini-num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--primary); margin-bottom: 2px;
}
.mini-stat span:not(.mini-num) { font-size: 11px; color: var(--text-muted); }

.dash-badges {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.dash-badges h5 {
  font-size: 13px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .06em;
}
.badges-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-item {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
  transition: var(--transition);
}
.badge-item:hover:not(.locked) { transform: scale(1.15); box-shadow: var(--shadow-md); }
.badge-item.locked { opacity: .3; filter: grayscale(1); }

.chart-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.chart-card:last-child { margin-bottom: 0; }
.chart-card h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px;
}

/* ── LEADERBOARD ────────────────────────────────────────────── */
.leaderboard-section { background: var(--bg); }
.leaderboard-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
.leaderboard-podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 16px; padding: 40px 20px 0;
}
.podium-item { display: flex; flex-direction: column; align-items: center; }
.podium-crown { font-size: 28px; margin-bottom: 4px; }
.podium-avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.podium-avatar.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
  width: 68px; height: 68px; font-size: 22px;
}
.podium-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; text-align: center; }
.podium-score { font-size: 12px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.podium-rank { font-size: 20px; margin-bottom: 4px; }
.podium-block {
  width: 80px;
  background: var(--grad-primary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: .3;
}
.podium-item.first .podium-block { opacity: .6; }

.lb-tabs {
  display: flex; gap: 4px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 4px; margin-bottom: 16px;
}
.lb-tab {
  flex: 1; padding: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.lb-tab.active { background: var(--bg-3); color: var(--primary); box-shadow: var(--shadow-sm); }

.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.lb-item:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.lb-rank {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted); flex-shrink: 0;
}
.lb-rank.top { background: var(--grad-primary); color: #fff; }
.lb-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--font-display);
}
.lb-info { flex: 1; }
.lb-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.lb-board { font-size: 11px; color: var(--text-muted); }
.lb-xp {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--primary);
}
.lb-change { font-size: 11px; }
.lb-change.up { color: var(--green-500); }
.lb-change.down { color: var(--red-500); }

/* ── TIPS SECTION ───────────────────────────────────────────── */
.tips-section { background: var(--bg-2); }
.tips-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.tip-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.tip-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.tip-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.tip-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
[data-theme="dark"] .tip-icon { background: rgba(34,197,94,.1); }
.tip-content h5 {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.tip-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.daily-challenge-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.challenge-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.challenge-header span:first-child {
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase; letter-spacing: .06em;
}
.challenge-timer {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  color: var(--red-500);
  background: rgba(239,68,68,.08);
  padding: 4px 12px; border-radius: var(--radius-full);
}
.daily-challenge-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px;
}
.challenge-q {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 20px;
  padding: 14px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}
.challenge-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ch-opt {
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--text-primary);
  text-align: left; cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.ch-opt:hover { border-color: var(--primary); background: var(--green-50); color: var(--green-700); }
.ch-opt.correct { border-color: var(--green-500); background: rgba(34,197,94,.1); color: var(--green-700); }
.ch-opt.wrong { border-color: var(--red-500); background: rgba(239,68,68,.08); color: var(--red-500); }
[data-theme="dark"] .ch-opt:hover { background: rgba(34,197,94,.1); color: var(--green-400); }
.challenge-reward {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--amber-500); font-weight: 600;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--bg-3); border-top: 1px solid var(--border); }
.footer-top { padding: 64px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 20px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-col h5 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-primary); margin-bottom: 16px;
}
.footer-col a {
  display: block; padding: 5px 0;
  font-size: 14px; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1; padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-primary);
  outline: none;
}
.newsletter-input:focus { border-color: var(--primary); }
.newsletter-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.newsletter-btn:hover { transform: scale(1.05); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* ── CHATBOT FAB ────────────────────────────────────────────── */
.chatbot-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 900;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}
.chatbot-fab:hover { transform: scale(1.1); }
.fab-icon { font-size: 24px; position: relative; z-index: 1; }
.fab-pulse {
  position: absolute; inset: 0;
  border-radius: var(--radius-full);
  background: var(--primary);
  animation: fabPulse 2.5s ease infinite;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.fab-tooltip {
  position: absolute; right: calc(100% + 12px);
  background: var(--text-primary);
  color: var(--bg);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}
.chatbot-fab:hover .fab-tooltip { opacity: 1; transform: translateX(0); }

.chatbot-window {
  position: fixed; bottom: 100px; right: 28px;
  width: 360px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 900;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transform-origin: bottom right;
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease-spring);
}
.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1; visibility: visible;
}
.chatbot-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--grad-primary);
  color: #fff;
}
.chatbot-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chatbot-title { flex: 1; }
.chatbot-title strong { font-size: 14px; font-weight: 700; display: block; }
.chatbot-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.15);
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chatbot-close:hover { background: rgba(255,255,255,.25); }
.chatbot-messages {
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 300px; overflow-y: auto;
  background: var(--bg-2);
}
.chat-quick-replies {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 0 4px;
}
.chat-quick-replies button {
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px; color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.chat-quick-replies button:hover { border-color: var(--primary); color: var(--primary); }
.chatbot-input-row {
  display: flex; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}
.chatbot-input {
  flex: 1; padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px; color: var(--text-primary);
  outline: none;
}
.chatbot-input:focus { border-color: var(--primary); }
.chatbot-send {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chatbot-send:hover { transform: scale(1.1); }

/* ── SCROLL TO TOP ──────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; z-index: 800;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 90px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 2000;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 280px; max-width: 360px;
  animation: toastIn 0.4s var(--ease-spring);
}
.toast.removing { animation: toastOut 0.3s var(--ease-out) forwards; }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(100%); opacity: 0; }
}
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-text { flex: 1; font-size: 14px; color: var(--text-primary); }
.toast-close {
  color: var(--text-muted); font-size: 12px;
  width: 24px; height: 24px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.toast-close:hover { background: var(--bg-2); }

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-large { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 900px) {
  .nav-links, .btn-nav-login, .btn-nav-signup { display: none; }
  .mobile-menu-btn { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mcq-layout { grid-template-columns: 1fr; }
  .ai-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .leaderboard-layout { grid-template-columns: 1fr; }
  .tips-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .reveal-section { padding: 64px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary-hero, .btn-secondary-hero { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .chatbot-window { width: calc(100vw - 32px); right: 16px; }
  .results-breakdown { gap: 10px; }
  .breakdown-item { padding: 12px 16px; }
  .leaderboard-podium { gap: 8px; }
  .podium-block { width: 60px; }
}

@media (max-width: 480px) {
  .hero-search { padding: 14px; }
  .advanced-filters { flex-direction: column; }
  .filter-select { min-width: 100%; }
  .archive-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-cards { grid-template-columns: 1fr; }
}