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

:root {
  --bg: #0c0c1d; --bg2: #12122a; --bg3: #1a1a3e;
  --glass: rgba(255,255,255,0.04); --glass2: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.08);
  --accent: #818cf8; --accent2: #6366f1; --accent-glow: rgba(99,102,241,0.3);
  --emerald: #34d399; --emerald-glow: rgba(52,211,153,0.25);
  --amber: #fbbf24; --amber-glow: rgba(251,191,36,0.2);
  --rose: #fb7185; --rose-glow: rgba(251,113,133,0.2);
  --text: #e2e8f0; --text2: #94a3b8; --text3: #64748b;
  --radius: 20px; --radius-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { display: none; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  margin: 0; padding: 0;
  height: 100vh; height: calc(var(--vh, 1vh) * 100);
  display: flex; justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.is-ios body { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-container {
  width: 100%; max-width: 480px;
  height: 100%; position: relative;
  background: var(--bg);
  display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  overflow: hidden;
}
.main-content {
  flex: 1; overflow-y: auto; padding: 16px;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

/* ── Header ──────────────────────────────────── */
header {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(12,12,29,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 20; position: sticky; top: 0;
}
header h1 { font-size: 1.15rem; font-weight: 800; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-btn {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--glass2); border: 1px solid var(--glass-border);
  color: var(--text2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.hdr-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hdr-btn:active { transform: scale(0.9); }

/* ── Progress Bar ────────────────────────────── */
.progress-wrap { height: 3px; background: var(--bg3); }
.progress-bar { height: 3px; background: linear-gradient(90deg, var(--accent), var(--emerald)); transition: width 0.3s ease; width: 0; }
.progress-label { font-size: 0.8rem; font-weight: 700; color: var(--text2); }

/* ── Bento Grid ──────────────────────────────── */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
.bento-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.bento-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.15); }
.bento-card:active { transform: scale(0.97); }
.bento-card.span-2 { grid-column: span 2; }
.bento-card .glow {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  filter: blur(50px); opacity: 0.4; pointer-events: none;
}

/* Hero Card */
.hero-card { padding: 28px 24px; }
.hero-card .glow { top: -30px; right: -30px; background: var(--accent); }
.hero-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.hero-card .hero-icon { background: rgba(129,140,248,0.15); color: var(--accent); }
.hero-title { font-size: 1.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 6px; }
.hero-sub { color: var(--text2); font-size: 0.85rem; line-height: 1.5; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 12px 24px;
  background: var(--accent2); color: #fff;
  border: none; border-radius: 14px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 20px var(--accent-glow);
}
.hero-btn:hover { background: #5558e6; transform: translateY(-1px); }
.hero-btn:active { transform: scale(0.96); }

/* Stat Cards */
.stat-card .glow { bottom: -20px; left: -20px; width: 80px; height: 80px; }
.stat-card.streak .glow { background: var(--amber); }
.stat-card.words .glow { background: var(--emerald); }
.stat-card.weak .glow { background: var(--rose); }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 14px; }
.stat-card.streak .stat-icon { background: rgba(251,191,36,0.12); color: var(--amber); }
.stat-card.words .stat-icon { background: rgba(52,211,153,0.12); color: var(--emerald); }
.stat-card.weak .stat-icon { background: rgba(251,113,133,0.12); color: var(--rose); }
.stat-num { font-size: 1.8rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Course Cards ────────────────────────────── */
.course-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.course-card .c-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: rgba(129,140,248,0.12); color: var(--accent);
}
.course-card .c-info { flex: 1; min-width: 0; }
.course-card .c-name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-card .c-meta { font-size: 0.78rem; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-card .c-arrow { color: var(--text3); transition: all 0.2s; }
.course-card:hover .c-arrow { color: var(--accent); transform: translateX(3px); }
.course-card .c-gear {
  width: 32px; height: 32px; border-radius: 10px;
  background: transparent; border: none; color: var(--text3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.course-card .c-gear:hover { background: var(--glass2); color: var(--text); }
.course-card.archived { opacity: 0.6; filter: grayscale(0.5); }
.course-card.archived:hover { opacity: 1; filter: none; }

/* ── Section Label ───────────────────────────── */
.sec-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3); padding: 0 20px; margin: 4px 0;
}

/* ── List Items (Unidades, Packets, Words) ───── */
.list-wrap { padding: 10px 20px; display: flex; flex-direction: column; gap: 10px; }
.list-item {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all 0.2s;
}
.list-item:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }
.list-item:active { transform: scale(0.98); }
.li-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(129,140,248,0.1); color: var(--accent); font-size: 0.9rem;
}
.li-body { flex: 1; min-width: 0; }
.li-title { font-weight: 700; font-size: 0.9rem; }
.li-sub { font-size: 0.78rem; color: var(--text3); margin-top: 2px; }
.li-chevron { color: var(--text3); font-size: 0.8rem; transition: all 0.2s; }
.list-item:hover .li-chevron { color: var(--accent); transform: translateX(3px); }

/* ── Info Banner ─────────────────────────────── */
.info-banner {
  margin: 0 20px; padding: 16px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 0.9rem;
}
.info-banner.emerald { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.15); color: var(--emerald); }
.info-banner .ib-btn {
  padding: 8px 18px; border-radius: 12px; border: none;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
  background: var(--emerald); color: var(--bg);
}
.info-banner .ib-btn:hover { filter: brightness(1.1); }

/* ── Flashcard ───────────────────────────────── */
.card-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.card-wrap { perspective: 1200px; width: 100%; height: 280px; }
.card-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.4,0.2,0.2,1);
}
.card-inner.flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 28px; gap: 12px;
}
.card-front {
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(52,211,153,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow: 0 8px 32px rgba(99,102,241,0.15);
}
.card-lang { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); }
.card-word { font-size: 1.6rem; font-weight: 800; text-align: center; line-height: 1.3; }
.card-hint { font-size: 0.75rem; color: var(--text3); }
.swipe-hint { text-align: center; font-size: 0.75rem; color: var(--text3); padding-bottom: 8px; }

