:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --surface: #ffffff;
  --border: #e5e7eb;

  --text: #0b0f17;
  --muted: #334155;

  --accent: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;

  /* Sticky header sizing (used to push content below) */
  --quiz-header-height: 70px;

  /* Approx opened mobile nav height (tweak if your menu is taller/shorter) */
  --quiz-mobile-nav-height: 260px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  padding: 24px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);

  background:
    linear-gradient(rgba(246, 247, 251, 0.72), rgba(246, 247, 251, 0.72)),
    url("https://image.ibb.co/de6JzG/bitmap_1_1.png") center/cover no-repeat fixed;
}

/* Page container */
.quiz--wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-top: calc(var(--quiz-header-height) + 20px);
  transition: padding-top 0.25s ease;
}

.quiz--main_h.quiz--open-nav~.quiz--wrap {
  padding-top: calc(var(--quiz-header-height) + var(--quiz-mobile-nav-height) + 20px);
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--text);
}

.quiz--hidden {
  display: none !important;
}

/* Card */
.quiz--card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Section Headers */
.quiz--section-header {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin: 16px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Horizontal Divider */
.quiz--divider {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 16px 0;
}

/* Toolbar */
.quiz--toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.quiz--toolbar-weights {
  margin-bottom: 0;
}

.quiz--toolbar-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.quiz--toolbar-realtest {
  margin-bottom: 0;
}

/* Deserves Attention Wrapper with Tooltip */
.quiz--deserves-wrapper {
  position: relative;
  display: inline-block;
}

.quiz--deserves-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: #1e293b;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
  pointer-events: none;
}

.quiz--deserves-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.quiz--deserves-wrapper:hover .quiz--deserves-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Toolbar */
.quiz--toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 20px;
}

/* Buttons */
.quiz--btn {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.05s ease, background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.quiz--btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.quiz--btn:active {
  transform: translateY(1px);
}

.quiz--btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.quiz--pill {
  border-radius: 999px;

}

.quiz--selected-weight {
  border-color: var(--yellow) !important;
  background: rgb(26, 36, 61) !important;
  color: white;
}

.quiz--toggled {
  border-color: var(--yellow) !important;
  background: rgb(26, 36, 61) !important;
  color: white;
}

/* Toggle pill */
.quiz--toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  transition: all 0.15s ease;
}

.quiz--toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.quiz--toggle input:checked + span {
  /* Optional: add visual feedback when checked */
}

.quiz--toggle input:disabled {
  cursor: not-allowed;
}

.quiz--toggle:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.quiz--toggle input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Meta / KPI pills */
.quiz--meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  align-items: center;
  margin-top: 15px;
  color: var(--muted);
}

.quiz--kpi {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}

/* Media */
.quiz--media {
  position: relative;
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 12px;
}

#pictureContainer {
  padding: 12px;
  text-align: center;
}

.quiz--question-picture {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* Audio */
.quiz--audio {
  width: 100%;
  margin: 12px 0 6px;
}

/* Choices */
.quiz--choices {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

/* Option cards */
.quiz--option {
  text-align: left;
  width: 100%;
  border-radius: 14px;
  padding: 14px 14px;
  line-height: 1.25;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease,
    border-color 0.15s ease;
  font-size: 15px;
}

.quiz--option:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  background: #f8fafc;
}

.quiz--option.quiz--selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.06);
}

.quiz--option.quiz--correct {
  border-color: rgba(16, 185, 129, 1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.18);
  color: var(--text);
  font-weight: 700;
}

.quiz--option.quiz--incorrect {
  border-color: rgba(239, 68, 68, 1);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.18);
  color: var(--text);
  font-weight: 400;
}

/* Confirm */
#confirmBtn {
  margin: 15px auto 10px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

/* Nav */
.quiz--nav {
  display: flex;
  gap: 8px;
}

.quiz--nav-bottom {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
}

/* Transcript */
.quiz--transcript {
  margin-top: 14px;
}

