/* ==========================================================
   Spanish-verb trainer styles. Layered on top of /styles.css
   and reuses its color tokens (--bg, --panel, --line, etc.).
   ========================================================== */

/* Sidebar (Learn) */
.learn-stats-card {
  background: linear-gradient(160deg, rgba(124, 140, 255, 0.12), rgba(88, 226, 194, 0.06));
  border: 1px solid rgba(124, 140, 255, 0.22);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.learn-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.learn-stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.learn-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.learn-flame {
  font-size: 14px;
  margin-left: 4px;
}
.learn-xp-bar {
  grid-column: 1 / -1;
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.learn-xp-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.35s ease-out;
}
.learn-xp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

.learn-mode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.learn-mode-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text);
}
.learn-mode-list li:hover { background: var(--panel-2); }
.learn-mode-list li.active {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.2), rgba(88, 226, 194, 0.14));
  border-color: rgba(124, 140, 255, 0.3);
}
.lm-icon { font-size: 18px; }
.lm-body { display: flex; flex-direction: column; }
.lm-title { font-weight: 600; font-size: 13px; }
.lm-meta  { font-size: 11px; color: var(--muted); }

/* Learn view root */
.learn-root {
  padding: 22px;
  overflow-y: auto;
  height: 100%;
  color: var(--text);
}
.learn-loading, .learn-error {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}
.learn-error { color: var(--danger); }

.muted { color: var(--muted); }
.hl {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

button.big {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

/* --------------- Dashboard --------------- */

.dash { display: flex; flex-direction: column; gap: 22px; }

.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  background:
    radial-gradient(600px 260px at 15% -20%, rgba(124, 140, 255, 0.32), transparent 60%),
    radial-gradient(600px 260px at 100% 130%, rgba(88, 226, 194, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(20, 25, 60, 0.85), rgba(13, 17, 38, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 8px;
}
.dash-hero h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.hero-sub { margin: 0; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; gap: 10px; flex-shrink: 0; }

.dash-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.strip-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
}
.strip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.strip-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.strip-total { font-size: 14px; color: var(--muted); font-weight: 500; }
.strip-hint { font-size: 12px; color: var(--muted); }
.strip-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: auto;
}
.strip-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.4s ease-out;
}

.dash-verbs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dash-verbs h3 { margin: 0; font-size: 16px; }
.verb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.verb-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
}
.verb-chip:hover { border-color: rgba(124, 140, 255, 0.4); background: var(--panel-2); transform: translateY(-1px); }
.chip-top { display: flex; align-items: center; gap: 6px; }
.chip-inf { font-weight: 700; font-size: 15px; }
.chip-en  { font-size: 12px; color: var(--muted); }
.chip-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 999px;
}
.chip-tag.irr { background: rgba(251, 191, 36, 0.15); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.35); }
.chip-tag.due { background: rgba(255, 100, 113, 0.15); color: var(--danger); border: 1px solid rgba(255, 100, 113, 0.35); }
.chip-mastery {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.chip-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* --------------- Drill --------------- */

.drill { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.drill-empty {
  max-width: 620px;
  margin: 40px auto;
  text-align: center;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.drill-empty h2 { margin: 0 0 8px; }
.drill-empty p { margin: 0 0 20px; }

.drill-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drill-combo {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.combo-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.combo-value {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.drill-controls { display: flex; gap: 6px; }

.drill-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.drill-card.correct {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12) inset;
}
.drill-card.accent {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12) inset;
}
.drill-card.wrong {
  border-color: rgba(255, 100, 113, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 100, 113, 0.12) inset;
}
.drill-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.drill-verb {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.drill-en { color: var(--muted); font-size: 15px; }
.drill-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.drill-badge.irr { background: rgba(251, 191, 36, 0.15); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.35); }
.drill-badge.reg { background: rgba(74, 222, 128, 0.14); color: var(--ok);   border: 1px solid rgba(74, 222, 128, 0.35); }
.drill-prompt {
  font-size: 17px;
  line-height: 1.4;
}
.drill-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 16px 18px;
  font: 600 22px/1.2 inherit;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.15s ease;
}
.drill-input:focus { border-color: var(--accent); }
.drill-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.drill-feedback {
  min-height: 20px;
  font-size: 14px;
  color: var(--text);
}
.fb-ok { color: var(--ok); font-weight: 700; margin-right: 8px; }
.fb-bad { color: var(--danger); font-weight: 700; margin-right: 4px; }
.fb-expected { font-weight: 800; }
.fb-your { color: var(--muted); }
.fb-hint { color: var(--warn); font-weight: 700; margin-right: 6px; }

.drill-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.drill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease-out;
}

.tense-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}
.tense-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.tense-pill.active {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.25), rgba(88, 226, 194, 0.18));
  color: var(--text);
  border-color: rgba(124, 140, 255, 0.5);
}

