/* ═══════════════════════════════════════════════════
   VIVA VOX · Job Interview English · interview.css
   ═══════════════════════════════════════════════════ */

:root {
  --navy:   #1a2744;
  --gold:   #c9a227;
  --gold2:  #e6bf3e;
  --cream:  #faf6ec;
  --cream2: #f5f0e8;
  --ink:    #2a2a2a;
  --muted:  #888;
  --line:   #e8e0d0;
  --white:  #fff;
  --green:  #2d7a4f;
  --red:    #c0392b;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }


/* ─────────────────────────────────────────────────
   TOP BAR
───────────────────────────────────────────────── */
.lesson-top {
  background: var(--navy);
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb a.bc-active { color: rgba(255,255,255,0.85); }
.bc-sep { color: rgba(255,255,255,0.25); }
.course-name { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); margin-left: auto; text-transform: uppercase; }
.top-progress { display: flex; align-items: center; gap: 0.6rem; margin-left: 1rem; }
.top-progress .txt { font-size: 0.72rem; color: rgba(255,255,255,0.45); white-space: nowrap; }
.progress-bar { width: 80px; height: 4px; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; width: 0%; transition: width 0.4s; }


/* ─────────────────────────────────────────────────
   EPISODE HERO
───────────────────────────────────────────────── */
.ep-hero {
  background: linear-gradient(135deg, #0b1526 0%, #1a2744 60%, #1e3060 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ep-hero::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.ep-num-display {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 900;
  color: rgba(201,162,39,0.25);
  line-height: 1;
  margin-bottom: 0.25rem;
  position: relative; z-index: 2;
}
.ep-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
  position: relative; z-index: 2;
}
.ep-question {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800;
  color: #fff; line-height: 1.2;
  margin-bottom: 0.5rem;
  position: relative; z-index: 2;
}
.ep-question em { color: var(--gold2); font-style: italic; }
.ep-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  position: relative; z-index: 2;
}
@media (max-width: 600px) { .ep-question { font-size: 1.5rem; } }


/* ─────────────────────────────────────────────────
   EPISODE WRAP
───────────────────────────────────────────────── */
.ep-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.section-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}