#transcriptText {
  margin-top: 10px;
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: none;
}

.quiz--transcript.quiz--show-text #transcriptText {
  display: block;
}

.quiz--transcript.quiz--show-btn #transcriptBtn {
  display: inline-flex;
}

/* Real Test dots */
.quiz--question-nav {
  position: sticky;
  top: 0;
  background: var(--card);
  padding: 8px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
}

.quiz--qdot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  user-select: none;
  background: #fff;
}

.quiz--qdot.quiz--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Countdown */
.quiz--countdown {
  position: fixed;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 1000;
}

/* ================================
   Sticky Header (quiz-- prefixed)
   ================================ */
.quiz--main_h {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--quiz-header-height);
  z-index: 999;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  display: flex;
  align-items: center;
}

.quiz--main_h.quiz--sticky {
  background: rgba(255, 255, 255, 0.93);
  border-bottom-color: gainsboro;
}

.quiz--row {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz--logo {
  text-decoration: none;
  color: #539ee4;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.quiz--logo:hover {
  color: #208df3;
  letter-spacing: 0.9px;
}

/* Mobile burger */
.quiz--mobile-toggle {
  margin-left: auto;
  display: none;
  cursor: pointer;
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

.quiz--mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  border-radius: 999px;
  background: #8f8f8f;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.quiz--open-nav .quiz--mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.quiz--open-nav .quiz--mobile-toggle span:nth-child(2) {
  opacity: 0;
}

.quiz--open-nav .quiz--mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav (desktop) */
.quiz--main_h nav {
  margin-left: auto;
}

.quiz--main_h nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quiz--main_h nav a.quiz--nav__link {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.quiz--main_h nav a.quiz--nav__link::before,
.quiz--main_h nav a.quiz--nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all 0.4s ease;
}

.quiz--main_h nav a.quiz--nav__link::before {
  top: 0;
}

.quiz--main_h nav a.quiz--nav__link::after {
  bottom: 0;
}

.quiz--main_h nav a.quiz--nav__link:hover {
  color: var(--accent);
  letter-spacing: 2px;
}

.quiz--main_h nav a.quiz--nav__link:hover::before,
.quiz--main_h nav a.quiz--nav__link:hover::after {
  left: 0;
  width: 100%;
}

.quiz--main_h.quiz--sticky nav a.quiz--nav__link {
  color: #2b2b2b;
}

.quiz--main_h.quiz--sticky nav a.quiz--nav__link::before,
.quiz--main_h.quiz--sticky nav a.quiz--nav__link::after {
  background: var(--accent);
}

.quiz--main_h.quiz--sticky nav a.quiz--nav__link:hover {
  color: var(--accent);
}

/* Mobile menu panel */
@media (max-width: 900px) {
  .quiz--mobile-toggle {
    display: inline-flex;
  }

  .quiz--main_h nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--quiz-header-height);
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    display: none;
  }

  .quiz--main_h.quiz--open-nav nav {
    display: block;
  }

  .quiz--main_h nav ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .quiz--main_h nav a.quiz--nav__link {
    color: #2b2b2b;
  }

  .quiz--main_h nav a.quiz--nav__link::before,
  .quiz--main_h nav a.quiz--nav__link::after {
    background: var(--accent);
  }
}

/* Sign In button (nav-only; doesn't affect quiz--btn) */
.quiz--main_h nav a.quiz--nav-btn {
  display: inline-block;
  position: relative;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 30px;
  background-size: 300% 100%;
  background-image: linear-gradient(to right,
      #3a9fff,
      #8a3aff,
      #1f4568,
      #8198ae);
  box-shadow: 0 4px 15px 0 rgba(65, 132, 234, 0.75);
  transition: all 0.4s ease-in-out;
}

.quiz--main_h nav a.quiz--nav-btn:hover {
  background-position: 50% 0;
  box-shadow: 0 6px 20px 0 rgba(65, 132, 234, 0.75);
}

/* ================================
   ✅ MOBILE FIX: Listening toolbar in 2–3 lines
   Layout desejado:
   All ›33 ›26 ›21
   ›15 ›09 ›03 Deserve…
   Real Test (full row)
   ================================ */
@media (max-width: 520px) {
  .quiz--toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .quiz--toolbar .quiz--btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Real Test ocupa a linha toda */
  #realTestBtn {
    grid-column: 1 / -1;
  }
}

