/* =====================================================================
   HACKORCIST ACADEMY EXAM — dedicated, locked-down certification surface
   ===================================================================== */

/* === NEON//BREACH neo-punk palette — scoped to the /exam surface only === */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
:root {
  --ink-0:#0a0a0f; --ink-1:#111114; --ink-2:#0a0a0f;
  --fg:#e0e0e0; --fg-mute:#9aa7b4; --fg-dim:#5f6b78;
  --line:rgba(0,249,255,.18); --line-2:rgba(0,249,255,.34);
  --phos:#00f9ff; --blue:#00f9ff; --amber:#ffcc00; --crit:#ff3b5c;
  --neon-cyan:#00f9ff; --neon-magenta:#ff00aa; --neon-lime:#39ff14;
}
body { background: var(--ink-0); color: var(--fg); font-family: var(--disp); margin: 0; }
.exam-root { min-height: 100vh; }

/* anti-cheat: no selection while the exam is in progress */
body.exam-lock, body.exam-lock * {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
body.exam-lock { caret-color: transparent; }

/* defeat printing of the exam content */
@media print {
  body.exam-lock * { visibility: hidden !important; }
  body.exam-lock::after {
    content: "Printing is disabled during the examination.";
    visibility: visible; position: fixed; inset: 40% 0 0 0; text-align: center;
    font-family: monospace; font-size: 18px; color: #000;
  }
}

/* ------------------------------- GATE ------------------------------- */
.gate-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-card {
  width: 100%; max-width: 440px; background: var(--ink-1);
  border: 1px solid var(--line); border-top: 3px solid var(--phos);
  border-radius: 6px; padding: 36px 32px; text-align: center;
}
.gate-card .gc-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--phos); }
.gate-card h1 { font-size: 24px; margin: 8px 0 4px; letter-spacing: -.01em; }
.gate-card p.sub { color: var(--fg-mute); font-size: 13px; line-height: 1.7; margin: 0 0 24px; }
.gate-card label { display: block; text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--fg-mute); margin: 0 0 6px; }
.gate-card input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; margin-bottom: 18px;
  background: var(--ink-0); color: var(--fg); border: 1px solid var(--line-2);
  border-radius: 4px; font-family: var(--mono); font-size: 15px; letter-spacing: 2px; text-align: center;
}
.gate-card input:focus { outline: none; border-color: var(--phos); }
.gate-card .gc-err { color: var(--crit); font-size: 12px; min-height: 16px; margin-bottom: 12px; font-family: var(--mono); }
.gate-card .btn-solid { width: 100%; justify-content: center; }
.gate-card .gc-note { margin-top: 20px; font-size: 11px; color: var(--fg-dim); line-height: 1.6; }

/* ----------------------------- EXAM SHELL --------------------------- */
.exam-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px; background: var(--ink-1); border-bottom: 1px solid var(--line);
}
.et-left  { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.et-title { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--phos); white-space: nowrap; }
.et-name  { color: var(--fg-mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.et-right { display: flex; align-items: center; gap: 18px; }
.et-stat  { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--fg-mute); text-align: right; }
.et-stat b { color: var(--fg); }
.et-timer { font-family: var(--mono); font-size: 20px; letter-spacing: 1px; color: var(--blue); min-width: 90px; text-align: right; }
#et-submit.pulse { animation: et-pulse 1s ease-in-out 4; }
@keyframes et-pulse { 50% { box-shadow: 0 0 0 5px rgba(var(--ngc),.45); transform: scale(1.06); } }
.et-timer.warn { color: var(--amber); }
.et-timer.crit { color: var(--crit); animation: pulse 1s steps(2) infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* Nav strip across the top, content below. Questions are centered; sims go full-width.
   The invigilator chat floats bottom-right. */
.exam-body { display: block; padding: 0 20px; }
.exam-left { display: flex; flex-direction: column; min-width: 0; }

/* Question/sim navigation: a horizontal strip across the TOP of the content. */
.exam-nav {
  position: sticky; top: 57px; z-index: 5; align-self: start;
  border-bottom: 1px solid var(--line); padding: 12px 4px 14px; margin-bottom: 4px; background: var(--ink-0);
  display: flex; flex-direction: column; gap: 8px;
}
.nav-section { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--fg-dim); margin: 2px 0; }
.nav-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.nav-cell {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; cursor: pointer; border-radius: 3px;
  background: var(--ink-2); color: var(--fg-mute); border: 1px solid var(--line);
}
.nav-cell:hover { border-color: var(--fg-dim); color: var(--fg); }
.nav-cell.answered { background: rgba(255,181,71,.14); color: var(--amber); border-color: rgba(255,181,71,.4); }
.nav-cell.active   { outline: 2px solid var(--blue); outline-offset: 0; color: var(--fg); }
.nav-sims { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-sim {
  text-align: left; padding: 7px 12px; border-radius: 3px; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--fg-mute);
  font-size: 12px; display: inline-flex; align-items: center; gap: 8px;
}
.nav-sim:hover { border-color: var(--fg-dim); color: var(--fg); }
.nav-sim.done { background: rgba(255,181,71,.12); color: var(--amber); border-color: rgba(255,181,71,.35); }
.nav-sim.active { outline: 2px solid var(--blue); }
.nav-sim .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-dim); flex: 0 0 auto; }
.nav-sim.done .dot { background: var(--amber); }
.nav-sim.locked { background: rgba(255,93,108,.12); color: var(--crit); border-color: rgba(255,93,108,.45); cursor: not-allowed; opacity: .85; }
.nav-sim.locked .dot { background: var(--crit); }