/* ─────────────────────────────────────────────────
   CONFIDENCE TRACKER
───────────────────────────────────────────────── */
.confidence-tracker {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}
.confidence-tracker.post {
  background: linear-gradient(135deg, #f0f8f4, #e8f5ec);
  border-color: rgba(45,122,79,0.25);
}
.ct-label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.9rem;
}
.ct-label span { color: var(--muted); font-weight: 400; }
.ct-scale {
  display: flex; gap: 0.6rem;
  align-items: center;
}
.ct-btn {
  flex: 1; border: 1.5px solid var(--line);
  background: var(--cream); border-radius: 10px;
  padding: 0.6rem 0.4rem;
  cursor: pointer; transition: all 0.18s;
  text-align: center; font-family: 'Inter', sans-serif;
  color: var(--navy);
}
.ct-btn:hover { border-color: var(--gold); background: #fff; transform: translateY(-1px); }
.ct-btn.selected { border-color: var(--gold); background: var(--navy); color: #fff; }
.ct-emoji {
  display: flex; align-items: center; justify-content: center;
  height: 38px; margin-bottom: 0.25rem; font-size: 0;
}
.ct-emoji svg { width: 36px; height: 36px; flex-shrink: 0; }
.ct-num { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.ct-btn.selected .ct-num { color: rgba(255,255,255,0.5); }
.ct-result {
  margin-top: 0.9rem; font-size: 0.84rem;
  color: var(--green); font-weight: 600;
  display: none;
}
.ct-result.visible { display: block; }


/* ─────────────────────────────────────────────────
   PHRASE FLASHCARDS
───────────────────────────────────────────────── */
.phrase-deck-wrap { margin-bottom: 2rem; }
.phrase-deck {
  position: relative;
  /* min-height set by JS after measuring tallest card */
}
.phrase-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 3rem 1.6rem 1.5rem;
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: border-color 0.2s;
}
.phrase-card.active { display: flex; }
.phrase-card:hover { border-color: rgba(201,162,39,0.4); }

.pc-stars { display: flex; gap: 3px; margin-bottom: 0.1rem; }
.pc-star { font-size: 0.75rem; color: var(--gold); }
.pc-star.empty { color: #e0d8c8; }

.pc-phrase {
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); line-height: 1.3;
}
.pc-phonetic {
  font-size: 0.8rem; color: var(--muted);
  font-style: italic;
}
.pc-ua {
  font-size: 0.9rem; color: #555;
  padding: 0.5rem 0.75rem;
  background: var(--cream2);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.pc-context {
  font-size: 0.8rem; color: var(--muted);
  padding: 0.4rem 0;
}
.pc-context strong { color: var(--navy); font-weight: 600; }
.pc-warning {
  font-size: 0.78rem; color: #b85c38;
  background: rgba(184,92,56,0.07);
  border-radius: 8px; padding: 0.4rem 0.7rem;
  display: flex; gap: 0.4rem; align-items: flex-start;
}
.pc-warning::before { content: "⚠"; flex-shrink: 0; }
.pc-actions {
  display: flex; gap: 0.6rem;
  align-items: center; margin-top: auto;
  padding-top: 0.25rem;
}
.pc-audio-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--navy); color: var(--gold);
  border: none; border-radius: 999px;
  padding: 0.45rem 1rem; font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background 0.18s;
}
.pc-audio-btn:hover { background: #253660; }
.pc-save-btn {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: #bbb;
  font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.pc-save-btn:hover { border-color: #e74c3c; color: #e74c3c; transform: scale(1.12); }
.pc-save-btn.saved { background: rgba(231,76,60,0.07); border-color: #e74c3c; color: #e74c3c; }

.pc-stress {
  font-size: 0.68rem; letter-spacing: 0.12em;
  color: rgba(26,39,68,0.3); font-family: 'Inter', sans-serif;
  font-weight: 500; margin-top: -0.1rem;
}
.pc-ipa-row {
  display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap;
}
.pc-ipa-tag {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(26,39,68,0.3); font-style: normal;
  background: rgba(26,39,68,0.06); border-radius: 3px; padding: 0 4px;
}

.phrase-counter {
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
  min-width: 2.6rem; text-align: center;
}
.phrase-nav {
  display: flex; justify-content: center;
  align-items: center; gap: 0.7rem; margin-top: 1rem;
}
.phrase-nav-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.18s;
  color: var(--navy);
}
.phrase-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.phrase-nav-btn:disabled { opacity: 0.3; cursor: default; }
.phrase-dots { display: flex; gap: 6px; }
.phrase-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: background 0.2s;
  cursor: pointer;
}
.phrase-dot.active { background: var(--gold); }


/* ─────────────────────────────────────────────────
   INTERVIEW CRIMES
───────────────────────────────────────────────── */
.crimes-wrap { margin-bottom: 2rem; }
.crime-trigger-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-style: italic;
  color: var(--navy); font-weight: 700;
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0.9rem;
  background: rgba(201,162,39,0.06);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
}
.crime-interviewer {
  position: absolute; top: 50%; left: 1.1rem;
  transform: translateY(-50%);
  width: 88px; height: 88px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,128,128,0.35);
  box-shadow: 0 0 0 4px rgba(255,128,128,0.1);
  z-index: 5; flex-shrink: 0;
  animation: interviewer-ring-crime 3.5s ease-in-out infinite;
}
.crime-interviewer img {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover; object-position: center 10%;
  display: block;
  animation: interviewer-kenburns 22s ease-in-out infinite alternate;
  filter: saturate(0.88) brightness(0.93);
}
@keyframes interviewer-ring-crime {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,128,128,0.08); }
  50%       { box-shadow: 0 0 0 6px rgba(255,128,128,0.2), 0 0 16px rgba(255,100,100,0.1); }
}
.crime-deck {
  position: relative;
}
.crime-card {
  background: var(--navy);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.4rem 7.4rem; /* left space for 88px circle + gap */
  min-height: 200px;
  display: none; flex-direction: column; gap: 0.9rem;
}
.crime-card.active { display: flex; }
.crime-stage { display: flex; flex-direction: column; gap: 0.5rem; }
.crime-stage-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.crime-stage-label.bad  { color: rgba(255,128,128,0.65); }
.crime-stage-label.think{ color: rgba(180,180,255,0.45); letter-spacing: 0.14em; }
.crime-stage-label.good { color: rgba(126,207,160,0.65); }
.crime-bad   { font-size: 0.95rem; color: #ff8080; line-height: 1.45; }
.crime-think { font-size: 0.93rem; color: rgba(255,255,255,0.7); font-style: italic; line-height: 1.55; }
.crime-good  { font-size: 0.95rem; color: #7ecfa0; line-height: 1.45; }

/* "Інтерв'юер думає" — distinct thought-bubble block */
.crime-stage-think-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid rgba(180,180,255,0.28);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  position: relative;
}

.crime-nav {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 0.75rem;
}
.crime-nav-btn {
  background: transparent; border: 1px solid rgba(26,39,68,0.22);
  color: rgba(26,39,68,0.6); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-size: 0.82rem;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.18s;
}
.crime-nav-btn:hover { background: rgba(26,39,68,0.07); color: var(--navy); border-color: rgba(26,39,68,0.4); }
.crime-nav-btn:disabled { opacity: 0.25; cursor: default; }
.crime-counter { font-size: 0.75rem; color: rgba(26,39,68,0.4); }


/* ─────────────────────────────────────────────────
   READING BODY (example answers)
───────────────────────────────────────────────── */
.reading-body {
  font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 1.5rem; color: var(--ink);
}
.reading-body p { margin-bottom: 1rem; }
.gap {
  border-bottom: 2px solid var(--gold);
  min-width: 60px; display: inline-block;
  cursor: pointer; color: transparent;
  transition: color 0.2s;
  padding: 0 2px;
}
.gap.revealed { color: var(--navy); font-weight: 600; }

/* ── Model answer interactive gap inputs ── */
.gap-input {
  border: none;
  border-bottom: 2px solid var(--gold);
  background: transparent;
  min-width: 80px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: inherit;
  color: var(--navy);
  padding: 0 4px 1px;
  outline: none;
  transition: border-color 0.18s, color 0.18s;
  vertical-align: baseline;
}
.gap-input:focus { border-bottom-color: var(--navy); }
.gap-input.correct { border-bottom-color: var(--green); color: var(--green); font-weight: 600; }
.gap-input.wrong   { border-bottom-color: var(--red);   color: var(--red); }

.gap-controls {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  flex-wrap: wrap;
}
.gap-check-btn {
  background: var(--navy); color: var(--gold);
  border: none; border-radius: 999px;
  padding: 0.42rem 1.1rem; font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s;
}
.gap-check-btn:hover { background: #253660; }
.gap-show-btn {
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 999px; color: var(--muted);
  padding: 0.4rem 1rem; font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.gap-show-btn:hover { border-color: var(--gold); color: var(--navy); }
.gap-reset-btn {
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 999px; color: var(--muted);
  padding: 0.4rem 1rem; font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.gap-reset-btn:hover { border-color: var(--navy); color: var(--navy); }
.gap-score { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.vocab {
  border-bottom: 1px dashed var(--gold);
  cursor: help; position: relative;
}
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-style: italic;
  color: var(--navy); text-align: center;
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  margin: 2rem 0;
  line-height: 1.5;
}
.cultural-note {
  background: rgba(26,39,68,0.04);
  border-left: 3px solid var(--navy);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}
.cn-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); opacity: 0.5;
  margin-bottom: 0.4rem;
}
.cultural-note p:last-child { font-size: 0.88rem; color: #444; margin: 0; }

.audio-row {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.text-audio-btn {
  background: var(--navy); color: var(--gold);
  border: none; border-radius: 999px;
  padding: 0.45rem 1rem; font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
  transition: background 0.18s;
}
.text-audio-btn::before {
  content: "▶";
  font-size: 0.65rem;
}
.text-audio-btn.playing { background: var(--gold); color: var(--navy); }
.text-audio-btn.playing::before { content: "■"; }
.worksheet-link {
  margin-left: auto; font-size: 0.8rem;
  font-weight: 600; color: var(--navy);
  border: 1.5px solid var(--line);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  transition: border-color 0.18s;
}
.worksheet-link:hover { border-color: var(--gold); color: var(--gold); }


/* ─────────────────────────────────────────────────
   ANSWER BUILDER (STAR / PSB)
───────────────────────────────────────────────── */
.answer-builder { margin-bottom: 2rem; }
.ab-intro {
  font-size: 0.88rem; color: #555;
  margin-bottom: 0.4rem; line-height: 1.6;
}
.ab-timing-hint {
  font-size: 0.76rem; color: #888;
  border-left: 2px solid #ddd;
  padding-left: 0.6rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.ab-steps { display: flex; flex-direction: column; gap: 0.9rem; }
.ab-step {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 1.1rem 1.2rem;
  transition: border-color 0.2s;
}
.ab-step:focus-within { border-color: var(--gold); }
.ab-step-header {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.ab-step-letter {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ab-step-label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.ab-step-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.ab-textarea {
  width: 100%; min-height: 72px;
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 0.65rem 0.9rem;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--ink); line-height: 1.55; resize: vertical;
  transition: border-color 0.18s; outline: none;
}
.ab-textarea:focus { border-color: var(--gold); background: var(--white); }
.ab-textarea::placeholder { color: #bbb; }
.ab-preview {
  margin-top: 1.25rem; background: var(--navy);
  border-radius: 14px; padding: 1.25rem 1.4rem;
  display: none;
}
.ab-preview.visible { display: block; }
.ab-preview-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.ab-preview-text {
  font-size: 0.95rem; color: rgba(255,255,255,0.88);
  line-height: 1.65;
}
.ab-preview-text .ab-chunk { color: #fff; font-weight: 600; }
.ab-actions {
  display: flex; gap: 0.75rem; margin-top: 1rem;
}
.ab-btn {
  padding: 0.6rem 1.3rem; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: all 0.18s;
  border: none;
}
.ab-btn-build { background: var(--gold); color: var(--navy); }
.ab-btn-build:hover { background: var(--gold2); }
.ab-btn-clear { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.ab-btn-clear:hover { border-color: var(--navy); color: var(--navy); }

/* ── Answer Builder — send to teacher (supported plan only) ── */
.ab-send-wrap {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 1rem;
}
body[data-plan="supported"] .ab-send-wrap.visible { display: flex; }
.ab-btn-send {
  padding: 0.6rem 1.4rem; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: all 0.18s;
  border: none;
  background: var(--navy); color: var(--gold);
}
.ab-btn-send:hover { background: #253660; }
.ab-btn-send:disabled { opacity: 0.6; cursor: default; }
.ab-btn-send.sent { background: var(--green); color: #fff; }
.ab-send-note {
  font-size: 0.78rem; color: var(--muted); line-height: 1.4;
}


/* ─────────────────────────────────────────────────
   COMPREHENSION / AFTER-READING
───────────────────────────────────────────────── */
.after-reading { margin-bottom: 2rem; }
.comprehension-q { margin-bottom: 1rem; }
.comprehension-q p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.show-answer-btn {
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.18s;
}
.show-answer-btn:hover { border-color: var(--gold); color: var(--gold); }
.cq-textarea {
  display: block; width: 100%;
  min-height: 60px; resize: none; overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--ink); line-height: 1.55;
  outline: none; transition: border-color 0.18s;
  margin-bottom: 0.6rem;
}
.cq-textarea:focus { border-color: var(--gold); }
.cq-textarea::placeholder { color: #bbb; }

.answer-text {
  display: none; margin-top: 0.6rem;
  background: var(--cream2); border-radius: 10px;
  padding: 0.75rem 1rem; font-size: 0.88rem;
  color: #555; line-height: 1.6;
  border-left: 3px solid var(--gold);
}
.answer-text.visible { display: block; }


/* ─────────────────────────────────────────────────
   RECORDING TIMER (embedded in Video Practice)
───────────────────────────────────────────────── */
.sim-rec-timer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem 0.45rem;
  background: rgba(0,0,0,0.28);
  border-radius: 0 0 12px 12px;
  z-index: 5;
}
.sim-rec-timer.visible { display: flex; }
.sim-rec-timer-bar-track {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px; overflow: hidden;
}
.sim-rec-timer-bar-fill {
  height: 100%; width: 0%;
  background: #2d7a4f;
  border-radius: 2px;
  transition: width 0.7s linear, background 0.6s;
}
.sim-rec-timer-bar-fill.yellow { background: #c9a227; }
.sim-rec-timer-bar-fill.overtime {
  background: #c0392b;
  animation: rec-overtime-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-overtime-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.sim-rec-timer-time {
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.5);
  min-width: 2.6rem; text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.sim-rec-timer-time.overtime { color: rgba(192,57,43,0.9); }
.sim-rec-timer-hint {
  font-size: 0.67rem; color: rgba(192,57,43,0.85);
  font-style: italic; white-space: nowrap;
  opacity: 0; transition: opacity 0.5s;
}
.sim-rec-timer-hint.visible { opacity: 1; }


/* ─────────────────────────────────────────────────
   VIDEO RECORDER
───────────────────────────────────────────────── */
.video-recorder-wrap {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}
.vr-header {
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.75rem;
}
.vr-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.vr-checklist {
  list-style: none; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.vr-checklist li {
  font-size: 0.8rem; color: #555;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.vr-checklist li::before { content: "☐"; color: var(--gold); flex-shrink: 0; }
.vr-preview {
  width: 100%; aspect-ratio: 16/9;
  background: #0a1220; border-radius: 10px;
  overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.vr-preview video { width: 100%; height: 100%; object-fit: cover; display: none; }
.vr-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.25); font-size: 0.82rem;
}
.vr-controls { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.vr-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; transition: all 0.18s;
  border: none;
}
.vr-btn-record { background: var(--red); color: #fff; }
.vr-btn-record:hover { background: #a93226; }
.vr-btn-record.recording { background: #888; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.vr-btn-play { background: var(--navy); color: var(--gold); display: none; }
.vr-btn-play:hover { background: #253660; }
.vr-btn-download { background: transparent; border: 1.5px solid var(--line); color: var(--navy); display: none; }
.vr-btn-download:hover { border-color: var(--gold); color: var(--gold); }


/* ─────────────────────────────────────────────────
   GAP-FILL EXERCISES
───────────────────────────────────────────────── */
.gex-block {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}
.gex-type-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.gex-instruction { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.gex-note { font-size: 0.76rem; color: rgba(201,162,39,0.7); border-left: 2px solid rgba(201,162,39,0.3); padding-left: 0.6rem; margin-bottom: 0.75rem; line-height: 1.45; }
.gex-note--deferred { display: none; }

/* ── BILINGUAL TOGGLE ───────────────────────────────────── */
.ua-tr {
  display: none;
  font-style: italic;
  color: var(--muted);
  font-size: 0.87em;
  margin-top: 0.25em;
  line-height: 1.45;
}
.ua-tr.visible,
body.ua-mode .ua-tr { display: block; }

/* When UA text is a sim-cl-hint or ab-step-hint inside ua-tr, inherit the italic/muted style */
.ua-tr .sim-cl-hint,
.ua-tr .ab-step-hint { color: inherit; font-size: inherit; opacity: 0.8; }

.ua-toggle {
  display: inline-flex; align-items: center;
  background: transparent;
  border: 1px solid rgba(26,39,68,0.2);
  color: rgba(26,39,68,0.38);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 0.45rem;
  line-height: 1.7;
  transition: all 0.15s;
  flex-shrink: 0;
}
.ua-toggle:hover { background: rgba(26,39,68,0.06); color: var(--navy); border-color: rgba(26,39,68,0.35); }

/* Global UA toggle bar */
.ua-global-bar {
  display: flex; justify-content: flex-end;
  padding: 0.6rem 1.5rem 0;
}
.ua-global-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
}
.ua-global-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
body.ua-mode .ua-global-btn { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.gex-sentence { font-size: 0.95rem; line-height: 1.9; margin-bottom: 1rem; }
.gex-input {
  border: none; border-bottom: 2px solid var(--gold);
  background: transparent; padding: 0 4px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  color: var(--navy); outline: none;
  transition: border-color 0.18s;
}
.gex-input:focus { border-color: var(--navy); }
.gex-input.correct { border-color: var(--green); color: var(--green); }
.gex-input.wrong   { border-color: var(--red);   color: var(--red);   }
.gex-controls { display: flex; align-items: center; gap: 0.65rem; }
.gex-check, .gex-retry {
  padding: 0.45rem 1.1rem; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  font-weight: 700; cursor: pointer; transition: all 0.18s;
  border: none;
}
.gex-check { background: var(--navy); color: var(--gold); }
.gex-check:hover { background: #253660; }
.gex-retry { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.gex-retry:hover { border-color: var(--navy); color: var(--navy); }
.gex-score { font-size: 0.8rem; font-weight: 600; color: var(--navy); }


/* ─────────────────────────────────────────────────
   EPISODE NAVIGATION
───────────────────────────────────────────────── */
.ep-outro {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  padding: 1.5rem 1.8rem;
  border-radius: 16px;
  margin: 2rem 0 1.5rem;
}
.ep-outro-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.ep-cta {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.75rem;
  padding: 2rem 0 1rem;
  text-align: center;
}
.ep-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--navy);
  padding: 0.95rem 2.2rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  transition: all 0.2s;
}
.ep-cta-btn:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,162,39,0.3); }
.ep-cta-sub { font-size: 0.85rem; color: var(--muted); }
.ep-cta-sub a { color: var(--navy); font-weight: 600; text-decoration: underline; }

.lesson-nav {
  display: flex; justify-content: space-between;
  align-items: center; padding: 1.5rem 0;
  border-top: 1px solid var(--line); margin-top: 2rem;
}
.lesson-nav a {
  font-size: 0.88rem; font-weight: 600;
  color: var(--navy); padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  transition: all 0.18s;
}
.lesson-nav a:hover { border-color: var(--gold); color: var(--gold); }
.done-btn {
  background: var(--navy); color: #fff;
  border: none; border-radius: 999px;
  padding: 0.5rem 1.3rem; font-size: 0.85rem;
  font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.18s;
}
.done-btn:hover { background: #253660; }
.done-btn.completed { background: var(--green); }


/* ─────────────────────────────────────────────────
   INTERVIEW SIMULATOR
───────────────────────────────────────────────── */
.interview-sim {
  background: #0b1526;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

/* ── Lobby waiting room ── */
.sim-lobby {
  display: none;
  position: absolute; inset: 0; z-index: 50;
  background: #080f1d;
  flex-direction: column;
  border-radius: inherit;
}
.sim-lobby.visible { display: flex; }

.sim-lobby-header {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.sim-lobby-cancel-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.18s;
}
.sim-lobby-cancel-btn:hover {
  border-color: rgba(192,57,43,0.4);
  color: rgba(255,100,80,0.7);
}
.sim-lobby-rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201,162,39,0.6);
  flex-shrink: 0;
  animation: lobby-dot-pulse 2.2s ease-in-out infinite;
}
@keyframes lobby-dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* main area: status (top) + preview+checks (bottom) */
.sim-lobby-main {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-evenly;
  padding: 0.5rem 1.5rem; gap: 0.4rem;
}

.sim-lobby-status {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.45rem; text-align: center;
}
.sim-lobby-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.08);
  border-top-color: var(--gold);
  animation: lobby-spin 0.85s linear infinite;
  transition: opacity 0.4s;
}
@keyframes lobby-spin { to { transform: rotate(360deg); } }
.sim-lobby-spinner.hidden { opacity: 0; animation: none; }

.sim-lobby-line {
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.88);
  min-height: 1.4em;
}
.sim-lobby-sub {
  font-size: 0.78rem; color: rgba(255,255,255,0.38);
  min-height: 1.1em; line-height: 1.5;
}

/* camera preview + checklist */
.sim-lobby-preview-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.55rem; width: 100%;
}
.sim-lobby-pip {
  width: 200px; aspect-ratio: 4/3;
  border-radius: 12px; overflow: hidden;
  background: #050d1a; position: relative;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.sim-lobby-pip video {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transform: scaleX(-1);
}
.sim-lobby-pip-label {
  position: absolute; bottom: 0.35rem; left: 0.5rem;
  font-size: 0.62rem; color: rgba(255,255,255,0.5);
  font-weight: 600; letter-spacing: 0.04em;
}

/* checklist under camera */
.sim-lobby-checks {
  width: 200px; display: flex; flex-direction: column; gap: 0.28rem;
}
.sim-lobby-checks-title {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3); margin-bottom: 0.1rem;
}
.sim-lobby-check-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
  cursor: pointer; line-height: 1.3;
  transition: color 0.15s;
}
.sim-lobby-check-item:hover { color: rgba(255,255,255,0.9); }
.sim-lobby-check-item input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0;
  accent-color: var(--gold); cursor: pointer;
}
.sim-lobby-check-item input:checked + span {
  color: var(--gold);
}

/* Fullscreen toggle button */
.sim-fullscreen-btn {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  cursor: pointer; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.sim-fullscreen-btn:hover {
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.85);
}

/* ── Fullscreen mode ── */
.interview-sim:fullscreen,
.interview-sim:-webkit-full-screen {
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* flex-start prevents overflow from being hidden above viewport */
  overflow: hidden; /* stage-2 handles its own scroll */
}
/* Stage 1 (interviewer) — centre itself with its own flex layout */
.interview-sim:fullscreen .sim-stage-1,
.interview-sim:-webkit-full-screen .sim-stage-1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.interview-sim:fullscreen .sim-interviewer,
.interview-sim:-webkit-full-screen .sim-interviewer {
  width: 200px; height: 200px;
}
/* Stage 2 — scrollable, starts from top */
.interview-sim:fullscreen .sim-stage-2,
.interview-sim:-webkit-full-screen .sim-stage-2 {
  flex: 1;
  max-width: 740px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 2rem;
  overflow-y: auto;
  min-height: 0;
}
.interview-sim:fullscreen .sim-stage-session,
.interview-sim:-webkit-full-screen .sim-stage-session {
  flex: 1;
  min-height: 0;
}
.interview-sim:fullscreen .sim-session-video-wrap,
.interview-sim:-webkit-full-screen .sim-session-video-wrap {
  flex: 1;
  aspect-ratio: unset;
  min-height: 0;
}

/* Fullscreen: larger video preview in Stage 2 */
.interview-sim:fullscreen .sim-video-preview,
.interview-sim:-webkit-full-screen .sim-video-preview {
  height: min(58vh, 460px);
  flex: none;
  aspect-ratio: unset;
  min-height: 220px;
}

/* Fullscreen: larger recruiter tile */
.interview-sim:fullscreen .sim-rec-tile,
.interview-sim:-webkit-full-screen .sim-rec-tile {
  width: 136px;
  top: 1rem;
  left: 1rem;
  border-radius: 12px;
}
/* Stronger scanline + brightness effect in fullscreen */
/* fullscreen: same pulse animation */
.interview-sim:fullscreen .sim-rec-tile img,
.interview-sim:-webkit-full-screen .sim-rec-tile img {
  animation: rec-tile-pulse 3.5s ease-in-out infinite;
}

/* Stage 1 — Hear the question */
.sim-stage-1 {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.sim-interviewer {
  width: 136px; height: 136px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2.5px solid rgba(201,162,39,0.45);
  box-shadow: 0 0 0 5px rgba(201,162,39,0.1);
  flex-shrink: 0;
  animation: interviewer-ring 3.5s ease-in-out infinite;
}
.sim-interviewer img {
  position: absolute; inset: -10%; /* overflow allows zoom without showing edges */
  width: 120%; height: 120%;
  object-fit: cover; object-position: center 10%;
  display: block;
  animation: interviewer-kenburns 22s ease-in-out infinite alternate;
  filter: saturate(0.92) brightness(0.97);
}
@keyframes interviewer-kenburns {
  0%   { transform: scale(1.0)  translate(0%,    0%);   }
  25%  { transform: scale(1.08) translate(-2%,  -1%);   }
  50%  { transform: scale(1.11) translate(1.5%,  1.5%); }
  75%  { transform: scale(1.06) translate(2%,   -1.5%); }
  100% { transform: scale(1.09) translate(-1%,   2%);   }
}
@keyframes interviewer-ring {
  0%, 100% { box-shadow: 0 0 0 5px rgba(201,162,39,0.1); }
  50%       { box-shadow: 0 0 0 7px rgba(201,162,39,0.22), 0 0 20px rgba(201,162,39,0.1); }
}
.sim-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.sim-hear-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 999px;
  padding: 0.85rem 2rem; font-size: 0.95rem;
  font-family: 'Inter', sans-serif; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.sim-hear-btn:hover { background: var(--gold2); transform: translateY(-2px); }
.sim-hear-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.sim-speaking-indicator {
  display: none; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.55); font-size: 0.85rem;
}
.sim-speaking-indicator.visible { display: flex; }
.sim-wave { display: flex; gap: 3px; align-items: center; height: 20px; }
.sim-wave span {
  display: block; width: 3px; background: var(--gold);
  border-radius: 999px; animation: wave 0.9s infinite ease-in-out;
}
.sim-wave span:nth-child(1) { height: 8px;  animation-delay: 0s;    }
.sim-wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.sim-wave span:nth-child(3) { height: 12px; animation-delay: 0.3s;  }
.sim-wave span:nth-child(4) { height: 18px; animation-delay: 0.45s; }
.sim-wave span:nth-child(5) { height: 8px;  animation-delay: 0.6s;  }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* Stage 2 — Record */
.sim-stage-2 {
  display: none;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}
.sim-stage-2.visible { display: flex; }
.sim-repeat-row {
  display: flex; align-items: center; gap: 0.75rem;
}
.sim-q-wrap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
}
.sim-current-q {
  font-size: 0.82rem; font-style: italic;
  color: rgba(255,255,255,0.5);
  border-left: 2px solid var(--gold);
  padding-left: 0.7rem; margin: 0;
  line-height: 1.45;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.sim-current-q.q-blurred {
  filter: blur(7px);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}
.sim-q-reveal-btn {
  display: none;
  align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.38);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.7rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; letter-spacing: 0.04em;
  transition: all 0.18s;
}
.sim-q-reveal-btn:hover {
  border-color: rgba(201,162,39,0.4);
  color: rgba(201,162,39,0.7);
}
.sim-repeat-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.78rem;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.18s;
}
.sim-repeat-btn:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.85); }
.sim-rec-label {
  font-size: 0.72rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.sim-video-preview {
  width: 100%; aspect-ratio: 16/9;
  background: #050d1a; border-radius: 12px;
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.sim-video-preview video { width: 100%; height: 100%; object-fit: cover; display: none; }
.sim-video-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.2); font-size: 0.82rem;
}
/* ── Recruiter tile (video-call PiP) ── */
.sim-rec-tile {
  position: absolute; top: 0.6rem; left: 0.6rem;
  width: 88px; border-radius: 9px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  background: #0b1a2e; z-index: 10;
}
.sim-rec-tile img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; object-position: top center;
  display: block;
  animation: rec-tile-pulse 3.5s ease-in-out infinite;
}
/* gentle pulse — bright, crisp, natural */
@keyframes rec-tile-pulse {
  0%, 100% { filter: brightness(0.97) saturate(1.0); }
  50%       { filter: brightness(1.04) saturate(1.05); }
}
/* Speech bubble — appears above recruiter tile when bored */
.sim-rec-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  background: #fff;
  color: var(--navy, #1a2744);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
}
.sim-rec-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}
.sim-rec-tile.bored .sim-rec-bubble {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: bubble-bob 2.5s ease-in-out infinite;
}
@keyframes bubble-bob {
  0%, 100% { transform: translateX(-50%) scale(1) translateY(0); }
  50%       { transform: translateX(-50%) scale(1) translateY(-3px); }
}

/* bored / yawning state */
.sim-rec-tile.bored {
  border-color: rgba(255,255,255,0.12);
}
.sim-rec-tile.bored img {
  animation: rec-tile-pulse 3.5s ease-in-out infinite;
}
/* "zz" sleep label */
.sim-rec-tile.bored .sim-rec-tile-name::after {
  content: ' zz';
  font-style: italic; opacity: 0.55;
  animation: rec-tile-zz 2s ease-in-out infinite;
}
@keyframes rec-tile-zz {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}
.sim-rec-tile-name {
  display: block; text-align: center;
  font-size: 0.57rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); padding: 0.2rem 0 0.15rem;
  position: relative; z-index: 3; line-height: 1.4;
}
.sim-rec-tile-role {
  font-size: 0.5rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.sim-rec-tile-audio {
  position: absolute; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 2.5px;
  opacity: 0; transition: opacity 0.25s;
}
.sim-rec-tile.speaking .sim-rec-tile-audio { opacity: 1; }
.sim-rec-tile-audio span {
  width: 3px; border-radius: 2px; background: var(--gold);
  animation: rec-tile-wave 0.75s ease-in-out infinite;
}
.sim-rec-tile-audio span:nth-child(1) { height: 5px;  animation-delay: 0s; }
.sim-rec-tile-audio span:nth-child(2) { height: 10px; animation-delay: 0.12s; }
.sim-rec-tile-audio span:nth-child(3) { height: 15px; animation-delay: 0.24s; }
.sim-rec-tile-audio span:nth-child(4) { height: 10px; animation-delay: 0.36s; }
.sim-rec-tile-audio span:nth-child(5) { height: 5px;  animation-delay: 0.48s; }
@keyframes rec-tile-wave {
  0%, 100% { transform: scaleY(0.35); }
  50%       { transform: scaleY(1); }
}

.sim-controls { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.sim-rec-btn {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.3rem; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.18s;
}
.sim-btn-record   { background: #c0392b; color: #fff; }
.sim-btn-record:hover { background: #a93226; }
.sim-btn-record.recording { background: #666; animation: pulse 1.2s infinite; }
.sim-btn-play     { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); display: none; }
.sim-btn-play:hover { background: rgba(255,255,255,0.15); }
.sim-btn-stop     { background: rgba(192,57,43,0.18); color: rgba(255,120,100,0.9); display: none; border: 1px solid rgba(192,57,43,0.3); }
.sim-btn-stop:hover { background: rgba(192,57,43,0.28); color: #ff8070; border-color: rgba(192,57,43,0.5); }
.sim-btn-download { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.55); display: none; }
.sim-btn-download:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.85); }
.sim-btn-clear { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); display: none; }
.sim-btn-clear:hover { border-color: rgba(192,57,43,0.4); color: rgba(255,100,80,0.75); }
.sim-checklist {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.sim-cl-item {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.48);
  cursor: pointer; user-select: none;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.sim-cl-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.65); }
.sim-cl-box {
  flex-shrink: 0; font-size: 1rem; line-height: 1.25;
  color: var(--gold); transition: color 0.2s;
}
.sim-cl-text { line-height: 1.35; }
.sim-cl-hint {
  display: block; font-size: 0.68rem;
  color: rgba(255,255,255,0.22);
  margin-top: 0.1rem; font-style: italic;
}
.sim-cl-item.checked .sim-cl-box { color: var(--gold); }
.sim-cl-item.checked .sim-cl-text { color: rgba(201,162,39,0.75); }
.sim-cl-item.checked .sim-cl-hint { color: rgba(201,162,39,0.3); }

.sim-checklist-label {
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-top: 1rem; margin-bottom: 0.3rem;
  padding: 0 0.5rem;
}

/* review checklist — shown only during playback */
.sim-review-wrap { display: none; flex-direction: column; gap: 0; }
.sim-review-wrap.visible { display: flex; }
.sim-review-label { margin-top: 0; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1rem; margin-bottom: 0.3rem; }
.sim-review-list { margin-bottom: 0.25rem; }

/* question counter badge in Stage 1 */
.sim-q-counter {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: -0.75rem; /* pull closer to icon */
}

/* ── Tutor Feedback download (supported plan only) ── */
.sim-tutor-wrap {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding-top: 0.25rem;
}
body[data-plan="supported"] .sim-tutor-wrap.visible { display: flex; }
.sim-btn-tutor-dl {
  background: transparent;
  border: 1px solid rgba(201,162,39,0.28) !important;
  color: rgba(201,162,39,0.65) !important;
}
.sim-btn-tutor-dl:hover {
  background: rgba(201,162,39,0.07) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.sim-tutor-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.28);
  font-style: italic;
  padding-left: 0.15rem;
}

/* ── "До вправ" button ── */
.sim-btn-exercises {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.78rem;
  font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.sim-btn-exercises:hover {
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.7);
}
/* More prominent in fullscreen — stands out as the exit CTA */
.interview-sim:fullscreen .sim-btn-exercises,
.interview-sim:-webkit-full-screen .sim-btn-exercises {
  border-color: rgba(201,162,39,0.28);
  color: rgba(201,162,39,0.55);
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}
.interview-sim:fullscreen .sim-btn-exercises:hover,
.interview-sim:-webkit-full-screen .sim-btn-exercises:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.08);
}