/* Points animation */
.points-bubble {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  pointer-events: none;
  animation: pointsPop 1.3s cubic-bezier(.2,.9,.3,1.1) forwards;
  box-shadow: 0 6px 20px rgba(88, 226, 194, 0.35);
}
@keyframes pointsPop {
  0%   { transform: translateY(0) scale(0.85); opacity: 0; }
  20%  { transform: translateY(-12px) scale(1.05); opacity: 1; }
  70%  { transform: translateY(-32px) scale(1); opacity: 1; }
  100% { transform: translateY(-52px) scale(0.9); opacity: 0; }
}

/* --------------- Voice --------------- */

.voice { display: flex; flex-direction: column; gap: 18px; }
.voice-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  background:
    radial-gradient(500px 250px at 90% -20%, rgba(255, 143, 177, 0.28), transparent 60%),
    linear-gradient(160deg, rgba(30, 20, 50, 0.85), rgba(13, 17, 38, 0.9));
  border: 1px solid var(--line);
}
.voice-hero h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.voice-focus {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.focus-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.focus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.focus-chip {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.focus-chip:hover { background: var(--panel-2); color: var(--text); }
.focus-chip.active {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.28), rgba(88, 226, 194, 0.2));
  color: var(--text);
  border-color: rgba(124, 140, 255, 0.5);
}