.exam-main { padding: 22px 8px 60px; max-width: 760px; margin: 0 auto; }

/* ----------------------------- REVIEW ------------------------------ */
.review-view { max-width: 720px; }
.review-title { font-family: var(--disp); font-weight: 500; font-size: 24px; margin: 6px 0 22px; }
.rev-section { background: var(--ink-1); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--fg-mute); }
.rev-count { color: var(--fg); letter-spacing: 1px; }
.rev-ok   { color: var(--phos); font-size: 13px; margin-bottom: 14px; }
.rev-warn { color: var(--amber); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.rev-sims { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rev-sim { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg); }
.rev-sim .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-dim); flex: 0 0 auto; }
.rev-sim.done .dot { background: var(--amber); }
.rev-sim .rev-tag { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--fg-dim); }
.rev-sim.done .rev-tag { color: var(--amber); }
.rev-final { margin-top: 22px; text-align: center; }
.rev-final p { color: var(--fg-mute); font-size: 13px; line-height: 1.7; margin: 0 0 16px; }

/* ------------------------------ QUESTION ---------------------------- */
.q-topic {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; font-weight: 700;
  padding: 4px 10px; border-radius: 2px; background: rgba(92,200,255,.12); color: var(--blue);
  border: 1px solid rgba(92,200,255,.3); margin-bottom: 14px;
}
.q-counter { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--fg-dim); margin-bottom: 8px; }
.q-prompt { font-size: 19px; line-height: 1.5; margin: 0 0 22px; }
.q-choices { display: flex; flex-direction: column; gap: 10px; }
.q-choice {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 4px; background: var(--ink-1);
  border: 1px solid var(--line-2); color: var(--fg); font-size: 14px; line-height: 1.5;
}
.q-choice:hover { border-color: var(--fg-dim); }
.q-choice .letter {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); color: var(--fg-mute);
}
.q-choice.selected { border-color: var(--amber); background: rgba(255,181,71,.1); }
.q-choice.selected .letter { background: var(--amber); color: var(--ink-0); border-color: var(--amber); }

.q-nav { display: flex; justify-content: space-between; margin-top: 28px; }