/* "Next question" row at bottom of Stage 2 */
.sim-next-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
/* In fullscreen: stick the nav row to the bottom so it's always reachable */
.interview-sim:fullscreen .sim-next-row,
.interview-sim:-webkit-full-screen .sim-next-row {
  position: sticky;
  bottom: 0;
  background: #0b1526;
  margin: 0 -2.5rem;
  padding: 0.65rem 2.5rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}
.sim-next-video-row {
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 0 0.1rem;
}
.sim-btn-next {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.sim-btn-next:hover { background: rgba(201,162,39,0.1); border-color: var(--gold); }

/* ── Stage 1: "Mock Interview" secondary button ── */
.sim-session-start-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(201,162,39,0.3);
  color: rgba(201,162,39,0.72);
  border-radius: 999px; padding: 0.55rem 1.5rem;
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; transition: all 0.18s;
}
.sim-session-start-btn:hover {
  background: rgba(201,162,39,0.08);
  border-color: var(--gold); color: var(--gold);
}

/* ── Mock Interview Session Stage ── */
.sim-stage-session { display: none; flex-direction: column; }
.sim-stage-session.visible { display: flex; }

.sim-session-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sim-session-rec {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #e74c3c;
}
.sim-rec-dot {
  width: 7px; height: 7px; background: #e74c3c;
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.sim-session-qnum {
  font-size: 0.78rem; color: rgba(255,255,255,0.38);
}
.sim-session-stop {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.38); border-radius: 999px;
  padding: 0.28rem 0.75rem; font-family: 'Inter', sans-serif;
  font-size: 0.72rem; cursor: pointer; transition: all 0.18s;
}
.sim-session-stop:hover { border-color: #e74c3c; color: #e74c3c; }

.sim-session-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #050d1a; overflow: hidden;
}
.sim-session-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sim-session-q-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: none; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
}
.sim-session-q-overlay.visible { display: flex; }
.sim-session-q-label { font-size: 0.83rem; color: rgba(255,255,255,0.72); }

