/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --blue:        #2d3fd4;
  --blue-dark:   #1a2db0;
  --blue-deep:   #132490;
  --blue-light:  #eef1fb;
  --orange:      #f47221;
  --orange-dark: #d9610d;
  --yellow:      #f5c400;

  --bg:          #f4f6fb;
  --surface:     #ffffff;
  --surface-2:   #eef1f8;
  --border:      #dde3f0;
  --border-h:    #b8c4df;

  --text:        #0d1b3e;
  --muted:       #5a6a8a;
  --light:       #8fa0bf;

  --success:     #059669;
  --success-bg:  #ecfdf5;
  --success-bd:  #6ee7b7;
  --error:       #dc2626;
  --error-bg:    #fef2f2;
  --error-bd:    #fca5a5;
  --warning-bg:  #fffbeb;
  --warning-bd:  #fde68a;
  --warning:     #b45309;

  --physics:     #0891b2;
  --physics-bg:  #ecfeff;
  --physics-bd:  #a5f3fc;

  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --nav-h: 58px;   /* slightly compact for exam context */
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════
   EXAM TOP BAR  (replaces full nav)
   Compact, focused — keeps the candidate
   in "exam mode" without nav distractions
═══════════════════════════════════════ */
.exam-bar {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  display: flex; align-items: center;
  padding: 0 1.75rem;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(13,27,62,.25);
}

/* ShineNEET SmartPrep wordmark on the dark exam bar (font and base styles come from layouts/_brand.php) */
.exam-bar a.brand { flex-shrink: 0; }
.exam-bar .brand__shine,
.exam-bar .brand__sp   { color: #fff; }
.exam-bar .brand__neet { color: var(--orange); }
@media (max-width: 560px) { .exam-bar .brand__sp { display: none; } }  /* keep timer + Exit on one line */

.exam-bar__sep {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.2); flex-shrink: 0;
}