/* ----------------------------- SIMULATION --------------------------- */
.sim-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.sim-head h2 { font-size: 22px; margin: 0; }
.sim-brief {
  background: var(--ink-1); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 4px; padding: 14px 18px; margin: 14px 0; font-size: 13px; line-height: 1.7; color: var(--fg);
}
.sim-iframe-wrap { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #000; }
.sim-iframe { width: 100%; height: 560px; border: 0; display: block; background: #fff; }

/* ----------------------------- CERTIFICATE -------------------------- */
:root { --cert-green: #00ff9f; --ngc: 0,255,159; }

/* brand pill (shared by gate + certificate) */
.brand-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(var(--ngc),.3); background: rgba(var(--ngc),.05);
  color: var(--cert-green); font-family: var(--disp); font-weight: 600;
  font-size: 12px; letter-spacing: 3px;
}
.brand-pill .bp-ico { display: inline-flex; }

.cert-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }
.certificate {
  width: 100%; max-width: 1080px; min-height: 600px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: #0a0a0a; border: 2px solid var(--cert-green); border-radius: 22px;
  padding: 48px 88px; text-align: center;
  box-shadow: 0 25px 60px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(var(--ngc),.12), 0 0 50px rgba(var(--ngc),.08);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
/* during PDF capture: solid score fill (html2canvas can't clip gradient text) */
.capturing .cert-score { -webkit-text-fill-color: var(--cert-green) !important; background: none !important; filter: none !important; }
.capturing .cert-score.fail { -webkit-text-fill-color: var(--crit) !important; }
/* during capture: drop only the decorative grid (its gradient tile can throw in
   html2canvas); the certificate keeps its solid black background + watermark */
.capturing .cert-grid { display: none !important; }
.capturing .certificate { box-shadow: none !important; }
.cert-badge-wrap { display: flex; justify-content: center; }
@media (max-width: 720px) { .certificate { min-height: 0; padding: 40px 28px; } }
.certificate.fail { border-color: var(--crit); box-shadow: 0 25px 60px -12px rgba(0,0,0,.6), 0 0 50px rgba(255,93,108,.08); }
/* faint full-bleed certificate watermark — an <img> so it prints reliably */
.cert-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; z-index: 0; opacity: .08;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.certificate.fail .cert-bg { opacity: .06; filter: grayscale(.4); }
.cert-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: linear-gradient(rgba(var(--ngc),.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(var(--ngc),.035) 1px, transparent 1px);
  background-size: 26px 26px;
}
.corner { position: absolute; width: 42px; height: 42px; z-index: 3; }
.corner-tl { top: 13px; left: 13px; border-top: 3px solid var(--cert-green); border-left: 3px solid var(--cert-green); }
.corner-br { bottom: 13px; right: 13px; border-bottom: 3px solid var(--cert-green); border-right: 3px solid var(--cert-green); }
.certificate.fail .corner-tl, .certificate.fail .corner-br { border-color: var(--crit); }
.cert-inner { position: relative; z-index: 2; }

.cert-pill { margin-bottom: 20px; }
.cert-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: var(--fg-mute); margin-bottom: 4px; }
.cert-title { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: #fff; margin: 0 0 26px; }
.cert-presented { font-size: 11px; letter-spacing: 3px; color: var(--fg-dim); margin-bottom: 8px; }
.cert-name { font-size: 58px; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: #fff; }
.cert-rule { height: 1px; margin: 30px auto; background: linear-gradient(to right, transparent, rgba(var(--ngc),.35), transparent); }

.cert-score-wrap { display: inline-flex; align-items: baseline; gap: 4px; }
.cert-score {
  font-family: var(--disp); font-weight: 700; font-size: 104px; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, var(--cert-green) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(var(--ngc),.25));
}
.cert-score.fail {
  background: linear-gradient(180deg, #ffffff 0%, var(--crit) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255,93,108,.25));
}
.cert-pct { font-size: 52px; font-weight: 300; color: var(--cert-green); }
.certificate.fail .cert-pct { color: var(--crit); }
.cert-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--fg-mute); margin-top: 6px; }

.cert-badge {
  display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 4px;
  padding: 9px 30px; border-radius: 14px; font-weight: 700; font-size: 22px; letter-spacing: 1px;
  border: 2px solid var(--cert-green); color: var(--cert-green); background: #001a0f;
  box-shadow: 0 0 18px rgba(var(--ngc),.22);
}
.cert-badge.fail { border-color: var(--crit); color: var(--crit); background: #2a0f12; box-shadow: 0 0 18px rgba(255,93,108,.2); }
.cert-badge .pb-ico { display: inline-flex; }

.cert-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 34px; padding-top: 4px; text-align: left;
}
.cert-meta .cm-right { text-align: right; }
.cm-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--fg-dim); margin-bottom: 4px; }
.cm-val { font-size: 17px; color: #e6edf3; font-weight: 500; }
.cm-val.mono, .mono { font-family: var(--mono); letter-spacing: 1px; }

.cert-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.cf-label { font-size: 11px; color: var(--fg-dim); margin-bottom: 4px; }
.cf-link { display: inline-flex; align-items: center; gap: 4px; color: var(--cert-green); font-size: 13px; font-weight: 500; text-decoration: none; }
.cf-link:hover { text-decoration: underline; }

.cert-actions { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* FAIL — plain result, no certificate artwork / credential / verification */
.result-fail {
  width: 100%; max-width: 560px; text-align: center;
  background: var(--ink-1); border: 1px solid var(--line-2); border-top: 3px solid var(--crit);
  border-radius: 16px; padding: 44px 40px;
}
.result-fail .cert-pill { margin-bottom: 18px; }
.cert-pct.fail { color: var(--crit); }
.rf-name { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: #fff; margin: 6px 0 18px; }
.rf-msg { color: var(--fg-mute); font-size: 13px; line-height: 1.7; max-width: 430px; margin: 20px auto 0; }

/* ------------------------- GATE ACCESS PROCESS ---------------------- */
.gate-demo:not(:empty) { margin-top: 22px; padding: 16px 18px; border: 1px dashed var(--cert-green); border-radius: 10px; text-align: left; background: rgba(109,245,138,.05); }
.gd-title { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--cert-green); margin-bottom: 8px; }
.gate-demo p { color: var(--fg-mute); font-size: 12.5px; line-height: 1.6; margin: 0 0 12px; }
.gate-demo .btn-ghost { width: 100%; }
.gd-note { margin-top: 10px; font-size: 12px; color: var(--amber, #ffb547); line-height: 1.5; }
.gd-key { font-family: var(--mono); font-size: 17px; letter-spacing: 1px; color: var(--fg); background: #07090c; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; word-break: break-all; }
.gate-access { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.ga-title { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--cert-green); margin-bottom: 8px; }
.gate-access p { color: var(--fg-mute); font-size: 12.5px; line-height: 1.6; margin: 0 0 8px; }
.ga-steps { list-style: none; margin: 0 0 10px; padding: 0; }
.ga-steps li { position: relative; padding-left: 18px; color: var(--fg-mute); font-size: 12.5px; line-height: 1.7; }
.ga-steps li::before { content: "▸"; position: absolute; left: 0; color: var(--cert-green); }
.ga-steps li b { color: var(--fg); font-weight: 600; }
.ga-cta { font-size: 12.5px; }
.ga-cta a { color: var(--cert-green); font-weight: 600; text-decoration: none; }
.ga-cta a:hover { text-decoration: underline; }

/* ---------------------- CREDENTIAL VERIFY --------------------------- */
.verify-result { margin-top: 22px; text-align: left; }
.vr-card {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 22px 24px;
  border-left: 4px solid var(--fg-dim); background: var(--ink-0);
}
.vr-card.pass { border-left-color: var(--phos); }
.vr-card.fail { border-left-color: var(--crit); }
.vr-status { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; font-weight: 800; margin-bottom: 12px; }
.vr-card.pass .vr-status { color: var(--phos); }
.vr-card.fail .vr-status { color: var(--crit); }
.vr-name { font-size: 22px; font-weight: 600; margin: 2px 0 2px; }
.vr-title { color: var(--fg-mute); font-size: 13px; margin-bottom: 14px; }
.vr-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.vr-row span:first-child { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }
.vr-row span:last-child { color: var(--fg); }
.vr-notfound { margin-top: 22px; color: var(--crit); font-family: var(--mono); font-size: 13px; }

@media print {
  body:not(.exam-lock) .exam-overlay,
  body:not(.exam-lock) .no-print { display: none !important; }
  .cert-wrap { padding: 0; }
  .certificate { box-shadow: none !important; }
  /* gradient/clipped text doesn't print — fall back to a solid fill */
  .cert-score { -webkit-text-fill-color: var(--cert-green) !important; filter: none !important; }
  .cert-score.fail { -webkit-text-fill-color: var(--crit) !important; }
}

/* ------------------------------ OVERLAY ----------------------------- */
.exam-overlay { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(3,5,8,.78); }
.exam-overlay.open { display: flex; }
.ov-card { width: 100%; max-width: 420px; background: var(--ink-1); border: 1px solid var(--line-2); border-radius: 6px; padding: 26px; }
.ov-card h3 { margin: 0 0 8px; font-size: 18px; }
.ov-card p { color: var(--fg-mute); font-size: 13px; line-height: 1.7; margin: 0 0 18px; }
.ov-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ------------------------------- EXAM HUB --------------------------- */
.exam-hub { max-width: 980px; margin: 0 auto; padding: 26px 24px 70px; }
.eh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.exam-back { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--fg-mute); }
.exam-back:hover { color: var(--phos); }
.exam-back.floating { position: fixed; top: 20px; left: 22px; z-index: 5; }
.eh-head { margin-bottom: 26px; }
.eh-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--phos); }
.eh-head h1 { font-family: var(--disp); font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 8px; }
.eh-head p { color: var(--fg-mute); font-size: 14px; line-height: 1.7; max-width: 640px; margin: 0; }
.eh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.eh-loading { grid-column: 1 / -1; padding: 50px; text-align: center; color: var(--fg-mute); font-family: var(--mono); }
.eh-card {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 24px; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.eh-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ehc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
/* Reserve two lines of title height so a one-line title (e.g. "Penetration
   Testing Exam") aligns with a wrapping two-line one ("Web Penetration Testing
   Exam"): the PASSED badge, blurb, meta and buttons then line up across every
   card automatically — no per-exam tuning, works for any future exam. */
.ehc-title { font-family: var(--disp); font-size: 21px; font-weight: 600; line-height: 1.2; min-height: 2.4em; }
.ehc-level { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--fg-mute); margin-top: 4px; }
.ehc-chip {
  flex: none; padding: 5px 11px; background: var(--ink-3); border-radius: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--fg); white-space: nowrap;
}
.ehc-blurb { color: var(--fg-mute); font-size: 13.5px; line-height: 1.7; margin: 0 0 18px; flex: 1; }
.ehc-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }
.ehc-meta b { color: var(--fg); }
.eh-card .btn-solid { width: 100%; justify-content: center; }
.eh-card .btn-ghost { width: 100%; justify-content: center; }
.eh-card .ehc-blurb:last-of-type { margin-bottom: 0; }   /* keep the lock/request note tidy above the button */

