/* BritMaster — Modern 2026 Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ───────────────────────────────────────────────────────────
   British Red primary, Oxford Blue secondary, modern neutrals
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --primary:        #C8102E;
  --primary-dark:   #A00020;
  --primary-light:  #FFF0F2;
  --primary-mid:    #E8102E;
  --oxford:         #002147;
  --gold:           #F59E0B;

  /* Feedback */
  --success:        #16A34A;
  --success-light:  #DCFCE7;
  --error:          #C8102E;
  --error-light:    #FFF0F2;
  --warning:        #D97706;
  --warning-light:  #FEF3C7;

  /* Light mode */
  --text:           #0F172A;
  --text-muted:     #64748B;
  --text-faint:     #94A3B8;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;
  --bg:             #FFFFFF;
  --bg-secondary:   #F8FAFC;
  --bg-tertiary:    #F1F5F9;

  /* Geometry */
  --nav-height:  68px;
  --r-xs:        6px;
  --r-sm:        10px;
  --r-md:        16px;
  --r-lg:        20px;
  --r-xl:        28px;
  --r-full:      9999px;
  /* Legacy aliases (keep for any inline style references) */
  --radius:      var(--r-md);
  --radius-sm:   var(--r-sm);
  --radius-lg:   var(--r-lg);

  /* Shadows — layered, modern */
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-red: 0 4px 20px rgba(200,16,46,.25);
  --shadow-nav: 0 -1px 0 rgba(0,0,0,.04), 0 -4px 20px rgba(0,0,0,.06);

  /* Cross — kept but invisible (class still in DOM, just neutral) */
  --cross-red: transparent;
}

/* ─── Dark mode ───────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --primary:        #F02035;
  --primary-dark:   #C8102E;
  --primary-light:  #2D0A10;
  --primary-mid:    #F03050;
  --oxford:         #1A3A6B;

  --success:        #22C55E;
  --success-light:  #052E16;
  --error:          #F87171;
  --error-light:    #2D0A10;
  --warning:        #FBBF24;
  --warning-light:  #1C1208;

  --text:           #F1F5F9;
  --text-muted:     #94A3B8;
  --text-faint:     #475569;
  --border:         #1E293B;
  --border-strong:  #334155;
  --bg:             #0F172A;
  --bg-secondary:   #1E293B;
  --bg-tertiary:    #273548;
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overscroll-behavior: none;
  transition: background .25s, color .25s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Cross-rule — kept as neutral element (no visual decoration) ──────────── */
.cross-rule {
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  margin: 12px 0;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

#app { display: flex; flex-direction: column; }

.screen {
  display: none;
  flex: 1;
  padding-bottom: var(--nav-height);
  animation: fadeIn .2s ease;
}
.screen.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--oxford);
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0,0,38,.3);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  flex: 1;
  letter-spacing: -.02em;
  color: #fff;
}
.header-logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}
.header-brand-img {
  height: 52px;
  width: auto;
  flex: 1;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
}
.page-header .btn-secondary {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.page-header .btn-secondary:hover {
  background: rgba(255,255,255,.25);
}
.page-header .exam-tag {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}

.content { padding: 16px; max-width: 640px; margin: 0 auto; }

/* ─── Auth screen ─────────────────────────────────────────────────────────── */

#auth-screen {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  min-height: 100dvh;
  background: linear-gradient(135deg, #002147 0%, #0F172A 60%, #1A0A14 100%);
}
#auth-screen.active { display: flex; }

.auth-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,.40), 0 8px 24px rgba(0,0,0,.24);
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .auth-card {
  background: #1E293B;
  box-shadow: 0 24px 64px rgba(0,0,0,.60), 0 8px 24px rgba(0,0,0,.40);
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-img {
  display: block;
  margin: 0 auto 14px;
  max-width: 340px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.15));
}
.auth-logo p { color: var(--text-muted); font-size: .875rem; margin-top: 4px; }
[data-theme="dark"] .auth-logo p { color: #94A3B8; }

.auth-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--r-sm);
  padding: 3px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  gap: 3px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .18s;
  border: none;
  background: none;
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200,16,46,.30);
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: "Inter", system-ui, sans-serif;
}

input[type="email"],
input[type="password"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  min-height: 48px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,16,46,.10);
}

.error-msg { color: var(--error); font-size: .8rem; margin-top: 6px; font-weight: 600; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: none;
  font-size: .875rem;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
  min-height: 48px;
  position: relative;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #C8102E 0%, #A00020 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200,16,46,.30);
}
.btn-primary:hover { background: linear-gradient(135deg, #A00020 0%, #800018 100%); box-shadow: 0 6px 20px rgba(200,16,46,.40); }
.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-success { background: linear-gradient(135deg, #16A34A 0%, #15803D 100%); color: #fff; }
.btn-danger {
  background: linear-gradient(135deg, #C8102E 0%, #A00020 100%);
  color: #fff;
  border: none;
}
.btn-danger:hover { background: linear-gradient(135deg, #A00020 0%, #800018 100%); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .40; cursor: not-allowed; box-shadow: none; transform: none !important; }

/* ─── Bottom Nav ──────────────────────────────────────────────────────────── */

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-nav);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

[data-theme="dark"] #bottom-nav {
  background: rgba(15,23,42,.88);
}

#bottom-nav.visible { display: flex; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-faint);
  font-size: .62rem;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color .2s, background .2s;
  border: none;
  background: none;
  flex: 1;
}
.nav-item svg { width: 22px; height: 22px; transition: stroke .2s; }
.nav-item.active {
  color: var(--primary);
  background: rgba(200,16,46,.08);
  border-radius: var(--r-sm);
}
.nav-item.active svg { stroke: var(--primary); }

/* ─── Home ────────────────────────────────────────────────────────────────── */

/* Hero — photo background + strong gradient overlay */
.home-hero {
  background: var(--primary);
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: var(--r-xl);
  padding: 28px 22px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,33,71,.3);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,33,71,.85) 0%, rgba(200,16,46,.75) 100%);
  pointer-events: none;
}
.home-hero h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
  position: relative;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.home-hero p { opacity: .90; font-size: .9rem; margin-bottom: 18px; position: relative; }
.home-hero .btn {
  background: rgba(255,255,255,.95);
  color: var(--primary);
  font-weight: 800;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.home-hero .btn:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.24); }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  border-radius: var(--r-md);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
