/* ==========================================================================
   BCESD Computer Olympiad — design system (public portal + student area)
   ========================================================================== */
:root {
  --navy-950: #071122;
  --navy-900: #0b192c;
  --navy-800: #13294a;
  --navy-700: #1e3e62;
  --blue-600: #2453d8;
  --teal-500: #14b8a6;
  --emerald: #00d26a;
  --emerald-700: #00a653;
  --orange: #ff6b00;
  --orange-600: #e55f00;
  --gold: #f5a524;
  --red: #ef4444;
  --purple: #7c3aed;

  --surface: #f8fafc;
  --surface-2: #eef2f7;
  --surface-3: #f4f7fd;
  --ink: #0b192c;
  --on-gold: #0b192c;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --border: rgba(226, 232, 240, 0.9);
  --border-strong: #d6dde8;
  --text: #0f172a;
  --text-2: #334155;
  --text-soft: #64748b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(11, 25, 44, 0.18);
  --ring: 0 0 0 4px rgba(36, 83, 216, 0.14);

  --font: 'Plus Jakarta Sans', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
:lang(bn) body, body:lang(bn) { font-family: var(--font-bn); }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
::selection { background: rgba(255, 107, 0, 0.18); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }
.text-soft { color: var(--text-soft) !important; }
.fw-800 { font-weight: 800; }

/* ---------- Background textures ---------- */
.bg-grid {
  background-color: var(--surface);
  background-image: radial-gradient(rgba(30, 62, 98, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bg-mesh {
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(36, 83, 216, 0.16) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 30%, rgba(20, 184, 166, 0.14) 0%, transparent 60%),
    radial-gradient(40% 40% at 60% 100%, rgba(255, 107, 0, 0.10) 0%, transparent 60%),
    var(--surface);
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: 0.62rem 1.15rem; letter-spacing: -0.005em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:focus-visible { box-shadow: var(--ring); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 0.35rem 0.7rem; border-radius: 9px; font-size: 0.85rem; }
.btn-cta { background: linear-gradient(135deg, var(--orange), #ff8a2b); color: #fff; border: 0; box-shadow: 0 10px 22px -8px rgba(255, 107, 0, 0.55); }
.btn-cta:hover, .btn-cta:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(255, 107, 0, 0.65); background: linear-gradient(135deg, var(--orange-600), var(--orange)); }
.btn-navy { background: var(--navy-900); color: #fff; border: 0; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-emerald { background: var(--emerald); color: #04230f; border: 0; }
.btn-emerald:hover { background: var(--emerald-700); color: #fff; }
.btn-outline { background: var(--card); border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--navy-700); color:var(--ink); background: var(--card); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-success { background: rgba(0, 210, 106, 0.12); color: #047a3e; }
.pill-warning { background: rgba(245, 165, 36, 0.16); color: #9a5b00; }
.pill-danger  { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.pill-info    { background: rgba(36, 83, 216, 0.10); color: #1d43b0; }
.pill-muted   { background: #eef2f7; color: #475569; }
.pill-muted::before { display: none; }

/* ---------- Cards ---------- */
.card-x { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.5rem; }
@media (min-width: 768px) { .card-pad { padding: 2rem; } }

/* ---------- Navbar ---------- */
.site-nav { position: sticky; top: 0; z-index: 1030; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; background: rgba(248, 250, 252, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-nav.scrolled { background: rgba(255, 255, 255, 0.86); border-bottom-color: var(--border); box-shadow: 0 6px 24px -14px rgba(11, 25, 44, 0.25); }
.site-nav .navbar { padding: .65rem 0; }
.brand-logo { height: 44px; width: auto; }
@media (max-width: 575px) { .brand-logo { height: 36px; } }
.site-nav .nav-link { color: var(--text-2); font-weight: 600; font-size: .93rem; padding: .5rem .8rem !important; border-radius: 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color:var(--ink); background: rgba(30, 62, 98, 0.06); }
.lang-toggle { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--border); }
.lang-toggle a { padding: .28rem .72rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--text-soft); }
.lang-toggle a.on { background: var(--card); color:var(--ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: var(--ring); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
@media (max-width: 991px) { .hero { padding: 2.5rem 0 3.5rem; } }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .84rem; font-weight: 700; color: var(--ink); }
.hero-badge .dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 210, 106, .15); display: grid; place-items: center; }
.hero-badge .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(0, 210, 106, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 210, 106, .55); } 70% { box-shadow: 0 0 0 10px rgba(0, 210, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0); } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; color:var(--ink); margin: 1.3rem 0 1rem; }
.hero h1 .accent { background: linear-gradient(120deg, var(--orange) 0%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: .9rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-500); }
.hero .tagline { font-size: 1.15rem; font-style: italic; color: var(--text-2); }
.hero .lead { color: var(--text-soft); font-size: 1.05rem; max-width: 560px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; max-width: 580px; }
@media (min-width: 576px) { .stat-row { grid-template-columns: repeat(6, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: .8rem .5rem; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; color:var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
.stat > span { font-size: .7rem; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.stat.lang b { font-size: .95rem; padding: .2rem 0; }

/* Hero illustration: mini exam window */
.hero-art { position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.blob.b1 { width: 340px; height: 340px; background: var(--blue-600); right: -120px; top: -60px; opacity: .9; }
.blob.b2 { width: 220px; height: 220px; background: var(--teal-500); right: -40px; top: 140px; opacity: .95; }
.blob.b3 { width: 160px; height: 160px; background: var(--gold); left: 10px; bottom: -40px; opacity: .9; }
.mock { position: relative; z-index: 1; background: var(--navy-900); border-radius: 22px; padding: 1rem; box-shadow: var(--shadow-lg); color: #e2e8f0; max-width: 470px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .08); transform: rotate(-1.2deg); }
.mock-top { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .9rem; }
.mock-top img { height: 30px; border-radius: 50%; background: var(--card); }
.mock-dots i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: #334155; }
.mock-ring { width: 54px; height: 54px; position: relative; }
.mock-ring svg { transform: rotate(-90deg); }
.mock-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; line-height: 1; text-align: center; }
.mock-q { background: #13294a; border-radius: 14px; padding: 1rem; }
.mock-q p { font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.mock-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); margin-bottom: .45rem; font-size: .87rem; background: rgba(255, 255, 255, .03); }
.mock-opt i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 800; background: rgba(255, 255, 255, .08); }
.mock-opt.on { border-color: var(--emerald); background: rgba(0, 210, 106, .1); color: #fff; }
.mock-opt.on i { background: var(--emerald); color: #03210f; }
.mock-palette { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: .9rem; }
.mock-palette b { aspect-ratio: 1; border-radius: 6px; background: #334155; }
.mock-palette b.a { background: var(--emerald); }
.mock-palette b.r { background: var(--purple); }
.mock-palette b.n { background: var(--red); }
.mock-legend { display: flex; gap: 1rem; font-size: .72rem; margin-top: .7rem; color: #94a3b8; }
.mock-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }
.float-chip { position: absolute; z-index: 2; background: var(--card); color:var(--ink); border-radius: 14px; padding: .6rem .85rem; box-shadow: var(--shadow-lg); font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: .55rem; animation: bob 5s ease-in-out infinite; }
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; }
.float-chip.c1 { left: -10px; top: 40px; }
.float-chip.c2 { right: -6px; bottom: 30px; animation-delay: 1.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 991px) { .float-chip.c1 { left: 0; } .float-chip.c2 { right: 0; } .mock { margin: 0 auto; } }

/* ---------- Motto strip ---------- */
.strip { background: var(--gold); color:var(--ink); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; padding: 1rem 0; text-align: center; font-size: clamp(.85rem, 2vw, 1.15rem); }
.strip span { margin: 0 .9rem; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
@media (max-width: 767px) { .section { padding: 3.5rem 0; } }
.section-dark { background: var(--navy-900); color: #cbd5e1; position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .6rem; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; color:var(--ink); line-height: 1.15; }
.section-dark h2 { color: #fff; }
.section .lead-soft { color: var(--text-soft); font-size: 1.05rem; max-width: 680px; }
.section-dark .lead-soft { color: #94a3b8; }
.underline { width: 64px; height: 4px; border-radius: 4px; background: var(--teal-500); margin: 1rem 0 1.5rem; }

/* Snapshot table */
.snapshot { overflow: hidden; }
.snapshot-head { background: var(--navy-900); color: #fff; padding: 1rem 1.4rem; font-weight: 800; letter-spacing: .02em; }
.snapshot-row { display: grid; grid-template-columns: 38% 62%; padding: .78rem 1.4rem; border-bottom: 1px solid var(--surface-2); font-size: .95rem; }
.snapshot-row:nth-child(even) { background: var(--surface-3); }
.snapshot-row:last-child { border-bottom: 0; }
.snapshot-row dt { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); align-self: center; }
.snapshot-row dd { margin: 0; font-weight: 700; color:var(--ink); }
.callout { border-left: 4px solid var(--teal-500); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); }

/* Exam metric tiles */
.tile { border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; color: #fff; height: 100%; }
.tile b { display: block; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.tile span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.tile.t1 { background: var(--navy-900); }
.tile.t2 { background: var(--blue-600); }
.tile.t3 { background: var(--teal-500); }
.tile.t4 { background: var(--gold); color:var(--ink); }
.timeplan { display: flex; border-radius: 12px; overflow: hidden; font-weight: 800; font-size: .85rem; color: #fff; }
.timeplan div { padding: .85rem 1rem; text-align: center; white-space: nowrap; }
.timeplan .p1 { flex: 45; background: var(--blue-600); }
.timeplan .p2 { flex: 10; background: var(--teal-500); }
.timeplan .p3 { flex: 5; background: var(--gold); color:var(--ink); }
@media (max-width: 575px) { .timeplan { flex-direction: column; } .timeplan div { flex: auto !important; } }
.tbc { background: var(--navy-900); border-radius: var(--radius); padding: 1.6rem; color: #cbd5e1; }
.tbc h3 { color: var(--gold); font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tbc-item { display: flex; gap: .7rem; align-items: flex-start; }
.tbc-item::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); margin-top: .45rem; }
.tbc-item b { color: #fff; display: block; font-size: .92rem; }
.tbc-item small { color: #94a3b8; }
.tbc-item small.set { color: #e2e8f0; font-weight: 600; }

/* Syllabus tabs */
.syl-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .syl-tabs { grid-template-columns: repeat(4, 1fr); } }
.syl-tab { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1rem; text-align: left; transition: all .18s ease; box-shadow: var(--shadow); width: 100%; }
.syl-tab:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.syl-tab .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .7rem; }
.syl-tab .ic svg { width: 24px; height: 24px; }
.syl-tab b { display: block; color:var(--ink); font-weight: 800; }
.syl-tab small { color: var(--text-soft); font-weight: 600; }
.syl-tab.active { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(30, 62, 98, .12), var(--shadow); }
/* Class-wise syllabus tabs (one per class) + tentative dates */
.syl-tabs.syl-classes { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 768px) { .syl-tabs.syl-classes { grid-template-columns: repeat(6, 1fr); } }
.syl-classes .syl-tab { padding: .7rem .8rem; text-align: center; }
.syl-classes .syl-tab b { font-size: .95rem; }
.syl-classes .syl-tab small { font-size: .78rem; }
.syl-date { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; background: rgba(36, 83, 216, .08); color: var(--blue-600); border-radius: 999px; padding: .35rem .85rem; font-weight: 600; font-size: .88rem; }
.syl-date b { color: var(--ink); }
.tdate-list { list-style: none; padding: 0; margin: 0; }
.tdate-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); }
.tdate-list li:last-child { border-bottom: 0; }
.tdate-list li span { color: var(--text-soft); font-weight: 600; }
.tdate-list li b { color: var(--ink); text-align: right; }
.syl-panel { display: none; }
.syl-panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; font-weight: 700; font-size: .86rem; margin: 0 .4rem .5rem 0; }
.chip.c-blue { background: var(--blue-600); color: #fff; }
.chip.c-teal { background: var(--teal-500); color: #fff; }
.chip.c-gold { background: var(--gold); color:var(--ink); }
.ic-blue { background: rgba(36, 83, 216, .1); color: var(--blue-600); }
.ic-teal { background: rgba(20, 184, 166, .12); color: #0d8f81; }
.ic-gold { background: rgba(245, 165, 36, .16); color: #b26b00; }
.ic-orange { background: rgba(255, 107, 0, .12); color: var(--orange-600); }

/* Steps */
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.3rem 1.4rem; height: 100%; box-shadow: var(--shadow); overflow: hidden; }
.step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue-600); }
.step.alt::before { background: var(--teal-500); }
.step .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.step h3 { font-size: 1.05rem; font-weight: 800; color:var(--ink); margin-bottom: .35rem; }
.step p { color: var(--text-soft); margin: 0; font-size: .93rem; }
.keep { background: var(--navy-900); border-radius: var(--radius); padding: 1.4rem 1.6rem; color: #fff; }
.keep h3 { color: var(--gold); font-size: .9rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.keep li { list-style: none; display: flex; gap: .6rem; align-items: center; font-weight: 600; font-size: .92rem; }
.keep li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); flex: none; }

/* Guide lists */
.list-card { border-radius: var(--radius); overflow: hidden; height: 100%; background: var(--surface-3); border: 1px solid var(--border); }
.list-card .hd { padding: 1rem 1.4rem; color: #fff; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .9rem; }
.list-card ul { padding: 1.2rem 1.4rem .6rem; margin: 0; }
.list-card li { list-style: none; position: relative; padding-left: 1.4rem; margin-bottom: .8rem; color: var(--text-2); font-size: .93rem; }
.list-card li::before { content: ''; position: absolute; left: 0; top: .5rem; width: 8px; height: 8px; border-radius: 2px; background: currentColor; color: var(--blue-600); }
.list-card.teal li::before { color: var(--teal-500); }
.list-card.red li::before { color: #e11d48; }
.result-banner { background: var(--gold); border-radius: var(--radius); padding: 1.4rem 1.6rem; display: flex; gap: 1.2rem; align-items: center; color:var(--ink); }
.result-banner .ic { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); font-size: 1.6rem; }

/* Prep tips */
.tip { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; height: 100%; box-shadow: var(--shadow); }
.tip .n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--blue-600); }
.tip:nth-child(even) .n { background: var(--teal-500); }
.tip h3 { font-size: 1rem; font-weight: 800; color:var(--ink); margin-bottom: .2rem; }
.tip p { margin: 0; font-size: .9rem; color: var(--text-soft); }
.note-card { background: var(--gold); border-radius: var(--radius); padding: 1.5rem 1.7rem; color:var(--ink); }
.note-card h3 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* FAQ accordion */
.faq .accordion-item { border: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom: .75rem; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.faq .accordion-button { font-weight: 700; color:var(--ink); padding: 1.1rem 1.3rem; font-size: 1rem; background: var(--card); }
.faq .accordion-button:not(.collapsed) { background: var(--surface-3); color:var(--ink); box-shadow: inset 4px 0 0 var(--blue-600); }
.faq .accordion-button:focus { box-shadow: var(--ring); }
.faq .accordion-body { color: var(--text-2); padding: .4rem 1.3rem 1.2rem; }
.faq h3 { margin: 0; font-size: inherit; font-weight: inherit; }

/* CTA + footer */
.cta-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #cbd5e1; padding: 2.5rem; }
.cta-card h2 { color: #fff; }
.cta-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--teal-500); opacity: .25; }
.contact-line { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-line .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--gold); flex: none; font-size: 1.1rem; }
.contact-line small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; font-weight: 700; }
.contact-line a, .contact-line span { color: #fff; font-weight: 600; }
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-logo { background: #ffffff; border-radius: 14px; padding: .55rem .9rem; display: inline-block; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.footer-logo img { height: 46px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .8rem; }
.motto { color: var(--blue-600); font-weight: 800; letter-spacing: .1em; }

/* ---------- Forms ---------- */
.form-label { font-weight: 700; font-size: .86rem; color: var(--text-2); margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 12px; border: 1px solid var(--border-strong); padding: .7rem .9rem; font-size: .96rem; background-color: var(--card); }
.form-control:focus, .form-select:focus { border-color: var(--blue-600); box-shadow: var(--ring); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--red); }
.form-hint { font-size: .8rem; color: var(--text-soft); margin-top: .3rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-soft); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.5rem; }
.option-card { position: relative; display: block; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; }
.option-card .box { border: 1.5px solid var(--border-strong); border-radius: 12px; padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; font-weight: 700; transition: all .15s ease; background: var(--card); }
.option-card .box i { font-size: 1.2rem; color: var(--text-soft); }
.option-card input:checked + .box { border-color: var(--blue-600); background: rgba(36, 83, 216, .05); box-shadow: 0 0 0 3px rgba(36, 83, 216, .1); }
.option-card input:checked + .box i { color: var(--blue-600); }
.option-card input:focus-visible + .box { box-shadow: var(--ring); }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (min-width: 576px) { .class-grid { grid-template-columns: repeat(6, 1fr); } }
.class-grid .box { justify-content: center; padding: .65rem .3rem; font-size: .95rem; }

/* Registration stepper */
.reg-shell { max-width: 980px; margin: 0 auto; }
.stepper { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.stepper .s { flex: 1; display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-weight: 700; font-size: .85rem; color: var(--text-soft); }
.stepper .s i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--surface-2); flex: none; font-size: .8rem; }
.stepper .s.on { color:var(--ink); border-color: var(--navy-700); }
.stepper .s.on i { background: var(--navy-900); color: #fff; }
.stepper .s.done i { background: var(--emerald); color: #fff; }
@media (max-width: 575px) { .stepper .s span { display: none; } .stepper .s { justify-content: center; } }
.reg-step { display: none; }
.reg-step.active { display: block; animation: fadeUp .3s ease; }
.photo-drop { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 1.2rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; background: var(--surface-3); }
.photo-drop:hover { border-color: var(--blue-600); }
.photo-drop .prev { width: 76px; height: 92px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--text-soft); font-size: 1.6rem; }
.photo-drop .prev img { width: 100%; height: 100%; object-fit: cover; }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
@media (min-width: 768px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.review-grid div { padding: .65rem .95rem; border-bottom: 1px solid var(--surface-2); font-size: .9rem; }
.review-grid small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.review-grid b { color:var(--ink); word-break: break-word; }
.fee-box { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 107, 0, .08), rgba(245, 165, 36, .1)); border: 1px solid rgba(255, 107, 0, .2); }
.fee-box b { font-size: 1.6rem; color:var(--ink); }

/* Auth & page shells */
.page-hero { padding: 2.5rem 0 1rem; }
.page-hero h1 { font-weight: 800; letter-spacing: -0.03em; color:var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.auth-card { max-width: 440px; margin: 0 auto; }

/* ---------- Student dashboard ---------- */
.dash-head { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #cbd5e1; border-radius: var(--radius-lg); padding: 1.8rem; position: relative; overflow: hidden; }
.dash-head::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--blue-600); opacity: .45; }
.dash-head h1 { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.avatar { width: 64px; height: 76px; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.3rem; flex: none; border: 2px solid rgba(255, 255, 255, .2); }
.meta-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .78rem; font-weight: 700; color: #e2e8f0; margin: .2rem .3rem 0 0; }
.action-card { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); height: 100%; color: var(--text); transition: transform .15s ease, border-color .15s ease; }
a.action-card:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--text); }
.action-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.action-card b { display: block; color:var(--ink); }
.action-card small { color: var(--text-soft); }
.action-card.disabled { opacity: .55; pointer-events: none; }
.timeline-x { position: relative; padding-left: 1.6rem; }
.timeline-x::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--surface-2); }
.timeline-x .t { position: relative; margin-bottom: 1.1rem; }
.timeline-x .t::before { content: ''; position: absolute; left: -1.6rem; top: .25rem; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--border-strong); }
.timeline-x .t.ok::before { border-color: var(--emerald); background: var(--emerald); box-shadow: inset 0 0 0 3px #fff; }
.timeline-x .t.now::before { border-color: var(--orange); }
.timeline-x .t b { display: block; color:var(--ink); font-size: .95rem; }
.timeline-x .t small { color: var(--text-soft); }
.score-ring { width: 150px; height: 150px; position: relative; margin: 0 auto; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-ring .v b { font-size: 2.1rem; font-weight: 800; color:var(--ink); line-height: 1; display: block; }
.score-ring .v small { color: var(--text-soft); font-weight: 700; }
.kpi { text-align: center; padding: .9rem .5rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.kpi b { display: block; font-size: 1.4rem; font-weight: 800; color:var(--ink); line-height: 1.1; }
.kpi small { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--text-soft); letter-spacing: .05em; }

/* Instructions */
.rules li { margin-bottom: .6rem; color: var(--text-2); }
.legend-row { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; }
.legend-row span { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.legend-dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 800; position: relative; }
.legend-dot.nv { background: #e2e8f0; color: #475569; }
.legend-dot.na { background: var(--red); }
.legend-dot.an { background: var(--emerald); }
.legend-dot.mr { background: var(--purple); }
.legend-dot.am { background: var(--purple); }
.legend-dot.am::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--emerald); border: 2px solid #fff; }

/* Merit table */
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table-x th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); font-weight: 800; padding: .75rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-3); text-align: left; }
.table-x td { padding: .75rem .9rem; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.table-x tr:last-child td { border-bottom: 0; }
.rank-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color:var(--ink); }
.rank-badge.r1 { background: linear-gradient(135deg, #fde68a, #f5a524); }
.rank-badge.r2 { background: linear-gradient(135deg, #f1f5f9, #cbd5e1); }
.rank-badge.r3 { background: linear-gradient(135deg, #fed7aa, #fb923c); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .hero-badge .dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* SweetAlert2 brand */
.swal2-popup { border-radius: 18px !important; font-family: var(--font) !important; }
.swal2-styled.swal2-confirm { background: var(--navy-900) !important; border-radius: 10px !important; }
.swal2-styled.swal2-cancel { border-radius: 10px !important; }