/* ===================================================================
   NEOPUNK CERTIFICATE VAULT + VERIFY  (shared by exam.js + credentials.js)
   =================================================================== */
.np {
  --ng: #00ff9f; --nc: #00f0ff; --nm: #ff00aa; --nbg: #0a0a0a; --npanel: rgba(15,15,15,.85);
  background: var(--nbg); color: #e0e0e0; min-height: 100vh; position: relative;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.np * { box-sizing: border-box; }
.np .mono, .np-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.np-matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .05; pointer-events: none; }
.np-wrap { position: relative; z-index: 1; max-width: 1820px; margin: 0 auto; padding: 0 22px; }
.np-neon { color: var(--ng); text-shadow: 0 0 5px var(--ng), 0 0 10px var(--ng), 0 0 22px var(--ng); }
.np-cyan { color: var(--nc); text-shadow: 0 0 5px var(--nc), 0 0 10px var(--nc); }
.np-magenta { color: var(--nm); text-shadow: 0 0 5px var(--nm), 0 0 15px var(--nm); }
.np-glass { background: var(--npanel); backdrop-filter: blur(12px); border: 1px solid rgba(var(--ngc),.30); border-radius: 18px; }
.np-pad { padding: 20px; }
.np-hdr { font-family: 'VT323', monospace; letter-spacing: 2px; }
.np-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(var(--ngc),.7); font-family: 'JetBrains Mono', monospace; }

