/* ============================================================
   EnglishTunes — Design system
   ============================================================ */

:root {
  --bg:            #0f1115;
  --bg-elevated:   #171a21;
  --bg-card:       #1b1f28;
  --bg-card-hover: #212633;
  --border:        #2a2f3a;
  --text:          #eef0f4;
  --text-dim:      #9aa1b1;
  --text-faint:    #6b7280;

  --brand:         #6c5ce7;
  --brand-dim:     #4834d4;
  --brand-glow:    rgba(108, 92, 231, 0.35);
  --accent:        #00d2a8;
  --accent-dim:    #00a884;
  --warn:          #fdcb6e;
  --danger:        #ff6b6b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 30px rgba(0,0,0,0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:            #f5f6fa;
    --bg-elevated:   #ffffff;
    --bg-card:       #ffffff;
    --bg-card-hover: #f0f1f8;
    --border:        #e3e5ee;
    --text:          #191c24;
    --text-dim:      #5a6072;
    --text-faint:    #8890a0;
    --shadow-soft: 0 8px 30px rgba(30,30,60,0.08);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  .navbar { background: rgba(255,255,255,0.85); }
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1100px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: 0.92rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.streak-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 700;
}

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 22px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .12s;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dim));
  color: #fff; box-shadow: 0 6px 20px var(--brand-glow);
}
.btn-primary:hover { opacity: 0.92; }
.btn-secondary {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: #06231d;
}
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px;
}

/* ── Hero ── */
.hero {
  padding: 70px 0 50px; text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text), var(--brand) 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin: 50px 0;
}
.feature-card { text-align: left; }
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ── Song grid ── */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 40px 0 18px;
}
.section-title h2 { font-size: 1.4rem; margin: 0; }
.section-title span { color: var(--text-faint); font-size: 0.9rem; }

.song-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px; margin-bottom: 40px;
}
.song-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.song-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-soft); }
.song-cover {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-dim), var(--accent-dim));
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; position: relative;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-progress-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; display: flex; align-items: center; gap: 4px;
}
.song-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.song-body h3 { margin: 0; font-size: 1.05rem; }
.song-body .artist { color: var(--text-dim); font-size: 0.88rem; }
.level-badge {
  display: inline-block; align-self: flex-start; margin-top: 6px;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(108,92,231,0.15); color: #a29bfe;
}
.level-badge.avancado { background: rgba(255,107,107,0.15); color: #ff8787; }
.level-badge.iniciante { background: rgba(0,210,168,0.15); color: #55efc4; }

/* ── Lesson page ── */
.lesson-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; margin: 30px 0; }
@media (max-width: 860px) { .lesson-hero { grid-template-columns: 1fr; } }
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: #000;
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.lesson-meta h1 { margin: 0 0 4px; font-size: 1.8rem; }
.lesson-meta .artist { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 14px; }
.lesson-meta p.desc { color: var(--text-dim); font-size: 0.95rem; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 36px 0 22px; overflow-x: auto; }
.tab-btn {
  background: none; border: none; color: var(--text-dim); font-weight: 700; font-size: 0.95rem;
  padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
  font-family: inherit;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to {opacity:1; transform:none;} }

/* Lyrics */
.lyrics-line {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 4px;
  border: 1px solid transparent;
}
.lyrics-line:hover { background: var(--bg-card); border-color: var(--border); }
.lyrics-line .en { font-weight: 600; }
.lyrics-line .pt { color: var(--text-dim); font-size: 0.95rem; }
.lyrics-line .note {
  grid-column: 1 / -1; margin-top: 8px; font-size: 0.85rem; color: var(--brand);
  background: rgba(108,92,231,0.08); border-left: 3px solid var(--brand);
  padding: 8px 12px; border-radius: 6px; display: none;
}
.lyrics-line.show-note .note { display: block; }
.section-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); font-weight: 800; margin: 22px 0 8px;
}
@media (max-width: 640px) { .lyrics-line { grid-template-columns: 1fr; gap: 4px; } }