/* ── Fill Mode ───────────────────────────────── */
.fill-wrap { padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.fill-prompt {
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-sm); padding: 20px;
}
.fill-prompt .fp-lang { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.fill-prompt .fp-word { font-size: 1.3rem; font-weight: 800; }
.fill-input {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  background: var(--glass); border: 1.5px solid var(--glass-border);
  color: var(--text); font-size: 1.05rem; font-weight: 600;
  font-family: inherit; transition: all 0.2s;
}
.fill-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.fill-input.correct { border-color: var(--emerald) !important; background: rgba(52,211,153,0.08) !important; }
.fill-input.wrong { border-color: var(--rose) !important; background: rgba(251,113,133,0.08) !important; }
.fill-feedback {
  padding: 14px 18px; border-radius: 14px;
  font-size: 0.88rem; font-weight: 600; display: none;
}
.fill-feedback.ok { display: block; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--emerald); }
.fill-feedback.fail { display: block; background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.2); color: var(--rose); }
.fill-btn {
  width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: var(--accent2); color: #fff; font-weight: 700; font-size: 0.95rem;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.fill-btn:hover { background: #5558e6; }
.fill-btn:active { transform: scale(0.97); }

/* ── Bottom Nav (Learn) ──────────────────────── */
.learn-nav {
  padding: 12px 24px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(12,12,29,0.9); backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}
.nav-btn {
  width: 48px; height: 48px; border-radius: 16px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; cursor: pointer; transition: all 0.2s;
}
.nav-btn:active { transform: scale(0.9); }
.nav-prev { background: var(--glass2); color: var(--text2); }
.nav-prev:hover { background: var(--glass); color: var(--text); }
.nav-flip {
  flex: 1; height: 48px; border-radius: 16px;
  background: rgba(129,140,248,0.12); color: var(--accent);
  font-weight: 700; font-size: 0.88rem; gap: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-flip:hover { background: rgba(129,140,248,0.2); }
.nav-next {
  background: var(--emerald); color: var(--bg);
  box-shadow: 0 4px 16px var(--emerald-glow);
}
.nav-next:hover { filter: brightness(1.1); }

/* ── Mode Pills ──────────────────────────────── */
.mode-bar {
  display: flex; gap: 8px; padding: 10px 20px;
  background: rgba(12,12,29,0.6); border-bottom: 1px solid var(--glass-border);
}
.mode-pill {
  flex: 1; padding: 8px; border-radius: 12px; border: none;
  font-family: inherit; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.mode-pill.active { background: var(--accent2); color: #fff; }
.mode-pill.inactive { background: var(--glass2); color: var(--text3); }

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
}
.modal-box {
  width: 100%; max-width: 380px;
  background: var(--bg2); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.modal-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text3); margin-bottom: 6px; }
.modal-input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  background: var(--glass); border: 1.5px solid var(--glass-border);
  color: var(--text); font-size: 0.95rem; font-family: inherit; transition: all 0.2s;
}
.modal-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.modal-select {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  background: var(--bg3); border: 1.5px solid var(--glass-border);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  appearance: none; cursor: pointer;
}
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.modal-cancel {
  flex: 1; padding: 12px; border: none; border-radius: 12px;
  background: transparent; color: var(--text3); font-weight: 700;
  font-family: inherit; font-size: 0.9rem; cursor: pointer;
}
.modal-cancel:hover { color: var(--text); }
.modal-submit {
  flex: 1; padding: 12px; border: none; border-radius: 14px;
  background: var(--accent2); color: #fff; font-weight: 700;
  font-family: inherit; font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow); transition: all 0.2s;
}
.modal-submit:hover { background: #5558e6; }
.modal-submit:active { transform: scale(0.96); }

/* ── Done Screen ─────────────────────────────── */
.done-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 24px; text-align: center; min-height: 60vh;
}
.done-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(52,211,153,0.12); color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin-bottom: 24px;
  box-shadow: 0 0 40px var(--emerald-glow);
}
.done-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.done-sub { color: var(--text3); margin-bottom: 32px; }
.done-btn {
  width: 100%; padding: 16px; border: none; border-radius: 16px;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; margin-bottom: 10px;
}
.done-btn:active { transform: scale(0.97); }
.done-btn.primary { background: var(--accent2); color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.done-btn.secondary { background: var(--glass2); color: var(--text2); }

/* ── Word List (Manage Section) ──────────────── */
.word-row {
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--glass-border); transition: background 0.15s;
}
.word-row:hover { background: var(--glass); }
.word-row .wr-body { flex: 1; }
.word-row .wr-src { font-weight: 700; font-size: 0.9rem; }
.word-row .wr-tgt { font-size: 0.8rem; color: var(--text3); margin-top: 2px; }
.word-row .wr-actions { display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.word-row:hover .wr-actions { opacity: 1; }
.wr-btn {
  width: 32px; height: 32px; border-radius: 10px; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.75rem; transition: all 0.15s;
}
.wr-btn.edit { background: rgba(129,140,248,0.1); color: var(--accent); }
.wr-btn.edit:hover { background: rgba(129,140,248,0.2); }
.wr-btn.del { background: rgba(251,113,133,0.1); color: var(--rose); }
.wr-btn:hover { transform: scale(1.05); }

/* ── Spell Warning ───────────────────────────── */
.spell-warn { border-color: var(--amber) !important; background: rgba(251,191,36,0.06) !important; }
.spell-err { font-size: 0.68rem; color: var(--amber); font-weight: 700; margin-top: 4px; display: none; }
.spell-err.show { display: block; }

/* ── Empty State ─────────────────────────────── */
.empty {
  text-align: center; padding: 48px 20px; color: var(--text3);
  border: 2px dashed var(--glass-border); border-radius: var(--radius);
  margin: 0 20px;
}

/* ── Animations ──────────────────────────────── */
.slide-in { animation: slideIn 0.25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.shake { animation: shake 0.35s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ── Hidden Utility ──────────────────────────── */
.hidden { display: none !important; }

/* ── Manage Course Header ────────────────────── */
.manage-header {
  margin: 20px; padding: 20px; border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
}
.manage-header h2 { font-weight: 800; font-size: 1.1rem; }
.manage-header p { font-size: 0.82rem; color: var(--accent); margin-top: 4px; }
.manage-sub { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-bottom: 8px; }
.manage-sub .ms-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); }
.manage-sub .ms-add { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 0.82rem; cursor: pointer; font-family: inherit; }
.manage-sub .ms-add:hover { text-decoration: underline; }

/* ── Auth Screen ─────────────────────────────── */
.auth-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 28px; min-height: 80vh;
}
.auth-logo { font-size: 2.5rem; margin-bottom: 8px; }
.auth-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 4px; }
.auth-sub { color: var(--text3); font-size: 0.88rem; margin-bottom: 32px; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.auth-form .modal-input { padding: 14px 18px; font-size: 1rem; }
.auth-submit {
  width: 100%; padding: 16px; border: none; border-radius: 16px;
  background: var(--accent2); color: #fff; font-weight: 800; font-size: 1rem;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow); margin-top: 8px;
}
.auth-submit:hover { background: #5558e6; }
.auth-submit:active { transform: scale(0.97); }
.auth-toggle {
  margin-top: 16px; color: var(--text3); font-size: 0.85rem; text-align: center;
}
.auth-toggle button {
  background: none; border: none; color: var(--accent); font-weight: 700;
  cursor: pointer; font-family: inherit; font-size: 0.85rem;
}
.auth-toggle button:hover { text-decoration: underline; }
.auth-error {
  padding: 12px 16px; border-radius: 12px;
  background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.2);
  color: var(--rose); font-size: 0.85rem; font-weight: 600; display: none;
}
.auth-error.show { display: block; }

/* ── FSRS Rating Buttons ─────────────────────── */
.rating-bar {
  display: flex; gap: 8px; padding: 12px 20px 20px;
  background: rgba(12,12,29,0.9); backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}
.rating-btn {
  flex: 1; padding: 12px 4px; border: none; border-radius: 14px;
  font-family: inherit; font-weight: 700; font-size: 0.72rem;
  cursor: pointer; transition: all 0.2s; text-align: center; line-height: 1.3;
}
.rating-btn:active { transform: scale(0.92); }
.rating-btn.again { background: rgba(251,113,133,0.15); color: var(--rose); }
.rating-btn.hard { background: rgba(251,191,36,0.12); color: var(--amber); }
.rating-btn.good { background: rgba(52,211,153,0.12); color: var(--emerald); }
.rating-btn.easy { background: rgba(129,140,248,0.12); color: var(--accent); }
.rating-btn.again:hover { background: rgba(251,113,133,0.25); }
.rating-btn.hard:hover { background: rgba(251,191,36,0.22); }
.rating-btn.good:hover { background: rgba(52,211,153,0.22); }
.rating-btn.easy:hover { background: rgba(129,140,248,0.22); }
.rating-btn .rb-label { font-size: 0.88rem; display: block; margin-bottom: 2px; }

/* ── Multiple Choice ─────────────────────────── */
.mc-wrap { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.mc-option {
  width: 100%; padding: 16px 20px; border-radius: 14px;
  background: var(--glass); border: 1.5px solid var(--glass-border);
  color: var(--text); font-size: 1rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.2s; text-align: left;
}
.mc-option:hover { border-color: rgba(255,255,255,0.2); background: var(--glass2); }
.mc-option:active { transform: scale(0.98); }
.mc-option.mc-correct { border-color: var(--emerald) !important; background: rgba(52,211,153,0.1) !important; color: var(--emerald); }
.mc-option.mc-wrong { border-color: var(--rose) !important; background: rgba(251,113,133,0.08) !important; color: var(--rose); opacity: 0.7; }
.mc-option.mc-dim { opacity: 0.4; pointer-events: none; }

/* ── Leaderboard ─────────────────────────────── */
.lb-wrap { padding: 16px 20px; }
.lb-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); margin-bottom: 10px; transition: all 0.2s;
}
.lb-card.you { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.06); }
.lb-rank {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem;
}
.lb-rank.gold { background: rgba(251,191,36,0.15); color: var(--amber); }
.lb-rank.silver { background: rgba(148,163,184,0.15); color: var(--text2); }
.lb-rank.bronze { background: rgba(217,119,6,0.15); color: #d97706; }
.lb-rank.normal { background: var(--glass2); color: var(--text3); }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; font-size: 0.9rem; }
.lb-stats { font-size: 0.75rem; color: var(--text3); margin-top: 2px; }
.lb-xp { font-weight: 800; font-size: 0.95rem; color: var(--accent); text-align: right; }
.lb-xp span { display: block; font-size: 0.68rem; color: var(--text3); font-weight: 600; }

