/* ═══════════════════════════════════════════════
   ABC COACHING CENTRE — style.css
   Complete Redesign with all features — LIGHT THEME
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg:      #f5f6fa;
  --surf:    #ffffff;
  --surf2:   #f0f2f8;
  --card:    #ffffff;
  --border:  #e2e6f0;
  --gold:    #d4920a;
  --gold2:   #b87a00;
  --accent:  #c9880a;
  --green:   #16a34a;
  --red:     #dc2626;
  --blue:    #2563eb;
  --muted:   #6b7280;
  --white:   #111827;
  --radius:  14px;
}

html, body {
  height: 100%; overflow: hidden;
  background: #e8eaf0;
  font-family: 'Hind', sans-serif;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
}

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 35% at 10% 10%, rgba(212,146,10,.06), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 90%, rgba(37,99,235,.04), transparent 55%);
}

::-webkit-scrollbar { display: none; }
button { font-family: 'Hind', sans-serif; cursor: pointer; border: none; }
input, select { font-family: 'Hind', sans-serif; outline: none; }
.serif { font-family: 'Baloo 2', cursive; }

/* ── APP SHELL ──────────────────────────────── */
#app {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #e8eaf0;
}

.screen {
  width: 390px; height: 844px;
  background: #f5f6fa;
  border-radius: 46px; overflow: hidden;
  box-shadow: 0 0 0 10px #d0d4e0, 0 0 0 12px #c8ccd8, 0 40px 100px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  position: absolute;
  transition: opacity .25s, transform .25s;
}

@media (max-height: 900px) { .screen { height: 100vh; border-radius: 0; box-shadow: none; width: 100%; max-width: 430px; } }
@media (max-width: 430px)  { .screen { width: 100%; border-radius: 0; box-shadow: none; height: 100svh; } }

.screen.hidden { opacity: 0; pointer-events: none; transform: translateY(16px); }
.screen.active  { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ── HOME HEADER ────────────────────────────── */
.home-hdr {
  background: linear-gradient(135deg, #1e3a6e, #1a3060);
  padding: 14px 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.hdr-left { display: flex; align-items: center; gap: 10px; }

.logo-box {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(255,215,0,.3);
}

.hdr-title { font-family: 'Baloo 2', cursive; font-size: 15px; font-weight: 800; color: #111827; }
.hdr-sub   { font-size: 9px; color: var(--muted); font-weight: 600; }

.admin-gear {
  background: rgba(255,255,255,.07);
  border-radius: 10px; padding: 8px 10px;
  font-size: 16px; color: var(--muted);
  transition: background .2s;
}
.admin-gear:active { background: rgba(255,255,255,.14); }

/* ── HOME BODY ──────────────────────────────── */
.home-body { flex: 1; padding: 12px; }

/* ── ADMISSION BANNER ───────────────────────── */
.admission-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #7c3a00, #5a2800, #7c3a00);
  border-radius: 16px;
  border: 2px solid rgba(255,215,0,.3);
  padding: 14px 12px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: transform .1s, border-color .2s;
  box-shadow: 0 8px 30px rgba(255,215,0,.1);
}
.admission-banner:active { transform: scale(.99); }

.ab-glow {
  position: absolute; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,215,0,.12), transparent 70%);
  top: -50px; right: -30px; pointer-events: none;
}

.ab-left { flex: 1; position: relative; z-index: 1; }

.ab-badge {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 99px;
  margin-bottom: 5px;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.5} }

.ab-title { font-family: 'Baloo 2', cursive; font-size: 16px; font-weight: 900; color: var(--gold); margin-bottom: 3px; }
.ab-sub   { font-size: 10px; color: rgba(255,255,255,.5); margin-bottom: 7px; line-height: 1.5; }