/* Vocabulary cards */
.vocab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.vocab-card { position: relative; }
.vocab-card .term-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vocab-card .term { font-size: 1.1rem; font-weight: 800; }
.tts-btn {
  background: none; border: none; cursor: pointer; font-size: 0.95rem;
  margin-left: 4px; opacity: 0.75; transition: opacity .15s, transform .15s; vertical-align: middle;
}
.tts-btn:hover { opacity: 1; }
.tts-btn.speaking { animation: ttsPulse .5s ease infinite alternate; }
@keyframes ttsPulse { from { transform: scale(1); } to { transform: scale(1.25); } }
.flashcard-face .tts-btn { font-size: 1.3rem; margin-left: 8px; }
.vocab-card .pronunciation { margin-top: 4px; font-size: 0.9rem; color: var(--accent); }
.vocab-card .pronunciation strong { color: var(--accent); }
.vocab-card .ipa { color: var(--text-faint); font-size: 0.78rem; font-style: italic; margin-left: 4px; }
.tag {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px; background: var(--bg-elevated); color: var(--text-dim);
  border: 1px solid var(--border); white-space: nowrap;
}
.vocab-card .meaning { margin: 10px 0 8px; }
.vocab-card .example { color: var(--text-dim); font-size: 0.88rem; font-style: italic; }
.clip-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 2px;
  background: rgba(0,210,168,0.1); border: 1px solid rgba(0,210,168,0.3); color: var(--accent);
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.clip-btn:hover { background: rgba(0,210,168,0.2); }
.clip-btn.playing { background: var(--accent); color: #06231d; }
.clip-btn-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; margin-right: 6px;
  background: rgba(0,210,168,0.12); border: 1px solid rgba(0,210,168,0.3); color: var(--accent);
  font-size: 0.62rem; cursor: pointer; vertical-align: middle; font-family: inherit;
}
.clip-btn-mini:hover { background: var(--accent); color: #06231d; }
.vocab-card .tip {
  margin-top: 10px; font-size: 0.85rem; background: rgba(253,203,110,0.1);
  border-left: 3px solid var(--warn); padding: 8px 12px; border-radius: 6px; color: #ffe9b3;
}
.save-btn {
  border: 1px solid var(--border); background: var(--bg-elevated); border-radius: 999px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.95rem; flex-shrink: 0; transition: background .15s, color .15s;
}
.save-btn.saved { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Grammar tips */
.tip-card { margin-bottom: 14px; }
.tip-card h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.tip-card p { margin: 0; color: var(--text-dim); }

/* Quiz */
.quiz-card { margin-bottom: 18px; }
.quiz-question { font-weight: 700; margin-bottom: 14px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  text-align: left; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated); cursor: pointer;
  font-family: inherit; font-size: 0.95rem; color: var(--text); transition: border-color .15s, background .15s;
}
.quiz-option:hover { border-color: var(--brand); }
.quiz-option.selected { border-color: var(--brand); background: rgba(108,92,231,0.12); }
.quiz-option.correct { border-color: var(--accent); background: rgba(0,210,168,0.14); }
.quiz-option.incorrect { border-color: var(--danger); background: rgba(255,107,107,0.14); }
.quiz-explain {
  margin-top: 10px; font-size: 0.88rem; color: var(--text-dim);
  background: var(--bg-elevated); padding: 10px 14px; border-radius: 8px; display: none;
}
.quiz-explain.show { display: block; }
.quiz-input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.quiz-result-banner {
  padding: 18px 20px; border-radius: var(--radius-md); text-align: center; font-weight: 700;
  margin-bottom: 24px; display: none;
}

/* Flashcards */
.flashcard-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 30px 0; }
.flashcard {
  width: 100%; max-width: 460px; min-height: 260px; perspective: 1200px; cursor: pointer;
}
.flashcard-inner {
  position: relative; width: 100%; height: 100%; min-height: 260px;
  transition: transform .5s; transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 30px; gap: 10px; box-shadow: var(--shadow-soft);
}
.flashcard-face.back { transform: rotateY(180deg); }
.flashcard-face .term-big { font-size: 1.6rem; font-weight: 800; }
.flashcard-hint { color: var(--text-faint); font-size: 0.82rem; }
.flashcard-actions { display: flex; gap: 12px; }
.progress-bar-track { width: 100%; max-width: 460px; height: 6px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .3s; }

/* Forms */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dim); }
.form-group input {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-family: inherit; font-size: 0.98rem;
}
.form-group input:focus { outline: none; border-color: var(--brand); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }
.alert-error { background: rgba(255,107,107,0.12); color: #ff8787; border: 1px solid rgba(255,107,107,0.3); }
.alert-success { background: rgba(0,210,168,0.12); color: #55efc4; border: 1px solid rgba(0,210,168,0.3); }

/* Profile / dashboard */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin: 24px 0 10px; }
.stat-tile { text-align: center; }
.stat-tile .num { font-size: 1.9rem; font-weight: 800; }
.stat-tile .label { color: var(--text-dim); font-size: 0.82rem; }

footer { text-align: center; padding: 40px 20px; color: var(--text-faint); font-size: 0.85rem; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-dim); }

