/* ============================================================
   MCQuest — Global Stylesheet
   Brand: Purple #471EBA | Green #00C853
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

:root {
  --purple:        #5B2FD4;
  --purple-light:  #7C55E8;
  --purple-dark:   #3A1A9E;
  --purple-glow:   rgba(91,47,212,0.4);
  --purple-glow-sm:rgba(91,47,212,0.18);
  --green:         #00D65C;
  --green-dark:    #00A844;
  --green-glow:    rgba(0,214,92,0.32);
  --gold:          #FFD700;
  --dark:          #060311;
  --dark-2:        #0C0822;
  --dark-3:        #14102E;
  --card-bg:       #1C1640;
  --card-border:   rgba(255,255,255,0.13);
  --border:        rgba(255,255,255,0.10);
  --text:          #EDE8FF;
  --text-muted:    #9188C0;
  --white:         #FFFFFF;
  --radius:        18px;
  --radius-sm:     12px;
  --radius-xs:     8px;
  --transition:    0.28s cubic-bezier(0.4,0,0.2,1);
  --font:          'Sora', 'Noto Sans Bengali', sans-serif;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
  --shadow-card-hover: 0 16px 48px rgba(0,0,0,0.65), 0 1px 0 rgba(255,255,255,0.08) inset;
  --shadow-glow:   0 8px 40px var(--purple-glow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple-dark), var(--purple-light));
  border-radius: 3px;
}

/* ── Selection ── */
::selection { background: var(--purple); color: #fff; }

/* ── Links ── */
a { color: inherit; text-decoration: none; }

/* ── Images ── */
img { max-width: 100%; display: block; }

/* ── Container ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── Section spacing ── */
section { padding: 80px 0; }

/* ── Section label ── */
.sec-label {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,214,92,0.1);
  border: 1px solid rgba(0,214,92,0.28);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── Section title / sub ── */
.sec-title {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.sec-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .sec-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #030a06;
  box-shadow: 0 4px 18px var(--green-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #26e870, var(--green));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--green-glow);
}
.btn-outline {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--purple-light);
  background: rgba(91,47,212,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--purple-glow-sm);
}
.btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  box-shadow: 0 4px 18px var(--purple-glow-sm);
}
.btn-purple:hover {
  background: linear-gradient(135deg, var(--purple-light), #9B7EFF);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--purple-glow);
}
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.83rem; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(91,47,212,0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-green {
  background: rgba(0,214,92,0.14);
  color: var(--green);
  border: 1px solid rgba(0,214,92,0.32);
}
.badge-purple {
  background: rgba(91,47,212,0.2);
  color: #B09FFF;
  border: 1px solid rgba(124,85,232,0.35);
}

/* ── Divider ── */
.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-light), var(--green));
  border-radius: 2px;
  margin: 16px 0 26px;
}
.divider.center { margin: 16px auto 26px; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 14px 0;
  background: rgba(6,3,17,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6,3,17,0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 16px var(--purple-glow-sm);
}
.nav-logo span { color: var(--green); }
.logo-img { height: 60px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--green));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(12,8,34,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
  flex-direction: column;
  gap: 4px;
  z-index: 998;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: #fff; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: linear-gradient(180deg, #0F0A2A 0%, #0C0820 100%);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.75;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(91,47,212,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 10% 80%, rgba(0,214,92,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 90% 60%, rgba(91,47,212,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(6,3,17,0.9) 0%, transparent 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(91,47,212,0.18);
  border: 1px solid rgba(124,85,232,0.4);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.81rem;
  font-weight: 600;
  color: #C5B3FF;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 .highlight {
  background: linear-gradient(130deg, var(--purple-light) 0%, #B09FFF 40%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 38px;
  max-width: 500px;
  line-height: 1.8;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hero-stat-num span { color: var(--green); }
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ═══════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════ */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91,47,212,0.5);
  box-shadow: var(--shadow-card-hover), 0 0 40px rgba(91,47,212,0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   STATS COUNTER
═══════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, #0F0A2A 0%, #130D30 50%, #0C0820 100%);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 20px 16px;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--border);
}
.stat-item:last-child::after { display: none; }
.stat-item .num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.stat-item .num span { color: var(--green); }
.stat-item .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════
   COIN / REWARD SYSTEM
═══════════════════════════════════════════ */
.coin-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 32px rgba(255,165,0,0.4);
  margin-bottom: 16px;
}
.earn-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--transition);
}
.earn-row:hover {
  border-color: rgba(91,47,212,0.45);
  background: rgba(91,47,212,0.1);
  transform: translateX(4px);
}
.earn-row .icon { font-size: 1.4rem; flex-shrink: 0; }
.earn-row .info { flex: 1; }
.earn-row .info strong { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 2px; }
.earn-row .info span { font-size: 0.79rem; color: var(--text-muted); }
.earn-row .coins {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255,215,0,0.1);
  padding: 4px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255,215,0,0.25);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   LEADERBOARD