/* ================================
   ✅ Real Test Loading Overlay (FIX)
   ================================ */

#realTestLoading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* quando hidden */
#realTestLoading.quiz--hidden {
  display: none !important;
}

.quiz--loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.quiz--loading-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 24px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.quiz--close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.75;
}

.quiz--close-x:hover {
  opacity: 1;
}

.quiz--spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: var(--accent);
  animation: rtspin 0.9s linear infinite;
}

.quiz--spinner.quiz--stopped {
  animation: none !important;
  opacity: 0.45;
}

@keyframes rtspin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================
   ✅ Real Test Popup + Spinner (NEW)
   ================================ */

#realTestLoading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#realTestLoading.quiz--hidden {
  display: none !important;
}

.quiz--loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.quiz--loading-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 24px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.quiz--close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.75;
}

.quiz--close-x:hover {
  opacity: 1;
}

/* ===== Your spinner styles ===== */
.spinner-box {
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}

.circle-border {
  width: 120px;
  height: 120px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgb(63, 249, 220);
  background: linear-gradient(0deg,
      rgba(63, 249, 220, 0.1) 33%,
      rgba(63, 249, 220, 1) 100%);
  animation: rtSpin 0.8s linear infinite;
}

.circle-core {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 50%;
}

/* animation */
@keyframes rtSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Flashing "Preparing Test..." ===== */
.quiz--loading-text {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.quiz--loading-flash {
  animation: rtFlash 0.9s ease-in-out infinite;
}

@keyframes rtFlash {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* ================================
   ✅ Text transition: Preparing → Ready
   ================================ */

.quiz--loading-text {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;

  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Flashing while preparing */
.quiz--loading-flash {
  animation: rtFlash 0.9s ease-in-out infinite;
}

/* fade out */
.quiz--loading-text.quiz--fade-out {
  opacity: 0;
  transform: translateY(6px);
  animation: none !important;
}

/* fade in */
.quiz--loading-text.quiz--fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: none !important;
}

/* flashing keyframes */
@keyframes rtFlash {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* ================================
   ✅ Start Test button (safe state)
   ================================ */

.quiz--start-btn {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* becomes visible & clickable */
.quiz--start-btn.quiz--ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quiz--start-btn:disabled {
  cursor: not-allowed;
}

/* ================================
   ✅ Spinner -> Solid circle + Check transition (Ready)
   ================================ */

/* Base circle-border (PREPARING): gradient + rotation */
.circle-border {
  position: relative;
  border-radius: 50%;

  /* seu gradient original do spinner (preparing) */
  background: linear-gradient(0deg,
      rgba(63, 249, 220, 0.1) 33%,
      rgba(63, 249, 220, 1) 100%);

  /* mantém sua rotação (se você usa outro nome, ajusta) */
  animation: rtSpin 0.8s linear infinite;

  overflow: hidden;
}

/* camada SOLID (fica invisível no começo, aparece no READY) */
.circle-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;

  /* ✅ cor sólida final (100% sem gradiente) */
  background: rgba(16, 185, 129, 1);

  opacity: 0;
  transition: opacity 0.45s ease;
}

/* READY: para rotação */
#realTestLoading.quiz--rt-ready .circle-border {
  animation: none !important;
}

/* READY: solid layer entra suave (some o gradiente) */
#realTestLoading.quiz--rt-ready .circle-border::before {
  opacity: 1;
}

/* core: branco para o check verde aparecer bem */
.circle-core {
  position: relative;
  z-index: 1;
  /* fica acima do ::before */
  background-color: #ffffff;
  border-radius: 50%;
}

/* o ✓ (check) */
#realTestLoading .circle-core::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 46px;

  border-right: 6px solid rgba(16, 185, 129, 1);
  border-bottom: 6px solid rgba(16, 185, 129, 1);

  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%) rotate(45deg);

  opacity: 0;
  clip-path: inset(0 100% 100% 0);
}