.sim-session-controls { padding: 0.85rem 1.25rem; }
.sim-session-timer-bar {
  height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 999px; overflow: hidden; margin-bottom: 0.7rem;
}
.sim-session-timer-fill {
  height: 100%; width: 0%; background: #27ae60;
  border-radius: 999px; transition: background 0.5s;
}
.sim-session-timer-fill.yellow { background: #f39c12; }
.sim-session-timer-fill.red    { background: #e74c3c; }
.sim-session-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.sim-session-time {
  font-size: 0.78rem; color: rgba(255,255,255,0.32);
  font-variant-numeric: tabular-nums;
}
.sim-session-btns { display: flex; gap: 0.5rem; }
.sim-session-next-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.18s;
}
.sim-session-next-btn:hover { background: rgba(201,162,39,0.1); border-color: var(--gold); }
.sim-session-next-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.sim-session-end-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 999px;
  padding: 0.45rem 1.2rem; font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.18s;
}
.sim-session-end-btn:hover { background: var(--gold2); }
.sim-session-result {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sim-session-result-done {
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  margin: 0 0 0.6rem; letter-spacing: 0.04em;
}
.sim-session-result-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.sim-result-restart {
  display: flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5); border-radius: 999px;
  padding: 0.6rem 1.3rem; font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.18s;
}
.sim-result-restart:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.8); }