═══════════════════════════════════════════ */
.leaderboard-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.lb-header {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple), var(--purple-light));
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.lb-header h3 { font-size: 0.98rem; font-weight: 700; color: #fff; }
.lb-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(91,47,212,0.1); }
.lb-rank {
  font-size: 1rem;
  font-weight: 800;
  width: 32px;
  text-align: center;
  color: var(--text-muted);
}
.lb-rank.gold  { color: #FFD700; }
.lb-rank.silver{ color: #C0C0C0; }
.lb-rank.bronze{ color: #CD7F32; }
.lb-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.lb-info { flex: 1; min-width: 0; }
.lb-info .name { font-size: 0.88rem; font-weight: 600; color: #fff; }
.lb-info .sub  { font-size: 0.75rem; color: var(--text-muted); }
.lb-score { font-size: 0.92rem; font-weight: 700; color: var(--green); }

/* ═══════════════════════════════════════════
   EXAM LOGIC (how-it-works)
═══════════════════════════════════════════ */
.exam-flow {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.exam-flow::before {
  content: '';
  position: absolute;
  left: 27px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-light), var(--green));
  opacity: 0.6;
}
.exam-step {
  display: flex; gap: 22px;
  position: relative; z-index: 1;
  padding-bottom: 30px;
}
.exam-step:last-child { padding-bottom: 0; }
.step-num {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--purple-light);
  box-shadow: 0 0 20px var(--purple-glow-sm);
}
.step-content { padding-top: 10px; }
.step-content h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════════
   PRICING
═══════════════════════════════════════════ */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.pricing-card.featured {
  border-color: var(--purple-light);
  background: linear-gradient(165deg, rgba(91,47,212,0.2), rgba(124,85,232,0.08), var(--card-bg));
  box-shadow: 0 0 60px rgba(91,47,212,0.2), var(--shadow-card);
}
.pricing-card .popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  color: #fff; font-size: 0.76rem; font-weight: 700;
  padding: 5px 20px; border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--purple-glow-sm);
}
.pricing-card .plan-name {
  font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
}
.pricing-card .price { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; }
.pricing-card .price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.pricing-card .price sub { font-size: 1.2rem; color: var(--green); vertical-align: super; }
.pricing-features {
  list-style: none;
  margin: 24px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text);
}
.pricing-features li .ck { color: var(--green); font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }
.pricing-features li .nx { color: var(--text-muted); opacity: 0.5; font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }

/* ═══════════════════════════════════════════
   SUBJECTS
═══════════════════════════════════════════ */
.subject-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.subject-card:hover {
  border-color: var(--purple-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.subject-card.active {
  border-color: var(--purple-light);
  background: rgba(91,47,212,0.14);
  box-shadow: 0 0 24px var(--purple-glow-sm), var(--shadow-card);
}
.subject-card .s-icon  { font-size: 2rem; margin-bottom: 10px; }
.subject-card .s-name  { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.subject-card .s-count { font-size: 0.76rem; color: var(--text-muted); }
.topics-panel {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 300px;
}
.topics-panel h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.topics-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  background: rgba(91,47,212,0.14);
  border: 1px solid rgba(91,47,212,0.32);
  color: #C5B3FF;
  padding: 6px 15px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  transition: var(--transition);
}
.topic-chip:hover { background: rgba(91,47,212,0.3); color: #fff; }
.skeleton { background: var(--dark-3); border-radius: 6px; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%,100%{opacity:0.4} 50%{opacity:0.8} }

/* ═══════════════════════════════════════════
   REGISTER FORM
═══════════════════════════════════════════ */
.register-section { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 44px 40px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.form-card h2 { font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.form-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.65; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: #fff;
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder { color: rgba(145,136,192,0.6); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--purple-light);
  background: rgba(91,47,212,0.08);
  box-shadow: 0 0 0 3px rgba(91,47,212,0.2);
}
.form-group input.error { border-color: #FF5252; }
.form-group .error-msg {
  font-size: 0.77rem; color: #FF6B6B; margin-top: 6px; display: none;
}
.form-group.has-error .error-msg { display: block; }
.form-group.has-error input { border-color: #FF5252; }
.referral-box {
  background: rgba(0,214,92,0.08);
  border: 1.5px solid rgba(0,214,92,0.3);
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  font-size: 0.87rem;
  color: var(--green);
}
.referral-box .ref-icon { font-size: 1.2rem; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .success-icon { font-size: 4rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.form-success p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-info-item .ci-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(91,47,212,0.18);
  border: 1px solid rgba(91,47,212,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-item .ci-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: #fff; }
.contact-info-item .ci-text span  { font-size: 0.85rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   POLICY
═══════════════════════════════════════════ */
.policy-content h2 { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 36px 0 14px; }
.policy-content p, .policy-content li {
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 10px;
}
.policy-content ul { padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li::marker { color: var(--green); }

/* ── EXAM CHIP ── */
.exam-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--ec, var(--purple)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ec, var(--purple)) 28%, transparent);
  color: var(--ec, #B09FFF);
  transition: var(--transition);
  cursor: default;
}
.exam-chip:hover {
  background: color-mix(in srgb, var(--ec, var(--purple)) 24%, transparent);
  color: #fff;
}

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(80px) scale(0.95); opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 340px;
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast.success { border-color: rgba(0,214,92,0.45); }
.toast.error   { border-color: rgba(255,82,82,0.45); }
.toast .t-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast .t-msg  { font-size: 0.87rem; color: var(--text); line-height: 1.5; }

/* ═══════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════ */
.page-hero {
  padding: 148px 0 72px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(91,47,212,0.28) 0%, transparent 65%),
    linear-gradient(180deg, #0F0A2A 0%, var(--dark) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800; color: #fff; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.page-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ═══════════════════════════════════════════
   ACCORDION (FAQ)
═══════════════════════════════════════════ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.accordion-item.open { border-color: rgba(91,47,212,0.5); }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.94rem; font-weight: 600; color: #fff;
  text-align: left;
  transition: background var(--transition);
}
.accordion-btn:hover { background: rgba(255,255,255,0.03); }
.accordion-btn .arrow { font-size: 1rem; transition: transform var(--transition); color: var(--text-muted); }
.accordion-item.open .arrow { transform: rotate(180deg); color: var(--green); }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  background: rgba(255,255,255,0.02);
}
.accordion-body p {
  padding: 16px 22px;
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════
   LOADING SPINNER
═══════════════════════════════════════════ */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Tablet 1024px ── */
@media (max-width: 1024px) {
  .grid-4      { grid-template-columns: repeat(2,1fr); }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  #examCoverageGrid { grid-template-columns: repeat(2,1fr) !important; }
  #examCoverageGrid .card[style*="grid-column"] { grid-column: 1/-1; }
}

/* ── Mobile 768px ── */
@media (max-width: 768px) {
  /* Layout */
  section    { padding: 56px 0; }
  .container { padding: 0 20px; }

  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero        { min-height: auto; padding: 96px 0 52px; }
  .hero h1     { font-size: 2.1rem; }
  .hero p      { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats  { gap: 20px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; }
  .hero-stat-num   { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4          { grid-template-columns: 1fr 1fr; }
  #examCoverageGrid { grid-template-columns: 1fr !important; }
  #examCoverageGrid .card[style*="grid-column"] { grid-column: auto; }

  /* Stats bar — clean 2×2 grid with visible dividers */
  .stats-section  { padding: 40px 0; }
  .stats-grid     { grid-template-columns: repeat(2,1fr); gap: 0; }
  .stat-item      { padding: 24px 16px; position: relative; }
  .stat-item::after { display: block; width: 1px; height: 50%; top: 25%; right: 0; position: absolute; background: rgba(255,255,255,0.1); content: ''; }
  .stat-item:nth-child(even)::after { display: none; }
  .stat-item:nth-child(-n+2)       { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item .num   { font-size: 2rem; }
  .stat-item .label { font-size: 0.72rem; }

  /* Cards */
  .card         { padding: 22px 18px; }
  .feature-card { padding: 22px 18px; }

  /* Section title */
  .sec-title { font-size: 1.75rem; }
  .sec-sub   { font-size: 0.97rem; }

  /* Page hero (inner pages) */
  .page-hero    { padding: 96px 0 44px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p  { font-size: 0.95rem; }

  /* Earn rows */
  .earn-row          { padding: 11px 13px; gap: 10px; }
  .earn-row .icon    { font-size: 1.2rem; }
  .earn-row .info strong { font-size: 0.86rem; }
  .earn-row .info span   { font-size: 0.75rem; }
  .earn-row .coins   { font-size: 0.8rem; padding: 3px 10px; }

  /* Leaderboard */
  .leaderboard-card   { font-size: 0.9rem; }
  .lb-row             { padding: 12px 16px; gap: 10px; }
  .lb-avatar          { width: 34px; height: 34px; font-size: 0.85rem; }
  .lb-info .name      { font-size: 0.84rem; }
  .lb-info .sub       { font-size: 0.72rem; }
  .lb-score           { font-size: 0.88rem; }

  /* Form */
  .form-card    { padding: 28px 20px; }
  .form-card h2 { font-size: 1.5rem; }

  /* Pricing */
  .pricing-card { padding: 28px 22px; }

  /* Accordion */
  .accordion-btn  { font-size: 0.9rem; padding: 16px 18px; }
  .accordion-body p { padding: 14px 18px; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-brand p { max-width: 100%; }
}

/* ── Small mobile 480px ── */
@media (max-width: 480px) {
  section    { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Hero */
  .hero    { padding: 88px 0 44px; }
  .hero h1 { font-size: 1.85rem; letter-spacing: -0.01em; }
  .hero-stats      { gap: 16px; }
  .hero-stat-num   { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .hero-badge      { font-size: 0.75rem; padding: 5px 13px; }

  /* Grids */
  .grid-4 { grid-template-columns: 1fr; }

  /* Stats */
  .stat-item .num   { font-size: 1.75rem; }
  .stat-item .label { font-size: 0.68rem; }

  /* Titles */
  .sec-title { font-size: 1.55rem; }

  /* Page hero */
  .page-hero    { padding: 88px 0 36px; }
  .page-hero h1 { font-size: 1.6rem; }

  /* Buttons */
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }

  /* Toast — full width on small screens */
  .toast { right: 16px; left: 16px; max-width: none; bottom: 16px; }

  /* Exam steps */
  .exam-flow::before { left: 22px; }
  .step-num { width: 46px; height: 46px; font-size: 1rem; }

  /* Pricing popular tag */
  .pricing-card .popular-tag { font-size: 0.72rem; padding: 4px 14px; }

  /* Form card */
  .form-card    { padding: 24px 16px; }
  .form-card h2 { font-size: 1.4rem; }

  /* Contact */
  .contact-info-item { gap: 10px; }
  .contact-info-item .ci-icon { width: 38px; height: 38px; font-size: 1rem; }
}