/* topic + question context */
.exam-bar__context {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.exam-bar__topic {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.exam-bar__qinfo {
  font-size: 0.82rem; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* spacer */
.exam-bar__spacer { flex: 1; }

/* timer */
.exam-bar__timer {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm); padding: 0.4rem 0.85rem;
  flex-shrink: 0;
}
.exam-bar__timer-icon { font-size: 0.85rem; }
.exam-bar__timer-val {
  font-size: 1rem; font-weight: 900; color: #fff;
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  min-width: 52px; text-align: center;
}
.exam-bar__timer-val.warning { color: var(--yellow); }
.exam-bar__timer-val.danger  { color: #ff6b6b; animation: timerPulse .6s ease infinite alternate; }

/* exit button */
.exam-bar__exit {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,.7); font-size: 0.75rem; font-weight: 700;
  padding: 0.4rem 0.85rem; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.25);
  transition: all .15s; cursor: pointer; background: none;
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; min-height: 40px;
}
.exam-bar__exit:hover {
  background: rgba(255,255,255,.1);
  color: #fff; border-color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════
   PROGRESS STRIP  (full-width under bar)
═══════════════════════════════════════ */
.progress-strip {
  background: var(--blue-dark);
  padding: 0 1.75rem 0;
  display: flex; align-items: center; gap: 1rem;
  height: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.progress-strip__label {
  font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap;
}
.progress-strip__bar-wrap {
  flex: 1; height: 5px; background: rgba(255,255,255,.12);
  border-radius: 4px; overflow: hidden;
}
.progress-strip__bar {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), #ffab6e);
  transition: width .4s ease;
}
.progress-strip__pct {
  font-size: 0.7rem; font-weight: 800; color: rgba(255,255,255,.7);
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   YEAR + TOPIC TAG  (below top bar)
═══════════════════════════════════════ */
.q-tags {
  max-width: 900px; margin: 1.25rem auto 0;
  padding: 0 1.75rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.q-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.22rem 0.7rem; border-radius: 20px;
}
.q-tag--year    { background: var(--blue-light); color: var(--blue); border: 1px solid #c7d2f8; }
.q-tag--topic   { background: var(--physics-bg); color: var(--physics); border: 1px solid var(--physics-bd); }
.q-tag--marking {
  margin-left: auto;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.68rem; font-weight: 700;
}
.q-tag--marking .plus  { color: var(--success); font-weight: 900; }
.q-tag--marking .minus { color: var(--error);   font-weight: 900; }

/* ═══════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════ */
.page {
  max-width: 900px; margin: 0 auto;
  padding: 1rem 1.75rem 6rem;
  display: flex; flex-direction: column; gap: 1rem;
}

/* ═══════════════════════════════════════
   QUESTION CARD
═══════════════════════════════════════ */
.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--physics);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(45,63,212,.06);
  animation: fadeUp .4s ease both;
  overflow: hidden;
}

.q-card__head {
  padding: 1rem 1.5rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; gap: 0.75rem;
}
.q-num-badge {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--physics));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; color: #fff;
}
.q-card__title {
  font-size: 0.75rem; font-weight: 800;
  color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.q-card__subtitle {
  font-size: 0.78rem; color: var(--light); margin-top: 0.1rem;
}

/* question body */
.q-card__body { padding: 1.5rem 1.5rem 0.5rem; }

.q-stem {
  font-size: 1rem; font-weight: 500; color: var(--text);
  line-height: 1.85; margin-bottom: 1.5rem;
}
.q-stem img {
  margin: 0.85rem 0; border-radius: var(--r-sm);
  max-height: 220px; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ═══════════════════════════════════════
   OPTIONS
═══════════════════════════════════════ */
.q-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.65rem; margin-bottom: 0.5rem;
}

.q-option {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem; border-radius: var(--r);
  border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 0.9rem; line-height: 1.65;
  color: var(--text); transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.q-option:hover:not(.disabled) {
  border-color: var(--physics);
  background: var(--physics-bg);
  box-shadow: 0 2px 12px rgba(8,145,178,.1);
}
.q-option.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 2px 14px rgba(45,63,212,.15);
}
.q-option.correct {
  border-color: var(--success);
  background: var(--success-bg);
}
.q-option.incorrect {
  border-color: var(--error);
  background: var(--error-bg);
}
.q-option.reveal-correct {
  border-color: var(--success);
  background: var(--success-bg);
}
.q-option.disabled { cursor: default; }

.q-option__key {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900;
  background: var(--surface-2); color: var(--muted);
  border: 2px solid var(--border);
  transition: all .15s;
}
.q-option:hover:not(.disabled) .q-option__key {
  background: var(--physics); color: #fff; border-color: var(--physics);
}
.q-option.selected .q-option__key {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.q-option.correct .q-option__key,
.q-option.reveal-correct .q-option__key {
  background: var(--success); color: #fff; border-color: var(--success);
}
.q-option.incorrect .q-option__key {
  background: var(--error); color: #fff; border-color: var(--error);
}

.q-option__text { flex: 1; }
.q-option__text img { margin-top: 0.4rem; max-height: 90px; }

/* result icon overlaid on option */
.q-option__result {
  font-size: 1rem; flex-shrink: 0; opacity: 0;
  transition: opacity .2s;
}
.q-option.correct   .q-option__result,
.q-option.incorrect .q-option__result,
.q-option.reveal-correct .q-option__result { opacity: 1; }

/* ═══════════════════════════════════════
   ACTION ROW
═══════════════════════════════════════ */
.q-card__actions {
  padding: 1rem 1.5rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}

.btn-submit {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--orange); color: #fff;
  font-weight: 800; font-size: 0.9rem;
  padding: 0.75rem 2rem; border-radius: var(--r-sm);
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(244,114,33,.4);
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-submit:hover:not(:disabled) {
  background: var(--orange-dark); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(244,114,33,.45);
}
.btn-submit:disabled {
  background: var(--border); color: var(--light);
  box-shadow: none; cursor: not-allowed; transform: none;
}

.btn-skip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface); color: var(--muted);
  font-weight: 700; font-size: 0.82rem;
  padding: 0.72rem 1.3rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); cursor: pointer;
  font-family: inherit; transition: all .15s; white-space: nowrap;
}
.btn-skip:hover { border-color: var(--blue-dark); color: var(--blue); background: var(--blue-light); }

.btn-next {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--blue); color: #fff;
  font-weight: 800; font-size: 0.9rem;
  padding: 0.75rem 1.75rem; border-radius: var(--r-sm);
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(45,63,212,.3);
  transition: background .15s, transform .15s; white-space: nowrap;
  display: none; /* shown after submit */
}
.btn-next:hover { background: var(--blue-dark); transform: translateY(-2px); }

.actions-right { margin-left: auto; display: flex; gap: 0.6rem; }