/* ─────────────────────────────────────────────────
   PERSONAL DICTIONARY BUTTON
───────────────────────────────────────────────── */
.my-dict-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.15s;
}
.my-dict-link:hover { color: var(--gold); }
.dict-count-badge {
  background: var(--gold); color: var(--navy);
  font-size: 0.65rem; font-weight: 800;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  min-width: 18px; text-align: center;
  transition: background 0.2s;
}
.dict-count-badge.due {
  background: #e05252; color: #fff;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}


/* ─────────────────────────────────────────────────
   PRONUNCIATION FOCUS
───────────────────────────────────────────────── */
.pronunciation-block {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}
.pb-intro { font-size: 0.84rem; color: #555; margin-bottom: 1rem; }
.pb-words { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pb-word {
  background: var(--cream2); border-radius: 10px;
  padding: 0.6rem 1rem;
}
.pb-word-en { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.pb-word-stress {
  font-size: 0.72rem; color: var(--muted);
  margin-top: 0.15rem; letter-spacing: 0.03em;
}
.pb-word-stress span { color: var(--gold); font-weight: 700; text-transform: uppercase; }


/* ─────────────────────────────────────────────────
   BEFORE READING
───────────────────────────────────────────────── */
.before-reading {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
  margin-bottom: 2rem;
}
.before-reading-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.vocab-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.vocab-list li { font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline; }
.vocab-list li strong { color: var(--navy); }
.v-def { color: #555; }
.v-ua { color: var(--gold); font-size: 0.82rem; font-weight: 600; }

/* ─────────────────────────────────────────────────
   VOCABULARY FLIP CARDS
───────────────────────────────────────────────── */
.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.flip-card {
  height: 158px;
  perspective: 700px;
  cursor: pointer;
}
.flip-card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0.85rem 0.85rem 0.65rem; text-align: center;
}
.flip-card-front {
  background: var(--navy);
  border: 1.5px solid rgba(201,162,39,0.2);
}
.flip-card-back {
  background: #fff;
  border: 1.5px solid var(--line);
  transform: rotateY(180deg);
  justify-content: space-between;
}
.fc-word {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  margin-bottom: 0.35rem;
}
.fc-phonetic {
  font-size: 0.68rem; color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
}
.fc-phonetic-row {
  display: flex; align-items: baseline; gap: 0.35rem;
  line-height: 1.6;
}
.fc-ipa-label {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08); border-radius: 3px;
  padding: 1px 4px; flex-shrink: 0;
}
.fc-flip-hint {
  font-size: 0.58rem; color: rgba(255,255,255,0.2);
  position: absolute; bottom: 0.5rem; right: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.fc-ua {
  font-size: 0.93rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.15rem;
}
.fc-def {
  font-size: 0.68rem; color: #777;
  margin-bottom: 0.25rem; line-height: 1.3;
}
.fc-stress {
  font-size: 0.65rem; letter-spacing: 0.04em;
  color: var(--muted); margin-bottom: 0.35rem;
}
.fc-stress span {
  color: var(--navy); font-weight: 700;
}
.fc-back-actions {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: auto;
}
.fc-audio-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px;
  padding: 0.22rem 0.65rem; font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.fc-audio-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Heart save button — shared base */
.fc-save-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  color: #ccc; font-size: 0.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.fc-save-btn:hover { border-color: #e74c3c; color: #e74c3c; transform: scale(1.15); }
.fc-save-btn.saved { background: rgba(231,76,60,0.08); border-color: #e74c3c; color: #e74c3c; }

/* Front-side heart — positioned top-right on navy background */
.fc-save-front {
  position: absolute; top: 0.5rem; right: 0.6rem;
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.2);
}
.fc-save-front:hover {
  border-color: rgba(231,76,60,0.55);
  color: rgba(231,76,60,0.75);
  background: rgba(231,76,60,0.06);
}
.fc-save-front.saved {
  border-color: rgba(231,76,60,0.5);
  color: rgba(231,76,60,0.8);
  background: rgba(231,76,60,0.1);
}

/* ── SWIPE DECK ─────────────────────────────────────────────── */
.flip-deck-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.flip-deck-stage {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 210px;
}
.flip-deck-stage .flip-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease;
  transform: translateX(60px);
}
.flip-deck-stage .flip-card.deck-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.flip-deck-stage .flip-card.deck-exit-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.flip-deck-stage .flip-card.deck-enter-left {
  transform: translateX(-60px);
}

/* Counter */
.flip-deck-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.flip-deck-counter strong { color: var(--navy); }

/* Nav buttons */
.flip-deck-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.flip-deck-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  font-size: 1rem;
}
.flip-deck-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.flip-deck-btn:disabled { opacity: 0.3; cursor: default; }

/* Dots */
.flip-deck-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.flip-deck-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.2s;
}
.flip-deck-dot.active {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}

/* Swipe hint */
.flip-deck-hint {
  font-size: 0.68rem;
  color: rgba(0,0,0,0.25);
  text-align: center;
  margin-top: -0.25rem;
}

/* Pronunciation word audio button */
.pb-word-audio {
  display: block; background: transparent; border: none;
  color: rgba(201,162,39,0.5); font-size: 0.68rem;
  cursor: pointer; padding: 0; margin-top: 0.3rem;
  font-family: 'Inter', sans-serif; font-weight: 600;
  transition: color 0.15s;
}
.pb-word-audio:hover { color: var(--gold); }


/* ─────────────────────────────────────────────────
   GRAMMAR EX PANEL
───────────────────────────────────────────────── */
.grammar-ex-panel {
  border-top: 1px solid var(--line);
  padding-top: 2rem; margin-top: 2rem;
}
.gex-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--navy); margin-bottom: 1.25rem;
}


