/* ============================================================
   THE ADMIN MEDIA CONCEPTS CBT PLATFORM — style.css
   Arial Font System · Dark Premium Theme
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0e1a;
  --bg2:      #0f1525;
  --bg3:      #141b30;
  --surface:  #1a2240;
  --surface2: #1e2a4a;
  --border:   #2a3558;
  --gold:     #D4A017;
  --gold2:    #f0c040;
  --gold-dim: rgba(212,160,23,0.15);
  --blue:     #2563eb;
  --blue2:    #3b82f6;
  --green:    #16a34a;
  --green2:   #22c55e;
  --red:      #dc2626;
  --red2:     #ef4444;
  --orange:   #ea580c;
  --text:     #e8eaf0;
  --text2:    #a0aec0;
  --text3:    #64748b;
  --radius:   10px;
  --radius-lg:16px;
  --shadow:   0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.6);
  --font:     'Arial', 'Helvetica Neue', Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; overflow-x: hidden; }

/* ── UTILITIES ── */
.hidden { display: none !important; }

/* ── SPLASH ── */
.splash {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.splash-logo-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.splash-img-logo { width: 80px; height: 80px; object-fit: contain; }

.splash-brand-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.splash-brand-main { font-size: 24px; font-weight: 900; color: var(--gold); font-family: var(--font); letter-spacing: -0.3px; }
.splash-brand-sub { font-size: 12px; font-weight: 700; color: var(--text2); letter-spacing: 2px; text-transform: uppercase; }

.splash-bar { width: 220px; height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }
.splash-fill { height: 100%; width: 0; background: var(--gold); border-radius: 99px; animation: splash-load 2.2s ease forwards; }
@keyframes splash-load { to { width: 100%; } }
.splash-loading { font-size: 12px; color: var(--text3); letter-spacing: 1px; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── APP ── */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ── HEADER ── */
.header { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-img-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; }
.header-brand { font-size: 14px; font-weight: 900; color: var(--gold); font-family: var(--font); }
.header-tag { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.live-badge { background: var(--green); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px; letter-spacing: 1px; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0%,100%{ box-shadow: 0 0 0 0 rgba(22,163,74,0.6); } 50%{ box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
.header-info { font-size: 11px; color: var(--text3); }

/* ── PAGES ── */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ── HERO ── */
.hero { max-width: 800px; margin: 0 auto; padding: 60px 20px 40px; text-align: center; }
.hero-badge { display: inline-block; background: var(--gold-dim); border: 1px solid var(--gold); color: var(--gold); font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 99px; letter-spacing: 1px; margin-bottom: 24px; }
.hero-title { font-size: clamp(32px, 7vw, 60px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; color: var(--text); margin-bottom: 16px; font-family: var(--font); }
.hero-accent { color: var(--gold); }
.hero-sub { font-size: 16px; color: var(--text2); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 36px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 22px; font-weight: 900; color: var(--gold); }
.stat span { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }
.stat-div { width: 1px; height: 28px; background: var(--border); }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #0a0e1a; font-family: var(--font); font-size: 14px; font-weight: 800; padding: 13px 26px; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.2s ease; text-decoration: none; }
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212,160,23,0.35); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-primary.big { font-size: 15px; padding: 15px 32px; }
.btn-primary.full { width: 100%; justify-content: center; margin-top: 8px; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 700; padding: 13px 26px; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── FEATURES GRID ── */
.features-grid { max-width: 900px; margin: 0 auto 50px; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.fc-icon { font-size: 26px; margin-bottom: 10px; }
.feature-card h3 { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 5px; font-family: var(--font); }
.feature-card p { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ── DEPT PREVIEW ── */
.dept-preview { max-width: 900px; margin: 0 auto 40px; padding: 0 20px; }
.section-title { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 16px; font-family: var(--font); }
.dept-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.dept-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 24px 18px; cursor: pointer; transition: all 0.2s ease; text-align: center; }
.dept-card:hover { border-color: var(--gold); background: var(--surface2); transform: translateY(-4px); box-shadow: var(--shadow); }
.dc-icon { font-size: 32px; margin-bottom: 10px; }
.dept-card h3 { font-size: 16px; font-weight: 900; color: var(--gold); margin-bottom: 5px; font-family: var(--font); }
.dept-card p { font-size: 11px; color: var(--text2); }

/* ── POWERED BY ── */
.powered-by { text-align: center; padding: 20px; color: var(--text3); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.pw-logo { width: 24px; height: 24px; object-fit: contain; opacity: 0.7; }
.powered-by strong { color: var(--gold); }

/* ── SETUP PAGE ── */
.setup-container { max-width: 760px; margin: 0 auto; padding: 28px 20px 50px; }
.setup-header { margin-bottom: 28px; }
.setup-header h2 { font-size: 24px; font-weight: 900; margin-bottom: 6px; color: var(--text); font-family: var(--font); }
.setup-header p { color: var(--text2); font-size: 13px; }
.back-btn { background: none; border: none; color: var(--text2); font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 14px; transition: color 0.2s; }
.back-btn:hover { color: var(--gold); }
.setup-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.step-label { font-size: 12px; font-weight: 800; color: var(--text2); letter-spacing: 0.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-family: var(--font); flex-wrap: wrap; }
.step-num { background: var(--gold); color: var(--bg); width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-hint { font-size: 11px; font-weight: 400; color: var(--text3); text-transform: none; }
.dept-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.dept-tab { background: var(--bg3); border: 1.5px solid var(--border); color: var(--text2); font-family: var(--font); font-size: 12px; font-weight: 700; padding: 9px 16px; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.dept-tab:hover { border-color: var(--gold); color: var(--gold); }
.dept-tab.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.subject-check { display: flex; align-items: center; gap: 8px; background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; transition: all 0.2s; user-select: none; }
.subject-check:hover:not(.locked):not(.unavailable) { border-color: var(--blue); }
.subject-check.selected { background: rgba(37,99,235,0.12); border-color: var(--blue); }
.subject-check.locked { background: var(--gold-dim); border-color: var(--gold); cursor: default; }
.subject-check.unavailable { opacity: 0.45; cursor: not-allowed; }
.subject-check input { display: none; }
.check-box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: #fff; transition: all 0.2s; }
.subject-check.selected .check-box { background: var(--blue); border-color: var(--blue); }
.subject-check.locked .check-box { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.subject-check span { font-size: 12px; font-weight: 600; color: var(--text2); font-family: var(--font); }
.subject-check.selected span, .subject-check.locked span { color: var(--text); }
.q-options { display: flex; gap: 10px; flex-wrap: wrap; }
.q-opt { cursor: pointer; }
.q-opt input { display: none; }
.q-opt span { display: flex; flex-direction: column; align-items: center; background: var(--bg3); border: 2px solid var(--border); border-radius: var(--radius); padding: 12px 20px; font-size: 18px; font-weight: 900; color: var(--text2); transition: all 0.2s; cursor: pointer; font-family: var(--font); min-width: 80px; text-align: center; }
.q-opt span small { font-size: 9px; font-weight: 400; color: var(--text3); margin-top: 2px; }
.q-opt input:checked + span { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.setup-error { color: var(--red2); font-size: 12px; font-weight: 700; padding: 10px 14px; background: rgba(220,38,38,0.1); border: 1px solid var(--red); border-radius: var(--radius); margin-top: 10px; }

/* ── EXAM ── */
.exam-header { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 80; gap: 10px; }
.exam-header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.exam-logo-sm { font-family: var(--font); font-size: 10px; font-weight: 900; color: var(--gold); white-space: nowrap; display: none; }
@media (min-width: 500px) { .exam-logo-sm { display: block; } }
.exam-subject-pill { background: rgba(37,99,235,0.15); border: 1px solid var(--blue); color: var(--blue2); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-family: var(--font); }
.exam-timer-wrap { text-align: center; flex-shrink: 0; }
.timer-label { font-size: 9px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.timer-display { font-size: 20px; font-weight: 900; font-family: var(--font); color: var(--gold); letter-spacing: 1px; transition: color 0.3s; }
.timer-display.warning { color: var(--orange); animation: timer-pulse 1s infinite; }
.timer-display.danger { color: var(--red2); animation: timer-pulse 0.5s infinite; }
@keyframes timer-pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.exam-header-right { font-size: 11px; color: var(--text2); font-weight: 700; white-space: nowrap; font-family: var(--font); }
.exam-body { display: flex; min-height: calc(100vh - 54px); }
.question-panel { flex: 1; padding: 20px 18px; max-width: 720px; }
.q-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.q-topic { font-size: 10px; font-weight: 700; color: var(--blue2); background: rgba(37,99,235,0.12); padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font); }
.q-number { font-size: 11px; color: var(--text3); font-weight: 700; font-family: var(--font); }
.q-text { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-family: var(--font); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; }
.q-options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.q-option { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.q-option:hover { border-color: var(--blue); background: rgba(37,99,235,0.08); }
.q-option.selected { border-color: var(--blue); background: rgba(37,99,235,0.12); }
.q-option.selected .opt-letter { background: var(--blue); color: #fff; border-color: var(--blue); }
.opt-letter { min-width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: var(--text2); transition: all 0.15s; flex-shrink: 0; font-family: var(--font); }
.opt-text { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.5; padding-top: 2px; }
.q-nav-btns { display: flex; gap: 8px; align-items: center; }
.btn-nav { background: var(--surface); border: 1.5px solid var(--border); color: var(--text2); font-family: var(--font); font-size: 12px; font-weight: 700; padding: 9px 16px; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; flex: 1; }
.btn-nav:hover { border-color: var(--gold); color: var(--gold); }
.btn-nav.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-nav.primary:hover { background: var(--blue2); }
.btn-flag { background: transparent; border: 1.5px solid var(--border); color: var(--text3); font-family: var(--font); font-size: 11px; font-weight: 700; padding: 9px 12px; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn-flag.active { border-color: var(--orange); color: var(--orange); background: rgba(234,88,12,0.1); }

/* ── NAVIGATOR ── */
.q-navigator { width: 210px; flex-shrink: 0; background: var(--bg2); border-left: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; }
.nav-title { font-size: 10px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font); }
.nav-legend { display: flex; flex-wrap: wrap; gap: 6px; font-size: 10px; color: var(--text3); font-family: var(--font); align-items: center; }
.leg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 2px; }
.leg.answered { background: var(--green); }
.leg.flagged { background: var(--orange); }
.leg.unanswered { background: var(--surface2); border: 1px solid var(--border); }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.nav-btn { width: 100%; aspect-ratio: 1; border-radius: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-family: var(--font); font-size: 9px; font-weight: 700; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { border-color: var(--gold); }
.nav-btn.answered { background: var(--green); border-color: var(--green); color: #fff; }
.nav-btn.flagged { background: var(--orange); border-color: var(--orange); color: #fff; }
.nav-btn.current { box-shadow: 0 0 0 2px var(--gold); }
.btn-submit-exam { margin-top: auto; background: var(--red); border: none; color: #fff; font-family: var(--font); font-size: 12px; font-weight: 800; padding: 12px; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; width: 100%; }
.btn-submit-exam:hover { background: var(--red2); }

/* ── RESULT ── */
.result-container { max-width: 700px; margin: 0 auto; padding: 36px 20px 50px; }
.result-header { text-align: center; margin-bottom: 28px; }
.result-logo-img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 8px; }
.result-logo { font-size: 10px; font-weight: 800; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; font-family: var(--font); }
.result-header h2 { font-size: 26px; font-weight: 900; color: var(--text); font-family: var(--font); }
.result-score-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; margin-bottom: 20px; box-shadow: var(--shadow-lg); }
.score-circle { position: relative; width: 170px; height: 170px; margin: 0 auto 18px; }
.score-ring { width: 100%; height: 100%; }
.score-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-pct { font-size: 36px; font-weight: 900; color: var(--gold); line-height: 1; font-family: var(--font); }
.score-raw { font-size: 12px; color: var(--text2); font-weight: 700; font-family: var(--font); }
.score-grade { font-size: 20px; font-weight: 900; margin-bottom: 6px; font-family: var(--font); }
.score-message { font-size: 13px; color: var(--text2); font-family: var(--font); }
.result-breakdown { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.breakdown-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font); }
.breakdown-subject { font-size: 13px; font-weight: 700; color: var(--text); }
.breakdown-score { font-size: 13px; font-weight: 800; }
.breakdown-score.good { color: var(--green2); }
.breakdown-score.ok { color: var(--gold); }
.breakdown-score.bad { color: var(--red2); }
.breakdown-bar-wrap { flex: 1; margin: 0 14px; height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.breakdown-bar { height: 100%; border-radius: 99px; transition: width 0.8s ease; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── REVIEW ── */
.review-container { max-width: 760px; margin: 0 auto; padding: 28px 20px 50px; }
.review-header { margin-bottom: 20px; }
.review-header h2 { font-size: 22px; font-weight: 900; color: var(--text); font-family: var(--font); }
.review-list { display: flex; flex-direction: column; gap: 18px; }
.review-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; font-family: var(--font); }
.review-item.correct { border-left: 4px solid var(--green); }
.review-item.wrong { border-left: 4px solid var(--red); }
.review-item.unanswered { border-left: 4px solid var(--text3); }
.review-q-num { font-size: 10px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; }
.review-q-text { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.6; margin-bottom: 12px; }
.review-options { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.review-opt { font-size: 12px; padding: 6px 10px; border-radius: 6px; display: flex; gap: 6px; align-items: flex-start; }
.review-opt.user-correct { background: rgba(22,163,74,0.15); color: var(--green2); }
.review-opt.user-wrong { background: rgba(220,38,38,0.15); color: var(--red2); }
.review-opt.correct-ans { background: rgba(22,163,74,0.1); color: var(--green2); }
.review-opt span:first-child { font-weight: 800; min-width: 18px; }
.review-explanation { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font-size: 12px; color: var(--text2); line-height: 1.6; }
.review-explanation strong { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); font-family: var(--font); }
.modal-icon { font-size: 32px; margin-bottom: 10px; }
.modal h3 { font-size: 18px; font-weight: 900; margin-bottom: 7px; color: var(--text); }
.modal p { font-size: 13px; color: var(--text2); margin-bottom: 20px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

/* ── FOOTER ── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 14px 20px; margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.footer-brand { font-size: 12px; font-weight: 900; color: var(--gold); font-family: var(--font); }
.footer-copy { font-size: 10px; color: var(--text3); font-family: var(--font); }

/* ── JOIN GROUP BUTTON ── */
.btn-join-group {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; font-family: var(--font); font-size: 11px; font-weight: 800;
  padding: 7px 14px; border-radius: 99px; border: none; cursor: pointer;
  text-decoration: none; transition: all 0.2s ease; letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn-join-group:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,211,102,0.4); }

/* ── ABOUT DEVELOPER SECTION ── */
.about-dev-section {
  max-width: 900px; margin: 0 auto 60px; padding: 0 20px;
}
.about-dev-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; align-items: flex-start; gap: 28px;
  box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.about-dev-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--gold);
  border-radius: 2px 0 0 2px;
}
.about-dev-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.dev-avatar {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--gold-dim);
}
.dev-avatar svg { width: 100%; height: 100%; display: block; }
.dev-info { flex: 1; }
.dev-name {
  font-size: 20px; font-weight: 900; color: var(--text);
  font-family: var(--font); margin-bottom: 6px;
}
.dev-brand {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold-dim); border: 1px solid rgba(212,160,23,0.3);
  padding: 4px 12px; border-radius: 99px; margin-bottom: 12px;
  font-size: 12px; font-weight: 800; color: var(--gold); font-family: var(--font);
}
.dev-brand-logo { width: 16px; height: 16px; object-fit: contain; }
.dev-desc {
  font-size: 13px; color: var(--text2); line-height: 1.65;
  margin-bottom: 14px; font-family: var(--font);
}
.dev-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dev-tag {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px; font-family: var(--font);
}
.btn-visit-website {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: #0a0e1a;
  font-family: var(--font); font-size: 12px; font-weight: 800;
  padding: 10px 20px; border-radius: var(--radius); border: none;
  cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.btn-visit-website svg { width: 13px; height: 13px; }
.btn-visit-website:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(212,160,23,0.3); }

/* ── REVIEW ACTIONS TOP ── */
.review-actions-top { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-secondary.small { font-size: 12px; padding: 8px 14px; }

/* ── SUBMIT INLINE BUTTON (inside question panel) ── */
.submit-bar { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.btn-submit-inline {
  width: 100%; padding: 14px; border-radius: var(--radius);
  background: var(--green); border: none; color: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 900;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit-inline:hover { background: var(--green2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,0.35); }

/* ── MODAL STATS (submit confirmation) ── */
.modal-stats {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  margin: 14px 0; display: flex; flex-direction: column; gap: 8px;
}
.modal-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font); font-size: 13px;
}
.msr-label { color: var(--text2); font-weight: 600; }
.msr-val { font-weight: 900; font-size: 15px; color: var(--text); }
.msr-val.green { color: var(--green2); }
.msr-val.red { color: var(--red2); }
.msr-val.orange { color: var(--orange); }
.total-row { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; }
.modal-warn-text {
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
  padding: 8px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.04); font-family: var(--font);
}

/* ── RESULT INLINE EXPLANATIONS ── */
.result-explanations-wrap {
  margin-bottom: 24px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.result-exp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--surface2);
  font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--gold);
  border-bottom: 1px solid var(--border);
}
.btn-toggle-exp {
  background: var(--gold-dim); border: 1px solid rgba(212,160,23,0.3);
  color: var(--gold); font-family: var(--font); font-size: 11px;
  font-weight: 800; padding: 5px 14px; border-radius: 99px;
  cursor: pointer; transition: all 0.2s;
}
.btn-toggle-exp:hover { background: var(--gold); color: #0a0e1a; }
.result-explanations { display: flex; flex-direction: column; gap: 0; }
.result-explanations.hidden { display: none; }
.res-exp-item {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  font-family: var(--font); background: var(--surface);
  border-left: 4px solid transparent; transition: background 0.2s;
}
.res-exp-item:last-child { border-bottom: none; }
.res-exp-item.correct { border-left-color: var(--green); }
.res-exp-item.wrong { border-left-color: var(--red); }
.res-exp-item.not-ans { border-left-color: var(--text3); }
.res-exp-item:hover { background: var(--surface2); }
.res-exp-qnum {
  font-size: 10px; font-weight: 800; color: var(--text3);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.res-exp-subj { color: var(--blue2); }
.res-exp-status { color: var(--text2); }
.res-exp-item.correct .res-exp-status { color: var(--green2); }
.res-exp-item.wrong .res-exp-status { color: var(--red2); }
.res-exp-qtext {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.6; margin-bottom: 10px;
}
.res-exp-ans {
  font-size: 12px; font-weight: 600; padding: 6px 10px;
  border-radius: 6px; margin-bottom: 5px; font-family: var(--font);
}
.res-exp-ans strong { font-weight: 900; }
.correct-row { background: rgba(22,163,74,0.12); color: var(--green2); }
.wrong-row { background: rgba(220,38,38,0.12); color: var(--red2); }
.not-ans-row { background: rgba(100,116,139,0.1); color: var(--text3); }
.res-exp-expl {
  margin-top: 8px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  font-size: 12px; color: var(--text2); line-height: 1.7;
}
.expl-label {
  display: block; font-size: 10px; font-weight: 800;
  color: var(--gold); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 5px; font-family: var(--font);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .q-navigator { display: none; }
  .exam-body { flex-direction: column; }
  .result-actions { flex-direction: column; }
  .result-actions .btn-primary, .result-actions .btn-secondary { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .about-dev-card { flex-direction: column; align-items: center; text-align: center; padding: 24px 18px; }
  .about-dev-card::before { width: 100%; height: 4px; top: 0; left: 0; border-radius: 0; }
  .dev-brand { margin: 0 auto 12px; }
  .dev-tags { justify-content: center; }
  .btn-visit-website { width: 100%; justify-content: center; }
  .btn-join-group { font-size: 10px; padding: 6px 10px; }
  .header-info { display: none; }
}
  .header-info { display: none; }
  .subjects-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .dept-cards { grid-template-columns: 1fr; }
  .q-text { font-size: 13px; }
  .opt-text { font-size: 12px; }
  .hero-stats { gap: 12px; }
}