/* ═══════════════════════════════════════
   RESULT FEEDBACK PANEL
═══════════════════════════════════════ */
.result-panel {
  display: none;
  margin: 0 1.5rem 1.25rem;
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  border: 1.5px solid;
  animation: fadeUp .25s ease both;
}
.result-panel.correct-panel {
  background: var(--success-bg);
  border-color: var(--success-bd);
}
.result-panel.incorrect-panel {
  background: var(--error-bg);
  border-color: var(--error-bd);
}
.result-panel__head {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 800; margin-bottom: 0.3rem;
}
.result-panel.correct-panel   .result-panel__head { color: var(--success); }
.result-panel.incorrect-panel .result-panel__head { color: var(--error); }
.result-panel__body { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════
   SOLUTION CARD
═══════════════════════════════════════ */
.solution-card {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,63,212,.06);
  animation: fadeUp .35s ease both;
}
.solution-card__head {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  display: flex; align-items: center; gap: 0.6rem;
}
.solution-card__head h3 {
  font-size: 0.8rem; font-weight: 800; color: #fff;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.solution-card__body {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem; color: var(--muted); line-height: 1.85;
}
.solution-card__body strong { color: var(--text); }

/* ═══════════════════════════════════════
   QUESTION PALETTE  (bottom navigator)
═══════════════════════════════════════ */
.palette-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(45,63,212,.04);
  animation: fadeUp .45s .1s ease both;
}
.palette-head {
  padding: 0.7rem 1.25rem;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  display: flex; align-items: center; justify-content: space-between;
}
.palette-head h3 {
  font-size: 0.68rem; font-weight: 800; color: rgba(255,255,255,.9);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.palette-legend {
  display: flex; gap: 0.85rem; align-items: center;
}
.palette-legend__item {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,.65);
}
.palette-legend__dot {
  width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0;
}
.palette-legend__dot--current  { background: var(--orange); }
.palette-legend__dot--answered { background: var(--success); }
.palette-legend__dot--skipped  { background: var(--warning-bd); }
.palette-legend__dot--pending  { background: rgba(255,255,255,.25); }

.palette-grid {
  padding: 0.85rem 1.1rem;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.palette-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--muted);
  cursor: pointer; transition: all .12s; text-decoration: none;
  position: relative;
}
.palette-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.palette-btn.current {
  background: var(--orange); border-color: var(--orange-dark);
  color: #fff; box-shadow: 0 3px 10px rgba(244,114,33,.4);
}
.palette-btn.answered {
  background: var(--success-bg); border-color: var(--success-bd); color: var(--success);
}
.palette-btn.skipped {
  background: var(--warning-bg); border-color: var(--warning-bd); color: var(--warning);
}

/* ═══════════════════════════════════════
   STICKY FOOTER BAR
═══════════════════════════════════════ */
.sticky-foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(45,63,212,.08);
  padding: 0.7rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sticky-foot__info {
  font-size: 0.75rem; color: var(--muted);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.sticky-foot__info span { display: flex; align-items: center; gap: 0.3rem; }
.sticky-foot__nav { display: flex; gap: 0.6rem; }

.btn-prev, .btn-next-foot {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 700; font-size: 0.82rem;
  padding: 0.55rem 1.1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); cursor: pointer;
  font-family: inherit; transition: all .15s; white-space: nowrap;
  background: var(--surface); color: var(--muted);
}
.btn-prev:hover, .btn-next-foot:hover {
  border-color: var(--blue); color: var(--blue); background: var(--blue-light);
}
.btn-next-foot {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 3px 10px rgba(45,63,212,.25);
}
.btn-next-foot:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* ═══════════════════════════════════════
   REGISTER PROMPT  (guest state)