/* ─────────────────────────────────────────────────
   READING POPUP (text-selection translate + audio)
───────────────────────────────────────────────── */
.ji-rd-popup {
  position: fixed; z-index: 9999;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.8rem;
  box-shadow: 0 6px 30px rgba(26,39,68,0.17);
  max-width: 272px; min-width: 170px;
  display: none;
  font-family: 'Inter', sans-serif;
}
.ji-rp-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.ji-rp-word {
  font-weight: 700; color: var(--navy);
  font-size: 0.92rem; line-height: 1.35; flex: 1;
}
.ji-rp-audio { display: flex; gap: 0.3rem; flex-shrink: 0; margin-top: 1px; }
.ji-rp-speak {
  background: none; border: 1.5px solid var(--line);
  border-radius: 6px; padding: 0.2rem 0.5rem;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer;
  color: var(--navy); transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 0.22rem;
  white-space: nowrap;
}
.ji-rp-speak:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.ji-rp-speak.playing { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.ji-rp-ua {
  display: block; color: #555;
  font-size: 0.84rem; line-height: 1.45;
  margin-bottom: 0.65rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--gold);
}
.ji-rp-ua.loading { color: var(--muted); font-style: italic; }
.ji-rp-save {
  display: block; width: 100%;
  background: var(--navy); color: var(--gold);
  border: none; border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background 0.15s;
  text-align: center;
}
.ji-rp-save:hover { background: #253660; }
.ji-rp-save.saved { background: var(--green); color: #fff; cursor: default; }

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ep-wrap { padding: 1.5rem 1rem 3rem; }
  .ct-scale { gap: 0.35rem; }
  .ct-emoji { font-size: 1.1rem; }
  .phrase-card { padding: 1.2rem 1.1rem; }
  .pc-phrase { font-size: 1.05rem; }
  .ab-textarea { min-height: 60px; }
  .lesson-top { padding: 0.6rem 1rem; }
}

/* ══ Promo gate overlay ══════════════════════════════════════════════ */
#promo-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
#promo-gate.pg-out { animation: pg-fade-out 0.45s ease forwards; }
@keyframes pg-fade-out { to { opacity: 0; pointer-events: none; } }
.pg-card {
  background: #fff; border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 400px; width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}
.pg-lock-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(201,162,39,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
}
.pg-badge {
  display: inline-block;
  background: rgba(201,162,39,0.1); color: #a07d10;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.28rem 0.9rem;
  border-radius: 100px; margin-bottom: 0.75rem;
}
.pg-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 800;
  color: var(--navy); margin: 0 0 0.55rem;
}
.pg-desc { font-size: 0.88rem; color: #6b7280; line-height: 1.55; margin: 0 0 1.5rem; }
.pg-input-wrap { display: flex; gap: 0.45rem; margin-bottom: 0.5rem; }
.pg-input {
  flex: 1; min-width: 0;
  border: 2px solid #e5e7eb; border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  color: var(--navy); letter-spacing: 0.1em;
  text-transform: uppercase; outline: none;
  transition: border-color 0.15s;
}
.pg-input:focus { border-color: var(--gold); }
.pg-input.shake { animation: pg-shake 0.5s ease; border-color: #ef4444; }
@keyframes pg-shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-7px); }
  40%,80%  { transform: translateX(7px); }
}
.pg-btn {
  background: var(--navy); color: #fff;
  border: none; border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-family: inherit; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background 0.15s;
}
.pg-btn:hover { background: #243565; }
.pg-err {
  font-size: 0.81rem; color: #ef4444;
  min-height: 1.1rem; margin: 0;
  opacity: 0; transition: opacity 0.18s;
}
.pg-err.show { opacity: 1; }

/* ── Share strip ─────────────────────────────────────────────── */
.share-strip {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin: 1.5rem auto 0.5rem;
  justify-content: center; max-width: 740px;
  padding: 0 1rem;
}
.share-label { font-size: 0.82rem; color: #888; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: opacity 0.18s; border: none;
}
.share-btn:hover { opacity: 0.82; }
.share-fb { background: #1877f2; color: #fff; }
.share-li { background: #0a66c2; color: #fff; }
.share-tg { background: #2aabee; color: #fff; }
.share-copy { background: #f0ece4; color: #1a2744; border: 1px solid #ddd8ce; cursor: pointer; font-family: inherit; }