/* nav + status bar */
.np-nav { border-bottom: 1px solid rgba(var(--ngc),.3); background: rgba(5,5,5,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.np-nav-in { max-width: 1500px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.np-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.np-logo-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--ng); color: #0a0a0a; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 0 14px rgba(var(--ngc),.6); }
.np-logo-name { font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.np-logo-sub { font-size: 10px; color: rgba(var(--ngc),.7); display: block; margin-top: -4px; letter-spacing: 3px; }
.np-chip { padding: 4px 12px; border-radius: 999px; background: #111; border: 1px solid rgba(var(--ngc),.4); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.np-statusbar { border-bottom: 1px solid rgba(var(--ngc),.2); background: #050505; font-size: 11px; }
.np-statusbar-in { max-width: 1500px; margin: 0 auto; padding: 7px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; color: rgba(var(--ngc),.8); }
.np-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ng); box-shadow: 0 0 8px var(--ng); display: inline-block; animation: np-pulse 2s ease-in-out infinite; }
@keyframes np-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* layout grid */
.np-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 1024px) { .np-grid { grid-template-columns: 2.1fr 8.6fr 2.1fr; align-items: start; } }
.np-col { display: flex; flex-direction: column; gap: 22px; }
.np-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 22px; }
.np-pagehead h1 { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; margin: 0; }