/* quando READY, o check aparece com animação */
#realTestLoading.quiz--rt-ready .circle-core::after {
  opacity: 1;
  animation: rtDrawCheck 420ms ease-out forwards;
}

/* animação que “revela” o check */
@keyframes rtDrawCheck {
  0% {
    clip-path: inset(0 100% 100% 0);
    transform: translate(-50%, -58%) rotate(45deg) scale(0.9);
  }

  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(-50%, -58%) rotate(45deg) scale(1);
  }
}

/* caso você ainda não tenha esse keyframe */
@keyframes rtSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================
   ✅ Tooltip: Deserves Attention
   ================================ */

.quiz--tooltip {
  position: absolute;
  z-index: 2000;

  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;

  font-size: 0.85rem;
  font-weight: 500;

  padding: 8px 10px;
  border-radius: 8px;

  white-space: nowrap;
  pointer-events: none;

  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* visible */
.quiz--tooltip.quiz--show {
  opacity: 1;
  transform: translateY(0);
}

/* arrow */
.quiz--tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);

  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.95) transparent;
}

/* ================================
   ✅ Finish Test button pulse (only when all answered)
   ================================ */
@keyframes quizFinishPulse {
  0% {
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.0);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.55);
    transform: translateY(-1px);
  }

  100% {
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.0);
    transform: translateY(0);
  }
}

#finishRealTestBtn.quiz--finish-ready {
  border-color: rgba(16, 185, 129, 1) !important;
  animation: quizFinishPulse 1.15s ease-in-out infinite;
}

/* ================================
   ✅ Results page mode
   ================================ */
body.quiz--results-mode .quiz--controls {
  display: none !important;
  /* (2) hide Never responded + weights toolbar */
}

/* (1) Strong highlight for the active CLB row */
.quiz--clb-row {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  background: #fff;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.quiz--clb-row.quiz--clb-active {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  font-weight: 800;
}

.padding-space {
  margin: 20px 0;
  ;
}

/* -------------------------------------------
   Practice dropdown (desktop hover + mobile click)
-------------------------------------------- */

.quiz--nav__dropdown {
  position: relative;
}

.quiz--nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quiz--nav__caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 0.8;
}

/* dropdown panel */
.quiz--nav__dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  justify-content: center;

  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;

  z-index: 9999;
}

/* items inside dropdown */
.quiz--nav__dropdown-menu>li>a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}


.quiz--nav__dropdown-menu>li>a:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* show on hover/focus (desktop) */
.quiz--nav__dropdown:hover .quiz--nav__dropdown-menu,
.quiz--nav__dropdown:focus-within .quiz--nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* -------------------------------------------
   Mobile behavior: when header has open-nav,
   dropdown becomes "inline" and opens via class.
-------------------------------------------- */

/* If your mobile menu is vertical when .open-nav is on header */
.quiz--main_h.open-nav .quiz--nav__dropdown-menu {
  position: static;
  min-width: auto;
  box-shadow: none;
  border-radius: 12px;
  margin-top: 8px;

  /* keep hidden by default on mobile */
  opacity: 0;
  visibility: hidden;
  transform: none;
  height: 0;
  overflow: hidden;
  padding: 0 8px;
  border: 0;
}

/* opened state (JS will toggle this class on the li) */
.quiz--main_h.open-nav .quiz--nav__dropdown.is-open .quiz--nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  height: auto;
  padding: 8px;
  border: 1px solid var(--border, #e5e7eb);
}

/* rotate caret when open */
.quiz--nav__dropdown.is-open .quiz--nav__caret {
  transform: rotate(225deg);
}