/* ── XP Toast ────────────────────────────────── */
.xp-toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; border-radius: 20px;
  background: var(--accent2); color: #fff; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--accent-glow); z-index: 100;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.2s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

/* ── Reverse Mode Indicator ──────────────────── */
.reverse-badge {
  display: inline-block; padding: 4px 10px; border-radius: 8px;
  background: rgba(251,191,36,0.12); color: var(--amber);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── User Header ─────────────────────────────── */
.user-pill {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  background: var(--glass2); border: 1px solid var(--glass-border);
  border-radius: 20px; cursor: pointer; transition: all 0.2s;
}
.user-pill:hover { border-color: rgba(255,255,255,0.15); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.7rem;
}
.user-xp { font-size: 0.75rem; font-weight: 700; color: var(--amber); }
.modal-btn-alt {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text2);
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.modal-btn-alt:hover {
  background: var(--glass2);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
@ m e d i a   ( h o v e r :   n o n e )   {   . b e n t o - c a r d : h o v e r ,   . c o u r s e - c a r d : h o v e r ,   . l i s t - i t e m : h o v e r ,   . b t n - p r i m a r y : h o v e r   {   t r a n s f o r m :   n o n e   ! i m p o r t a n t ;   b o x - s h a d o w :   n o n e   ! i m p o r t a n t ;   }   }  
 . d a s h b o a r d - s e c t i o n   {   m a r g i n - b o t t o m :   2 4 p x ;   }   . d a s h b o a r d - s e c t i o n   . s e c - l a b e l   {   p a d d i n g :   0   2 4 p x ;   m a r g i n - b o t t o m :   1 2 p x ;   }   . d a s h b o a r d - s e c t i o n   . b e n t o   {   p a d d i n g - t o p :   0 ;   }  
 