/* ═══════════════════════════════════════════════
   DEFENCEEDGE — PREMIUM STYLESHEET
   Version 1.0 | Plus Jakarta Sans + Inter
═══════════════════════════════════════════════ */

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

:root {
  /* Colors */
  --bg-primary:   #0A0F1E;
  --bg-secondary: #0D1424;
  --bg-card:      #111827;
  --bg-card-2:    #131E30;
  --bg-elevated:  #1A2540;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.12);

  /* Brand */
  --indigo:       #4F46E5;
  --indigo-light: #818CF8;
  --cyan:         #06B6D4;
  --cyan-light:   #67E8F9;

  /* Semantic */
  --green:   #10B981;
  --amber:   #F59E0B;
  --red:     #EF4444;
  --pink:    #EC4899;
  --purple:  #8B5CF6;
  --blue:    #0EA5E9;

  /* Text */
  --text-primary:   #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;
  --text-accent:    #818CF8;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.6);
  --glow-indigo: 0 0 40px rgba(79,70,229,0.25);
  --glow-cyan:   0 0 40px rgba(6,182,212,0.2);

  /* Spacing */
  --section-pad: 96px;
  --container-max: 1240px;

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow:   0.4s ease;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }

/* Selection */
::selection { background: rgba(79,70,229,0.4); color: white; }

/* ── Typography ────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* ── Utility ───────────────────────────────── */
.w-full  { width: 100%; }
.mt-8    { margin-top: 8px; }
.mb-12   { margin-bottom: 12px; }