/* holographic certificate frame */
.np-holo { position: relative; padding: 5px; border-radius: 16px; background: linear-gradient(145deg,#111,#1a1a1a); border: 1px solid var(--ng); box-shadow: 0 0 18px rgba(var(--ngc),.4), inset 0 0 22px rgba(0,0,0,.6); transition: box-shadow .35s ease, transform .35s ease; }
.np-holo::before { content: ''; position: absolute; inset: -1px; border-radius: 22px; z-index: -1; opacity: .15; background: linear-gradient(45deg,var(--ng),var(--nc),var(--nm),var(--ng)); background-size: 300% 300%; animation: np-holo 8s linear infinite; }
@keyframes np-holo { 0% { background-position: 0% 50%; } 50% { background-position: 300% 50%; } 100% { background-position: 0% 50%; } }
.np-holo:hover { box-shadow: 0 0 40px rgba(var(--ngc),.5); transform: scale(1.01); }
.np-canvas { position: relative; border-radius: 12px; overflow: hidden; border: none; }
.np-canvas .cert-svg { display: block; width: 100%; height: auto; }
.hud-corner { position: absolute; width: 22px; height: 22px; border-color: var(--ng); border-style: solid; z-index: 4; pointer-events: none; }
.hud-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hud-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hud-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hud-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.np-badge-float { position: absolute; top: 14px; right: 14px; z-index: 5; padding: 6px 14px; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); border: 1px solid var(--ng); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ng); display: flex; align-items: center; gap: 6px; }
.np-scoreband { position: absolute; bottom: 14px; left: 14px; z-index: 5; padding: 8px 18px; background: rgba(0,0,0,.8); backdrop-filter: blur(4px); border: 1px solid rgba(var(--ngc),.7); border-radius: 16px; }
.scanline { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(var(--ngc),.18) 50%, transparent); opacity: .6; }
.scanline.run { animation: np-scan 1.8s linear forwards; }
@keyframes np-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(320%); } }

/* glitch */
.glitch { animation: np-glitch .55s infinite linear alternate-reverse; }
@keyframes np-glitch { 0% { transform: translate(0); } 20% { transform: translate(-2px,2px); } 40% { transform: translate(-2px,-2px); } 60% { transform: translate(2px,2px); } 80% { transform: translate(2px,-2px); } 100% { transform: translate(0); } }