/* ── Calendário de constância (heatmap) ── */
.activity-heatmap {
  display: grid; grid-template-columns: repeat(auto-fill, 13px); gap: 4px;
}
.heat-cell {
  width: 13px; height: 13px; border-radius: 3px;
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.heat-cell.active { background: var(--accent); border-color: var(--accent); }

/* ── Conquistas / badges ── */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; margin-bottom: 10px; }
.badge-card { text-align: center; padding: 18px 12px; transition: transform .15s; }
.badge-card.earned:hover { transform: translateY(-3px); }
.badge-card.locked { opacity: 0.45; }
.badge-icon { font-size: 2.2rem; margin-bottom: 8px; }
.badge-title { font-weight: 800; font-size: 0.88rem; margin-bottom: 4px; }
.badge-desc { font-size: 0.75rem; color: var(--text-dim); }

/* ── Gráfico de progresso (SVG, um único hue sequencial) ── */
.progress-chart { width: 100%; height: auto; display: block; }
.chart-gridline { stroke: var(--border); stroke-width: 1; }
.chart-area { fill: var(--accent); opacity: 0.1; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--accent); stroke: var(--bg-card); stroke-width: 2; }
.chart-endlabel { fill: var(--text); font-size: 11px; font-weight: 700; }
.chart-axis-label { fill: var(--text-faint); font-size: 9px; }

/* ── Modal do professor (dica estilo gibi) ── */
/* Balão em cima (bem largo), professor ancorado à esquerda embaixo dele */
.professor-box {
  max-width: 820px; width: min(95vw, 820px); text-align: left;
  max-height: 92vh; overflow-x: hidden;
  padding: 28px 24px 24px;
}
.professor-scene {
  display: flex; flex-direction: column-reverse;
  align-items: flex-start; gap: 4px; margin-top: 10px;
}
.professor-img {
  width: clamp(150px, 32vw, 280px); max-height: 36vh;
  height: auto; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4));
  margin-left: clamp(10px, 4vw, 30px);
}
.speech-bubble {
  position: relative; background: #fdfdfb; color: #17181c;
  border: 3px solid #17181c; border-radius: 26px 26px 26px 4px;
  padding: clamp(18px, 3vw, 28px); font-size: clamp(0.95rem, 2vw, 1.15rem); line-height: 1.6;
  width: 100%; box-sizing: border-box; text-align: left;
  margin-bottom: 14px;
  animation: bubblePop .3s cubic-bezier(.34,1.56,.64,1);
}
.speech-bubble::after {
  content: ''; position: absolute; left: clamp(30px, 8vw, 60px); bottom: -20px;
  width: 0; height: 0;
  border-style: solid; border-width: 22px 0 0 20px;
  border-color: #17181c transparent transparent transparent;
}
.speech-bubble::before {
  content: ''; position: absolute; left: calc(clamp(30px, 8vw, 60px) + 4px); bottom: -13px;
  width: 0; height: 0;
  border-style: solid; border-width: 16px 0 0 14px;
  border-color: #fdfdfb transparent transparent transparent; z-index: 1;
}
@keyframes bubblePop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.professor-title { font-weight: 800; margin-bottom: 8px; font-size: clamp(0.9rem, 2.2vw, 1.1rem); }

/* Botões-gatilho que abrem o modal do professor (substituem texto sempre visível) */
.tip-trigger {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  background: rgba(253,203,110,0.1); border: 1px solid rgba(253,203,110,0.35); color: #ffe9b3;
  font-size: 0.82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  cursor: pointer; font-family: inherit;
}
.tip-trigger:hover { background: rgba(253,203,110,0.2); }

/* ── Modais ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,8,12,0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  max-width: 480px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 34px 28px 28px; position: relative; box-shadow: var(--shadow-soft);
  transform: scale(.9) translateY(16px); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: var(--bg-elevated); border: 1px solid var(--border);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text-dim); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.modal-close:hover { color: var(--text); background: var(--bg-card-hover); }
.modal-emoji { font-size: 3rem; margin-bottom: 10px; animation: popIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.modal-subtitle { color: var(--text-dim); margin: 0 0 22px; font-size: 0.95rem; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* ── Botão flutuante de revisão rápida ── */
.fab-review {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; border: none;
  padding: 14px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: 0.88rem; font-family: inherit;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35); transition: transform .15s;
}
.fab-review:hover { transform: translateY(-2px); }
.fab-review .badge-count {
  background: rgba(255,255,255,0.28); border-radius: 999px; padding: 2px 9px; font-size: 0.78rem; min-width: 18px;
}
@media (max-width: 640px) { .fab-review { bottom: 14px; right: 14px; padding: 12px 16px; font-size: 0.8rem; } }

/* ── Progresso do quiz ── */
.quiz-answered-label { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
.quiz-progress-track { width: 100%; height: 6px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; margin: 0 0 22px; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .3s; }

/* ── Deck de flashcards dentro de modal (reaproveita as classes .flashcard-*) ── */
.modal-box .flashcard-stage { margin: 6px 0 0; }
.modal-box .flashcard { max-width: 100%; }