/* ── Shared Section Styles ─────────────────── */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-light);
  background: rgba(79,70,229,0.12);
  border: 1px solid rgba(79,70,229,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ── Buttons ───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--indigo), #6366F1);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--t-normal);
  box-shadow: 0 4px 15px rgba(79,70,229,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(79,70,229,0.5);
  background: linear-gradient(135deg, #5B52F0, #7C3AED);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  background: transparent;
  transition: all var(--t-fast);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-arrow { transition: transform var(--t-fast); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all var(--t-normal);
}

.navbar.scrolled {
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-accent { color: var(--indigo-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--t-fast);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: rgba(10,15,30,0.98);
  backdrop-filter: blur(20px);
  gap: 4px;
}

.mobile-link {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.mobile-link:hover { color: var(--text-primary); }
.mobile-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: glowPulse 6s ease-in-out infinite;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  top: 100px; right: -50px;
  animation-delay: 2s;
}
.glow-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  bottom: 0; left: 40%;
  animation-delay: 4s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Hero Content ──────────────────────────── */
.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.title-gradient {
  background: linear-gradient(135deg, var(--indigo-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--indigo), #6366F1);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-lg);
  transition: all var(--t-normal);
  box-shadow: 0 8px 30px rgba(79,70,229,0.4);
  white-space: nowrap;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.55);
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-lg);
  transition: all var(--t-normal);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.btn-hero-secondary:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.09);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

/* ── Hero Stats ────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 0;
  overflow: hidden;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.stat-number {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Trust Badges ──────────────────────────── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
}

/* ── Dashboard Mockup ──────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.dashboard-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(79,70,229,0.15);
  animation: floatCard 5s ease-in-out infinite;
}

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

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}

.mockup-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green  { background: #10B981; }

.mockup-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.mockup-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.mockup-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }

.mockup-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.greeting-text { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.greeting-sub  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.streak-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}

.flame { font-size: 14px; }

/* Ring */
.mockup-score-ring {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 16px;
}

.score-ring-outer {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.ring-svg { width: 100%; height: 100%; }

.ring-progress {
  stroke-dasharray: 314;
  stroke-dashoffset: 81;
  transition: stroke-dashoffset 1.5s ease;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-score { font-size: 20px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.ring-label { font-size: 9px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

.score-details { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.detail-label { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.detail-value { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.rank         { color: var(--indigo-light); }
.predicted    { color: var(--green); }

/* Subject bars */
.mockup-subjects { background: var(--bg-elevated); border-radius: var(--r-lg); padding: 14px; }
.subject-title { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.subject-bars  { display: flex; flex-direction: column; gap: 8px; }

.subject-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subject-name {
  font-size: 11px;
  color: var(--text-secondary);
  width: 80px;
  flex-shrink: 0;
  font-weight: 500;
}

.bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s ease;
}

.bar-pct { font-size: 10px; color: var(--text-muted); width: 32px; text-align: right; }

/* Upcoming */
.mockup-upcoming { background: var(--bg-elevated); border-radius: var(--r-lg); padding: 14px; }
.upcoming-label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.upcoming-test { display: flex; align-items: center; gap: 10px; }
.test-icon { font-size: 20px; }
.test-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.test-time { font-size: 11px; color: var(--text-muted); }
.btn-join {
  margin-left: auto;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.btn-join:hover { opacity: 0.85; transform: scale(0.97); }

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  animation: floatCard 5s ease-in-out infinite;
}

.card-rank {
  top: 20px;
  right: -40px;
  animation-delay: 1s;
}

.card-streak {
  bottom: 60px;
  left: -40px;
  animation-delay: 2.5s;
}

.fc-icon { font-size: 22px; }
.fc-label { font-size: 11px; color: var(--text-muted); }
.fc-value { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.fc-green { color: var(--green); }
.fc-blue  { color: var(--blue); }

/* ════════════════════════════════════════════
   EXAM CATEGORIES
════════════════════════════════════════════ */
.exams-section { background: var(--bg-secondary); }

.exam-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.exam-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all var(--t-normal);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exam-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, transparent 60%, rgba(79,70,229,0.04) 100%);
  transition: opacity var(--t-normal);
}

.exam-card:hover {
  border-color: rgba(79,70,229,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.15);
}

.exam-card-featured {
  border-color: rgba(79,70,229,0.3);
  background: linear-gradient(145deg, var(--bg-card), #131828);
  box-shadow: var(--glow-indigo);
}

.exam-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.exam-badge-top {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--indigo-light);
  background: rgba(79,70,229,0.15);
  border: 1px solid rgba(79,70,229,0.25);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.exam-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exam-info { flex: 1; }
.exam-name { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.exam-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

.exam-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-icon { font-size: 14px; }

.exam-success { margin-bottom: 14px; }
.success-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.success-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  border-radius: 2px;
  transition: width 1.4s ease;
}
.success-pct { font-size: 12px; color: var(--green); font-weight: 600; }

.exam-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.topic-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

.exam-cta {
  padding: 12px 0;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.2);
  color: var(--indigo-light);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--t-normal);
}
.exam-cta:hover {
  background: rgba(79,70,229,0.18);
  border-color: rgba(79,70,229,0.4);
  transform: translateY(-1px);
}

.exams-note {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════
   FEATURES SECTION
════════════════════════════════════════════ */
.features-section { background: var(--bg-primary); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.feature-card:hover {
  border-color: rgba(79,70,229,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.feature-large {
  grid-column: span 2;
}

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

.feature-preview-mini { margin-top: 20px; }

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-bottom: 12px;
}

.mini-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: height 0.8s ease;
  opacity: 0.85;
}

.mini-insight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.18);
  border-radius: var(--r-sm);
}

.insight-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--indigo-light);
  background: rgba(79,70,229,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.insight-text { font-size: 12px; color: var(--text-secondary); }

/* Daily Plan mini */
.daily-plan { display: flex; flex-direction: column; gap: 8px; }

.plan-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.plan-item.plan-active {
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.15);
  color: var(--text-primary);
}

.plan-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.plan-done    { background: var(--green); }
.plan-now     { background: var(--indigo); animation: pulse 1.5s infinite; }
.plan-pending { background: rgba(255,255,255,0.1); }

.plan-text { flex: 1; }

.plan-check { color: var(--green); font-size: 13px; }

.plan-badge-now {
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: var(--indigo);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════
   FULL DASHBOARD
════════════════════════════════════════════ */
.dashboard-section { background: var(--bg-secondary); }

.full-dashboard {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 620px;
}

/* Sidebar */
.fd-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg-card-2);
  border-right: 1px solid var(--border);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fd-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.fd-nav-item:hover, .fd-active {
  color: var(--text-primary);
  background: rgba(79,70,229,0.12);
}

.fd-active { color: var(--indigo-light); }

/* Main area */
.fd-main { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }

/* KPI row */
.fd-top-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fd-kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}

.kpi-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.kpi-value { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.kpi-highlight { color: var(--green); }
.kpi-change { font-size: 11px; margin-top: 4px; }
.kpi-up      { color: var(--green); }
.kpi-neutral { color: var(--text-muted); }

/* Middle row */
.fd-middle-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }

.fd-chart-card, .fd-subject-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.chart-tabs { display: flex; gap: 4px; }

.chart-tab {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  background: transparent;
  transition: all var(--t-fast);
}
.chart-tab:hover, .chart-tab-active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

.line-chart { }
.chart-svg { width: 100%; height: 100px; }
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.chart-labels span { font-size: 10px; color: var(--text-muted); }

/* Subject bars */
.radar-subjects { display: flex; flex-direction: column; gap: 12px; }

.rs-item { display: flex; align-items: center; gap: 10px; }
.rs-name { font-size: 12px; color: var(--text-secondary); width: 110px; flex-shrink: 0; }

.rs-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.rs-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--indigo-light));
  border-radius: 3px;
  transition: width 1.2s ease;
}
.rs-bar-blue   { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }
.rs-bar-orange { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.rs-bar-green  { background: linear-gradient(90deg, #10B981, #34D399); }
.rs-bar-purple { background: linear-gradient(90deg, #8B5CF6, #C4B5FD); }

.rs-pct { font-size: 11px; color: var(--text-muted); width: 30px; text-align: right; flex-shrink: 0; }

.rs-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  width: 76px;
  text-align: center;
}
.rs-good { color: var(--green); background: rgba(16,185,129,0.1); }
.rs-ok   { color: var(--blue);  background: rgba(14,165,233,0.1); }
.rs-weak { color: var(--amber); background: rgba(245,158,11,0.1); }

/* Bottom row */
.fd-bottom-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }

.fd-upcoming-tests, .fd-leaderboard {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.upcoming-list { display: flex; flex-direction: column; gap: 10px; }

.utest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.utest-item:hover { border-color: rgba(79,70,229,0.25); }

.utest-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.utest-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.utest-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.btn-sm-primary {
  margin-left: auto;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.btn-sm-primary:hover { opacity: 0.85; }

.btn-sm-outline {
  margin-left: auto;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.btn-sm-outline:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }

/* Leaderboard */
.lb-list { display: flex; flex-direction: column; gap: 8px; }

.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
}
.lb-gold   { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.12); }
.lb-silver { background: rgba(148,163,184,0.05); border: 1px solid rgba(148,163,184,0.1); }
.lb-bronze { background: rgba(120,53,15,0.08); border: 1px solid rgba(146,64,14,0.15); }
.lb-you    { background: rgba(79,70,229,0.08); border: 1px solid rgba(79,70,229,0.2); }

.lb-rank { font-size: 14px; }
.lb-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.lb-info { flex: 1; }
.lb-name  { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.lb-score { font-size: 11px; color: var(--text-muted); }
.lb-badge { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.lb-you-badge { color: var(--indigo-light); }

/* ════════════════════════════════════════════
   MOCK TEST INTERFACE
════════════════════════════════════════════ */
.mocktest-section { background: var(--bg-primary); }

.exam-interface {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.exam-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.toolbar-left { display: flex; align-items: center; gap: 16px; }
.exam-logo-sm { font-size: 15px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.exam-name-sm { font-size: 13px; color: var(--text-secondary); }

.toolbar-center { flex: 1; display: flex; justify-content: center; }

.exam-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--r-md);
}

.timer-val { font-size: 16px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.toolbar-right { display: flex; align-items: center; gap: 10px; }

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.toolbar-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }

.toolbar-btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border-color: transparent;
  color: white;
}
.toolbar-btn-danger:hover { background: linear-gradient(135deg, #DC2626, #B91C1C); color: white; }

/* Exam body */
.exam-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 500px;
}

.question-area { padding: 28px; border-right: 1px solid var(--border); }

.question-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.qnum-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo-light);
  background: rgba(79,70,229,0.12);
  padding: 4px 12px;
  border-radius: 100px;
}

.qsection-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}

.bookmark-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.bookmark-btn:hover, .bookmark-btn.bookmarked {
  color: var(--amber);
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.08);
}

.question-text { margin-bottom: 24px; }
.q-passage-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.q-passage {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--indigo);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 16px;
  font-style: italic;
}
.q-stem { font-size: 16px; font-weight: 600; color: var(--text-primary); line-height: 1.5; }

.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
}

.option-item:hover { border-color: rgba(79,70,229,0.35); background: rgba(79,70,229,0.05); }

.option-selected {
  border-color: var(--indigo) !important;
  background: rgba(79,70,229,0.1) !important;
}

.option-key {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.option-key-selected {
  background: var(--indigo);
  border-color: var(--indigo);
  color: white;
}

.option-text { flex: 1; font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }

.option-radio { display: none; }

.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-clear-resp {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.btn-clear-resp:hover { color: var(--text-secondary); }

.nav-btns { display: flex; gap: 8px; }

.btn-prev-q, .btn-mark-review, .btn-save-next {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}

.btn-prev-q {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-prev-q:hover { color: var(--text-primary); }

.btn-mark-review {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--amber);
}
.btn-mark-review:hover { background: rgba(245,158,11,0.18); }

.btn-save-next {
  background: linear-gradient(135deg, var(--indigo), #6366F1);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.btn-save-next:hover { box-shadow: 0 6px 18px rgba(79,70,229,0.45); transform: translateY(-1px); }

/* Palette */
.question-palette {
  padding: 20px 16px;
  background: var(--bg-card-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.palette-header { font-size: 13px; font-weight: 700; color: var(--text-secondary); }

.palette-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

.pq {
  width: 14px; height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.pq-answered    { background: var(--green); }
.pq-not-answered{ background: rgba(239,68,68,0.6); }
.pq-marked      { background: var(--purple); }
.pq-current     { background: var(--indigo); }

.palette-sections { flex: 1; }
.palette-section-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.pq-num {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-fast);
}
.pq-num:hover { transform: scale(1.1); }

.palette-stats {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  font-size: 10px;
  color: var(--text-muted);
  gap: 3px;
  border-right: 1px solid var(--border);
}
.pstat:last-child { border-right: none; }
.pstat-num { font-size: 18px; font-weight: 800; }
.pstat-green  { color: var(--green); }
.pstat-red    { color: var(--red); }
.pstat-orange { color: var(--amber); }

/* ════════════════════════════════════════════
   AI ANALYTICS
════════════════════════════════════════════ */
.analytics-section { background: var(--bg-secondary); }

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all var(--t-normal);
}
.analytics-card:hover { border-color: rgba(79,70,229,0.2); transform: translateY(-2px); }

.ac-header { margin-bottom: 20px; }
.ac-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.ac-sub   { font-size: 13px; color: var(--text-muted); }

/* Heatmap */
.heatmap-months {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.hm-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--t-fast);
}
.hm-cell:hover { transform: scale(1.3); }
.hm-0 { background: rgba(255,255,255,0.04); }
.hm-1 { background: rgba(79,70,229,0.2); }
.hm-2 { background: rgba(79,70,229,0.4); }
.hm-3 { background: rgba(79,70,229,0.65); }
.hm-4 { background: rgba(79,70,229,0.9); }

.heatmap-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); justify-content: flex-end; }
.heatmap-scale { display: flex; gap: 3px; }
.hs { width: 12px; height: 12px; border-radius: 2px; }
.hs-0 { background: rgba(255,255,255,0.04); }
.hs-1 { background: rgba(79,70,229,0.2); }
.hs-2 { background: rgba(79,70,229,0.4); }
.hs-3 { background: rgba(79,70,229,0.65); }
.hs-4 { background: rgba(79,70,229,0.9); }

/* Topic Mastery */
.topic-mastery { display: flex; flex-direction: column; gap: 14px; }

.tm-item { display: flex; align-items: center; gap: 12px; }
.tm-topic { font-size: 13px; color: var(--text-secondary); width: 160px; flex-shrink: 0; }

.tm-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.tm-bar { height: 100%; border-radius: 3px; transition: width 1.3s ease; }
.tm-bar-mastered  { background: linear-gradient(90deg, var(--green), #34D399); }
.tm-bar-proficient{ background: linear-gradient(90deg, #0EA5E9, #38BDF8); }
.tm-bar-developing{ background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.tm-bar-needs     { background: linear-gradient(90deg, var(--red), #F87171); }

.tm-level {
  font-size: 11px;
  font-weight: 600;
  width: 80px;
  text-align: right;
  flex-shrink: 0;
}
.mastered   { color: var(--green); }
.proficient { color: var(--blue); }
.developing { color: var(--amber); }
.needs-work { color: var(--red); }

/* Prediction */
.predictor { display: flex; flex-direction: column; gap: 20px; }

.pred-score-wrap { display: flex; justify-content: center; }

.pred-score-ring {
  position: relative;
  width: 160px; height: 160px;
}
.pred-score-ring svg { width: 100%; height: 100%; }

.pred-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pred-score-val { font-size: 34px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.04em; }
.pred-score-label { font-size: 11px; color: var(--text-muted); }
.pred-out { font-size: 10px; color: var(--text-muted); }

.pred-details { display: flex; flex-direction: column; gap: 10px; }
.pred-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pred-row:last-child { border-bottom: none; }
.pred-key { font-size: 13px; color: var(--text-muted); }
.pred-val { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.pred-highlight { color: var(--indigo-light); }
.pred-green { color: var(--green); }

.pred-suggestion {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.16);
  border-radius: var(--r-md);
  align-items: flex-start;
}
.sugg-icon { font-size: 18px; flex-shrink: 0; }
.sugg-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Improvement */
.improvement-list { display: flex; flex-direction: column; gap: 10px; }

.imp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.imp-item:hover { border-color: rgba(79,70,229,0.25); }

.imp-priority {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  color: white;
  background: var(--red);
  width: 44px;
  text-align: center;
}
.imp-med { background: var(--amber); color: #1a1a1a; }
.imp-lo  { background: rgba(255,255,255,0.1); color: var(--text-muted); }

.imp-content { flex: 1; }
.imp-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.imp-meta  { font-size: 11px; color: var(--text-muted); }

.imp-start {
  padding: 6px 12px;
  background: rgba(79,70,229,0.12);
  border: 1px solid rgba(79,70,229,0.22);
  color: var(--indigo-light);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.imp-start:hover { background: rgba(79,70,229,0.2); }

/* ════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════ */
.testimonials-section { background: var(--bg-primary); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2,1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 48px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  transition: all var(--t-normal);
}
.testi-card:hover { border-color: rgba(79,70,229,0.22); transform: translateY(-3px); }

.testi-featured {
  grid-row: span 2;
  background: linear-gradient(145deg, var(--bg-card), #0E1520);
  border-color: rgba(79,70,229,0.22);
  box-shadow: var(--glow-indigo);
}

.testi-quote-icon {
  font-size: 72px;
  line-height: 0.6;
  color: var(--indigo);
  opacity: 0.3;
  font-family: serif;
  margin-bottom: 20px;
  display: block;
}

.testi-stars { font-size: 16px; color: var(--amber); margin-bottom: 14px; letter-spacing: 2px; }

.testi-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}

.testi-featured .testi-text { font-size: 16px; margin-bottom: 24px; }

.testi-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.author-rank { font-size: 12px; color: var(--indigo-light); margin-top: 2px; }
.author-institution { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.testi-stats {
  display: flex;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.ts-item { flex: 1; text-align: center; }
.ts-val  { font-size: 18px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.ts-key  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.ts-divider { width: 1px; background: var(--border); }

.testimonials-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  gap: 20px;
}

.tc-text { font-size: 16px; color: var(--text-secondary); }
.tc-text strong { color: var(--text-primary); }

/* ════════════════════════════════════════════
   PRICING
════════════════════════════════════════════ */
.pricing-section { background: var(--bg-secondary); }

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 52px;
}

.pt-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

.toggle-btn {
  width: 48px; height: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background var(--t-normal);
}
.toggle-btn.active { background: var(--indigo); border-color: var(--indigo); }

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--t-normal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle-btn.active .toggle-thumb { transform: translateX(22px); }

.save-badge {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.25);
  margin-left: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  transition: all var(--t-normal);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

.pricing-popular {
  border-color: rgba(79,70,229,0.45);
  background: linear-gradient(145deg, #0E1424, #111930);
  box-shadow: 0 0 50px rgba(79,70,229,0.18);
  transform: translateY(-6px);
}
.pricing-popular:hover { transform: translateY(-10px); }

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.plan-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-name { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.plan-desc { font-size: 12px; color: var(--text-muted); }

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 24px;
  line-height: 1;
}

.price-currency { font-size: 20px; font-weight: 700; color: var(--text-secondary); align-self: flex-start; padding-top: 4px; }
.price-amount   { font-size: 44px; font-weight: 900; color: var(--text-primary); letter-spacing: -0.04em; }
.price-period   { font-size: 14px; color: var(--text-muted); padding-bottom: 6px; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.pf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.pf-item::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}
.pf-yes::before {
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.pf-no {
  color: var(--text-muted);
}
.pf-no::before {
  background: rgba(255,255,255,0.06);
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2l4 4M6 2L2 6' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-cta {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--t-normal);
  margin-bottom: 12px;
}

.plan-cta-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
}
.plan-cta-outline:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); }

.plan-cta-blue {
  background: rgba(14,165,233,0.12);
  border: 1.5px solid rgba(14,165,233,0.25);
  color: #38BDF8;
}
.plan-cta-blue:hover { background: rgba(14,165,233,0.2); }

.plan-cta-primary {
  background: linear-gradient(135deg, var(--indigo), #6366F1);
  border: none;
  color: white;
  box-shadow: 0 6px 24px rgba(79,70,229,0.4);
}
.plan-cta-primary:hover { box-shadow: 0 8px 32px rgba(79,70,229,0.55); transform: translateY(-1px); }

.plan-cta-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: none;
  color: #1a1100;
}
.plan-cta-gold:hover { box-shadow: 0 6px 20px rgba(245,158,11,0.4); transform: translateY(-1px); }

.plan-guarantee { font-size: 11px; color: var(--green); text-align: center; }

.pricing-note { text-align: center; }
.pn-icons { font-size: 13px; color: var(--text-muted); }

/* ════════════════════════════════════════════
   MOBILE APP
════════════════════════════════════════════ */
.app-section { background: var(--bg-primary); }

.app-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.app-text { }
.app-text .section-tag, .app-text .section-title, .app-text .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.app-features-list { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }

.afl-item { display: flex; align-items: flex-start; gap: 14px; }
.afl-icon { font-size: 24px; flex-shrink: 0; }
.afl-text { }
.afl-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.afl-text span   { font-size: 13px; color: var(--text-muted); }

.app-ratings { display: flex; gap: 16px; margin-bottom: 28px; }

.app-store-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  flex: 1;
  transition: all var(--t-fast);
}
.app-store-rating:hover { border-color: rgba(79,70,229,0.25); }

.store-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.store-apple   { background: #1a1a2e; color: white; }
.store-android { background: #1a2c1a; color: #3DDC84; }

.store-stars   { font-size: 13px; color: var(--amber); font-weight: 700; }
.store-name    { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.store-reviews { font-size: 11px; color: var(--text-muted); }

.app-download-btns { display: flex; gap: 12px; }

.app-dl-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  transition: all var(--t-normal);
  font-family: inherit;
}

.app-dl-apple {
  background: white;
  color: #000;
  border: none;
}
.app-dl-apple:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.15); }

.app-dl-android {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
}
.app-dl-android:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.dl-sub  { display: block; font-size: 10px; color: inherit; opacity: 0.7; }
.dl-main { display: block; font-size: 14px; font-weight: 700; color: inherit; }

/* Phone mockups */
.app-phones {
  position: relative;
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 220px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border-light);
  border-radius: 36px;
  overflow: hidden;
  position: absolute;
  box-shadow: var(--shadow-xl);
}

.phone-front {
  z-index: 2;
  transform: rotate(-5deg) translateX(40px);
  animation: floatCard 6s ease-in-out infinite;
}

.phone-back {
  z-index: 1;
  transform: rotate(8deg) translateX(-50px) translateY(20px);
  animation: floatCard 6s ease-in-out infinite;
  animation-delay: 1.5s;
  opacity: 0.85;
}

.phone-screen {
  padding: 0;
  background: var(--bg-card);
}

.phone-screen-dark { background: #080B14; }

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.2);
}

.phone-content {
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dark-content { color: white; }

/* Light phone */
.ph-header { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.ph-streak { font-size: 12px; color: var(--amber); font-weight: 600; }

.ph-score-mini { background: var(--bg-elevated); border-radius: var(--r-md); padding: 10px; }
.psm-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.psm-progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.psm-bar { height: 100%; background: linear-gradient(90deg, var(--indigo), var(--cyan)); border-radius: 2px; }
.psm-nums { font-size: 11px; color: var(--text-muted); }

.ph-tests { display: flex; flex-direction: column; gap: 6px; }
.ph-test-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: rgba(255,255,255,0.03); border-radius: var(--r-sm); }
.ph-test-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ph-test-name { font-size: 11px; font-weight: 600; color: var(--text-primary); }
.ph-test-time { font-size: 10px; color: var(--text-muted); }
.ph-test-live { font-size: 10px; font-weight: 700; color: var(--green); background: rgba(16,185,129,0.12); padding: 2px 6px; border-radius: 3px; margin-left: auto; }

.ph-rank-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 10px;
  background: rgba(79,70,229,0.1);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
}
.ph-rank-val { font-weight: 700; color: var(--indigo-light); margin-left: auto; }
.ph-rank-up { color: var(--green); }

/* Dark phone */
.ph-header-dark { font-size: 14px; font-weight: 700; color: white; }
.ph-timer-dark  { font-size: 24px; font-weight: 800; color: var(--red); text-align: center; font-variant-numeric: tabular-nums; }
.ph-q-dark      { font-size: 11px; color: rgba(255,255,255,0.4); }

.ph-opts-dark { display: flex; flex-direction: column; gap: 5px; }
.ph-opt {
  font-size: 11px;
  padding: 7px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.6);
}
.ph-opt-sel {
  background: rgba(79,70,229,0.15);
  border-color: rgba(79,70,229,0.3);
  color: var(--indigo-light);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }

.footer-top { padding: 64px 0 48px; }

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
}

.footer-logo { margin-bottom: 16px; display: inline-flex; }
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }

.footer-social { display: flex; gap: 10px; }

.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.social-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); border-color: var(--border-light); }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col { }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.fb-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 24px;
}

.fb-copy  { font-size: 13px; color: var(--text-muted); }
.fb-built { font-size: 13px; color: var(--text-muted); }

/* ════════════════════════════════════════════
   MODALS
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active { display: flex; }

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: slideUp 0.25s ease;
  box-shadow: var(--shadow-xl);
}

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

.modal-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }

.modal-title { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.modal-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.form-input {
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--t-fast);
  width: 100%;
  appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--indigo); background: rgba(79,70,229,0.06); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-input option { background: var(--bg-card); }

.form-row { display: flex; justify-content: space-between; align-items: center; }
.form-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.form-check input { accent-color: var(--indigo); }
.form-link { font-size: 13px; color: var(--indigo-light); font-weight: 500; }
.form-link:hover { color: white; }

.btn-modal-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--indigo), #6366F1);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  transition: all var(--t-normal);
  box-shadow: 0 6px 20px rgba(79,70,229,0.35);
  margin-top: 4px;
}
.btn-modal-primary:hover { box-shadow: 0 8px 28px rgba(79,70,229,0.5); transform: translateY(-1px); }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-logins { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t-fast);
}
.social-login-btn:hover { color: var(--text-primary); border-color: var(--border-light); background: rgba(255,255,255,0.07); }

.modal-footer-text { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ════════════════════════════════════════════
   LOGIN TABS — Student / Admin toggle
════════════════════════════════════════════ */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.login-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.login-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.05); }
.login-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
#tabAdmin.active {
  background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(6,182,212,0.15));
  color: #818CF8;
  border: 1px solid rgba(79,70,229,0.25);
}
/* Admin login badge */
.admin-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(6,182,212,0.12));
  border: 1px solid rgba(79,70,229,0.3);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #818CF8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.admin-login-badge svg { flex-shrink: 0; }
