/* ══════════════════════════════════════════════════════════════
   RBC English — Premium Dark UI v2.0
   ══════════════════════════════════════════════════════════════ */

@property --shimmer-x { syntax: '<percentage>'; inherits: false; initial-value: -100%; }

:root {
  --bg-base: #050A15;
  --bg-card: rgba(15, 23, 42, .55);
  --bg-card-hover: rgba(25, 35, 60, .65);
  --bg-paper: rgba(20, 28, 50, .4);
  --border-subtle: rgba(99, 130, 255, .12);
  --border-glow: rgba(99, 130, 255, .25);
  --ink: #F1F5F9;
  --ink-muted: #94A3B8;
  --text-muted: #64748B;

  /* Primary Actions & Highlights */
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --gold: #F59E0B;
  --amber: #FBBF24;
  --grad-primary: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --grad-gold: linear-gradient(135deg, #F59E0B, #F97316);
  --grad-success: linear-gradient(135deg, #10B981, #34D399);
  --grad-error: linear-gradient(135deg, #F43F5E, #FB7185);

  /* Syntax Highlights (Chunks) */
  --pre: #38BDF8;
  --root: #C084FC;
  --suf: #34D399;
  --phrase: #FBBF24;

  /* Success & Error */
  --ok: #10B981;
  --ok-bg: rgba(16, 185, 129, 0.12);
  --bad: #F43F5E;
  --bad-bg: rgba(244, 63, 94, 0.12);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --blur: 18px;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 2px 8px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
  --shadow-glow-blue: 0 0 20px rgba(59,130,246,.25), 0 0 60px rgba(59,130,246,.08);
  --shadow-glow-gold: 0 0 20px rgba(245,158,11,.3), 0 0 60px rgba(245,158,11,.1);
  --shadow-glow-green: 0 0 20px rgba(16,185,129,.3);
  --shadow-glow-rose: 0 0 20px rgba(244,63,94,.3);

  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,.07) 0%, transparent 60%),
                     radial-gradient(ellipse 60% 50% at 80% 100%, rgba(139,92,246,.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 16px; line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}
body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
h1, h2, h3 { font-family: var(--font-serif); color: #FFFFFF; margin: 0; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 700; }

/* ── Header (glassmorphic sticky) ── */
header.app {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; position: sticky; top: 0; z-index: 90;
  background: rgba(5, 10, 21, .72); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border-subtle);
}
header.app .brand { font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: .02em; }
header.app .brand span { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
header.app .meta { text-align: right; }
header.app .meta .mono { color: var(--ink-muted); display: block; font-size: 10px; }
header.app .streak { font-family: var(--font-mono); font-size: 14px; color: var(--amber); font-weight: 700; }

main { max-width: 560px; margin: 0 auto; padding: 20px 16px; }

/* ── Cards (glassmorphic + animated) ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-spring), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  animation: fadeInUp .5s var(--ease-out) both;
}
.card:hover { transform: translateY(-2px) scale(1.005); box-shadow: var(--shadow-card), var(--shadow-glow-blue); border-color: var(--border-glow); }
.card.paper { background: var(--bg-paper); border-style: dashed; }

.label { color: var(--gold); font-weight: 700; margin-bottom: 8px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }

/* ── Buttons (gradient + glow) ── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-sans); font-size: 16px; font-weight: 700;
  padding: 14px 18px; margin-top: 12px; color: #FFFFFF;
  background: var(--grad-primary); position: relative; overflow: hidden;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: transform .2s var(--ease-spring), box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-glow-blue); }
.btn:active { transform: scale(.97); }

.btn.gold { background: var(--grad-gold); color: #0B0F19; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3); }
.btn.gold:hover { box-shadow: var(--shadow-glow-gold); }

.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--border-glow); box-shadow: none; }
.btn.ghost:hover { background: rgba(59, 130, 246, 0.1); box-shadow: var(--shadow-glow-blue); }

/* ── Bottom Nav (glassmorphism + indicator) ── */
nav.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  background: rgba(5, 10, 21, .65); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 30px rgba(0,0,0,.4);
}
nav.tabs button {
  flex: 1; background: none; border: none; padding: 10px 0 8px; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; align-items: center;
  position: relative; transition: color .25s var(--ease-out), transform .2s var(--ease-spring);
}
nav.tabs button .ico { font-size: 20px; line-height: 1; transition: transform .25s var(--ease-spring); }
nav.tabs button:hover { color: var(--ink-muted); }
nav.tabs button:hover .ico { transform: scale(1.1); }
nav.tabs button.on { color: var(--primary); font-weight: 700; }
nav.tabs button.on::after {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 2.5px;
  background: var(--grad-primary); border-radius: 0 0 4px 4px;
}
nav.tabs button.on .ico { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(59,130,246,.5)); }

/* ── Test ── */
.statline { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.statline .mono { color: var(--ink-muted); }
.qprompt { font-size: clamp(1.05rem, 3vw, 1.25rem); font-weight: 700; margin: 12px 0 6px; line-height: 1.5; color: #FFFFFF; }
.qctx { color: #8A97AD; font-size: 14px; font-style: italic; margin-bottom: 14px; line-height: 1.4; }

.opt {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  background: var(--bg-card); border: 1.5px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 8px; cursor: pointer;
  font-family: var(--font-sans); font-size: 15.5px; line-height: 1.45; color: var(--ink);
  transition: all .2s var(--ease-out); position: relative; overflow: hidden;
}
.opt:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}
.opt .key {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; flex: none;
  min-width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(99,130,255,.1); color: var(--primary); border: 1px solid rgba(99,130,255,.15);
  transition: all .25s var(--ease-out);
}

.opt.correct { border-color: var(--ok); background: var(--ok-bg); animation: pulseGlow .6s var(--ease-out); }
.opt.correct .key { background: var(--ok); color: #FFFFFF; border-color: var(--ok); box-shadow: var(--shadow-glow-green); }

.opt.wrong { border-color: var(--bad); background: var(--bad-bg); animation: shakeX .5s var(--ease-out); }
.opt.wrong .key { background: var(--bad); color: #FFFFFF; border-color: var(--bad); box-shadow: var(--shadow-glow-rose); }

.opt.dim { opacity: .35; pointer-events: none; }

/* ── Learn card ── */
.learn {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 20px; margin-top: 16px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp .4s var(--ease-out) both;
}
.learn .anatomy { font-family: var(--font-mono); font-size: 15px; font-weight: 700; margin: 6px 0; display: flex; gap: 4px; flex-wrap: wrap; }
.anat-pre { background: rgba(56, 189, 248, 0.15); color: #93C5FD; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600; border: 1px solid rgba(56, 189, 248, 0.2); }
.anat-root { background: rgba(192, 132, 252, 0.15); color: #C4B5FD; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 700; border: 1px solid rgba(192, 132, 252, 0.2); }
.anat-suf { background: rgba(52, 211, 153, 0.12); color: #6EE7B7; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600; border: 1px solid rgba(52, 211, 153, 0.2); }
.learn .logic { font-size: 14.5px; color: #D1D5DB; line-height: 1.55; margin: 8px 0; }
.learn .pp { font-size: 15px; font-weight: 700; color: var(--gold); margin-top: 8px; line-height: 1.45; font-style: italic; }

.nexthint { text-align: center; color: var(--text-muted); margin-top: 16px; font-size: 13px; animation: breathe 2.5s ease-in-out infinite; }

/* ── Progress bar (gradient + shimmer) ── */
.progressbar {
  width: 100%; height: 7px; background: rgba(255,255,255,.06); border-radius: var(--radius-pill);
  overflow: hidden; margin-bottom: 16px; position: relative;
}
.progressbar i {
  display: block; height: 100%; border-radius: var(--radius-pill);
  background: var(--grad-primary); position: relative;
  transition: width .5s var(--ease-spring);
}
.progressbar i::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2s infinite;
}

/* ── Big stats ── */
.bigstat { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 14px 0; }
.bigstat .cell {
  text-align: center; padding: 14px 8px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
}
.bigstat .cell b { font-family: var(--font-serif); font-size: 28px; display: block; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.typechip {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 12px; border-radius: var(--radius-pill); margin-bottom: 8px;
  background: rgba(139,92,246,.15); color: #C4B5FD; border: 1px solid rgba(139,92,246,.2);
}

/* ── Vocab ── */
.search {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-subtle); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 15px; background: var(--bg-card); margin-bottom: 16px; color: #FFFFFF;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow-glow-blue); }

.vcard {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card); animation: fadeInUp .45s var(--ease-out) both;
  transition: transform .25s var(--ease-spring), border-color .3s var(--ease-out);
}
.vcard .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.vcard .word { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: #FFFFFF; }
.vcard .ipa { color: var(--ink-muted); font-size: 13px; font-family: var(--font-mono); }

.status { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: var(--radius-pill); font-weight: 700; border: 1px solid; }
.status.new { background: rgba(59, 130, 246, 0.12); color: #93C5FD; border-color: rgba(59, 130, 246, 0.25); }
.status.learning { background: rgba(245, 158, 11, 0.12); color: #FCD34D; border-color: rgba(245, 158, 11, 0.25); }
.status.mastered { background: rgba(16, 185, 129, 0.12); color: #6EE7B7; border-color: rgba(16, 185, 129, 0.25); }

.vcard .anatomy { font-family: var(--font-mono); font-size: 14px; margin: 8px 0 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.vcard .meaning { font-size: 14.5px; color: #D1D5DB; }
.vcard .pp { font-size: 14px; color: var(--gold); font-style: italic; margin-top: 8px; line-height: 1.4; }
.vcard .stats { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-top: 10px; }

/* ── Scripts ── */
.badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; padding: 3px 10px; border-radius: var(--radius-pill); text-transform: uppercase; font-weight: 700; border: 1px solid; }
.badge.RECRUITER { background: rgba(59, 130, 246, 0.12); color: #93C5FD; border-color: rgba(59, 130, 246, 0.25); }
.badge.CANDIDATE { background: rgba(245, 158, 11, 0.12); color: #FCD34D; border-color: rgba(245, 158, 11, 0.25); }
.badge.COACH_BUILDER { background: rgba(139, 92, 246, 0.12); color: #C4B5FD; border-color: rgba(139, 92, 246, 0.25); }

.scard h3 { font-size: 20px; margin: 10px 0 6px; color: #FFFFFF; font-family: var(--font-serif); }
.scard .ctx { font-size: 14.5px; color: var(--ink-muted); font-style: italic; }
.scard .body {
  white-space: pre-wrap; font-size: 15.5px; margin-top: 14px; border-top: 1px dashed var(--border-subtle); padding-top: 14px;
  line-height: 1.65; color: #E5E7EB;
}
.scard .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.scard .acts button {
  flex: 1; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600;
  background: rgba(59,130,246,.1); color: var(--primary); border: 1px solid rgba(59,130,246,.2);
  font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: all .2s var(--ease-out);
}
.scard .acts button:hover { background: rgba(59, 130, 246, 0.2); transform: translateY(-1px); }
.scard .acts button.done { background: rgba(16, 185, 129, 0.1); color: var(--ok); border-color: rgba(16, 185, 129, 0.25); }
.scard .acts button.done:hover { background: rgba(16, 185, 129, 0.2); }

/* ── DNA ── */
textarea.dna {
  width: 100%; min-height: 280px; padding: 16px; border: 1.5px solid var(--border-subtle); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7; background: var(--bg-card); color: #FFFFFF; resize: vertical;
  backdrop-filter: blur(8px); transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
textarea.dna:focus { outline: none; border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139,92,246,.15), 0 0 20px rgba(139,92,246,.15); }
.note { font-size: 13.5px; color: var(--ink-muted); margin-top: 6px; line-height: 1.5; }

/* ── Learn (VI→EN) ── */
.lcard-vi {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-card); animation: fadeInUp .4s var(--ease-out) both;
}
.lcard-vi .mono { color: var(--amber); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.lcard-vi .lctx { font-size: 14px; font-style: italic; color: var(--ink-muted); margin: 6px 0 12px; line-height: 1.5; }
.lcard-vi .lvi { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--gold); }

.lhint { text-align: center; color: var(--ink-muted); margin: 14px 0 4px; font-size: 13.5px; }
.len { font-family: var(--font-mono); font-size: 17px; line-height: 1.7; color: #FFFFFF; margin: 6px 0 12px; }
.len mark { background: rgba(245,158,11,.2); color: var(--gold); padding: 2px 6px; border-radius: 4px; font-weight: 700; }

.ttsbtn {
  border: 1.5px solid var(--border-subtle); background: none; border-radius: 50%; width: 42px; height: 42px; font-size: 16px; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--ink-muted);
  transition: all .2s var(--ease-spring);
}
.ttsbtn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.1); box-shadow: var(--shadow-glow-blue); }
.ttsbtn:active { transform: scale(.9); }

.gradeRow { display: flex; gap: 12px; margin-top: 16px; }
.gradeRow .btn { margin-top: 0; flex: 1; }
.btn.review { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); box-shadow: none; }
.btn.review:hover { background: var(--bad-bg); box-shadow: var(--shadow-glow-rose); }
.btn.known { background: var(--grad-success); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); }
.btn.known:hover { box-shadow: var(--shadow-glow-green); }

.hidden { display: none !important; }
.center { text-align: center; }
.flame { display: inline-block; animation: breathe 2s ease-in-out infinite; }

/* ── Chunk Highlighting ── */
.chunk { padding: 1px 4px; border-radius: 4px; cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s var(--ease-out); font-weight: 600; }
.chunk:hover { filter: brightness(1.25); transform: translateY(-1px); }
.chunk-noun { background: rgba(56, 189, 248, 0.12); border-bottom-color: rgba(56, 189, 248, 0.3); color: #93C5FD; }
.chunk-verb { background: rgba(192, 132, 252, 0.12); border-bottom-color: rgba(192, 132, 252, 0.3); color: #C4B5FD; }
.chunk-modifier { background: rgba(52, 211, 153, 0.12); border-bottom-color: rgba(52, 211, 153, 0.3); color: #6EE7B7; }
.chunk-phrase { background: rgba(251, 191, 36, 0.12); border-bottom-color: rgba(251, 191, 36, 0.3); color: #FCD34D; }

/* ── Modal (gradient border + glass) ── */
.modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 28px 24px; width: 90%; max-width: 460px; position: relative;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), var(--shadow-glow-blue);
  animation: scaleUp .35s var(--ease-spring);
}
.modal-content::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius); z-index: -1;
  background: var(--grad-primary); opacity: .2; filter: blur(1px);
}
.modal-close {
  position: absolute; right: 14px; top: 12px; font-size: 24px; cursor: pointer; color: var(--ink-muted);
  background: none; border: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; transition: all .2s var(--ease-out);
}
.modal-close:hover { background: rgba(255,255,255,.08); color: #FFFFFF; }

/* ── Toast Notifications ── */
.toast-container { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  padding: 12px 20px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card);
  animation: toastSlide .4s var(--ease-spring); min-width: 220px; pointer-events: auto;
  transition: opacity .3s, transform .3s;
}
.toast.success { background: rgba(16,185,129,.15); color: #6EE7B7; border-color: rgba(16,185,129,.3); }
.toast.error { background: rgba(244,63,94,.15); color: #FCA5B5; border-color: rgba(244,63,94,.3); }
.toast.info { background: rgba(59,130,246,.15); color: #93C5FD; border-color: rgba(59,130,246,.3); }

/* ── Confetti ── */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; overflow: hidden; }

/* ── New Components ── */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filter-chip {
  padding: 5px 14px; font-size: 12px; font-weight: 600; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle); color: var(--ink-muted);
  cursor: pointer; transition: all .2s var(--ease-out); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .04em;
}
.filter-chip:hover { border-color: var(--border-glow); color: var(--ink); }
.filter-chip.active { background: rgba(59,130,246,.15); color: var(--primary); border-color: rgba(59,130,246,.3); }

.vocab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.vocab-stats .stat-card {
  text-align: center; padding: 14px 8px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
}
.vocab-stats .stat-card .stat-value { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.vocab-stats .stat-card .stat-label { font-size: 10px; color: var(--ink-muted); margin-top: 2px; }

.streak-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); border-radius: var(--radius-pill);
  color: var(--gold); font-weight: 700; font-size: .85rem; animation: pulseGlow 2.5s ease-in-out infinite;
}
.level-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px;
  background: var(--grad-primary); border-radius: var(--radius-pill);
  color: #fff; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  box-shadow: var(--shadow-glow-blue); font-family: var(--font-mono);
}

/* ══ Keyframes ══ */
@keyframes scaleUp { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 8px rgba(59,130,246,.15); } 50% { box-shadow: 0 0 22px rgba(59,130,246,.35); } }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
@keyframes shakeX { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes toastSlide { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