═══════════════════════════════════════ */
.register-prompt {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-radius: var(--r-lg); padding: 1.5rem 1.75rem;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(45,63,212,.2);
  animation: fadeUp .5s .2s ease both;
}
.register-prompt__text { flex: 1; min-width: 200px; }
.register-prompt__text h3 {
  font-size: 1rem; font-weight: 900; color: #fff; line-height: 1.3;
}
.register-prompt__text h3 span { color: var(--yellow); }
.register-prompt__text p {
  font-size: 0.8rem; color: rgba(255,255,255,.72);
  margin-top: 0.3rem; line-height: 1.6;
}
.btn-register {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--orange); color: #fff;
  font-weight: 800; font-size: 0.875rem;
  padding: 0.75rem 1.75rem; border-radius: var(--r-sm);
  box-shadow: 0 4px 14px rgba(244,114,33,.45);
  transition: background .15s, transform .15s; white-space: nowrap;
  flex-shrink: 0;
}
.btn-register:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes timerPulse {
  from { opacity: 1; }
  to   { opacity: 0.5; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
  .page { padding: 0.75rem 1rem 6rem; }
  .q-tags { padding: 0 1rem; margin-top: 1rem; }
  .q-card__body { padding: 1.1rem 1.1rem 0.5rem; }
  .q-card__actions { padding: 0.85rem 1.1rem 1rem; }
  .result-panel { margin: 0 1.1rem 1rem; }
  .solution-card__body { padding: 1rem 1.1rem; }
  .q-options { grid-template-columns: 1fr; }
  .exam-bar { padding: 0 1rem; }
  .exam-bar__context { display: none; }
  .progress-strip { padding: 0 1rem; }
  .sticky-foot { padding: 0.6rem 1rem; }
  .sticky-foot__info { display: none; }
}

/* ══════════════════════════════════════
     REGISTRATION NUDGE
     Shown to guests after first answer.
     In Yii2 view: only render if Yii::$app->user->isGuest
  ══════════════════════════════════════ */
  .reg-nudge {
    display: none;
    background: linear-gradient(135deg, #0c1a6e, #2d3fd4);
    border-radius: var(--r-lg, 18px);
    padding: 1.35rem 1.75rem;
    margin: 1.25rem 0;
    position: relative; overflow: hidden;
    animation: nudgeIn .4s ease both;
    box-shadow: 0 6px 24px rgba(45,63,212,.25);
  }
  .reg-nudge::before {
    content: ''; position: absolute;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.05);
    top: -60px; right: -40px; pointer-events: none;
  }
  .reg-nudge__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    gap: 1.25rem; flex-wrap: wrap;
  }
  .reg-nudge__icon { font-size: 1.9rem; flex-shrink: 0; }
  .reg-nudge__text { flex: 1; min-width: 180px; }
  .reg-nudge__title {
    font-size: .95rem; font-weight: 900; color: #fff;
    letter-spacing: -.02em; margin-bottom: .2rem;
  }
  .reg-nudge__title span { color: #f5c400; }
  .reg-nudge__sub {
    font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.6;
  }
  .reg-nudge__actions {
    display: flex; gap: .6rem; flex-wrap: wrap; flex-shrink: 0;
  }
  .btn-nudge-primary {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #f47221; color: #fff;
    font-family: inherit; font-weight: 800; font-size: .85rem;
    padding: .65rem 1.25rem; border-radius: 8px; border: none;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 14px rgba(244,114,33,.4);
    transition: all .15s;
  }
  .btn-nudge-primary:hover {
    background: #d9610d; transform: translateY(-1px);
    color: #fff; text-decoration: none;
  }
  .btn-nudge-secondary {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.85);
    font-family: inherit; font-weight: 600; font-size: .78rem;
    padding: .65rem 1rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.22); cursor: pointer;
    text-decoration: none; transition: all .15s;
  }
  .btn-nudge-secondary:hover {
    background: rgba(255,255,255,.18); color: #fff; text-decoration: none;
  }
  .reg-nudge__dismiss {
    position: absolute; top: .6rem; right: .85rem;
    font-size: .65rem; color: rgba(255,255,255,.4);
    background: none; border: none; cursor: pointer;
    font-family: inherit; padding: .2rem .35rem;
    border-radius: 4px; transition: color .12s;
  }
  .reg-nudge__dismiss:hover { color: rgba(255,255,255,.8); }

  @keyframes nudgeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @media(max-width:480px) {
    .reg-nudge { padding: 1rem 1.1rem; }
    .reg-nudge__actions { width: 100%; }
    .btn-nudge-primary, .btn-nudge-secondary { flex: 1; justify-content: center; }
  }

.save-status{font-size:.78rem;color:var(--muted);padding:0 18px 12px;min-height:1px}
.save-status.ok{color:#1a8a4a}.save-status.err{color:#c0392b}


/* ── "How sure are you?" row ── */
.conf-row{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:18px; padding-top:14px; border-top:1px dashed var(--border)}
.conf-row__label{font-size:.78rem; font-weight:700; color:var(--muted); margin-right:4px}
.conf-chip{font:inherit; font-size:.78rem; font-weight:700; padding:7px 14px; border-radius:999px; cursor:pointer;
  border:1.5px solid var(--border); background:var(--surface); color:var(--muted); transition:all .15s}
.conf-chip:hover:not(:disabled){border-color:var(--blue); color:var(--blue)}
.conf-chip.on{background:var(--blue-light); border-color:var(--blue); color:var(--blue-dark)}
.conf-chip:disabled{cursor:default; opacity:.7}


/* ── Feedback for the picked option ── */
.opt-feedback{margin-top:.8rem; padding:.75rem .9rem; border-radius:10px; background:#fff; border:1px solid var(--border); font-size:.84rem; line-height:1.6; color:var(--text)}
.opt-feedback strong{display:block; margin-bottom:.2rem; font-size:.7rem; letter-spacing:.06em; text-transform:uppercase}
.incorrect-panel .opt-feedback{border-left:4px solid var(--error)} .incorrect-panel .opt-feedback strong{color:var(--error)}
.correct-panel .opt-feedback{border-left:4px solid var(--success)} .correct-panel .opt-feedback strong{color:var(--success)}