/* Password visibility toggle */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-password-wrap .form-input {
  padding-right: 44px;
  width: 100%;
}
.toggle-pass-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.15s;
}
.toggle-pass-btn:hover { color: var(--text-secondary); }
/* Admin login error */
.admin-login-error {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  font-size: 13px;
  color: #FCA5A5;
  margin-bottom: 4px;
  animation: shakeError 0.4s ease;
}
/* Spinner for admin login loading */
@keyframes spinIcon { to { transform: rotate(360deg); } }
.spin-icon { animation: spinIcon 0.7s linear infinite; }

@keyframes shakeError {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
/* Admin submit button */
.btn-modal-admin {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-modal-admin:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(79,70,229,0.45); opacity: 0.92; }
.btn-modal-admin.loading { pointer-events: none; opacity: 0.75; }
/* Hint text below admin form */
.admin-login-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-login-hint code {
  background: rgba(79,70,229,0.18);
  color: #818CF8;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
}
/* Student hint — green accent */
.student-hint {
  border-color: rgba(16,185,129,0.18);
  margin-bottom: 14px;
}
.student-hint code {
  background: rgba(16,185,129,0.15);
  color: #34D399;
}
/* Student login success state */
.btn-modal-primary.success-state {
  background: linear-gradient(135deg, #10B981, #06B6D4) !important;
  pointer-events: none;
}
/* Login success banner inside modal */
.login-success-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #34D399;
  margin-bottom: 12px;
  animation: fadeSlideIn 0.35s ease;
}
.login-success-banner svg { flex-shrink: 0; }
@keyframes fadeSlideIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════════ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos][data-aos-delay="50"]  { transition-delay: 0.05s; }
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="350"] { transition-delay: 0.35s; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1100px)
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-container { grid-template-columns: 1fr; max-width: 720px; }
  .hero-visual { display: none; }
  .exam-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-card-featured { grid-column: span 2; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-large { grid-column: span 2; }

  .full-dashboard { flex-direction: column; }
  .fd-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .fd-top-row { grid-template-columns: repeat(2, 1fr); }
  .fd-middle-row { grid-template-columns: 1fr; }
  .fd-bottom-row { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-popular { transform: none; }
  .pricing-popular:hover { transform: translateY(-4px); }

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

  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testi-featured { grid-column: span 2; grid-row: auto; }

  .app-content { grid-template-columns: 1fr; gap: 48px; }
  .app-phones { height: 420px; }

  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu.open { display: flex; }

  .hero-container { padding: 60px 24px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats .stat-item { min-width: 120px; }

  .exam-cards-grid { grid-template-columns: 1fr; }
  .exam-card-featured { grid-column: span 1; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }

  .exam-body { grid-template-columns: 1fr; }
  .question-palette { display: none; }

  .exam-toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar-center { order: -1; width: 100%; justify-content: flex-start; }

  .fd-top-row { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-popular { transform: none; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testi-featured { grid-column: span 1; }

  .app-phones { display: none; }
  .app-download-btns { flex-direction: column; }

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

  .testimonials-cta { flex-direction: column; text-align: center; }

  .modal { padding: 24px 20px; margin: 16px; }

  .phone-mockup { width: 180px; }
}

@media (max-width: 480px) {
  .fd-top-row { grid-template-columns: 1fr; }
  .app-ratings { flex-direction: column; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .pricing-toggle { flex-wrap: wrap; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-divider { display: none; }
  .trust-badges { gap: 6px; }
  .trust-badge { font-size: 11px; padding: 5px 10px; }
}