.ab-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.ab-chip  { font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.ab-chip.gold  { background: rgba(255,215,0,.15); color: var(--gold); border: 1px solid rgba(255,215,0,.3); }
.ab-chip.green { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }

.ab-arrow { font-size: 22px; color: var(--gold); position: relative; z-index: 1; }

/* ── FILTERS ────────────────────────────────── */
.filter-section { margin-bottom: 10px; }
.filter-label   { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }

.class-filter-row, .subj-filter-row {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px;
}

.cf-btn {
  padding: 6px 13px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: #f0f2f8; color: var(--muted);
  border: 1.5px solid var(--border);
  white-space: nowrap; flex-shrink: 0;
  cursor: pointer; transition: all .15s;
}
.cf-btn.active { background: var(--gold); color: #111; border-color: var(--gold); }

.sf-btn {
  padding: 5px 11px; border-radius: 99px;
  font-size: 10px; font-weight: 600;
  background: #ffffff; color: var(--muted);
  border: 1.5px solid var(--border);
  white-space: nowrap; flex-shrink: 0;
  cursor: pointer; transition: all .15s;
}
.sf-btn.active { background: #f0f2f8; color: #111827; border-color: rgba(255,255,255,.3); }

/* ── QUIZ COUNT ─────────────────────────────── */
.quiz-count-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.qc-label { font-size: 12px; font-weight: 700; color: #111827; }
.qc-badge {
  background: #f0f2f8; color: var(--muted);
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 99px;
  border: 1px solid var(--border);
}

/* ── EMPTY STATE ────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 40px 24px; text-align: center;
}
.empty-icon  { font-size: 48px; }
.empty-title { font-size: 15px; font-weight: 700; color: #111827; }
.empty-sub   { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── QUIZ CARD ──────────────────────────────── */
.quiz-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 13px;
  margin-bottom: 9px;
  display: flex; gap: 11px; align-items: center;
  cursor: pointer;
  transition: transform .1s, border-color .2s;
}
.quiz-card:active { transform: scale(.99); }
.quiz-card:hover  { border-color: rgba(255,215,0,.3); }

.qcard-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,215,0,.12), rgba(255,179,0,.06));
  border: 1px solid rgba(255,215,0,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.qcard-body { flex: 1; min-width: 0; }
.qcard-name { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard-meta { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.qcard-chips { display: flex; gap: 4px; flex-wrap: wrap; }

.chip { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 9px; font-weight: 700; }
.chip-class { background: rgba(139,92,246,.15); color: #a78bfa; border: 1px solid rgba(139,92,246,.25); }
.chip-subj  { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.chip-board { background: rgba(255,179,0,.12); color: var(--gold2); border: 1px solid rgba(255,179,0,.25); }
.chip-qs    { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }

.qcard-right { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.qcard-arrow { font-size: 18px; color: var(--muted); }
.qcard-del {
  background: rgba(239,68,68,.1); border-radius: 8px;
  padding: 5px 7px; font-size: 13px;
  border: 1px solid rgba(239,68,68,.2);
  transition: transform .1s;
}
.qcard-del:active { transform: scale(.93); }

/* ── UPLOAD SHEET ───────────────────────────── */
.overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: flex-end;
  z-index: 100; border-radius: inherit;
  transition: opacity .25s;
}
.overlay.hidden { opacity: 0; pointer-events: none; }

.bottom-sheet {
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 14px 18px 28px;
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border);
}

.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 99px; margin: 0 auto 4px; }
.sheet-title  { font-size: 16px; font-weight: 800; color: #111827; font-family: 'Baloo 2', cursive; }
.sheet-sub    { font-size: 11px; color: var(--muted); }

.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #ffffff;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--gold); background: rgba(255,215,0,.04); }
.drop-icon { font-size: 32px; margin-bottom: 6px; }
.drop-text { font-size: 13px; font-weight: 700; color: #111827; }
.drop-hint { font-size: 11px; color: var(--muted); margin-top: 3px; }

.upload-error {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px; padding: 9px 12px;
  font-size: 12px; color: #f87171; font-weight: 600;
}

/* ── TOP BAR DARK ───────────────────────────── */
.top-bar-dark {
  background: linear-gradient(135deg, #1e3a6e, #1a3060);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tbar-title { font-size: 13px; font-weight: 700; color: var(--gold); flex: 1; text-align: center; font-family: 'Baloo 2', cursive; }
.back-btn {
  background: rgba(255,255,255,.07); border-radius: 10px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6);
  width: 60px;
}

/* ── ADMISSION HERO ─────────────────────────── */
.admission-hero {
  background: linear-gradient(160deg, #1e3a6e, #1a3060, #1e3a6e);
  padding: 24px 18px 22px; text-align: center;
  border-bottom: 1px solid rgba(255,215,0,.15);
}
.ah-icon  { font-size: 44px; margin-bottom: 8px; }
.ah-title { font-family: 'Baloo 2', cursive; font-size: 20px; font-weight: 900; color: var(--gold); margin-bottom: 3px; }
.ah-sub   { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.ah-desc  { font-size: 11px; color: var(--muted); margin-bottom: 12px; }

.scholarship-chips { display: flex; flex-direction: column; gap: 5px; max-width: 280px; margin: 0 auto; }
.sch-chip {
  padding: 5px 12px; border-radius: 99px;
  font-size: 10px; font-weight: 700; text-align: center;
}
.sch-chip.c100 { background: rgba(255,215,0,.15); color: var(--gold); border: 1px solid rgba(255,215,0,.3); }
.sch-chip.c75  { background: rgba(255,215,0,.1); color: #fbbf24; border: 1px solid rgba(255,215,0,.2); }
.sch-chip.c50  { background: rgba(192,192,192,.1); color: #d1d5db; border: 1px solid rgba(192,192,192,.2); }
.sch-chip.c30  { background: rgba(205,127,50,.1); color: #d97706; border: 1px solid rgba(205,127,50,.2); }

/* ── ALREADY ATTEMPTED ──────────────────────── */
.already-box {
  margin: 16px; background: #ffffff;
  border-radius: 16px; border: 2px solid rgba(239,68,68,.3);
  padding: 24px; text-align: center;
}
.already-icon  { font-size: 44px; margin-bottom: 8px; }
.already-title { font-family: 'Baloo 2', cursive; font-size: 18px; font-weight: 800; color: #f87171; margin-bottom: 8px; }
.already-score { font-size: 28px; font-weight: 900; color: var(--gold); margin-bottom: 4px; }
.already-date  { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.already-sub   { font-size: 11px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }

/* ── ADMISSION FORM ─────────────────────────── */
.admission-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.aform-field    { display: flex; flex-direction: column; gap: 6px; }
.afield-label   { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

.afield-input {
  width: 100%; background: #f0f2f8;
  border: 1.5px solid var(--border); border-radius: 11px;
  padding: 11px 13px; font-size: 14px; color: #111827;
  transition: border-color .2s;
}
.afield-input:focus { border-color: var(--gold); }

.class-opts-row { display: flex; gap: 7px; flex-wrap: wrap; }
.copt {
  padding: 9px 16px; border-radius: 11px;
  font-size: 13px; font-weight: 700;
  background: #f0f2f8; color: var(--muted);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all .15s;
}
.copt.selected { background: var(--gold); color: #111; border-color: var(--gold); }
.copt:active   { transform: scale(.96); }

.adm-error {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px; padding: 9px 12px;
  font-size: 12px; color: #f87171; font-weight: 600;
}
.adm-note { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.6; padding: 0 8px; }

/* ── INFO SCREEN ────────────────────────────── */
.info-hero {
  background: linear-gradient(160deg, #1e3a6e, #1a3060);
  padding: 24px 18px 26px; text-align: center;
}
.info-icon  { font-size: 46px; margin-bottom: 10px; }
.info-title { font-size: 20px; color: #111827; margin-bottom: 6px; font-family: 'Baloo 2', cursive; font-weight: 800; }
.info-meta  { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.info-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.info-body  { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-stat { background: #ffffff; border-radius: 12px; border: 1px solid var(--border); padding: 12px; text-align: center; }
.info-stat-val { font-size: 20px; font-weight: 800; color: #111827; font-family: 'Baloo 2', cursive; }
.info-stat-lbl { font-size: 9px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.rules-box   { background: rgba(255,215,0,.05); border: 1px solid rgba(255,215,0,.2); border-radius: var(--radius); padding: 13px; }
.rules-title { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.rule-row    { display: flex; gap: 8px; font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 6px; align-items: flex-start; line-height: 1.5; }

/* ── NAME SCREEN ────────────────────────────── */
.name-hero { background: linear-gradient(160deg, #1e3a6e, #1a3060); padding: 28px 18px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.name-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.name-field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.field-input { width: 100%; background: #f0f2f8; border: 1.5px solid var(--border); border-radius: 11px; padding: 11px 13px; font-size: 14px; color: #111827; transition: border-color .2s; }
.field-input:focus { border-color: var(--gold); }
.class-options { display: flex; gap: 8px; flex-wrap: wrap; }
.class-opt { flex: 1; min-width: 50px; padding: 10px 8px; background: #f0f2f8; border: 1.5px solid var(--border); border-radius: 11px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .15s; }
.class-opt.selected { background: var(--gold); border-color: var(--gold); color: #111; }
.class-opt:active { transform: scale(.96); }
.name-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); border-radius: 10px; padding: 9px 12px; font-size: 12px; color: #f87171; font-weight: 600; }

/* ── QUIZ HEADER ────────────────────────────── */
.quiz-hdr { background: linear-gradient(135deg, #1e3a6e, #1a3060); padding: 12px 16px 13px; flex-shrink: 0; border-bottom: 1px solid var(--border); }
.qhdr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qhdr-name { font-size: 12px; font-weight: 700; color: var(--gold); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; font-family: 'Baloo 2', cursive; }
.timer-pill { background: rgba(239,68,68,.2); border: 1px solid rgba(239,68,68,.4); color: #f87171; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; }
.timer-pill.urgent { background: var(--red); color: #fff; animation: pulse .4s ease-in-out infinite alternate; }
@keyframes pulse { from{opacity:1} to{opacity:.55} }

.progress-row { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.progress-bar-wrap { flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; }
.progress-bar-fill { height: 4px; background: var(--gold); border-radius: 99px; transition: width .3s; }
.progress-label { font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

.q-timer-row { display: flex; align-items: center; gap: 8px; }
.qtimer-label { font-size: 9px; color: rgba(255,255,255,.3); white-space: nowrap; flex-shrink: 0; }
.qtimer-bar-wrap { flex: 1; height: 4px; background: rgba(255,255,255,.06); border-radius: 99px; }
.qtimer-bar-fill { height: 4px; border-radius: 99px; transition: width 1s linear, background .3s; }
.qtimer-val { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); white-space: nowrap; flex-shrink: 0; width: 32px; text-align: right; }

/* ── QUIZ BODY ──────────────────────────────── */
.quiz-body { flex: 1; padding: 11px; background: #f5f6fa; display: flex; flex-direction: column; gap: 8px; }
.warn-strip { border-radius: 9px; padding: 7px 11px; font-size: 10px; font-weight: 600; }
.warn-strip.red { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.22); color: #f87171; }

.q-card { background: linear-gradient(135deg, #1e3a6e, #162d58); border-radius: 13px; padding: 14px 16px; border: 1px solid rgba(255,215,0,.15); position: relative; overflow: hidden; }
.q-num  { font-size: 9px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.q-text { font-size: 15px; font-weight: 600; color: #111827; line-height: 1.6; }
.q-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: .04; font-size: 13px; font-weight: 700; color: var(--gold); transform: rotate(-20deg); letter-spacing: .08em; white-space: nowrap; }

.opt-btn { width: 100%; padding: 11px 14px; background: #ffffff; border: 1.5px solid var(--border); border-radius: 12px; text-align: left; font-size: 13px; font-weight: 500; color: #111827; display: flex; align-items: center; gap: 10px; margin-bottom: 7px; transition: all .15s; -webkit-user-select: none; user-select: none; }
.opt-btn:active { transform: scale(.99); }
.opt-btn.selected { background: rgba(255,215,0,.1); border-color: var(--gold); color: var(--gold); font-weight: 700; }
.opt-lbl { width: 26px; height: 26px; border-radius: 50%; background: #f0f2f8; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--muted); }
.opt-btn.selected .opt-lbl { background: var(--gold); color: #111; }

.skip-warn { background: rgba(255,215,0,.07); border: 1px solid rgba(255,215,0,.2); border-radius: 9px; padding: 7px 11px; font-size: 10px; font-weight: 600; color: rgba(255,215,0,.7); }
.skip-warn.urgent { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #f87171; animation: pulse .6s ease-in-out infinite alternate; }

.nav-btns { display: flex; flex-direction: column; gap: 7px; }
.btn-next   { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #111; border-radius: var(--radius); font-weight: 800; font-size: 14px; font-family: 'Baloo 2', cursive; box-shadow: 0 5px 18px rgba(255,215,0,.25); transition: transform .1s; }
.btn-next:active { transform: scale(.98); }
.btn-submit { width: 100%; padding: 13px; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border-radius: var(--radius); font-weight: 800; font-size: 14px; font-family: 'Baloo 2', cursive; box-shadow: 0 5px 18px rgba(34,197,94,.25); transition: transform .1s; }
.btn-submit:active { transform: scale(.98); }

.hidden { display: none !important; }

.palette-section { margin-top: 4px; }
.palette-label   { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; }
.palette { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.pdot { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; cursor: pointer; transition: transform .1s; }
.pdot:active { transform: scale(.93); }
.pdot.done { background: var(--green); color: #fff; }
.pdot.curr { background: var(--gold); color: #111; }
.pdot.todo { background: #f0f2f8; color: var(--muted); border: 1.5px solid var(--border); }
.palette-legend { display: flex; gap: 12px; }
.palette-legend span { font-size: 9px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.dot { width: 11px; height: 11px; border-radius: 3px; }
.dot.green { background: var(--green); }
.dot.gold  { background: var(--gold); }
.dot.grey  { background: #f0f2f8; border: 1px solid var(--border); }

/* ── RESULT ─────────────────────────────────── */
.result-hero {
  background: linear-gradient(160deg, #1e3a6e, #1a3060, #1e3a6e);
  padding: 22px 18px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.result-medal        { font-size: 52px; }
.result-title        { font-size: 22px; color: #111827; font-family: 'Baloo 2', cursive; font-weight: 800; }
.result-student-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); padding: 4px 13px; border-radius: 99px; }
.result-score        { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; font-family: 'Baloo 2', cursive; }
.result-pct          { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.45); }
.result-msg          { font-size: 12px; color: rgba(255,255,255,.35); }

.scholarship-box {
  background: linear-gradient(135deg, rgba(255,215,0,.15), rgba(255,179,0,.08));
  border: 2px solid rgba(255,215,0,.4);
  border-radius: 14px; padding: 12px 20px; text-align: center;
  margin-top: 4px; width: 100%;
}
.sch-box-title { font-family: 'Baloo 2', cursive; font-size: 18px; font-weight: 900; color: var(--gold); }
.sch-box-sub   { font-size: 11px; color: rgba(255,215,0,.7); margin-top: 2px; }

.result-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.res-stat { background: #ffffff; border-radius: 12px; border: 1px solid var(--border); padding: 10px 8px; text-align: center; }
.res-stat-val { font-size: 20px; font-weight: 800; font-family: 'Baloo 2', cursive; }
.res-stat-lbl { font-size: 8px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.res-stat.correct .res-stat-val { color: var(--green); }
.res-stat.wrong   .res-stat-val { color: var(--red); }
.res-stat.skip    .res-stat-val { color: var(--muted); }

.answer-review-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.ans-row  { background: #ffffff; border-radius: 11px; border: 1px solid var(--border); padding: 11px 13px; margin-bottom: 8px; }
.ans-q    { font-size: 11px; font-weight: 600; color: #111827; margin-bottom: 6px; line-height: 1.5; }
.ans-opts { display: flex; flex-direction: column; gap: 4px; }
.ans-opt  { font-size: 10px; padding: 5px 9px; border-radius: 7px; font-weight: 500; color: var(--muted); }
.ans-opt.correct-ans  { background: rgba(34,197,94,.12); color: #4ade80; font-weight: 700; }
.ans-opt.user-correct { background: rgba(34,197,94,.15); color: #4ade80; font-weight: 700; border: 1.5px solid var(--green); }
.ans-opt.user-wrong   { background: rgba(239,68,68,.12); color: #f87171; font-weight: 700; border: 1.5px solid var(--red); }

/* ── BUTTONS ────────────────────────────────── */
.btn-gold-full {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #111; border-radius: var(--radius);
  font-weight: 800; font-size: 14px;
  font-family: 'Baloo 2', cursive;
  box-shadow: 0 6px 22px rgba(255,215,0,.25);
  transition: transform .1s; margin-bottom: 2px;
}
.btn-gold-full:active   { transform: scale(.98); }
.btn-gold-full:disabled { opacity: .5; }

.btn-ghost-light {
  width: 100%; padding: 12px;
  background: transparent; color: var(--muted);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); margin-bottom: 2px;
}

.btn-ghost {
  width: 100%; padding: 12px;
  background: transparent; color: var(--muted);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border);
}

.btn-certificate {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #7c5200, #5a3c00);
  border: 2px solid rgba(255,215,0,.4);
  border-radius: var(--radius); color: var(--gold);
  font-weight: 800; font-size: 13px; font-family: 'Baloo 2', cursive;
  box-shadow: 0 4px 18px rgba(255,215,0,.15);
  transition: transform .1s;
}
.btn-certificate:active { transform: scale(.98); }

.btn-pdf {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #0a2040, #082060);
  border: 2px solid rgba(59,130,246,.35);
  border-radius: var(--radius); color: #60a5fa;
  font-weight: 800; font-size: 13px; font-family: 'Baloo 2', cursive;
  box-shadow: 0 4px 18px rgba(59,130,246,.1);
  transition: transform .1s;
}
.btn-pdf:active { transform: scale(.98); }

/* ── ADMIN MODAL ────────────────────────────── */
.admin-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.admin-modal-overlay.hidden { display: none !important; }
.admin-modal-box {
  background: #ffffff;
  border: 2px solid rgba(255,215,0,.3);
  border-radius: 20px; padding: 28px 22px 22px;
  width: 100%; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.admin-modal-icon  { font-size: 38px; }
.admin-modal-title { font-size: 18px; font-weight: 800; color: var(--gold); font-family: 'Baloo 2', cursive; }
.admin-modal-sub   { font-size: 11px; color: var(--muted); text-align: center; }
.admin-pass-input  {
  width: 100%; background: #f0f2f8;
  border: 1.5px solid rgba(255,215,0,.3); border-radius: 11px;
  padding: 12px 14px; font-size: 16px; color: #111827;
  text-align: center; letter-spacing: 3px; margin-top: 4px;
}
.admin-pass-input:focus { border-color: var(--gold); }
.admin-pass-error  { font-size: 12px; color: #f87171; font-weight: 600; text-align: center; }
.admin-modal-btns  { display: flex; gap: 10px; width: 100%; margin-top: 4px; }
.admin-btn-cancel  { flex: 1; padding: 11px; background: #f0f2f8; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 700; font-family: 'Hind', sans-serif; }
.admin-btn-ok      { flex: 1; padding: 11px; background: var(--gold); border-radius: 11px; color: #111; font-size: 13px; font-weight: 800; font-family: 'Hind', sans-serif; transition: transform .1s; }
.admin-btn-ok:active { transform: scale(.97); }

/* ── LIGHT THEME OVERRIDES ──────────────────── */
.home-hdr         { background: linear-gradient(135deg, #1e3a6e, #1a3060) !important; }
.top-bar-dark     { background: linear-gradient(135deg, #1e3a6e, #1a3060) !important; }
.quiz-hdr         { background: linear-gradient(135deg, #1e3a6e, #1a3060) !important; }
.name-hero        { background: linear-gradient(160deg, #1e3a6e, #1a3060) !important; }
.info-hero        { background: linear-gradient(160deg, #1e3a6e, #162d58) !important; }
.admission-hero   { background: linear-gradient(160deg, #1e3a6e, #162d58) !important; }
.result-hero      { background: linear-gradient(160deg, #1e3a6e, #1a3060) !important; }
.q-card           { background: linear-gradient(135deg, #1e3a6e, #162d58) !important; }
.q-num  { color: #FFD700 !important; }
.q-text { color: #ffffff !important; font-weight: 600 !important; }
.q-watermark { color: #FFD700 !important; }

.home-body    { background: #f5f6fa !important; }
.quiz-body    { background: #f5f6fa !important; }

.quiz-card    { background: #ffffff !important; border-color: #e2e6f0 !important; }
.quiz-card:hover { border-color: rgba(212,146,10,.4) !important; }

.qcard-name   { color: #111827 !important; }
.qcard-meta   { color: #6b7280 !important; }

.info-stat    { background: #ffffff !important; border-color: #e2e6f0 !important; }
.info-stat-val { color: #111827 !important; }

.opt-btn      { background: #ffffff !important; border-color: #e2e6f0 !important; color: #111827 !important; }
.opt-btn.selected { background: #fef9e0 !important; border-color: #d4920a !important; color: #7a5000 !important; }
.opt-lbl      { background: #f0f2f8 !important; color: #6b7280 !important; }
.opt-btn.selected .opt-lbl { background: #d4920a !important; color: #fff !important; }

.pdot.todo    { background: #e2e6f0 !important; color: #6b7280 !important; border-color: #d0d4e0 !important; }

.ans-row      { background: #ffffff !important; border-color: #e2e6f0 !important; }
.ans-q        { color: #111827 !important; }
.ans-opt      { color: #6b7280 !important; }

.rules-box    { background: #fffbea !important; border-color: rgba(212,146,10,.3) !important; }
.rules-title  { color: #7a5000 !important; }
.rule-row     { color: #555 !important; }

.afield-input, .field-input { background: #f0f2f8 !important; border-color: #e2e6f0 !important; color: #111827 !important; }
.afield-input:focus, .field-input:focus { border-color: #d4920a !important; }

.cf-btn    { background: #e2e6f0 !important; color: #6b7280 !important; border-color: #d0d4e0 !important; }
.cf-btn.active { background: #d4920a !important; color: #fff !important; border-color: #d4920a !important; }

.sf-btn    { background: #f0f2f8 !important; color: #6b7280 !important; border-color: #e2e6f0 !important; }
.sf-btn.active { background: #1e3a6e !important; color: #fff !important; border-color: #1e3a6e !important; }

.copt      { background: #f0f2f8 !important; color: #6b7280 !important; border-color: #e2e6f0 !important; }
.copt.selected { background: #d4920a !important; color: #fff !important; border-color: #d4920a !important; }

.class-opt { background: #f0f2f8 !important; color: #6b7280 !important; border-color: #e2e6f0 !important; }
.class-opt.selected { background: #d4920a !important; color: #fff !important; border-color: #d4920a !important; }

.already-box { background: #fff5f5 !important; border-color: rgba(220,38,38,.3) !important; }

.bottom-sheet { background: #ffffff !important; border-top-color: #e2e6f0 !important; }
.drop-zone    { background: #f5f6fa !important; border-color: #d0d4e0 !important; }
.drop-zone:hover { border-color: #d4920a !important; background: #fffbea !important; }
.drop-text    { color: #111827 !important; }

.admin-modal-box { background: #ffffff !important; border-color: rgba(212,146,10,.4) !important; }
.admin-pass-input { background: #f0f2f8 !important; border-color: #e2e6f0 !important; color: #111827 !important; }
.admin-btn-cancel { background: #f0f2f8 !important; border-color: #e2e6f0 !important; color: #6b7280 !important; }

.qc-badge  { background: #e2e6f0 !important; }
.qc-label  { color: #111827 !important; }
.filter-label { color: #6b7280 !important; }

.warn-strip.red { background: #fef2f2 !important; border-color: #fecaca !important; color: #dc2626 !important; }
.skip-warn      { background: #fffbea !important; border-color: rgba(212,146,10,.3) !important; color: #7a5000 !important; }
.skip-warn.urgent { background: #fef2f2 !important; border-color: #fecaca !important; color: #dc2626 !important; }

.palette-label { color: #6b7280 !important; }
.palette-legend span { color: #6b7280 !important; }

/* ── ADMISSION CLASS SELECT ──────────────────── */
.adm-class-select {
  padding: 16px;
}
.acs-title {
  font-size: 16px; font-weight: 800;
  color: #111827; font-family: 'Baloo 2', cursive;
  margin-bottom: 4px; text-align: center;
}
.acs-sub {
  font-size: 12px; color: #6b7280;
  text-align: center; margin-bottom: 14px;
}
.acs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 14px;
}
.acs-card {
  background: #ffffff;
  border: 2px solid #e2e6f0;
  border-radius: 16px; padding: 18px 14px;
  text-align: center; cursor: pointer;
  transition: all .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.acs-card:active { transform: scale(.97); }
.acs-card:hover  { border-color: #d4920a; box-shadow: 0 4px 16px rgba(212,146,10,.2); }
.acs-num {
  font-family: 'Baloo 2', cursive;
  font-size: 28px; font-weight: 900;
  color: #1e3a6e; margin-bottom: 4px;
}
.acs-lbl {
  font-size: 11px; color: #6b7280;
  font-weight: 600; margin-bottom: 6px;
}
.acs-arrow {
  font-size: 18px; color: #d4920a;
  font-weight: 700;
}
.acs-note {
  font-size: 10px; color: #6b7280;
  text-align: center; line-height: 1.6;
  background: #fffbea;
  border: 1px solid rgba(212,146,10,.25);
  border-radius: 8px; padding: 8px 12px;
}
.adm-selected-class {
  background: linear-gradient(135deg, #1e3a6e, #162d58);
  color: #FFD700; font-weight: 700; font-size: 13px;
  padding: 10px 14px; border-radius: 10px;
  margin-bottom: 4px; text-align: center;
  font-family: 'Baloo 2', cursive;
}
.already-class {
  font-size: 14px; font-weight: 700;
  color: #1e3a6e; margin-bottom: 6px;
  font-family: 'Baloo 2', cursive;
}

/* ── ADMIN TABS ──────────────────────────────── */
.admin-tabs {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.admin-tab {
  flex: 1; padding: 9px;
  background: #f0f2f8;
  border: 1.5px solid #e2e6f0;
  border-radius: 10px;
  font-size: 12px; font-weight: 700;
  color: #6b7280; text-align: center;
  cursor: pointer; transition: all .15s;
}
.admin-tab.active {
  background: #1e3a6e;
  border-color: #1e3a6e;
  color: #FFD700;
}

/* ── ADMISSION UPLOAD GRID ───────────────────── */
.adm-upload-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin: 10px 0;
}
.adm-up-card {
  background: #f5f6fa;
  border: 2px solid #e2e6f0;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.adm-up-card:active { transform: scale(.97); }
.adm-up-card:hover  { border-color: #d4920a; }

.auc-num {
  font-family: 'Baloo 2', cursive;
  font-size: 22px; font-weight: 900;
  color: #1e3a6e; margin-bottom: 6px;
}
.auc-status {
  font-size: 11px; font-weight: 700;
  color: #6b7280;
}

.adm-up-note {
  font-size: 10px; color: #6b7280;
  text-align: center; line-height: 1.7;
  background: #f5f6fa;
  border-radius: 8px; padding: 8px 12px;
  margin-top: 4px;
}
