/* ============================================================
   FLEXING DATA — Assessment Platform Styles
   ============================================================ */
:root {
  --bg-1:#02061a; --bg-2:#0a1545; --bg-3:#1a2a7a;
  --gold-1:#ffd451; --gold-2:#f5a623; --gold-3:#c98712;
  --hot-purple:#6a1b9a; --hot-red:#c62828;
  --ok-green:#2ecc71; --text-light:#f5f1e8; --text-dim:#a9b3d1;
}
body { background: var(--bg-1); color: var(--text-light); }

/* ===== Global text-color guard against site main.css bleed =====
   Anything inside .card defaults to light text unless explicitly themed.
   Buttons, score pills and gold-themed elements override below. */
.card, .card p, .card span, .card div, .card li, .card td, .card th,
.card label, .card legend, .card small, .card strong { color: #f5f1e8; }
.card h1, .card h2, .card h3, .card h4 { color: var(--gold-1); }
.card a { color: var(--gold-1); }
.card a:hover { color: #fff; }
/* Re-allow buttons/pills/badges to keep their own dark text on gold backgrounds */
.card .start-btn, .card .next-btn, .card .score-pill, .card .qnum-pill,
.card .badge-item, .card .role-card.active, .card .num-circle { color: #1a1a1a; }
.quiz-page {
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 50% 0%, #1a2a7a 0%, #0a1545 35%, #02061a 80%),
    radial-gradient(ellipse at 50% 100%, #4a148c33 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-light);
  padding: 140px 1rem 5rem;
  min-height: 100vh;
  display: flex; justify-content: center; align-items: flex-start; box-sizing: border-box;
}
@media (max-width:768px) { .quiz-page { padding: 110px .5rem 3rem; } }

.card {
  background: linear-gradient(180deg, rgba(15,27,90,.85), rgba(5,10,40,.95));
  border-radius: 22px; padding: 2.25rem;
  max-width: 880px; width: 100%;
  box-shadow: 0 0 60px rgba(255,212,81,.15), 0 0 0 1px rgba(255,212,81,.25);
  margin: 0 auto; position: relative;
}
.badge-q {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #1a1a1a; font-size: 12px; padding: 5px 14px; border-radius: 8px;
  font-weight: 700; margin-bottom: 1rem; letter-spacing: .5px;
}
.quiz-page h1 {
  font-size: 28px; font-weight: 800; margin-bottom: .5rem;
  color: var(--gold-1); text-shadow: 0 2px 12px rgba(255,212,81,.3);
}
.quiz-page h2 { font-size: 20px; font-weight: 700; color: var(--gold-1); margin: 1.5rem 0 .75rem; }
.sub { font-size: 15px; color: var(--text-dim); line-height: 1.65; margin-bottom: 1.25rem; }

.stat-row { display: flex; gap: 10px; margin-bottom: 1.25rem; flex-wrap: wrap; }
.stat-box { flex: 1 1 120px; background: rgba(255,212,81,.08); border: 1px solid rgba(255,212,81,.2); border-radius: 10px; padding: 12px; text-align: center; }
.stat-box .num { font-size: 22px; font-weight: 800; color: var(--gold-1); }
.stat-box .lbl { font-size: 11px; color: var(--text-dim); letter-spacing: .5px; }

.start-btn, .next-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #1a1a1a; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(255,165,35,.4);
}
.start-btn:hover, .next-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,165,35,.55); }
.start-btn:disabled { background: #6b6552; color: #aaa; cursor: not-allowed; }
.restart-btn {
  padding: 12px 28px; background: transparent; color: var(--gold-1);
  border: 1.5px solid var(--gold-1); border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.restart-btn:hover { background: rgba(255,212,81,.1); }

.screen { display: none; }
.screen.active { display: block; }

/* ── Retake-from-Hub: no flash before the countdown ──────────────────────────
   Set on <html> by an early <head> script when the URL is ?fromHub=1&autostart=1.
   The countdown (#prep-screen) paints first; the sign-up wizard (#intro) is
   never shown; and the fade is suppressed so the pre-painted "10" doesn't blink
   when JS starts the timer. JS removes .hub-autostart when it leaves the prep. */
html.hub-autostart #intro { display: none !important; }
html.hub-autostart #prep-screen { display: block; }
html.hub-autostart #prep-screen.active { animation: none; }

/* Form — !important everywhere to beat site main.css */
.form-label { display: block !important; font-weight: 600 !important; margin-bottom: 6px !important; font-size: 14px !important; color: var(--gold-1) !important; }
.form-input, .form-select {
  width: 100% !important; padding: 12px 14px !important; border-radius: 10px !important;
  border: 1.5px solid rgba(255,212,81,.25) !important;
  background: rgba(0,0,0,.4) !important;
  background-color: rgba(0,0,0,.4) !important;
  color: #f5f1e8 !important;
  -webkit-text-fill-color: #f5f1e8 !important;   /* Chrome autofill safety */
  margin-bottom: 12px !important; font-size: 14px !important; font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.form-select {
  /* Custom gold chevron arrow since we killed the native appearance */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffd451' d='M0 0l6 8 6-8z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}
.form-input:focus, .form-select:focus { outline: none !important; border-color: var(--gold-1) !important; box-shadow: 0 0 0 3px rgba(255,212,81,.15) !important; }
.form-input::placeholder { color: #8b94b8 !important; opacity: 1 !important; }
.form-input::-webkit-input-placeholder { color: #8b94b8 !important; }
.form-input::-moz-placeholder { color: #8b94b8 !important; opacity: 1 !important; }

/* <option> elements ignore most CSS — but background+color works on modern browsers */
.form-select option {
  background: #02061a !important;
  background-color: #02061a !important;
  color: #f5f1e8 !important;
}

/* Kill Chrome's yellow autofill background that hides our text */
input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover,
input.form-input:-webkit-autofill:focus,
input.form-input:-webkit-autofill:active {
  -webkit-text-fill-color: #f5f1e8 !important;
  -webkit-box-shadow: 0 0 0 30px rgba(0,0,0,.4) inset !important;
  caret-color: #f5f1e8 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-error { color: #ff8a8a !important; font-size: 13px; margin: -8px 0 10px; min-height: 18px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.phone-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.phone-row select { flex: 0 0 100px; }
.phone-row input { flex: 1; margin-bottom: 0; }

.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 10px; margin-bottom: 14px; }
.role-card { cursor: pointer; padding: 14px 12px; border: 1.5px solid rgba(255,212,81,.3); border-radius: 12px; background: rgba(0,0,0,.3); text-align: center; transition: all .15s; }
.role-card:hover { border-color: var(--gold-1); }
.role-card.active { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #1a1a1a; border-color: var(--gold-1); }
.role-card .emoji { font-size: 24px; margin-bottom: 4px; }
.role-card .name { font-size: 13px; font-weight: 700; }
.role-fields { display: none; padding: 14px; background: rgba(0,0,0,.2); border: 1px dashed rgba(255,212,81,.2); border-radius: 10px; margin-bottom: 12px; }
.role-fields.active { display: block; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,212,81,.25); border-radius: 10px; margin-bottom: 14px; cursor: pointer; }
.consent-row:hover { border-color: var(--gold-1); }
.consent-row input[type="checkbox"] {
  appearance: auto !important; -webkit-appearance: checkbox !important;
  width: 20px !important; height: 20px !important; min-width: 20px !important;
  margin: 2px 0 0 !important; accent-color: var(--gold-1) !important;
  cursor: pointer; display: inline-block !important; opacity: 1 !important;
  visibility: visible !important; position: static !important; flex-shrink: 0;
}
.consent-row span { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* OTP screen — bulletproof white text, no matter what site CSS says */
.otp-box { display: flex !important; gap: 8px !important; justify-content: center !important; margin: 1rem 0 !important; }
.otp-input,
input.otp-input,
input[type="text"].otp-input {
  width: 48px !important; height: 56px !important;
  text-align: center !important;
  font-size: 24px !important; font-weight: 800 !important;
  border-radius: 10px !important;
  border: 1.5px solid rgba(255,212,81,.4) !important;
  background: rgba(0,0,0,.6) !important;
  background-color: rgba(0,0,0,.6) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: var(--gold-1) !important;
  font-family: inherit !important;
  appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important;
  opacity: 1 !important;
  text-shadow: 0 0 1px rgba(255,255,255,0.3);
}
.otp-input:focus { outline: none !important; border-color: var(--gold-1) !important; box-shadow: 0 0 0 3px rgba(255,212,81,.25) !important; background: rgba(0,0,0,.75) !important; }
.otp-input::placeholder { color: rgba(255,255,255,0.4) !important; }
.otp-input:-webkit-autofill,
.otp-input:-webkit-autofill:hover,
.otp-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 30px rgba(0,0,0,.6) inset !important;
  caret-color: var(--gold-1) !important;
  transition: background-color 99999s ease-in-out 0s;
}
.otp-status { font-size: 13px; color: var(--text-dim); text-align: center; margin: 8px 0; }
.resend-link { color: var(--gold-1); cursor: pointer; text-decoration: underline; }

.returning-banner { background: linear-gradient(135deg, rgba(46,204,113,.2), rgba(46,204,113,.1)); color: #82e0aa; border: 1px solid rgba(46,204,113,.4); padding: 18px; border-radius: 12px; margin-bottom: 1.25rem; font-size: 15px; line-height: 1.6; display: none; }
.returning-banner.active { display: block; }
.attempts-bar { background: rgba(0,0,0,.3); border: 1px solid rgba(255,212,81,.25); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.attempts-bar strong { color: var(--gold-1); }

/* Quiz top bar */
.quiz-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,212,81,.15); flex-wrap: wrap; }
.qnum-pill { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #1a1a1a; font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 99px; }
.timer-group { display: flex; gap: 8px; align-items: center; }
.timer-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.4); color: var(--text-light); border: 1px solid rgba(255,212,81,.25); font-variant-numeric: tabular-nums; }
.live-score { display: inline-flex; align-items: center; gap: 6px; background: rgba(46,204,113,.15); color: #2ecc71; border: 1px solid rgba(46,204,113,.35); font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 99px; transition: transform .25s, background .25s; }
.live-score.bump { transform: scale(1.2); background: rgba(46,204,113,.35); }

/* Circular timer */
.q-timer-ring-wrap { position: relative; width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; color: var(--ok-green); transition: color .3s; }
.q-timer-ring-wrap #q-timer-ring { transition: stroke-dashoffset 1s linear, stroke .3s; }
.q-timer-ring-wrap .ring-text { position: absolute; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: inherit; }
.q-timer-ring-wrap.warn { color: var(--gold-2); }
.q-timer-ring-wrap.danger { color: #ff5252; }

.q-category { display: inline-block; background: var(--hot-purple); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; }
.q-text-big { font-size: 20px; font-weight: 600; line-height: 1.55; margin-bottom: 1.5rem; color: var(--text-light); padding: 18px 22px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,212,81,.2); border-radius: 14px; }

.opt { display: flex !important; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 20px; margin-bottom: 12px; background: linear-gradient(180deg, rgba(15,27,90,.7), rgba(5,10,40,.7)); border: 2px solid rgba(255,212,81,.35); border-radius: 999px; font-size: 15px; cursor: pointer; transition: all .15s ease; color: var(--text-light); font-family: inherit; line-height: 1.4; }
.opt .opt-key { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 50%; background: rgba(255,212,81,.15); color: var(--gold-1); font-weight: 800; font-size: 14px; border: 1.5px solid rgba(255,212,81,.4); flex-shrink: 0; }
.opt:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,212,81,.2), rgba(255,165,35,.15)); border-color: var(--gold-1); transform: translateY(-1px); }
.opt:hover:not(:disabled) .opt-key { background: var(--gold-1); color: #1a1a1a; }
.opt.correct { background: linear-gradient(180deg, #27ae60, #1e8449); color: #fff; border-color: #2ecc71; }
.opt.correct .opt-key { background: #fff; color: #1e8449; border-color: #fff; }
.opt.wrong { background: linear-gradient(180deg, #c0392b, #922b21); color: #fff; border-color: #e74c3c; }
.opt.wrong .opt-key { background: #fff; color: #922b21; border-color: #fff; }

.explain { padding: 16px 18px; border-radius: 12px; background: rgba(255,212,81,.1); border: 1px solid rgba(255,212,81,.3); font-size: 14px; color: var(--text-light); margin-bottom: 1.25rem; line-height: 1.65; display: none; }
.explain .learn-tip { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,212,81,.3); font-size: 13px; color: var(--text-dim); }
.explain .learn-tip strong { color: var(--gold-1); }

.palette { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed rgba(255,212,81,.2); }
.palette-label { font-size: 11px; font-weight: 700; color: var(--gold-1); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }
.palette-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.palette-cell { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; font-weight: 800; border: 1.5px solid rgba(255,212,81,.3); background: rgba(0,0,0,.4); color: var(--text-dim); }
.palette-cell.current { border-color: var(--gold-1); background: rgba(255,212,81,.2); color: var(--gold-1); box-shadow: 0 0 0 2px rgba(255,212,81,.25); }
.palette-cell.correct { background: var(--ok-green); border-color: var(--ok-green); color: #fff; }
.palette-cell.wrong { background: var(--hot-red); border-color: var(--hot-red); color: #fff; }

.q-footer { display: flex; justify-content: flex-end; margin-top: 1rem; gap: 12px; flex-wrap: wrap; }

/* Result — force visibility against any site CSS bleed */
.card #result, .card #result * { color: #f5f1e8; }                /* default white inside result screen */
.card #result a { color: var(--gold-1) !important; }              /* links stay gold */

.score-pill { display: inline-block !important; font-size: 36px !important; font-weight: 900 !important; padding: 12px 36px !important; border-radius: 99px !important; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)) !important; color: #1a1a1a !important; margin-bottom: 1rem !important; box-shadow: 0 0 40px rgba(255,212,81,.5) !important; }
.res-emoji { font-size: 56px !important; margin-bottom: .75rem !important; }
.res-title { font-size: 24px !important; font-weight: 800 !important; margin-bottom: .5rem !important; color: var(--gold-1) !important; }
.res-sub { font-size: 15px !important; color: var(--text-dim) !important; line-height: 1.7 !important; margin-bottom: 1.5rem !important; }

.stats-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)) !important; gap: 10px !important; margin-bottom: 1.5rem !important; }
.stat-tile { background: rgba(255,212,81,.08) !important; border: 1px solid rgba(255,212,81,.25) !important; border-radius: 12px !important; padding: 14px !important; text-align: center !important; }
.stat-tile .v { font-size: 24px !important; font-weight: 800 !important; color: var(--gold-1) !important; }
.stat-tile .l { font-size: 11px !important; color: var(--text-dim) !important; text-transform: uppercase !important; letter-spacing: .5px !important; margin-top: 4px !important; }

/* Bridge to Learner Hub */
.hub-bridge {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0,175,255,0.18), rgba(0,175,255,0.04));
  border: 1.5px solid rgba(0,175,255,0.45);
  border-radius: 14px;
  flex-wrap: wrap;
  animation: hubGlow 2.4s ease-in-out infinite alternate;
}
@keyframes hubGlow {
  from { box-shadow: 0 0 0 0 rgba(0,175,255,0.18); }
  to   { box-shadow: 0 0 30px 4px rgba(0,175,255,0.25); }
}
.hub-bridge-title { font-size: 16px !important; font-weight: 800 !important; color: #00afff !important; }
.hub-bridge-sub   { font-size: 13px !important; color: var(--text-dim) !important; margin-top: 2px; }
.hub-bridge-btn {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(135deg, #00afff, #0080cc);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(0,175,255,0.4);
}
.hub-bridge-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,175,255,0.55); color: #fff !important; }
/* Tablet + mobile — stack vertically, full-width button */
@media (max-width: 768px) {
  .hub-bridge { flex-direction: column; text-align: center; gap: 14px; padding: 18px; }
  .hub-bridge-text { width: 100%; }
  .hub-bridge-title { font-size: 17px !important; }
  .hub-bridge-sub { font-size: 13px !important; line-height: 1.5; }
  .hub-bridge-btn { width: 100% !important; justify-content: center; padding: 14px 22px; }
}

/* Performance persona card */
.persona-card { background: linear-gradient(135deg, rgba(255,212,81,0.15), rgba(245,166,35,0.08)); border: 1px solid rgba(255,212,81,0.35); border-radius: 14px; padding: 18px 20px; text-align: center; margin-bottom: 1.5rem; }
.persona-label { font-size: 11px !important; color: var(--text-dim) !important; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.persona-name { font-size: 24px !important; font-weight: 800 !important; color: var(--gold-1) !important; margin: 4px 0; }
.persona-hint { font-size: 12px !important; color: var(--text-dim) !important; font-style: italic; }

.cat-table { width: 100% !important; border-collapse: collapse !important; margin-bottom: 1rem !important; background: transparent !important; }
.cat-table th, .cat-table td { padding: 12px 14px !important; border-bottom: 1px solid rgba(255,212,81,.15) !important; font-size: 14px !important; text-align: left !important; background: transparent !important; }
.cat-table th { color: var(--gold-1) !important; font-weight: 700 !important; font-size: 12px !important; text-transform: uppercase !important; letter-spacing: .5px !important; }
.cat-table td { color: #f5f1e8 !important; font-weight: 600 !important; }
/* Per-row tinting for category names by performance */
.cat-table tr.cat-strong td:first-child { color: #5ee29c !important; }   /* green */
.cat-table tr.cat-medium td:first-child { color: #ffd451 !important; }   /* gold */
.cat-table tr.cat-weak   td:first-child { color: #ff8a8a !important; }   /* red */
.cat-table tr.cat-strong td:nth-child(2),
.cat-table tr.cat-medium td:nth-child(2),
.cat-table tr.cat-weak   td:nth-child(2) { font-weight: 800 !important; color: #fff !important; }
.cat-table .pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.cat-table .pill.strong { background: rgba(46,204,113,.2); color: #2ecc71; }
.cat-table .pill.medium { background: rgba(245,166,35,.2); color: var(--gold-1); }
.cat-table .pill.weak { background: rgba(198,40,40,.2); color: #ff8a8a; }

.badge-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.badge-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #1a1a1a; font-size: 12px; font-weight: 800; }

.tip-card { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,212,81,.2); background: rgba(0,0,0,.3); font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.tip-card strong { color: var(--gold-1); }
.tip-card a { color: var(--gold-1); text-decoration: underline; }

.roadmap-step { display: flex; gap: 14px; padding: 14px; background: rgba(0,0,0,.3); border-left: 3px solid var(--gold-1); border-radius: 8px; margin-bottom: 10px; }
.roadmap-step .num-circle { min-width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #1a1a1a; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.roadmap-step .body .title { color: var(--gold-1); font-weight: 700; margin-bottom: 4px; }
.roadmap-step .body .desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.chart-wrap { background: rgba(0,0,0,.3); border: 1px solid rgba(255,212,81,.2); border-radius: 14px; padding: 16px; margin-bottom: 1.25rem; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.25rem; }
@media (max-width: 700px) { .chart-grid { grid-template-columns: 1fr; } }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-card { background: linear-gradient(180deg,#0a1545,#02061a); border: 2px solid var(--gold-1); border-radius: 16px; padding: 28px; max-width: 540px; width: 100%; color: var(--text-light); max-height: 85vh; overflow-y: auto; }

.toast { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); background: var(--hot-red); color: #fff; padding: 14px 24px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 10000; font-weight: 700; display: none; }
.toast.active { display: block; }

/* Sound toggle */
/* Sound toggle — floats outside card so it never overlaps content */
.sound-toggle {
  position: fixed !important;
  top: 96px !important;
  right: 16px !important;
  background: rgba(0,0,0,0.75) !important;
  color: var(--gold-1) !important;
  border: 1px solid var(--gold-1) !important;
  border-radius: 99px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  z-index: 50 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.sound-toggle:hover { background: var(--gold-1) !important; color: #1a1a1a !important; }
@media (max-width: 600px) {
  .sound-toggle { top: 78px !important; right: 8px !important; padding: 4px 10px !important; font-size: 11px !important; }
}

.locked-screen { text-align: center; padding: 2rem 0; }
.locked-screen .lock-icon { font-size: 64px; margin-bottom: 1rem; }

@media (max-width: 600px) {
  .card { padding: 1.4rem; }
  .quiz-topbar { gap: 8px; }
  .qnum-pill, .timer-pill, .live-score { font-size: 11px; padding: 4px 10px; }
  .q-text-big { font-size: 16px; padding: 14px 16px; }
  .opt { font-size: 13px; padding: 11px 14px; border-radius: 16px; }
  .opt .opt-key { min-width: 28px; height: 28px; font-size: 12px; }
  .quiz-page h1 { font-size: 22px; }
  .otp-input { width: 40px; height: 48px; font-size: 18px; }
}

/* ============================================================
   ☀️ WARM LIGHT THEME OVERRIDE — matches the new homepage.
   Appended last so it wins; keeps the radar-chart panel dark.
   ============================================================ */
:root{
  --bg-1:#fffaf4; --bg-2:#fff3e9; --bg-3:#eef4f8;
  --gold-1:#0a7ba6; --gold-2:#0a96c7; --gold-3:#0a7ba6;
  --text-light:#18222f; --text-dim:#6c7785;
}
body{ background:#fffaf4 !important; color:#18222f !important; }
.quiz-page{ background:linear-gradient(180deg,#fff3e9,#fffaf4) !important; color:#18222f !important; }

.card{ background:#ffffff !important; border:1px solid rgba(24,34,47,.09) !important; box-shadow:0 22px 48px -22px rgba(15,42,64,.30) !important; }
.card, .card p, .card span, .card div, .card li, .card td, .card th, .card label, .card legend, .card small, .card strong{ color:#44515f; }
.card h1, .card h2, .card h3, .card h4{ color:#18222f; }
.card a{ color:#0a7ba6; } .card a:hover{ color:#0a96c7 !important; }
.quiz-page h1{ color:#18222f !important; text-shadow:none !important; }
.quiz-page h2{ color:#0a7ba6 !important; }
.sub{ color:#6c7785 !important; }

.badge-q{ background:#e4f4fb !important; color:#0a7ba6 !important; }
.stat-box{ background:#f6f9fb !important; border-color:rgba(24,34,47,.1) !important; }
.stat-box .num{ color:#0a7ba6 !important; } .stat-box .lbl{ color:#6c7785 !important; }

.start-btn, .next-btn{ background:linear-gradient(135deg,#ff8a63,#ff7a59) !important; color:#fff !important; box-shadow:0 12px 26px -10px rgba(255,122,89,.6) !important; }
.start-btn:disabled{ background:#e7e2d9 !important; color:#9aa1a8 !important; }
.restart-btn{ color:#0a7ba6 !important; border-color:rgba(24,34,47,.2) !important; }
.restart-btn:hover{ background:#e4f4fb !important; }

.form-label{ color:#44515f !important; }
.form-input, .form-select{ background:#fff !important; background-color:#fff !important; color:#18222f !important; -webkit-text-fill-color:#18222f !important; border:1.5px solid rgba(24,34,47,.16) !important; }
.form-select{ background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230a7ba6' d='M0 0l6 8 6-8z'/></svg>") !important; }
.form-input:focus, .form-select:focus{ border-color:#0a96c7 !important; box-shadow:0 0 0 3px rgba(10,150,199,.15) !important; }
.form-input::placeholder{ color:#9aa1a8 !important; } .form-input::-webkit-input-placeholder{ color:#9aa1a8 !important; } .form-input::-moz-placeholder{ color:#9aa1a8 !important; }
.form-select option{ background:#fff !important; background-color:#fff !important; color:#18222f !important; }
input.form-input:-webkit-autofill, input.form-input:-webkit-autofill:hover, input.form-input:-webkit-autofill:focus, input.form-input:-webkit-autofill:active{ -webkit-text-fill-color:#18222f !important; -webkit-box-shadow:0 0 0 30px #fff inset !important; caret-color:#18222f !important; }
.form-error{ color:#c0392b !important; }

.role-card{ background:#fff !important; border-color:rgba(24,34,47,.16) !important; color:#18222f !important; }
.role-card:hover{ border-color:#0a96c7 !important; }
.role-card.active{ background:linear-gradient(135deg,#0a96c7,#0a7ba6) !important; color:#fff !important; border-color:#0a96c7 !important; }
.role-fields{ background:#f6f9fb !important; border-color:rgba(24,34,47,.14) !important; }
.consent-row{ background:#f6f9fb !important; border-color:rgba(24,34,47,.14) !important; }
.consent-row:hover{ border-color:#0a96c7 !important; }
.consent-row span{ color:#44515f !important; }
.consent-row input[type="checkbox"]{ accent-color:#0a96c7 !important; }

.otp-input, input.otp-input, input[type="text"].otp-input{ background:#fff !important; background-color:#fff !important; color:#18222f !important; -webkit-text-fill-color:#18222f !important; border:1.5px solid rgba(24,34,47,.18) !important; caret-color:#0a96c7 !important; text-shadow:none !important; }
.otp-input:focus{ border-color:#0a96c7 !important; box-shadow:0 0 0 3px rgba(10,150,199,.2) !important; background:#fff !important; }
.otp-input:-webkit-autofill, .otp-input:-webkit-autofill:hover, .otp-input:-webkit-autofill:focus{ -webkit-text-fill-color:#18222f !important; -webkit-box-shadow:0 0 0 30px #fff inset !important; caret-color:#0a96c7 !important; }
.otp-status{ color:#6c7785 !important; } .resend-link{ color:#0a7ba6 !important; }

.returning-banner{ background:#e6f7f0 !important; color:#0c7a5a !important; border-color:#b8ead4 !important; }
.attempts-bar{ background:#f6f9fb !important; border-color:rgba(24,34,47,.14) !important; } .attempts-bar strong{ color:#0a7ba6 !important; }

.quiz-topbar{ border-bottom-color:rgba(24,34,47,.1) !important; }
.qnum-pill{ background:linear-gradient(135deg,#0a96c7,#0a7ba6) !important; color:#fff !important; }
.timer-pill{ background:#f6f9fb !important; color:#18222f !important; border-color:rgba(24,34,47,.14) !important; }
.live-score{ background:#e6f7f0 !important; color:#0c7a5a !important; border-color:#b8ead4 !important; } .live-score.bump{ background:#c8f0dd !important; }
.q-category{ background:#7c5cff !important; color:#fff !important; }
.q-text-big{ background:#f6f9fb !important; color:#18222f !important; border-color:rgba(24,34,47,.1) !important; }

.opt{ background:#ffffff !important; border:2px solid rgba(24,34,47,.14) !important; color:#18222f !important; }
.opt .opt-key{ background:#e4f4fb !important; color:#0a7ba6 !important; border-color:#bfe6f4 !important; }
.opt:hover:not(:disabled){ background:#f3fafd !important; border-color:#0a96c7 !important; }
.opt:hover:not(:disabled) .opt-key{ background:#0a96c7 !important; color:#fff !important; }
.opt.correct{ background:linear-gradient(180deg,#27ae60,#1e8449) !important; color:#fff !important; border-color:#2ecc71 !important; }
.opt.correct .opt-key{ background:#fff !important; color:#1e8449 !important; border-color:#fff !important; }
.opt.wrong{ background:linear-gradient(180deg,#e74c3c,#c0392b) !important; color:#fff !important; border-color:#e74c3c !important; }
.opt.wrong .opt-key{ background:#fff !important; color:#922b21 !important; border-color:#fff !important; }

.explain{ background:#e4f4fb !important; color:#18222f !important; border-color:#bfe6f4 !important; }
.explain .learn-tip{ color:#6c7785 !important; border-top-color:rgba(24,34,47,.12) !important; } .explain .learn-tip strong{ color:#0a7ba6 !important; }
.palette{ border-top-color:rgba(24,34,47,.12) !important; } .palette-label{ color:#0a7ba6 !important; }
.palette-cell{ background:#f0f3f6 !important; border-color:rgba(24,34,47,.14) !important; color:#6c7785 !important; }
.palette-cell.current{ border-color:#0a96c7 !important; background:#e4f4fb !important; color:#0a7ba6 !important; box-shadow:0 0 0 2px rgba(10,150,199,.25) !important; }
.palette-cell.correct{ background:#2ecc71 !important; border-color:#2ecc71 !important; color:#fff !important; }
.palette-cell.wrong{ background:#e74c3c !important; border-color:#e74c3c !important; color:#fff !important; }

.card #result, .card #result *{ color:#44515f; } .card #result a{ color:#0a7ba6 !important; }
.score-pill{ background:linear-gradient(135deg,#ff8a63,#ff7a59) !important; color:#fff !important; box-shadow:0 0 40px rgba(255,122,89,.4) !important; }
.res-title{ color:#18222f !important; } .res-sub{ color:#6c7785 !important; }
.stat-tile{ background:#f6f9fb !important; border-color:rgba(24,34,47,.14) !important; } .stat-tile .v{ color:#0a7ba6 !important; } .stat-tile .l{ color:#6c7785 !important; }
.persona-card{ background:linear-gradient(135deg,#fff5e1,#fff0eb) !important; border-color:#f5deb0 !important; }
.persona-label{ color:#6c7785 !important; } .persona-name{ color:#18222f !important; } .persona-hint{ color:#6c7785 !important; }
.cat-table th, .cat-table td{ border-bottom-color:rgba(24,34,47,.1) !important; }
.cat-table th{ color:#0a7ba6 !important; } .cat-table td{ color:#18222f !important; }
.cat-table tr.cat-strong td:first-child{ color:#0c7a5a !important; } .cat-table tr.cat-medium td:first-child{ color:#b3760a !important; } .cat-table tr.cat-weak td:first-child{ color:#c0392b !important; }
.cat-table tr.cat-strong td:nth-child(2), .cat-table tr.cat-medium td:nth-child(2), .cat-table tr.cat-weak td:nth-child(2){ color:#18222f !important; }
.cat-table .pill.strong{ background:#e6f7f0 !important; color:#0c7a5a !important; } .cat-table .pill.medium{ background:#fff5e1 !important; color:#b3760a !important; } .cat-table .pill.weak{ background:#fdecea !important; color:#c0392b !important; }
.badge-item{ background:linear-gradient(135deg,#f5a623,#ff7a59) !important; color:#fff !important; }
.tip-card{ background:#f6f9fb !important; border-color:rgba(24,34,47,.12) !important; color:#44515f !important; } .tip-card strong{ color:#0a7ba6 !important; } .tip-card a{ color:#0a7ba6 !important; }
.roadmap-step{ background:#f6f9fb !important; border-left-color:#ff7a59 !important; }
.roadmap-step .num-circle{ background:linear-gradient(135deg,#ff8a63,#ff7a59) !important; color:#fff !important; }
.roadmap-step .body .title{ color:#18222f !important; } .roadmap-step .body .desc{ color:#6c7785 !important; }

/* radar chart panel — kept dark on purpose (chart colors come from JS),
   reads as an intentional data panel like the homepage assessment card */
.chart-wrap{ background:#0e2233 !important; border:1px solid rgba(255,255,255,.12) !important; }

.modal-overlay{ background:rgba(15,42,64,.55) !important; }
.modal-card{ background:#fff !important; border:2px solid #0a96c7 !important; color:#44515f !important; }
.modal-card h2, .modal-card h3{ color:#18222f !important; }
.modal-card a{ color:#0a7ba6 !important; }

.sound-toggle{ background:#fff !important; color:#0a7ba6 !important; border:1px solid rgba(24,34,47,.16) !important; box-shadow:0 4px 12px rgba(15,42,64,.18) !important; }
.sound-toggle:hover{ background:#0a96c7 !important; color:#fff !important; }

.toast{ background:#18222f !important; color:#fff !important; box-shadow:0 8px 28px rgba(15,42,64,.35) !important; }

/* OTP-screen consent — warm-light, matches the wizard consent row */
.otp-consent{ display:flex !important; gap:10px; align-items:flex-start; text-align:left;
  background:#f6f9fb; border:2px solid rgba(24,34,47,.14); border-radius:10px;
  padding:12px 14px; margin:14px auto 0; max-width:440px; cursor:pointer;
  transition:border-color .15s, background .15s; user-select:none; }
.otp-consent:hover{ border-color:#0a96c7; background:rgba(10,150,199,.04); }
.otp-consent:has(input:checked){ border-color:#0a96c7; background:rgba(10,150,199,.06); }
.otp-consent input[type="checkbox"]{ position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.otp-consent .cb-box{
  flex-shrink:0; width:22px; height:22px; border:2px solid #bcc5ce; border-radius:6px;
  background:#fff; margin-top:1px; transition:background .15s, border-color .15s;
  display:flex; align-items:center; justify-content:center; }
.otp-consent input[type="checkbox"]:checked + .cb-box{ background:#0a96c7; border-color:#0a96c7; }
.otp-consent .cb-box::after{
  content:""; display:block; width:5px; height:10px;
  border:2.5px solid transparent; border-top:none; border-left:none;
  transform:rotate(45deg) translateY(-1px); }
.otp-consent input[type="checkbox"]:checked + .cb-box::after{ border-color:#fff; }
.otp-consent span:not(.cb-box){ font-size:13px; color:#44515f !important; line-height:1.5; }

/* ====== PREP / COUNTDOWN SCREEN ====== */
.prep-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; padding: 32px 20px; max-width: 500px; margin: 0 auto; text-align: center;
}
.prep-ring {
  width: 110px; height: 110px; border-radius: 50%;
  border: 6px solid var(--gold-1, #ffd451);
  display: flex; align-items: center; justify-content: center;
  animation: prep-pulse 1s ease-in-out infinite;
}
.prep-count {
  font-size: 52px; font-weight: 800; line-height: 1;
  color: var(--gold-1, #ffd451); font-family: 'Plus Jakarta Sans', sans-serif;
}
.prep-title {
  font-size: 20px; font-weight: 700; margin: 0; line-height: 1.3;
}
.prep-rules {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.prep-rule {
  background: rgba(255,212,81,.08); border: 1px solid rgba(255,212,81,.22);
  border-radius: 10px; padding: 12px 16px;
  font-size: 14px; line-height: 1.5; text-align: left;
}
.prep-skip { font-size: 13px; padding: 8px 20px; }

@keyframes prep-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,212,81,.4); }
  50%       { box-shadow: 0 0 0 14px rgba(255,212,81,0); }
}

/* Warm-light override */
.prep-ring{ border-color:#ff7a59 !important; }
.prep-count{ color:#ff7a59 !important; }
.prep-rule{ background:rgba(255,122,89,.06) !important; border-color:rgba(255,122,89,.2) !important; color:#44515f !important; }
.prep-rule strong{ color:#18222f !important; }
.prep-title{ color:#18222f !important; }
@keyframes prep-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,89,.35); }
  50%       { box-shadow: 0 0 0 14px rgba(255,122,89,0); }
}