/* buttons */
.np-btn { transition: all .2s cubic-bezier(.23,1,.32,1); border-radius: 16px; font-weight: 700; letter-spacing: 1px; font-size: 13px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border: 1px solid rgba(var(--ngc),.7); background: transparent; color: var(--ng); font-family: 'Space Grotesk', sans-serif; }
.np-btn:hover { box-shadow: 0 0 15px var(--ng), 0 0 30px rgba(var(--ngc),.4); transform: translateY(-1px); }
.np-btn:active { transform: scale(.98); }
.np-btn-solid { background: var(--ng); color: #0a0a0a; border-color: var(--ng); }
.np-btn-magenta { border-color: rgba(255,0,170,.7); color: var(--nm); }
.np-btn-cyan { border-color: rgba(0,240,255,.6); color: var(--nc); }
.np-btn[disabled] { opacity: .55; cursor: default; box-shadow: none; transform: none; }

/* profile card stats / rows */
.np-avatar { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; background: linear-gradient(135deg,var(--ng),var(--nc),var(--nm)); padding: 2px; }
.np-avatar > div { width: 100%; height: 100%; border-radius: 12px; background: #0a0a0a; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--ng); }
.np-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.np-rule { height: 8px; border-radius: 999px; background: #111; overflow: hidden; }
.np-rule > div { height: 100%; background: linear-gradient(90deg,var(--ng),var(--nc)); border-radius: 999px; }
.np-pass { padding: 4px 14px; border-radius: 999px; background: var(--ng); color: #0a0a0a; font-size: 12px; font-weight: 700; }
.np-tag { padding: 2px 10px; border-radius: 999px; font-size: 10px; border: 1px solid rgba(var(--ngc),.4); color: var(--ng); background: rgba(var(--ngc),.08); }
.np-qa { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(var(--ngc),.3); background: transparent; color: #e0e0e0; cursor: pointer; transition: all .15s; font-size: 13px; }
.np-qa:hover { border-color: var(--ng); background: rgba(var(--ngc),.06); }
.np-qa.m { border-color: rgba(255,0,170,.3); } .np-qa.m:hover { border-color: var(--nm); background: rgba(255,0,170,.06); }
.np-qa.c { border-color: rgba(0,240,255,.3); } .np-qa.c:hover { border-color: var(--nc); background: rgba(0,240,255,.06); }
.np-act { display: flex; gap: 12px; font-size: 12px; }
.np-act .t { color: rgba(var(--ngc),.6); width: 58px; flex: 0 0 auto; font-family: 'JetBrains Mono', monospace; }

/* terminal */
.np-term { background: #050505; border: 1px solid var(--ng); border-radius: 18px; box-shadow: 0 0 10px rgba(var(--ngc),.2); overflow: hidden; }
.np-term-out { height: 190px; overflow-y: auto; padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: rgba(var(--ngc),.9); line-height: 1.6; }
.np-term-in { display: flex; align-items: center; border-top: 1px solid rgba(var(--ngc),.3); padding: 12px 16px; background: #050505; }
.np-term-in input { flex: 1; background: transparent; border: none; outline: none; color: var(--ng); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.np-logline { animation: np-fade .2s ease forwards; }
@keyframes np-fade { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* verify page */
.np-verify-input { width: 100%; padding: 16px 22px; font-size: 22px; letter-spacing: 3px; border-radius: 16px; background: #050505; border: 1px solid var(--ng); color: var(--ng); font-family: 'JetBrains Mono', monospace; box-shadow: 0 0 8px rgba(var(--ngc),.2); }
.np-verify-input:focus { outline: none; border-color: var(--nc); box-shadow: 0 0 0 3px rgba(0,240,255,.15), 0 0 15px rgba(var(--ngc),.3); }
.np-spinner { width: 56px; height: 56px; border: 4px solid var(--ng); border-top-color: transparent; border-radius: 50%; animation: np-spin .8s linear infinite; margin: 0 auto; }
@keyframes np-spin { to { transform: rotate(360deg); } }
.np-statgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .np-statgrid { grid-template-columns: repeat(3, 1fr); } }
.np-statbox { background: #0a0a0a; border: 1px solid rgba(var(--ngc),.3); border-radius: 16px; padding: 18px; }
.np-modal { position: fixed; inset: 0; background: rgba(0,0,0,.9); backdrop-filter: blur(12px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 22px; }
.np-modal-card { max-width: 540px; width: 100%; }
.np-fade-up { animation: np-fadeup .5s cubic-bezier(.23,1,.32,1); }
@keyframes np-fadeup { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* "Classic" (Default theme): strip the neon flair from the np layout. */
.np.classic { --ng: #cfd8e3; --nc: #aeb9c6; --nm: #c98aa6; --ngc: 207,216,227; }
.np.classic .np-neon, .np.classic .np-cyan, .np.classic .np-magenta { text-shadow: none !important; }
.np.classic .np-matrix { display: none !important; }
.np.classic .np-holo::before { display: none !important; }
.np.classic .np-holo { box-shadow: none; border-color: #2c3a4d; }
.np.classic .np-glass { border-color: #2c3a4d; }
.np.classic .np-dot { box-shadow: none; animation: none; }
.np.classic .np-btn:hover { box-shadow: none; }

/* ===================================================================
   NEON//BREACH neo-punk skin — centered + glowing exam surface.
   (Appended last so it wins over the base rules; tokens above recolour
   the rest of the player automatically.)
   =================================================================== */
.exam-root {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,249,255,.06), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(255,0,170,.05), transparent 60%),
    var(--ink-0);
  position: relative;
}
/* faint moving scanlines over everything (non-interactive) */
.exam-root::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(rgba(0,249,255,.022) 50%, transparent 51%);
  background-size: 100% 5px;
}
/* centre the in-exam column */
.exam-main { margin: 0 auto; }

/* gate */
.gate-card {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 26px rgba(0,249,255,.18), inset 0 0 26px rgba(0,249,255,.05);
}
.gate-card h1 { font-family: var(--mono); letter-spacing: 1px; text-shadow: 0 0 12px rgba(0,249,255,.55); }

/* top bar */
.exam-top { border-bottom: 1px solid rgba(0,249,255,.3); box-shadow: 0 0 18px rgba(0,249,255,.08); }
.et-title { text-shadow: 0 0 8px var(--neon-cyan); }

/* questions — magenta topic chip, cyan selection glow */
.q-topic { background: rgba(255,0,170,.12); color: var(--neon-magenta); border-color: rgba(255,0,170,.4); }
.q-choice:hover { border-color: var(--neon-cyan); box-shadow: 0 0 14px rgba(0,249,255,.25); }
.q-choice.selected { border-color: var(--neon-cyan) !important; background: rgba(0,249,255,.12) !important; box-shadow: 0 0 16px rgba(0,249,255,.3); }
.q-choice.selected .letter { background: var(--neon-cyan) !important; color: #06121a !important; border-color: var(--neon-cyan) !important; }

/* buttons glow */
.exam-root .btn-solid { box-shadow: 0 0 14px rgba(0,249,255,.25); }
.exam-root .btn-solid:hover { box-shadow: 0 0 22px var(--neon-cyan); transform: translateY(-1px); }

/* simulation — lime accents like the terminal in the mock */
.sim-brief { border-left-color: var(--neon-lime); box-shadow: inset 0 0 18px rgba(57,255,20,.04); }
.sim-iframe-wrap { border-color: rgba(57,255,20,.3); box-shadow: 0 0 20px rgba(57,255,20,.12); }

/* sim view: FULL-BLEED to the entire viewport (a real fullscreen terminal, not a boxed
   column) — breaks out of the centered exam column whatever its width. */
.exam-main.sim-wide { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 22px 40px; }
.exam-main.sim-wide .sim-iframe-wrap { border-radius: 0; border-left: 0; border-right: 0; }
.exam-main.sim-wide .sim-iframe { height: 80vh; min-height: 520px; }

/* per-topic performance (strengths / weaknesses) on the result screen */
.topic-breakdown { margin: 22px auto 0; max-width: 540px; text-align: left;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px;
  box-shadow: 0 0 18px rgba(0,249,255,.08); }
.topic-breakdown .tb-head { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--neon-cyan); margin-bottom: 4px; }
.topic-breakdown .tb-total { font-size: 13px; color: var(--fg-mute); margin-bottom: 12px; }
.tb-standalone { max-width: 1080px; margin: 0 auto; padding: 0 20px 48px; }

/* During a simulation, reclaim the left nav so the lab spans the FULL width and the
   engine keeps its horizontal (questions | objectives) layout instead of stacking. */
/* The question + simulation nav strip stays visible at all times (sticky top) so the
   candidate can always switch tickets/sims and get back — even inside a lab. */

/* Per-exam certificate colour: --phos/--blue are set on .exam-root (gate/player) and
   on each .eh-card (hub). Make button hovers follow that accent instead of the fixed
   green, so the whole exam reads in its certificate's colour (default = website green). */
.exam-root .btn-solid:hover, .eh-card .btn-solid:hover { background: var(--phos); filter: brightness(1.14); }
.exam-root .btn-ghost:hover, .eh-card .btn-ghost:hover { border-color: var(--phos); color: var(--phos); }
.gate-card { border-top-color: var(--phos); }

/* Quiz on WIDTH not height: prompt on the left, answer choices on the right. */
/* Questions: a single, centered column in the middle of the screen. */
/* QUIZ: its own framed card, centered in the middle. (The simulation has its own
   full-width frame via .sim-iframe-wrap — two distinct frames.) */
.exam-main.q-wide { max-width: 720px; margin: 0 auto; }
.exam-main.q-wide .q-view {
  display: block;
  background: var(--ink-1, #0d141b);
  border: 1px solid var(--phos, #6df58a);
  border-radius: 12px;
  padding: 30px 32px 26px;
  box-shadow: 0 0 22px rgba(0,0,0,.35);
}
.exam-main.q-wide .q-view .q-info { margin-bottom: 22px; }
.exam-main.q-wide .q-view .q-nav { margin-top: 24px; }