/* Streak card — orange gradient */
.stat-card:nth-child(1) { background: linear-gradient(135deg, #FF6B35 0%, #E05020 100%); color: #fff; border-color: transparent; }
.stat-card:nth-child(1) .stat-icon,
.stat-card:nth-child(1) .stat-value,
.stat-card:nth-child(1) .stat-label { color: #fff !important; }
/* XP card — Oxford Blue gradient */
.stat-card:nth-child(2) { background: linear-gradient(135deg, #002147 0%, #003580 100%); color: #fff; border-color: transparent; }
.stat-card:nth-child(2) .stat-icon,
.stat-card:nth-child(2) .stat-value,
.stat-card:nth-child(2) .stat-label { color: #fff !important; }
/* Level card — British Red gradient */
.stat-card:nth-child(3) { background: linear-gradient(135deg, #C8102E 0%, #9B0B22 100%); color: #fff; border-color: transparent; }
.stat-card:nth-child(3) .stat-icon,
.stat-card:nth-child(3) .stat-value,
.stat-card:nth-child(3) .stat-label { color: #fff !important; }
.stat-card .stat-icon { font-size: 1.2rem; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; }
.stat-card .stat-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-card .stat-label { font-size: .62rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

.section-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--oxford);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
[data-theme="dark"] .section-title { color: var(--text); }

.lives-row { display: flex; gap: 5px; align-items: center; margin-bottom: 20px; }
.heart { font-size: 1.3rem; transition: transform .2s; }
.heart.empty { opacity: .2; filter: grayscale(1); }

/* ─── Exercise ────────────────────────────────────────────────────────────── */

.exercise-progress {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--r-full);
  margin-bottom: 24px;
  overflow: hidden;
}
.exercise-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  border-radius: var(--r-full);
  transition: width .35s ease;
}

.exercise-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.exercise-type-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.exercise-type-label::before,
.exercise-type-label::after {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--primary);
  opacity: .35;
  border-radius: 1px;
}
.exercise-sentence {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -.01em;
}
.exercise-hint { font-size: .82rem; color: var(--text-muted); margin-top: 8px; font-style: italic; }

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.option-btn {
  padding: 15px 12px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: all .18s;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  min-height: 52px;
  box-shadow: var(--shadow);
}
.option-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.option-btn.correct { border-color: var(--success); background: var(--success-light); color: var(--success); }
.option-btn.wrong { border-color: var(--error); background: var(--error-light); color: var(--error); }
.option-btn:disabled { cursor: not-allowed; transform: none; }

/* Translate */
.translate-input-wrap { display: flex; gap: 8px; margin-top: 16px; }
.translate-input-wrap input { flex: 1; }

/* Match */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.match-btn {
  padding: 13px 10px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: all .18s;
  min-height: 48px;
}
.match-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.match-btn.matched { border-color: var(--success); background: var(--success-light); color: var(--success); opacity: .7; cursor: default; }
.match-btn.wrong-flash { border-color: var(--error); background: var(--error-light); }

/* Reorder */
.reorder-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
  padding: 12px;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  align-content: flex-start;
}
.word-chip {
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  border: none;
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: 0 2px 6px rgba(200,16,46,.25);
}
.word-chip.available {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.word-chip:hover { opacity: .88; transform: scale(1.04); }

/* Feedback bar */
.feedback-bar {
  position: fixed;
  bottom: calc(var(--nav-height) + 12px);
  left: 16px;
  right: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 8px 28px rgba(22,163,74,.35);
  animation: slideUp .22s ease;
}
.feedback-bar.error {
  background: linear-gradient(135deg, #C8102E 0%, #A00020 100%);
  box-shadow: 0 8px 28px rgba(200,16,46,.35);
}
.feedback-bar.visible { display: flex; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.feedback-text { font-weight: 800; font-size: .95rem; }
.feedback-detail { font-size: .8rem; opacity: .88; margin-top: 2px; }

/* ─── Vocabulary ─────────────────────────────────────────────────────────── */

.vocab-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.vocab-filters::-webkit-scrollbar { display: none; }

/* ── Accordion ── */
.accordion-section { margin-bottom: 8px; }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: var(--card-bg);
  border: none;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.accordion-header.acc-open { border-radius: 12px 12px 0 0; }
.accordion-header .acc-arrow { font-size: .72rem; color: var(--text-muted); transition: transform .2s; }
.accordion-header.acc-open .acc-arrow { transform: rotate(180deg); }
.accordion-body {
  background: var(--card-bg);
  border-radius: 0 0 12px 12px;
  padding: 16px;
  display: none;
}
.accordion-body.acc-open { display: block; }

/* ── Detail hero ── */
.detail-hero { border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.detail-hero-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.detail-hero-band { padding: 14px 16px; color: #fff; }
.detail-hero-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.detail-hero-sub { font-size: .82rem; opacity: .88; margin: 0; }

/* ── Body text ── */
.detail-body { font-size: 1rem; line-height: 1.85; color: var(--text); }
.detail-body p { margin: 0 0 .85em; }
.detail-body p:last-child { margin-bottom: 0; }

/* ── Timeline ── */
.timeline-list { display: flex; flex-direction: column; }
.timeline-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.timeline-row:last-child { border-bottom: none; }
.timeline-yr { font-size: .75rem; font-weight: 800; min-width: 52px; padding-top: 2px; flex-shrink: 0; }
.timeline-ev { font-size: .9rem; line-height: 1.5; color: var(--text); }

/* ── Figure card ── */
.figure-card {
  display: flex; gap: 14px; padding: 12px;
  background: var(--bg); border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 8px;
}
.figure-photo { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.figure-info { flex: 1; min-width: 0; }
.figure-name { font-size: .92rem; font-weight: 700; margin-bottom: 1px; }
.figure-dates { font-size: .72rem; color: var(--text-muted); margin-bottom: 3px; }
.figure-role { font-size: .75rem; font-weight: 600; margin-bottom: 5px; }
.figure-note { font-size: .82rem; line-height: 1.5; color: var(--text-muted); }

/* ── Place card (attractions) ── */
.place-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); margin-bottom: 12px; }
.place-photo { width: 100%; height: 170px; object-fit: cover; display: block; }
.place-body { padding: 12px 14px; }
.place-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 3px; }
.place-name { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.place-icon { font-size: 1.2rem; flex-shrink: 0; }
.place-cat { font-size: .72rem; color: var(--text-muted); margin-bottom: 8px; }
.place-desc { font-size: .88rem; line-height: 1.6; color: var(--text); }
.place-desc p { margin: 0 0 .5em; }
.place-desc p:last-child { margin: 0; }
.place-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.place-chip { font-size: .7rem; padding: 3px 9px; border-radius: 20px; background: var(--card-bg); color: var(--text-muted); border: 1px solid var(--border); }
.place-tip { font-size: .8rem; color: var(--text-muted); margin-top: 9px; font-style: italic; background: var(--card-bg); padding: 7px 10px; border-radius: 8px; border-left: 3px solid var(--border); }

/* ── Stadium card ── */
.stadium-card { display: flex; gap: 12px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; align-items: flex-start; }
.stadium-photo { width: 84px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.stadium-info { flex: 1; min-width: 0; }
.stadium-name { font-size: .92rem; font-weight: 700; margin-bottom: 2px; }
.stadium-club { font-size: .75rem; font-weight: 600; margin-bottom: 2px; }
.stadium-cap { font-size: .72rem; color: var(--text-muted); margin-bottom: 4px; }
.stadium-desc { font-size: .8rem; line-height: 1.45; color: var(--text-muted); }

/* ── Park card ── */
.park-card { display: flex; gap: 12px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; align-items: flex-start; }
.park-photo { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.park-info { flex: 1; min-width: 0; }
.park-name { font-size: .92rem; font-weight: 700; margin-bottom: 3px; }
.park-area { font-size: .72rem; color: var(--text-muted); margin-bottom: 4px; }
.park-desc { font-size: .82rem; line-height: 1.5; color: var(--text-muted); }

/* ── Neighbourhood card ── */
.neigh-card { padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; }
.neigh-name { font-size: .92rem; font-weight: 700; margin-bottom: 4px; }
.neigh-desc { font-size: .84rem; line-height: 1.55; color: var(--text-muted); }

/* ── Excerpt ── */
.excerpt-block { border-left: 4px solid; border-radius: 0 10px 10px 0; padding: 14px 16px; font-style: italic; font-size: .92rem; line-height: 1.8; color: var(--text); }
.glossary-row { display: flex; gap: 10px; font-size: .82rem; padding: 5px 0; border-bottom: 1px solid var(--border); }
.glossary-row:last-child { border-bottom: none; }
.glossary-word { font-weight: 700; min-width: 88px; flex-shrink: 0; }

.section-nav-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0 10px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--border);
}
.section-nav-bar::-webkit-scrollbar { display: none; }
.section-nav-btn {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: var(--r-full);
  font-size: .73rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.section-nav-btn.snav-active {
  color: #fff;
  border-color: transparent;
}

.filter-chip {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.filter-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200,16,46,.25);
}

.vocab-list { display: flex; flex-direction: column; gap: 8px; }
.vocab-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.vocab-item:hover { border-left-color: var(--primary-dark); box-shadow: var(--shadow-md); }
.vocab-item .word-en { font-weight: 800; font-size: 1rem; color: var(--text); }
.vocab-item .word-it { color: var(--text-muted); font-size: .85rem; margin-top: 1px; }
.vocab-item .word-example { font-size: .78rem; color: var(--text-faint); margin-top: 5px; font-style: italic; }
.vocab-level-tag {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

/* ─── Progress ───────────────────────────────────────────────────────────── */

.progress-section { margin-bottom: 22px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 700;
}
.progress-bar { height: 9px; background: var(--bg-tertiary); border-radius: var(--r-full); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-mid)); border-radius: var(--r-full); transition: width .5s ease; }

.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.achievement-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.achievement-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.achievement-card .ach-icon { font-size: 1.8rem; }
.achievement-card .ach-name { font-size: .7rem; font-weight: 700; margin-top: 6px; color: var(--text); }
.achievement-card.locked { opacity: .35; filter: grayscale(1); }

/* ─── Pro Banner ──────────────────────────────────────────────────────────── */

.pro-banner {
  background: linear-gradient(135deg, #C8102E 0%, #002147 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 22px 22px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(200,16,46,.28);
}
.pro-banner::before { display: none; }
.pro-banner h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.pro-banner p { font-size: .84rem; opacity: .88; margin-bottom: 16px; }
.pro-banner .btn {
  background: rgba(255,255,255,.96);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.pro-banner .btn:hover { background: #fff; }

/* ─── Exam ────────────────────────────────────────────────────────────────── */

.exam-results { text-align: center; padding: 32px 16px; }
.exam-score {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.04em;
}
.exam-grade { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.exam-pass { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; }
.exam-bar-wrap { max-width: 300px; margin: 0 auto 24px; }

/* ─── Settings ───────────────────────────────────────────────────────────── */

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: .9rem; font-weight: 700; }
.settings-desc { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* Toggle — red when on */
.toggle {
  width: 46px;
  height: 26px;
  background: var(--bg-tertiary);
  border-radius: var(--r-full);
  position: relative;
  cursor: pointer;
  transition: background .2s;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.toggle.on { background: var(--primary); border-color: var(--primary); }
.toggle.on::after { transform: translateX(20px); }

/* ─── Modal ───────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.60);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 300;
  backdrop-filter: blur(4px);
}
.modal-overlay.visible { display: flex; }
.modal-sheet {
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  max-width: 500px;
  padding: 28px 24px;
  animation: slideUp .25s ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,.16);
}
.modal-handle { width: 36px; height: 4px; background: var(--border-strong); border-radius: var(--r-full); margin: 0 auto 22px; }
.modal-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -.02em;
}

/* ─── PWA install banner ──────────────────────────────────────────────────── */

#install-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--oxford) 100%);
  color: #fff;
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
}
#install-banner.visible { display: flex; }
#install-banner strong { flex: 1; }

/* ─── Utility ─────────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.justify-between { justify-content: space-between; }

/* ─── Animations ──────────────────────────────────────────────────────────── */

@keyframes bounceIn { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }
.animate-bounce { animation: bounceIn .4s ease; }
.animate-shake  { animation: shake .35s ease; }

/* ─── Loading ─────────────────────────────────────────────────────────────── */

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 36px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Exam picker ────────────────────────────────────────────────────────── */

.exam-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  text-align: left;
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  box-shadow: var(--shadow);
}
.exam-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.exam-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.exam-card-body { flex: 1; min-width: 0; }
.exam-card-name { font-weight: 800; font-size: .95rem; }
.exam-card-abbr { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 2px; }
.exam-card-desc { font-size: .78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.exam-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.exam-tag {
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}
.exam-tag.level { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }

.exam-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--oxford) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-red);
}
.exam-detail-header h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.exam-detail-header .pass-note { font-size: .8rem; opacity: .88; margin-top: 4px; }

.papers-list { margin-bottom: 20px; }
.paper-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.paper-row:last-child { border-bottom: none; }
.paper-row .paper-name { font-weight: 700; flex: 1; }
.paper-row .paper-meta { color: var(--text-muted); font-size: .78rem; }

.paper-module-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.paper-row { flex-wrap: wrap; }
.paper-row > div:first-child { flex: 1 1 100%; }
.exam-module-btn {
  font-size: .75rem !important;
  padding: 6px 12px !important;
  border-radius: var(--r-sm) !important;
  flex-shrink: 0;
}

/* ─── Cambridge Official Paper renderer ──────────────────────────────────── */

.paper-intro { text-align: center; padding: 32px 16px; }
.paper-intro-icon { font-size: 3rem; margin-bottom: 12px; }
.paper-intro-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 4px; }
.paper-intro h2 { font-size: 1.6rem; margin: 4px 0 8px; color: var(--oxford); }
.paper-intro-meta { font-size: .85rem; color: var(--text-muted); }
.paper-intro-note { font-size: .8rem; color: var(--text-muted); margin: 12px 0 0; padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-sm); line-height: 1.5; }

.paper-progress { margin-bottom: 16px; }
.paper-progress-text { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.paper-progress-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.paper-progress-fill { height: 100%; background: var(--oxford); transition: width .3s ease; }

.part-instruction {
  background: linear-gradient(135deg, var(--oxford) 0%, #0a3060 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.paper-example { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; padding: 8px 12px; background: var(--surface-2); border-left: 3px solid var(--gold); border-radius: var(--r-xs); }
.paper-context { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; font-style: italic; }

.paper-question { padding: 12px 0; border-bottom: 1px dashed var(--border); margin-bottom: 8px; }
.paper-question:last-child { border-bottom: none; }
.paper-q-num { display: inline-block; font-weight: 800; color: var(--oxford); margin-right: 8px; }
.paper-q-stem { font-size: .95rem; line-height: 1.5; margin-bottom: 8px; display: inline-block; }
.paper-q-feedback { font-size: .8rem; margin-top: 4px; }

.paper-input, .paper-select {
  font-size: .9rem;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  margin: 4px 4px 4px 0;
  min-width: 120px;
}
.paper-input:focus, .paper-select:focus { outline: none; border-color: var(--oxford); }
.paper-textarea {
  width: 100%; font-size: .9rem; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text); min-height: 80px; font-family: inherit; resize: vertical;
}
.paper-textarea:focus { outline: none; border-color: var(--oxford); }

.paper-input.gap-input { display: inline-block; width: 100px; min-width: 100px; padding: 4px 8px; margin: 0 4px; font-weight: 600; }
.inline-gap select { display: inline-block; padding: 2px 4px; margin: 0 4px; font-size: .85rem; min-width: 90px; }

.paper-passage { font-size: .95rem; line-height: 1.9; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: 12px; }

.paper-options { margin-top: 8px; }
.options-grid.paper-options .option-btn { font-size: .85rem; padding: 10px 14px; text-align: left; }
.option-btn.selected { background: var(--oxford); color: #fff; border-color: var(--oxford); }

.word-bank { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: 12px; }
.word-chip { background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--oxford); }

.paper-story-title { font-size: 1.1rem; margin-bottom: 8px; color: var(--oxford); text-align: center; }

.paper-scene { display: flex; justify-content: center; margin: 12px 0; }
.paper-strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; margin-bottom: 12px; }
.paper-strip-item { position: relative; flex-shrink: 0; }
.paper-strip-num { position: absolute; top: 4px; left: 4px; background: var(--oxford); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .75rem; }

.paper-img { border-radius: var(--r-sm); border: 1px solid var(--border); object-fit: cover; display: block; }
.paper-img-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  overflow: hidden;
}
.paper-img-icon { font-size: 1.3rem; opacity: .5; }
.paper-img-prompt { font-size: .62rem; color: var(--text-muted); line-height: 1.2; max-height: 40px; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.vocab-bank { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; padding: 10px; background: var(--surface-2); border-radius: var(--r-md); }
.vocab-bank-item { text-align: center; }
.vocab-bank-word { font-size: .78rem; font-weight: 700; margin-top: 4px; color: var(--oxford); }

.dialogue-line { font-size: .92rem; line-height: 1.5; margin: 4px 0; }
.dialogue-respondent { font-weight: 600; color: var(--oxford); }

.match-people-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.match-people-row:last-child { border-bottom: none; }
.match-person-desc { flex: 1; font-size: .85rem; }

.picture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.picture-grid-item { position: relative; text-align: center; }
.pic-letter { position: absolute; top: 4px; left: 4px; background: var(--gold); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; z-index: 2; }
.pic-label { font-size: .78rem; font-weight: 700; text-align: center; margin-bottom: 4px; color: var(--oxford); }

.picture-options-row { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.picture-option {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.picture-option:hover { border-color: var(--oxford); }
.picture-option.selected { border-color: var(--oxford); background: rgba(0, 33, 71, .08); }

.form-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.form-label { flex: 1; font-size: .9rem; font-weight: 600; color: var(--oxford); }
.form-value { font-size: .9rem; color: var(--text-muted); }
.form-example { font-style: italic; }

.paper-form { background: var(--surface-2); padding: 14px 18px; border-radius: var(--r-md); margin: 12px 0; border-left: 4px solid var(--gold); }
.paper-form-title { font-weight: 800; color: var(--oxford); margin-bottom: 8px; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }

.speak-pictures-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.odd-set { padding: 12px 0; border-bottom: 2px solid var(--border); margin-bottom: 12px; }
.odd-set:last-child { border-bottom: none; }
.odd-set-header { margin-bottom: 8px; color: var(--oxford); }

.listen-btn { font-size: .82rem !important; padding: 8px 14px !important; margin-bottom: 12px; background: var(--oxford) !important; color: #fff !important; border: none !important; }
.listen-btn:disabled { opacity: .7; cursor: wait; }

.part-actions { margin-top: 20px; }

.part-feedback { margin-top: 24px; padding: 16px; background: var(--surface-2); border-radius: var(--r-md); border-top: 3px solid var(--oxford); }
.part-feedback-score { font-size: 1.4rem; font-weight: 800; color: var(--oxford); margin-bottom: 12px; }
.part-feedback-list { font-size: .82rem; }
.feedback-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.feedback-row.ok { color: var(--success); }
.feedback-row.ko { color: var(--text); }
.feedback-row .feedback-num { font-weight: 800; min-width: 24px; }
.feedback-row .feedback-given { flex: 1; }
.feedback-row .feedback-correct { color: var(--error); }

.paper-results-list { margin-bottom: 16px; }
.paper-result-row { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: 6px; font-size: .92rem; }

@media (max-width: 640px) {
  .vocab-bank { grid-template-columns: repeat(2, 1fr); }
  .picture-grid { grid-template-columns: repeat(2, 1fr); }
  .speak-pictures-pair { grid-template-columns: 1fr; }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .options-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row    { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Skills / Module Cards ───────────────────────────────────────────────── */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
/* ── Module intro text ── */
.module-intro { font-size: .9rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 18px; }

/* ── 2-column card grid ── */
.list-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }

/* ── Item card (authors / cities) ── */
.item-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow);
  font-family: "Inter", system-ui, sans-serif;
}
.item-card:active { transform: scale(.95); }
.item-card-header {
  position: relative;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.item-card-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.item-card-icon {
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.item-card-body { padding: 10px 11px 13px; }
.item-card-name { font-size: .88rem; font-weight: 800; line-height: 1.25; margin-bottom: 2px; color: var(--text); }
.item-card-sub { font-size: .68rem; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; }
.item-card-desc { font-size: .74rem; line-height: 1.5; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Era / period section header ── */
.era-header { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; }
.era-label {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted); white-space: nowrap;
  padding: 3px 10px; background: var(--card-bg); border-radius: 20px;
  border: 1px solid var(--border);
}
.era-line { flex: 1; height: 1px; background: var(--border); }

/* ── Period card (history — full width) ── */
.period-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px 16px;
  border: none;
  border-left: 5px solid;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow);
  font-family: "Inter", system-ui, sans-serif;
  margin-bottom: 10px;
}
.period-card:active { transform: scale(.98); }
.period-card-icon { font-size: 2rem; margin-top: 1px; flex-shrink: 0; line-height: 1; }
.period-card-body { flex: 1; min-width: 0; }
.period-card-title { font-size: 1rem; font-weight: 800; margin-bottom: 2px; line-height: 1.2; color: var(--text); }
.period-card-date { font-size: .75rem; font-weight: 700; margin-bottom: 5px; }
.period-card-summary { font-size: .83rem; line-height: 1.5; color: var(--text-muted); }
.period-card-arrow { color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; align-self: center; }

.module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, transform .18s, box-shadow .18s, background .15s;
  font-family: "Inter", system-ui, sans-serif;
  width: 100%;
  box-shadow: var(--shadow);
}
.module-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  border-left-color: var(--primary);
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}
.module-card:active { transform: scale(0.97); }
.module-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.module-icon svg { width: 28px; height: 28px; }
.module-name {
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text);
}

/* ─── Flag England SVG ────────────────────────────────────────────────────── */

.flag-england { width: 28px; height: 20px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); flex-shrink: 0; }

/* ─── Module icon boxes (colored squares) ──────────────────────────────────── */

.mod-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
}
.mod-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.mod-icon.navy { background: var(--oxford); }
.mod-icon.green { background: #16A34A; }
.mod-icon.amber { background: #D97706; }
.mod-icon.purple { background: #7C3AED; }
.mod-icon.teal { background: #0D9488; }
.mod-icon.rose { background: #E11D48; }

/* ─── Level pills (home screen) ──────────────────────────────────────────── */

.level-pills-row {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 20px;
}
.level-pill {
  flex: 1;
  padding: 10px 4px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  letter-spacing: .03em;
  font-family: "Inter", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}
.level-pill .pill-lock {
  font-size: .6rem;
  opacity: .7;
}
.level-pill.active {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
  transform: translateY(-2px);
}
.level-pill[data-level="A1"].active { background: linear-gradient(135deg, #16A34A, #15803D); }
.level-pill[data-level="A2"].active { background: linear-gradient(135deg, #0D9488, #0F766E); }
.level-pill[data-level="B1"].active { background: linear-gradient(135deg, #1565C0, #1E40AF); }
.level-pill[data-level="B2"].active { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.level-pill[data-level="C1"].active { background: linear-gradient(135deg, #D97706, #B45309); }
.level-pill[data-level="C2"].active { background: linear-gradient(135deg, #C62828, #991B1B); }

/* ─── Compact 2-col module grid (Lingua, Immersione) ─────────────────────── */

.compact-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.compact-module-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  font-family: "Inter", system-ui, sans-serif;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow);
}
.compact-module-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.compact-module-card:active { transform: scale(0.97); }
.compact-mod-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.compact-mod-icon svg { width: 17px; height: 17px; stroke: #fff; fill: none; }
.compact-mod-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.25;
}
.compact-mod-sub {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1px;
  line-height: 1.2;
}

/* ─── Reading module ──────────────────────────────────────────────────────── */

.module-passage {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.module-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.reading-text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
  letter-spacing: .01em;
}

/* ─── Listening module ────────────────────────────────────────────────────── */

.listening-card {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: 30px 22px;
  text-align: center;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.listening-icon { font-size: 3rem; margin-bottom: 12px; }
.listening-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.listening-level {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 20px;
}
.listening-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.listening-note { font-size: .76rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Writing module ──────────────────────────────────────────────────────── */

.writing-task-card {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.writing-prompt {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  margin: 12px 0;
}
.writing-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--text-muted);
}
#writing-textarea, #speaking-fallback-textarea {
  width: 100%;
  padding: 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .9rem;
  line-height: 1.6;
  background: var(--bg-secondary);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  resize: vertical;
  display: block;
  box-shadow: var(--shadow);
}
#writing-textarea { min-height: 160px; }
#speaking-fallback-textarea { min-height: 120px; }
#writing-textarea:focus, #speaking-fallback-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,16,46,.10);
}
.writing-wordcount {
  text-align: right;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.writing-feedback-section { margin-top: 20px; }
.writing-feedback-item {
  font-size: .84rem;
  color: var(--text);
  background: var(--bg-secondary);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.example-answer {
  font-size: .82rem;
  line-height: 1.75;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  font-style: italic;
}

/* ─── Speaking module ─────────────────────────────────────────────────────── */

.speaking-card {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.speaking-prompt {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  margin: 12px 0;
  font-style: italic;
}
.speaking-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.speaking-vocab, .speaking-tips { margin-top: 12px; }
.speaking-vocab-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.speaking-tip { font-size: .8rem; color: var(--text-muted); line-height: 1.5; padding: 2px 0; }
.speaking-timer-wrap { text-align: center; margin: 16px 0; }
.speaking-timer {
  display: inline-block;
  font-size: 2.8rem;
  font-weight: 900;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--primary);
  min-width: 90px;
  letter-spacing: -.03em;
}
.speaking-fallback-note {
  font-size: .84rem;
  color: var(--text-muted);
  text-align: center;
  margin: 16px 0 10px;
  line-height: 1.5;
}

/* ─── London Landmarks Strip ─────────────────────────────────────────────── */

.landmarks-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.landmarks-strip::-webkit-scrollbar { display: none; }
.landmark-card {
  flex-shrink: 0;
  width: 132px;
  height: 90px;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
  cursor: default;
  box-shadow: var(--shadow);
}
.landmark-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 8px 7px;
}
.landmark-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 2rem;
  opacity: .7;
}

/* ─── Vocabulary search & pronunciation ──────────────────────────────────── */

.vocab-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.vocab-search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .9rem;
  background: var(--bg-secondary);
  color: var(--text);
  box-shadow: var(--shadow);
}
.vocab-search-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,.10); }
.vocab-search-wrap .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  pointer-events: none;
}
.vocab-mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.vocab-mode-btn {
  flex: 1;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .76rem;
  font-weight: 800;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: all .15s;
  min-height: 40px;
}
.vocab-mode-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: #fff;
}

.vocab-item-actions { display: flex; align-items: center; gap: 8px; }
.tts-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .15s;
}
.tts-btn:hover { transform: scale(1.2); }

.vocab-reveal {
  font-size: .78rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: var(--bg-tertiary);
  border-radius: var(--r-xs);
  padding: 3px 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
}
.vocab-hidden { filter: blur(5px); user-select: none; cursor: pointer; transition: filter .2s; }
.vocab-hidden.revealed { filter: none; }
.vocab-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; }
.vocab-page-btn { background: var(--primary); color: #fff; border: none; border-radius: 8px; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vocab-page-btn:disabled { background: var(--border); color: var(--text-muted); cursor: default; }
.vocab-page-info { font-size: .82rem; color: var(--text-muted); min-width: 110px; text-align: center; }

/* ─── Grammar screen ─────────────────────────────────────────────────────── */

.grammar-topic-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  text-align: left;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.grammar-topic-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.grammar-topic-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.grammar-topic-body { flex: 1; min-width: 0; }
.grammar-topic-title { font-weight: 800; font-size: .95rem; color: var(--text); }
.grammar-topic-summary { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.grammar-topic-level {
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  flex-shrink: 0;
}

/* Theory view */
.grammar-theory-header {
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-red);
}
.grammar-theory-header h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.grammar-theory-header p { font-size: .84rem; opacity: .9; }

.theory-section { margin-bottom: 18px; }
.theory-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.theory-structure {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  white-space: pre-wrap;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: -.01em;
  box-shadow: var(--shadow);
}
.theory-examples { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.theory-examples li {
  font-size: .93rem;
  padding: 13px 16px;
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  border-left: 3px solid var(--primary);
  color: var(--text);
  line-height: 1.65;
  box-shadow: var(--shadow);
}
.theory-examples li em { color: var(--primary); font-style: normal; font-weight: 600; }
.theory-rules { display: flex; flex-direction: column; gap: 0; }
.theory-rule {
  font-size: .92rem;
  color: var(--text);
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.theory-rule:last-child { border-bottom: none; }
.theory-rule::before { content: "→ "; color: var(--primary); font-weight: 700; }
.theory-tip {
  background: linear-gradient(135deg, rgba(146,96,10,.06), rgba(146,96,10,.02));
  border: 1px solid rgba(146,96,10,.25);
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 18px;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text);
}

/* Grammar exercise tip box */
.grammar-tip-box {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: .82rem;
  color: var(--primary-dark);
  margin-top: 12px;
  line-height: 1.5;
}
[data-theme="dark"] .grammar-tip-box { color: var(--primary); }

/* ─── Library / Famous Books ─────────────────────────────────────────────── */

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.book-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Inter", system-ui, sans-serif;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.book-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.book-cover {
  width: 110px;
  height: 154px;
  border-radius: 3px 8px 8px 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 10px;
  color: #fff;
  text-align: center;
  box-shadow: 3px 4px 12px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  flex-shrink: 0;
  font-family: "Inter", system-ui, sans-serif;
}
.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: rgba(0,0,0,.35);
  border-radius: 3px 0 0 3px;
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px;
  pointer-events: none;
}
.book-cover-icon { font-size: 1.6rem; margin-bottom: 6px; opacity: .85; }
.book-cover-title {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
  position: relative;
}
.book-cover-author {
  font-size: .62rem;
  font-weight: 500;
  font-style: italic;
  opacity: .9;
  letter-spacing: .03em;
  position: relative;
}

.book-card-info { text-align: center; }
.book-card-title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: .82rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.book-card-author {
  font-size: .68rem;
  color: var(--text-muted);
  font-style: italic;
}
.book-card-meta {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

/* Book detail */
.book-detail-header {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.book-detail-cover {
  width: 110px;
  height: 154px;
  flex-shrink: 0;
}
.book-detail-info { flex: 1; min-width: 0; }
.book-detail-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.02em;
}
.book-detail-author {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}
.book-detail-year {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--r-xs);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.book-quote {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  padding: 16px 18px;
  margin: 16px 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .95rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  position: relative;
  box-shadow: var(--shadow);
}
.book-quote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 6px;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: .25;
  line-height: 1;
  font-family: Georgia, serif;
}

.book-excerpt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .96rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-secondary);
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  white-space: pre-wrap;
  box-shadow: var(--shadow);
}

.book-excerpt p { margin-bottom: 12px; }
.book-excerpt p:last-child { margin-bottom: 0; }

.glossary-list {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.glossary-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
  line-height: 1.5;
}
.glossary-item:last-child { border-bottom: none; }
.glossary-word {
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 110px;
}
.glossary-def { color: var(--text-muted); }

.audio-control-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.audio-control-bar .btn {
  padding: 6px 14px;
  font-size: .78rem;
}
.audio-status {
  flex: 1;
  font-size: .78rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Mascotte (Corgi) ────────────────────────────────────────────────────── */

.mascotte-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.mascotte-avatar {
  font-size: 2.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}
.mascotte-bubble { flex: 1; }
.mascotte-name {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 3px;
}
.mascotte-msg {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.45;
}

/* ─── Idiom of the Day ────────────────────────────────────────────────────── */

.idiom-card {
  background: linear-gradient(135deg, var(--primary-light), var(--bg-secondary));
  border: 1.5px solid rgba(200,16,46,.25);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.idiom-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 6px;
}
.idiom-phrase {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.idiom-meaning {
  font-size: .82rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}
.idiom-example {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── League Badge (Home) ─────────────────────────────────────────────────── */

.league-badge-home {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.league-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.league-icon { font-size: 1.8rem; flex-shrink: 0; }
.league-info { flex: 1; }
.league-name { font-weight: 800; font-size: .9rem; }
.league-xp { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }
.league-progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: 8px;
}
.league-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width .4s ease;
}

/* ─── Streak Freeze ───────────────────────────────────────────────────────── */

.streak-freeze-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: .82rem;
  box-shadow: var(--shadow);
}
.freeze-icon { font-size: 1.2rem; }
.freeze-label { font-weight: 700; color: var(--text); }
.freeze-count { color: var(--primary); font-weight: 800; }
.freeze-used { animation: freeze-pulse .4s ease; }
@keyframes freeze-pulse {
  0%   { background: var(--bg-secondary); }
  50%  { background: #E0F4FF; }
  100% { background: var(--bg-secondary); }
}

/* ─── League Card (Progress screen) ──────────────────────────────────────── */

.league-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.league-card::before {
  content: "";
  position: absolute;
  top: -10px; right: -10px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  opacity: .5;
}
.league-card-icon { font-size: 2rem; flex-shrink: 0; }
.league-card-body { flex: 1; }
.league-card-name { font-weight: 800; font-size: 1rem; margin-bottom: 2px; }
.league-card-sub { font-size: .78rem; color: var(--text-muted); }
.league-badge-big { font-size: 2.5rem; opacity: .12; position: absolute; right: 14px; bottom: -4px; }

.league-tiers {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.league-tier {
  flex: 1;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 4px;
  opacity: .45;
  transition: opacity .2s;
  font-size: .8rem;
  box-shadow: var(--shadow);
}
.league-tier.achieved { opacity: 1; border-color: var(--border-strong); }

/* ─── False Friends Module ────────────────────────────────────────────────── */

.ff-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.ff-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ff-italian {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  flex: 1;
  letter-spacing: -.01em;
}
.ff-trap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--error-light);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
}
.ff-english-trap {
  font-size: .85rem;
  font-weight: 700;
  color: var(--error);
}
.ff-english-meaning {
  font-size: .78rem;
  color: var(--text-muted);
}
.ff-correct {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--success-light);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
}
.ff-correct-label { font-size: .78rem; color: var(--success); font-weight: 700; }
.ff-correct-word { font-size: .88rem; font-weight: 800; color: var(--success); }
.ff-tip {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}
.ff-example {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ff-ex-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .8rem;
  color: var(--text);
}
.ff-ex-flag { flex-shrink: 0; }

/* FF Quiz */
.ff-quiz-italian {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0;
  letter-spacing: -.03em;
}
.ff-result-card {
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.ff-result-card.correct-bg { background: var(--success-light); border: 1px solid var(--success); }
.ff-result-card.wrong-bg   { background: var(--error-light);   border: 1px solid var(--error); }

/* ─── Connected Speech Module ─────────────────────────────────────────────── */

.cs-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.cs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cs-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  flex: 1;
}
.cs-phonetic {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-tertiary);
  padding: 3px 8px;
  border-radius: var(--r-xs);
}
.cs-play-btn { font-size: .9rem; padding: 4px 8px !important; }
.cs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cs-col { flex: 1; }
.cs-col-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.cs-formal {
  font-size: .88rem;
  color: var(--text);
  background: var(--bg-tertiary);
  padding: 6px 8px;
  border-radius: var(--r-sm);
}
.cs-informal {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 8px;
  border-radius: var(--r-sm);
}
.cs-arrow { color: var(--text-muted); font-size: 1.2rem; font-weight: 700; }
.cs-example {
  background: var(--bg-tertiary);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-ex-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text);
}
.cs-ex-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cs-ex-formal   { background: var(--bg-tertiary); color: var(--text-muted); border: 1px solid var(--border); }
.cs-ex-informal { background: var(--primary-light); color: var(--primary); }
.cs-tip {
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  line-height: 1.4;
}

/* ─── Idioms Screen ───────────────────────────────────────────────────────── */

.idiom-featured {
  background: linear-gradient(135deg, #C8102E 0%, #002147 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 22px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-red);
}
.idiom-featured-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
  margin-bottom: 8px;
}
.idiom-featured-phrase {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.idiom-featured-meaning {
  font-size: .9rem;
  font-weight: 600;
  opacity: .9;
  margin-bottom: 4px;
}
.idiom-featured-example {
  font-size: .82rem;
  font-style: italic;
  opacity: .8;
  margin-bottom: 10px;
}
.idiom-featured .exam-tag { background: rgba(255,255,255,.20); color: #fff; border-color: rgba(255,255,255,.30); margin-right: 4px; }

.idiom-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.idiom-item.idiom-today { border-color: var(--primary); background: var(--primary-light); }
.idiom-item-phrase {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.idiom-item-meaning {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.idiom-item-example {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Reading Speed Tracker ───────────────────────────────────────────────── */

.reading-speed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.reading-word-count { font-weight: 700; color: var(--primary); }

.reading-speed-result {
  background: linear-gradient(135deg, var(--primary-light), var(--bg-secondary));
  border: 1.5px solid rgba(200,16,46,.25);
  border-radius: var(--r-lg);
  padding: 18px;
  text-align: center;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.rsr-wpm {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.03em;
}
.rsr-wpm span { font-size: 1rem; font-weight: 600; }
.rsr-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
}
.rsr-tip {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ─── Pronunciation Coach ─────────────────────────────────────────────────── */

.pron-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.pron-mode-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.pron-mode-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pron-mode-icon { font-size: 2rem; margin-bottom: 6px; }
.pron-mode-title { font-size: .85rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.pron-mode-desc  { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }

.pron-group-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, transform .18s;
  box-shadow: var(--shadow);
  font-family: "Inter", system-ui, sans-serif;
}
.pron-group-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.pron-group-icon { font-size: 1.6rem; flex-shrink: 0; }
.pron-group-body { flex: 1; }
.pron-group-name { font-weight: 800; font-size: .9rem; color: var(--primary); }
.pron-group-desc { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

.pron-group-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.pron-tip { margin-bottom: 0; }

.pron-word-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pron-word-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.pron-word   { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.pron-ipa    { font-size: .78rem; color: var(--primary); font-style: italic; margin: 2px 0; }
.pron-meaning{ font-size: .72rem; color: var(--text-muted); }
.pron-play   { position: absolute; top: 6px; right: 6px; font-size: .7rem; padding: 2px 5px !important; }

/* Minimal Pairs */
.mp-choice-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.mp-choice-btn {
  flex: 1;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color .18s, transform .18s;
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: var(--shadow);
}
.mp-choice-btn:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-1px); }
.mp-choice-btn.mp-correct  { border-color: var(--success); background: var(--success-light); }
.mp-choice-btn.mp-wrong-choice { border-color: var(--error); background: var(--error-light); }
.mp-choice-word   { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.mp-choice-ipa    { font-size: .8rem; color: var(--primary); font-style: italic; margin: 4px 0; }
.mp-choice-meaning{ font-size: .75rem; color: var(--text-muted); }
.mp-or { display: flex; align-items: center; font-size: .75rem; color: var(--text-faint); font-weight: 700; }

/* Say It Right */
.pron-practice-card {
  background: linear-gradient(135deg, var(--primary-light), var(--bg-secondary));
  border: 2px solid rgba(200,16,46,.25);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.pron-practice-word   {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.03em;
}
.pron-practice-ipa    { font-size: 1rem; color: var(--primary); font-style: italic; margin: 4px 0; }
.pron-practice-meaning{ font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.pron-hear-btn { font-size: .85rem; padding: 8px 16px !important; }

/* ─── Dictation ───────────────────────────────────────────────────────────── */

.dict-play-area {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.dict-topic {
  margin-left: auto;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: capitalize;
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.dict-result-text {
  font-size: .92rem;
  line-height: 1.8;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  margin-bottom: 4px;
  border: 1px solid var(--border);
}
.dict-word { display: inline-block; padding: 0 2px; border-radius: 3px; }
.dict-correct { background: var(--success-light); color: var(--success); }
.dict-wrong   { background: var(--error-light); color: var(--error); text-decoration: underline; }

/* ─── Diagnostic Test ─────────────────────────────────────────────────────── */

.diag-welcome { text-align: center; padding: 20px 0; }
.diag-info-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 4px;
}
.diag-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.diag-breakdown { margin-bottom: 4px; }
.diag-breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.diag-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--r-full);
  overflow: hidden;
}
.diag-bar-fill { height: 100%; border-radius: var(--r-full); transition: width .5s ease; }
.diag-bar-label { font-size: .75rem; color: var(--text-muted); width: 30px; text-align: right; }

.study-plan { display: flex; flex-direction: column; gap: 8px; }
.study-plan-day {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.study-day-num {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(200,16,46,.28);
}
.study-day-body { flex: 1; }
.study-day-name { font-size: .72rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.study-day-activity { font-size: .88rem; font-weight: 800; color: var(--text); margin: 2px 0; }
.study-day-desc { font-size: .78rem; color: var(--text-muted); }

/* ─── Content Feed ────────────────────────────────────────────────────────── */

.content-grid { display: flex; flex-direction: column; gap: 8px; }
.content-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.content-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.content-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.content-card-body { flex: 1; }
.content-card-title { font-size: .9rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.content-card-provider { font-size: .72rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.content-card-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; }
.content-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.content-card-arrow { font-size: 1rem; color: var(--text-faint); align-self: center; flex-shrink: 0; }

/* ─── Karaoke Mode ────────────────────────────────────────────────────────── */

.karaoke-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.karaoke-song-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
  font-family: "Inter", system-ui, sans-serif;
}
.karaoke-song-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.karaoke-song-cover {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.karaoke-song-icon { font-size: 2rem; }
.karaoke-song-info { padding: 10px; }
.karaoke-song-title { font-size: .85rem; font-weight: 800; color: var(--text); }
.karaoke-song-artist { font-size: .72rem; color: var(--text-muted); margin-bottom: 4px; }

.karaoke-song-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.karaoke-cover-sm {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.karaoke-title-lg {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.karaoke-artist-sm { font-size: .8rem; color: var(--text-muted); }

.karaoke-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.karaoke-lyrics {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  line-height: 1.9;
  font-size: .9rem;
  max-height: 340px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.karaoke-line { transition: color .2s; }
.karaoke-line.chorus { color: var(--primary); font-weight: 700; }
.karaoke-line.bridge { color: var(--text-muted); font-style: italic; }
.karaoke-line.karaoke-active { background: var(--primary-light); border-radius: var(--r-xs); }
.karaoke-break { height: 10px; }
.kw { transition: background .1s, color .1s; border-radius: 3px; padding: 0 2px; }
.kw-active { background: var(--primary); color: #fff; }

/* ─── AI Conversation ─────────────────────────────────────────────────────── */

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.scenario-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
  font-family: "Inter", system-ui, sans-serif;
}
.scenario-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.scenario-icon { font-size: 1.8rem; margin-bottom: 5px; }
.scenario-title { font-size: .82rem; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.scenario-desc  { font-size: .7rem; color: var(--text-muted); line-height: 1.3; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.chat-scenario-badge {
  font-size: .82rem;
  font-weight: 800;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: var(--r-full);
  flex: 1;
}
.chat-messages {
  height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
}
.chat-msg { display: flex; flex-direction: column; }
.chat-msg-user { align-items: flex-end; }
.chat-msg-ai   { align-items: flex-start; }
.chat-bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: var(--r-lg);
  font-size: .88rem;
  line-height: 1.4;
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-ai   .chat-bubble { background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-tip {
  font-size: .76rem;
  color: var(--warning);
  background: var(--warning-light);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  margin-top: 4px;
  max-width: 82%;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.chat-input-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .9rem;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 48px;
}
.chat-hint { font-size: .72rem; color: var(--text-faint); margin-bottom: 8px; }

/* Typing dots animation */
.chat-dots { display: flex; gap: 4px; padding: 2px 0; }
.chat-dots span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chat-bounce .8s infinite;
}
.chat-dots span:nth-child(2) { animation-delay: .15s; }
.chat-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes chat-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-5px); }
}

@media (min-width: 640px) {
  .karaoke-grid { grid-template-columns: repeat(3, 1fr); }
  .scenario-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Examiner AI Feedback ──────────────────────────────────────────────────── */
.btn-examiner {
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: #fff;
  border: none;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
  border-radius: var(--r-md);
  padding: 14px 16px;
  width: 100%;
  cursor: pointer;
  font-size: .9rem;
  min-height: 48px;
  transition: opacity .18s, transform .18s;
}
.btn-examiner:hover { opacity: .9; }
.btn-examiner:active { transform: scale(0.97); }
.examiner-result-box { margin-top: 12px; }
.examiner-card {
  background: var(--bg-secondary);
  border: 1.5px solid rgba(124,58,237,.27);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow);
}
.examiner-header { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.examiner-band { font-size: 2rem; font-weight: 900; }
.examiner-grade { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); }
.examiner-explanation { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.examiner-criteria-row { border-top: 1px solid var(--border); padding: 10px 0; }
.examiner-criteria-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.examiner-criteria-score { float: right; font-size: .9rem; font-weight: 700; color: var(--primary); }
.examiner-criteria-feedback { font-size: .83rem; color: var(--text); margin: 4px 0 0; }
.examiner-section { margin-top: 12px; font-size: .84rem; }
.examiner-section ul { margin: 6px 0 0 16px; padding: 0; }
.examiner-section li { margin-bottom: 4px; }
.examiner-correction {
  background: var(--bg);
  border-left: 3px solid #7C3AED;
  padding: 8px 12px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 6px;
  font-size: .85rem;
  font-style: italic;
}

/* ─── Audio Shadowing ───────────────────────────────────────────────────────── */
.shadowing-welcome { text-align: center; padding: 8px 0; }
.shadowing-card { padding: 4px 0; }
.shadowing-progress { text-align: center; font-size: .78rem; color: var(--text-muted); margin-bottom: 16px; }
.shadowing-topic-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.shadowing-level-badge { margin-left: 8px; font-size: .72rem; }
.shadowing-text {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 16px 0 10px;
  text-align: center;
}
.shadowing-tip { font-size: .82rem; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.shadowing-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.shadowing-record-status { text-align: center; font-size: .85rem; color: var(--error); font-weight: 600; margin-top: 6px; }
.shadowing-score-card {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.shadowing-score-pct { font-size: 1.6rem; font-weight: 900; text-align: center; margin-bottom: 10px; }
.shadowing-score-you { font-size: .85rem; margin-bottom: 6px; }
.shadowing-score-target { font-size: .85rem; color: var(--text-muted); }
.level-btn {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .15s;
  font-family: "Inter", system-ui, sans-serif;
}
.level-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: #fff;
}

/* ─── Movies / TV Scenes ────────────────────────────────────────────────────── */
.movies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.movie-scene-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow);
  font-family: "Inter", system-ui, sans-serif;
}
.movie-scene-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.movie-scene-icon { font-size: 2.2rem; margin-bottom: 4px; }
.movie-scene-title { font-size: .85rem; font-weight: 700; line-height: 1.2; }
.movie-scene-show { font-size: .74rem; color: var(--text-muted); }
.movie-scene-setting { font-size: .72rem; color: var(--text-faint); margin-top: 2px; }
.movie-scene-level { margin-top: 4px; font-size: .7rem; }
.movie-characters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.movie-character-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.movie-dialogue-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  min-height: 80px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.movie-dialogue-hint { color: var(--text-faint); font-size: .85rem; text-align: center; padding: 16px 0; }
.movie-dialogue-line { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.movie-dialogue-line:last-child { border-bottom: none; }
.movie-dialogue-char { font-weight: 700; color: var(--primary); }
.movie-controls { display: flex; gap: 10px; margin-bottom: 16px; }
.movie-controls .btn { flex: 1; }
.movie-vocabulary { margin-top: 4px; }
.movie-vocab-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.movie-vocab-item:last-child { border-bottom: none; }
.movie-vocab-example { color: var(--text-muted); font-style: italic; margin-top: 3px; font-size: .8rem; }
.movie-cultural-note {
  background: rgba(200,16,46,.05);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .84rem;
  margin-top: 16px;
}
.ipa { font-family: monospace; color: var(--text-muted); font-size: .82rem; }

/* ─── Leaderboard / Weekly League ──────────────────────────────────────────── */
.leaderboard-header { text-align: center; padding: 16px 0 20px; }
.league-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--r-full);
  margin-bottom: 10px;
}
.leaderboard-my-xp { font-size: 1.8rem; font-weight: 900; margin-bottom: 4px; letter-spacing: -.03em; }
.leaderboard-thresholds { margin-bottom: 20px; }
.league-tier-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.league-tier-row:last-child { border-bottom: none; }
.league-tier-mine {
  background: rgba(200,16,46,.06);
  border-radius: var(--r-md);
  padding: 10px;
  margin: 2px -10px;
}
.weekly-challenge-box {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.weekly-challenge-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.weekly-challenge-item:last-child { border-bottom: none; }
.challenge-done { opacity: .6; }
.challenge-progress-bar { height: 6px; background: var(--bg-tertiary); border-radius: var(--r-full); margin-top: 5px; overflow: hidden; }
.challenge-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-mid)); border-radius: var(--r-full); transition: width .5s; }

@media (min-width: 640px) {
  .movies-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Nav logo (sidebar only) ───────────────────────────────────────────────── */
.nav-logo { display: none; }

/* ─── Tablet ≥ 768px ────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .content { max-width: 740px; padding: 22px 32px; }
  .modules-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .achievement-grid { grid-template-columns: repeat(4, 1fr); }
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .exercise-card { padding: 28px 36px; }
  .home-hero { padding: 32px 28px; }
  .auth-card { padding: 44px 40px; }
  .match-grid { grid-template-columns: repeat(2, 1fr); }
  .grammar-topic-card, .exam-card { padding: 18px 20px; }
  .theory-structure { font-size: 1rem; }
  .theory-examples li { font-size: .97rem; }
  .reading-text { font-size: 1.08rem; }
}

/* ─── Desktop ≥ 1024px — sidebar nav + full-width content ───────────────────── */
@media (min-width: 1024px) {

  /* ── Sidebar ── */
  #bottom-nav.visible {
    position: fixed;
    top: 0; left: 0; bottom: 0; right: auto;
    width: 240px;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0 12px 24px;
    border-top: none;
    border-right: 1px solid var(--border);
    box-shadow: 1px 0 0 rgba(0,0,0,.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
    gap: 2px;
    overflow-y: auto;
  }

  /* Sidebar logo */
  .nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .nav-logo-img {
    width: 100%;
    max-width: 190px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.15));
  }

  /* Nav items horizontal in sidebar */
  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 11px 14px;
    gap: 12px;
    border-radius: 12px;
    font-size: .87rem;
    flex: none;
    text-align: left;
  }
  .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
  .nav-item.active {
    background: rgba(200,16,46,.09);
    color: var(--primary);
  }

  /* Shift all screens past sidebar */
  .screen { margin-left: 240px; padding-bottom: 0; min-height: 100dvh; }
  /* Auth is fullscreen — no sidebar offset */
  #auth-screen { margin-left: 0; position: fixed; inset: 0; z-index: 200; height: 100dvh; }

  /* Wider main content */
  .content { max-width: 920px; padding: 32px 48px; }

  /* Expanded grids */
  .modules-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .book-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stats-row { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .achievement-grid { grid-template-columns: repeat(5, 1fr); }
  .movies-grid { grid-template-columns: repeat(4, 1fr); }
  .options-grid { max-width: 600px; margin-left: auto; margin-right: auto; gap: 16px; }

  /* Hero */
  .home-hero { padding: 44px 40px; }
  .home-hero h2 { font-size: 1.8rem; }

  /* Exercise card centered + wider */
  .exercise-card { max-width: 680px; margin-left: auto; margin-right: auto; padding: 40px 52px; }

  /* Page header wider */
  .page-header { padding: 16px 48px; }

  /* Lesson typography bump */
  .theory-structure { font-size: 1.02rem; padding: 18px 24px; }
  .theory-examples li { font-size: 1rem; padding: 14px 18px; }
  .theory-rule { font-size: .96rem; }
  .reading-text { font-size: 1.1rem; line-height: 2.05; }
  .writing-prompt { font-size: .97rem; line-height: 1.8; }
  .exercise-sentence { font-size: 1.35rem; }

  /* Grammar topics list wider */
  .grammar-topic-card { padding: 20px 22px; }

  /* Modal wider */
  .modal-sheet { max-width: 560px; border-radius: 20px 20px 0 0; }

  /* Vocab list wider, 2-col on large screens */
  .vocab-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vocab-list .vocab-item { margin: 0; }
}

/* ─── Large desktop ≥ 1280px ─────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  #bottom-nav.visible { width: 260px; }
  .screen { margin-left: 260px; }
  .content { max-width: 1040px; padding: 36px 56px; }
  .modules-grid { grid-template-columns: repeat(5, 1fr); }
  .book-grid { grid-template-columns: repeat(5, 1fr); }
}
/* Wide 2-col layout for lesson content on very large screens */
@media (min-width: 1440px) {
  .content { max-width: 1100px; }
}

/* ─── Settings icon + section title + link rows ───────────────────────────── */

/* Settings brand block — large icon on white card below header */
.settings-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 28px 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.settings-brand-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.settings-brand-name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--oxford);
  letter-spacing: .04em;
}

.settings-brand-ver {
  font-size: .78rem;
  color: var(--text-muted);
}

.settings-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: 20px 0 6px;
}

.settings-row-link {
  cursor: pointer;
  transition: background .15s;
}
.settings-row-link:hover { background: var(--bg-secondary); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.settings-row-link:active { background: var(--bg-tertiary); }

.settings-chevron {
  font-size: 1rem;
  color: var(--text-faint);
  margin-left: 8px;
}

/* ─── Legal screens ──────────────────────────────────────────────────────── */

.legal-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 20px;
  gap: 10px;
}

.legal-logo-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.legal-logo-name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--oxford);
  letter-spacing: .04em;
}

.legal-logo-sub {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}

.legal-section {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.legal-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-text {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text);
}
.legal-text p { margin: 0 0 8px; }
.legal-text p:last-child { margin-bottom: 0; }
.legal-text ul { margin: 6px 0 0 0; padding-left: 18px; }
.legal-text li { margin-bottom: 4px; }

.legal-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--text-faint);
  padding: 16px 0 8px;
}

/* ─── Contacts coming-soon block ─────────────────────────────────────────── */

.contacts-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 24px 32px;
  text-align: center;
}

.contacts-coming-icon {
  font-size: 3rem;
  line-height: 1;
}

.contacts-coming-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contacts-coming-sub {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 280px;
}