.voice-live {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}
.voice-status {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.voice-transcript {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
}
.vt-turn {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  max-width: 90%;
}
.vt-turn.vt-user {
  align-self: flex-end;
  border-left: 3px solid var(--a);
}
.vt-turn.vt-tutor {
  align-self: flex-start;
  border-left: 3px solid var(--b);
}
.vt-who {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.vt-text { font-size: 15px; line-height: 1.4; }

/* --------------- Mine mode --------------- */

.mine { display: flex; flex-direction: column; gap: 18px; }
.mine-empty {
  max-width: 620px;
  margin: 40px auto;
  text-align: center;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.mine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 18px;
  background:
    radial-gradient(500px 220px at 90% -20%, rgba(88, 226, 194, 0.24), transparent 60%),
    linear-gradient(160deg, rgba(15, 30, 40, 0.85), rgba(13, 17, 38, 0.9));
  border: 1px solid var(--line);
}
.mine-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.mine-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mine-row {
  display: grid;
  grid-template-columns: 120px 1fr 200px 60px 60px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mine-row:hover { border-color: rgba(124, 140, 255, 0.4); background: var(--panel-2); }
.mine-inf { font-size: 17px; font-weight: 700; }
.mine-en { color: var(--muted); font-size: 13px; }
.mine-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.mine-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.mine-count {
  font-weight: 800;
  font-size: 14px;
  text-align: right;
  color: var(--text);
}
.mine-mastery {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* --------------- Audio button --------------- */

.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(124, 140, 255, 0.10);
  color: var(--accent-2);
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.audio-btn:hover {
  background: rgba(88, 226, 194, 0.18);
  color: var(--text);
  border-color: rgba(88, 226, 194, 0.35);
}
.audio-btn.small { width: 24px; height: 24px; }

/* --------------- Chip tags (dashboard) --------------- */

.chip-tag.ok  { background: rgba(74, 222, 128, 0.15); color: var(--ok);   border: 1px solid rgba(74, 222, 128, 0.35); }
.chip-tag.new { background: rgba(124, 140, 255, 0.18); color: var(--accent); border: 1px solid rgba(124, 140, 255, 0.4); }

/* --------------- Next lesson block on hero --------------- */

.dash-hero .next-lesson {
  background: linear-gradient(160deg, rgba(88, 226, 194, 0.18), rgba(124, 140, 255, 0.10));
  border: 1px solid rgba(88, 226, 194, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nl-eyebrow {
  font-size: 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.nl-verb {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nl-en { color: var(--muted); font-size: 14px; font-weight: 500; }
.nl-tense { color: var(--muted); font-size: 13px; margin-top: 2px; }
.nl-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* --------------- Lesson --------------- */

.lesson-empty {
  max-width: 620px;
  margin: 40px auto;
  text-align: center;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.lesson {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lesson-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lesson-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lesson-verb {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lesson-en { color: var(--muted); font-size: 14px; }
.lesson-tense {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(124, 140, 255, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.lesson-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ls-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.ls-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
  border-radius: 999px;
}
.ls-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ls-step.active .ls-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border-color: transparent;
}
.ls-step.active .ls-label { color: var(--text); }
.ls-step.done .ls-dot { background: rgba(74, 222, 128, 0.25); color: var(--ok); border-color: rgba(74, 222, 128, 0.4); }

.lesson-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.ls-meet, .ls-table, .ls-mc, .ls-prod, .ls-sent, .ls-complete {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ls-meet-card {
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(124, 140, 255, 0.15), rgba(88, 226, 194, 0.08));
  border: 1px solid rgba(124, 140, 255, 0.3);
}
.ls-meet-inf {
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ls-meet-en {
  font-size: 16px;
  color: var(--muted);
  margin-top: 2px;
}
.ls-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ls-badge.irr { background: rgba(251, 191, 36, 0.15); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.35); }
.ls-badge.reg { background: rgba(74, 222, 128, 0.14); color: var(--ok);   border: 1px solid rgba(74, 222, 128, 0.35); }

.ls-note {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.ls-note-title { font-size: 13px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 4px; }
.ls-note p { margin: 0; font-size: 15px; line-height: 1.5; }
.ls-note .ls-ai-note { margin-top: 8px; font-style: italic; color: var(--muted); }

.ls-example {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(88, 226, 194, 0.06);
  border: 1px solid rgba(88, 226, 194, 0.3);
}
.ls-ex-eyebrow { font-size: 10px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.ls-ex-es { margin-top: 4px; font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.ls-ex-en { color: var(--muted); font-size: 14px; margin-top: 4px; }

.ls-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ls-table-hint { color: var(--muted); font-size: 13px; }

.conj-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.conj-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.conj-pronoun {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.conj-form {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.conj-en { color: var(--muted); font-size: 13px; }

.ls-mc-progress { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ls-mc-hint { padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; }
.mc-eyebrow { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.mc-prompt { font-size: 18px; }
.mc-en { color: var(--accent-2); font-style: italic; }

.mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mc-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, border-color 0.15s ease, background 0.15s ease;
}
.mc-opt:hover { border-color: rgba(124, 140, 255, 0.5); background: rgba(124, 140, 255, 0.06); }
.mc-opt.correct { border-color: rgba(74, 222, 128, 0.55); background: rgba(74, 222, 128, 0.12); color: var(--ok); }
.mc-opt.wrong   { border-color: rgba(255, 100, 113, 0.55); background: rgba(255, 100, 113, 0.12); color: var(--danger); }
.mc-opt[disabled] { cursor: default; opacity: 0.9; }
.mc-audio {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
}
.mc-audio:hover { color: var(--accent-2); }

.mc-feedback {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mc-feedback.ok   { background: rgba(74, 222, 128, 0.12); color: var(--ok);   border: 1px solid rgba(74, 222, 128, 0.35); }
.mc-feedback.warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.35); }
.mc-feedback.bad  { background: rgba(255, 100, 113, 0.10); color: var(--danger); border: 1px solid rgba(255, 100, 113, 0.35); }

.ls-sent-en {
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent-2);
  border-radius: 6px;
}
.ls-sent-es {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  padding: 14px 16px;
  background: rgba(124, 140, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(124, 140, 255, 0.25);
}
.ls-sent-full { margin-top: 6px; }
.ls-sent-full-es { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.ls-sent-full-en { color: var(--muted); font-size: 14px; margin-top: 4px; }

.ls-complete { align-items: center; text-align: center; padding: 20px 0; }
.ls-comp-badge { font-size: 20px; font-weight: 700; color: var(--accent-2); }
.ls-comp-score {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.ls-comp-detail { color: var(--muted); }
.ls-comp-actions { margin-top: 12px; }

/* --------------- Study mode --------------- */

.study {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.study-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}
.study-list { display: flex; flex-direction: column; gap: 3px; }
.study-verb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.study-verb:hover { background: var(--panel-2); }
.study-verb.active {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.22), rgba(88, 226, 194, 0.15));
  border-color: rgba(124, 140, 255, 0.4);
}
.sv-inf { font-weight: 700; font-size: 14px; }
.sv-en  { color: var(--muted); font-size: 11px; margin-left: 8px; flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-irr { font-size: 9px; background: rgba(251, 191, 36, 0.15); color: var(--warn); padding: 1px 6px; border-radius: 999px; font-weight: 700; }

.study-main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.study-inf {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.study-en { color: var(--muted); font-size: 15px; margin-left: 6px; }

.tense-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tense-tab {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tense-tab.active {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.25), rgba(88, 226, 194, 0.15));
  color: var(--text);
  border-color: rgba(124, 140, 255, 0.5);
}
.study-note {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent-2);
  font-size: 14px;
  color: var(--text);
}

/* --------------- Drill contextual sentence --------------- */

.drill-context {
  padding: 14px 16px;
  background: rgba(124, 140, 255, 0.08);
  border: 1px solid rgba(124, 140, 255, 0.28);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drill-context-es {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}
.drill-context-en {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.drill-context-hint {
  color: var(--muted);
  font-size: 12px;
}
.drill-loading { font-size: 12px; margin-top: 6px; }

/* --------------- Responsive --------------- */

@media (max-width: 900px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-strip { grid-template-columns: repeat(2, 1fr); }
  .mine-row {
    grid-template-columns: 1fr 60px 60px;
    grid-template-areas:
      "inf count mastery"
      "en  bar   bar";
    gap: 6px;
  }
  .mine-inf { grid-area: inf; }
  .mine-en { grid-area: en; }
  .mine-bar { grid-area: bar; }
  .mine-count { grid-area: count; }
  .mine-mastery { grid-area: mastery; }

  .study { grid-template-columns: 1fr; }
  .study-sidebar { max-height: 200px; }
  .mc-grid { grid-template-columns: 1fr; }
  .conj-row { grid-template-columns: 90px 1fr auto; }
  .conj-en { display: none; }
}

/* =====================================================================
   READABILITY OVERHAUL (v3)
   - Bigger, bolder text everywhere.
   - No gray text on colored (blue/green) backgrounds: high-contrast white.
   ===================================================================== */

/* Base type bump */
.learn-root {
  font-size: 17px;
  line-height: 1.5;
}
.learn-root button.big {
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 14px;
  min-height: 52px;
}

/* --- Dashboard hero + next-lesson block --- */
.dash-hero h2 { font-size: 34px; }
.hero-sub {
  color: rgba(231, 236, 255, 0.92);      /* was muted → now near-white */
  font-size: 16px;
  font-weight: 500;
}
.hero-sub b { color: #fff; }
.next-lesson {
  min-width: 320px;
  padding: 22px 26px;
}
.nl-eyebrow {
  font-size: 13px;
  color: #a7f2dd;                        /* brighter than accent-2 muted */
  font-weight: 700;
}
.nl-verb {
  font-size: 34px;                       /* was 22 */
  font-weight: 800;
  color: #fff;
  gap: 12px;
}
.nl-en {
  color: rgba(255, 255, 255, 0.92);      /* no gray-on-blue */
  font-size: 18px;
  font-weight: 600;
}
.nl-tense {
  color: rgba(255, 255, 255, 0.85);      /* no gray-on-blue */
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}

/* --- Dashboard stat strip --- */
.strip-label { font-size: 13px; color: rgba(231, 236, 255, 0.75); font-weight: 600; }
.strip-value { font-size: 36px; }
.strip-hint  { font-size: 13px; color: rgba(231, 236, 255, 0.65); }

/* --- Verb chips on dashboard --- */
.chip-inf { font-size: 17px; }
.chip-en  { font-size: 13px; color: rgba(231, 236, 255, 0.70); }
.chip-tag { font-size: 10px; padding: 2px 8px; }

/* --- Lesson topbar --- */
.lesson-verb { font-size: 34px; }
.lesson-en {
  color: rgba(231, 236, 255, 0.92);
  font-size: 20px;
  font-weight: 600;
}
.lesson-tense {
  padding: 5px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: rgba(124, 140, 255, 0.28);
  border: 1px solid rgba(124, 140, 255, 0.5);
}

/* --- Stepper --- */
.lesson-stepper { padding: 16px 20px; }
.ls-dot { width: 34px; height: 34px; font-size: 15px; font-weight: 800; }
.ls-label {
  font-size: 13px;
  color: rgba(231, 236, 255, 0.65);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ls-step.active .ls-label { color: #fff; }
.ls-step.done .ls-label   { color: #a7f2dd; }
.ls-bar { height: 3px; }

/* --- Meet card (blue gradient bg → all text bright white) --- */
.ls-meet-card { padding: 26px 30px; }
.ls-meet-inf {
  font-size: 46px;                       /* was 34 */
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.ls-meet-en {
  font-size: 24px;                       /* was 16 muted */
  color: #fff;
  font-weight: 700;
  margin-top: 6px;
  opacity: 0.95;
}
.ls-badge {
  font-size: 13px;
  padding: 6px 14px;
  font-weight: 800;
  margin-top: 14px;
}

/* --- Teaching note --- */
.ls-note { padding: 18px 22px; }
.ls-note-title { font-size: 14px; font-weight: 800; }
.ls-note p     { font-size: 19px; line-height: 1.55; font-weight: 500; color: #fff; opacity: 0.95; }
.ls-note .ls-ai-note { font-size: 17px; color: #a7f2dd; font-style: italic; margin-top: 10px; opacity: 1; }

/* --- Examples grid (target tense) --- */
.ls-examples-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: rgba(88, 226, 194, 0.08);
  border: 1px solid rgba(88, 226, 194, 0.30);
  border-radius: 14px;
}
.ls-examples-grid .ls-ex-eyebrow {
  font-size: 13px;
  color: #a7f2dd;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 4px;
}
.ls-example {
  position: relative;
  padding: 14px 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 4px solid var(--accent-2);
}
.ls-ex-es {
  font-size: 22px;                       /* was 17 */
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.ls-ex-en {
  font-size: 16px;                       /* was 14 muted */
  color: rgba(231, 236, 255, 0.85);
  margin-top: 6px;
  font-weight: 500;
}
.ls-ex-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 3px 10px;
  background: rgba(124, 140, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(124, 140, 255, 0.45);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* --- Cross-tense section --- */
.ls-cross {
  padding: 22px 24px;
  background: rgba(124, 140, 255, 0.08);
  border: 1px solid rgba(124, 140, 255, 0.28);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ls-cross-title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}
.ls-cross-sub {
  font-size: 17px;
  color: rgba(231, 236, 255, 0.85);
  font-weight: 500;
}
.ls-cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.ls-cross-card {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ls-cross-tense {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a7f2dd;
}
.ls-cross-es {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}
.ls-cross-en {
  font-size: 15px;
  color: rgba(231, 236, 255, 0.82);
}
.ls-cross-form {
  align-self: flex-start;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(88, 226, 194, 0.18);
  border: 1px solid rgba(88, 226, 194, 0.4);
  color: #fff;
  font-weight: 700;
}

/* --- Conjugation table (Table step + Study mode) --- */
.conj-row {
  padding: 16px 20px;
  grid-template-columns: 160px 1fr 1.4fr auto;
  gap: 16px;
  border-radius: 12px;
}
.conj-pronoun {
  font-size: 18px;                       /* was 13 muted */
  color: #fff;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.conj-form   { font-size: 32px; font-weight: 800; }
.conj-en     {
  font-size: 17px;                       /* was 13 muted */
  color: rgba(231, 236, 255, 0.88);
  font-weight: 500;
}
.audio-btn { width: 34px; height: 34px; }
.audio-btn.small { width: 30px; height: 30px; }
.audio-btn svg { width: 18px; height: 18px; }

/* --- Multiple choice + prompts --- */
.ls-mc-hint  { padding: 18px 20px; }
.mc-eyebrow  {
  font-size: 14px;
  color: rgba(231, 236, 255, 0.85);
  font-weight: 700;
  margin-bottom: 8px;
}
.mc-prompt   { font-size: 24px; color: #fff; font-weight: 500; }
.mc-prompt b { color: #fff; font-weight: 800; }
.mc-en       { font-size: 22px; color: #a7f2dd; font-weight: 600; font-style: italic; }
.mc-opt      { padding: 20px 22px; font-size: 22px; font-weight: 700; }
.mc-feedback { font-size: 18px; padding: 14px 18px; }
.mc-feedback b { color: #fff; font-weight: 800; }
.ls-mc-progress {
  font-size: 13px;
  color: rgba(231, 236, 255, 0.75);
  font-weight: 700;
}

/* --- Production typing input --- */
.drill-input { font-size: 26px; padding: 18px 20px; }

/* --- Sentence step --- */
.ls-sent-en {
  font-size: 18px;                       /* was 15 muted italic */
  color: #fff;
  font-weight: 500;
  opacity: 0.95;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(88, 226, 194, 0.08);
  border-left: 4px solid var(--accent-2);
  font-style: normal;
}
.ls-sent-es {
  font-size: 28px;                       /* was 20 */
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
  padding: 18px 22px;
}
.ls-sent-full-es { font-size: 22px; color: #fff; font-weight: 700; }
.ls-sent-full-en { font-size: 16px; color: rgba(231, 236, 255, 0.85); }

/* --- Complete screen --- */
.ls-comp-badge  { font-size: 24px; }
.ls-comp-score  { font-size: 84px; }
.ls-comp-detail { font-size: 18px; color: rgba(231, 236, 255, 0.82); }

/* --- Drill contextual sentence (no gray-on-blue) --- */
.drill-context {
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.20), rgba(88, 226, 194, 0.10));
  border: 1px solid rgba(124, 140, 255, 0.4);
}
.drill-context-es {
  font-size: 28px;                       /* was 20 */
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
}
.drill-context-en {
  font-size: 17px;                       /* was 13 muted italic */
  color: rgba(255, 255, 255, 0.90);      /* no gray-on-blue */
  font-weight: 500;
  font-style: normal;
  margin-top: 8px;
}
.drill-context-hint {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.80);
  font-weight: 500;
  margin-top: 8px;
}
.drill-context-hint b { color: #fff; font-weight: 800; }
.drill-verb { font-size: 28px; }
.drill-en   { font-size: 16px; color: rgba(231, 236, 255, 0.82); font-weight: 500; }
.drill-badge { font-size: 12px; padding: 4px 10px; }

/* --- Study mode --- */
.study-inf { font-size: 32px; }
.study-en  { font-size: 18px; color: rgba(231, 236, 255, 0.85); }
.tense-tab { font-size: 14px; padding: 8px 16px; font-weight: 700; }
.study-note { font-size: 16px; padding: 14px 18px; color: #fff; font-weight: 500; }
.sv-inf { font-size: 16px; }
.sv-en  { font-size: 12px; color: rgba(231, 236, 255, 0.75); }

/* =====================================================================
   TITLES + BADGES BUMP (v4)
   Every section header and every badge/pill gets meaningfully bigger.
   ===================================================================== */

/* --- Section headers / titles / eyebrows --- */
.hero-eyebrow {
  font-size: 15px;                       /* was 11 */
  letter-spacing: 0.12em;
  font-weight: 800;
}
.dash-hero h2 { font-size: 40px; letter-spacing: -0.02em; }
.dash-verbs h3 { font-size: 22px; font-weight: 800; }
.dash-verbs-head { margin-bottom: 16px; }
.dash-verbs-head .muted { font-size: 15px; }

.strip-label { font-size: 15px; }
.section-label {
  font-size: 14px;                       /* was 11 */
  letter-spacing: 0.10em;
  font-weight: 800;
  color: rgba(231, 236, 255, 0.75);
  padding: 6px 6px 10px;
}

/* Lesson - teaching note title */
.ls-note-title {
  font-size: 17px;                       /* was 13 → 14 */
  letter-spacing: 0.10em;
  font-weight: 800;
  color: #a7f2dd;
  margin-bottom: 8px;
}
.ls-note-title b { color: #fff; }

/* Lesson - examples heading */
.ls-examples-grid .ls-ex-eyebrow {
  font-size: 18px;                       /* was 13 */
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #a7f2dd;
  text-transform: none;
  margin-bottom: 6px;
}

/* Lesson - stepper labels bigger */
.ls-label { font-size: 15px; letter-spacing: 0.06em; }

/* Lesson - MC / Produce / Sentence progress header */
.ls-mc-progress {
  font-size: 16px;                       /* was 12 */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(231, 236, 255, 0.85);
}
.mc-eyebrow {
  font-size: 17px;                       /* was 12 */
  letter-spacing: 0.06em;
  font-weight: 800;
  color: rgba(231, 236, 255, 0.90);
  text-transform: none;
  margin-bottom: 10px;
}

/* Cross-tense card tense label (was tiny caps) */
.ls-cross-tense {
  font-size: 15px;                       /* was 11 */
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #a7f2dd;
}

/* Voice + Mine section eyebrows */
.voice-hero h2, .mine-head h2 { font-size: 30px; font-weight: 800; }
.focus-label {
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: rgba(231, 236, 255, 0.80);
  margin-bottom: 10px;
}
.speaker-label {
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 800;
}

/* Complete screen title */
.ls-comp-badge { font-size: 28px; font-weight: 900; }

/* --- Badges + pills --- */

/* Pattern badges on the Meet card */
.ls-badge {
  font-size: 16px;                       /* was 13 */
  padding: 8px 18px;
  font-weight: 900;
  letter-spacing: 0.10em;
  border-width: 2px;
  border-style: solid;
  margin-top: 18px;
}

/* Example person tag (yo, tu, el/ella, nos, ellos) */
.ls-ex-tag {
  font-size: 16px;                       /* was 12 */
  padding: 5px 14px;
  font-weight: 800;
  top: 14px;
  right: 16px;
  border-width: 1.5px;
  letter-spacing: 0.04em;
}

/* Cross-tense form pill */
.ls-cross-form {
  font-size: 15px;                       /* was 12 */
  padding: 4px 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-width: 1.5px;
}

/* Verb chips on dashboard: IRR / NEW / OK / DUE tags */
.chip-tag {
  font-size: 12px;                       /* was 9 */
  padding: 3px 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-width: 1.5px;
}

/* Drill card badges */
.drill-badge {
  font-size: 15px;                       /* was 12 */
  padding: 5px 14px;
  font-weight: 800;
  letter-spacing: 0.10em;
  border-width: 1.5px;
}

/* Study sidebar irregular flag */
.sv-irr {
  font-size: 11px;                       /* was 9 */
  padding: 2px 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Lesson topbar tense pill */
.lesson-tense {
  font-size: 17px;                       /* was 15 */
  padding: 7px 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Sidebar stat labels + level tag on the stats card */
.learn-stat-label { font-size: 12px; letter-spacing: 0.10em; font-weight: 800; }

/* Status pill (Translate mode) — brings it in line */
.status-pill { font-size: 13px; padding: 7px 14px; font-weight: 700; }
