:root {
  --bg: #080c14;
  --bg-surface: #0f1623;
  --bg-card: #141d2e;
  --bg-hover: #1a2540;
  --bg-input: #0b1120;
  --border: rgba(255,255,255,0.07);
  --border-subtle: rgba(255,255,255,0.04);
  --border-focus: #6366f1;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dim: #475569;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --ease: all 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(99,102,241,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 100%, rgba(16,185,129,0.06) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e2d45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a3f5f; }

/* ========== LAYOUT ========== */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ========== TOPBAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 30%, #a5b4fc 70%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(16,185,129,0.15);
  color: var(--emerald-light);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.topbar-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.stat-pill strong { color: var(--text-primary); font-weight: 700; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  outline: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
}
.btn-primary:hover { background: #4f46e5; box-shadow: 0 4px 18px rgba(99,102,241,0.5); transform: translateY(-1px); }

.btn-success {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 2px 12px rgba(16,185,129,0.3);
}
.btn-success:hover { background: #059669; transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }

.btn-danger {
  background: rgba(244,63,94,0.12);
  border-color: rgba(244,63,94,0.25);
  color: #fb7185;
}
.btn-danger:hover { background: rgba(244,63,94,0.22); color: #fff; }

.btn-sm {
  padding: 0.28rem 0.6rem;
  font-size: 0.75rem;
  border-radius: var(--r-sm);
}

/* ========== TABS ========== */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.tab-btn.active {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}
.tab-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 1px 6px;
  border-radius: 99px;
  line-height: 1.4;
}

/* ========== TOOLBAR ========== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 240px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.input-field {
  padding: 0.52rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.86rem;
  transition: var(--ease);
  outline: none;
}
.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2.5px rgba(99,102,241,0.2);
}
.input-field::placeholder { color: var(--text-dim); }

/* ========== VOCAB TABLE ========== */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

table.vocab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}

/* column widths — fixed to avoid wrapping */
table.vocab-table colgroup col:nth-child(1) { width: 40px; }   /* # */
table.vocab-table colgroup col:nth-child(2) { width: 170px; }  /* word */
table.vocab-table colgroup col:nth-child(3) { width: 105px; }  /* pos */
table.vocab-table colgroup col:nth-child(4) { width: 150px; }  /* phonetic */
table.vocab-table colgroup col:nth-child(5) { width: 180px; }  /* meaning */
table.vocab-table colgroup col:nth-child(6) { width: 175px; }  /* synonyms */
table.vocab-table colgroup col:nth-child(7) { width: 175px; }  /* antonyms */
table.vocab-table colgroup col:nth-child(8) { width: 1fr; min-width: 240px; } /* example */
table.vocab-table colgroup col:nth-child(9) { width: 100px; }  /* actions */

table.vocab-table thead tr {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

table.vocab-table th {
  padding: 0.75rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: left;
}
table.vocab-table th:first-child { text-align: center; }

table.vocab-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s;
}
table.vocab-table tbody tr:last-child { border-bottom: none; }
table.vocab-table tbody tr:hover { background: var(--bg-hover); }

table.vocab-table td {
  padding: 0.75rem 0.9rem;
  vertical-align: middle;
  color: var(--text-primary);
  overflow: hidden;
}
table.vocab-table td:first-child {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* divider row */
tr.divider-row {
  background: linear-gradient(90deg, #14532d 0%, #166534 100%) !important;
}
tr.divider-row td {
  color: #bbf7d0 !important;
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.9rem;
}

/* word cell */
.word-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.word-text {
  font-weight: 700;
  font-size: 0.91rem;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.word-text.mastered { color: var(--emerald-light); }

.audio-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--indigo-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--ease);
}
.audio-btn:hover { background: var(--indigo); color: #fff; }

/* part of speech */
.pos-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-noun    { background: rgba(59,130,246,0.14); color: #60a5fa; border: 1px solid rgba(59,130,246,0.28); }
.pos-verb    { background: rgba(16,185,129,0.14); color: #34d399; border: 1px solid rgba(16,185,129,0.28); }
.pos-adjective { background: rgba(245,158,11,0.14); color: #fbbf24; border: 1px solid rgba(245,158,11,0.28); }
.pos-phrase  { background: rgba(168,85,247,0.14); color: #c084fc; border: 1px solid rgba(168,85,247,0.28); }
.pos-default { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

/* phonetic */
.phonetic-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  line-height: 1.4;
  word-break: break-word;
}

/* meaning */
.meaning-text {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: text;
  word-break: break-word;
  line-height: 1.4;
}
.meaning-text:focus {
  outline: 1px solid var(--border-focus);
  border-radius: 4px;
  padding: 2px 4px;
}

/* pills cell */
.pills-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.4;
}
.syn-pill {
  background: rgba(16,185,129,0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.22);
}
.ant-pill {
  background: rgba(244,63,94,0.1);
  color: #fda4af;
  border: 1px solid rgba(244,63,94,0.22);
}

/* example */
.example-text {
  font-size: 0.82rem;
  font-style: italic;
  color: #94a3b8;
  line-height: 1.5;
  word-break: break-word;
}

/* status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 0.71rem;
  font-weight: 600;
}
.status-loading { background: rgba(245,158,11,0.14); color: #fcd34d; border: 1px solid rgba(245,158,11,0.28); }
.status-error   { background: rgba(244,63,94,0.14); color: #fda4af; border: 1px solid rgba(244,63,94,0.28); }

/* action btns in table */
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}

/* empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}
.empty-state-icon { font-size: 2.75rem; margin-bottom: 0.75rem; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.85rem; color: var(--text-dim); }

/* ========== FLASHCARDS ========== */
.flashcard-wrapper {
  max-width: 640px;
  margin: 1.5rem auto;
  perspective: 1200px;
}
.fc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.fc-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.fc-progress-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.fc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--emerald));
  border-radius: 99px;
  transition: width 0.3s ease;
}

.flashcard {
  width: 100%;
  min-height: 360px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  border-radius: var(--r-xl);
}
.flashcard.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.card-front {
  background: linear-gradient(150deg, #141d2e 0%, #0f1623 100%);
}
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(150deg, #12192e 0%, #0c1220 100%);
  border-color: rgba(99,102,241,0.25);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-main { text-align: center; padding: 1.25rem 0; }
.card-word-display {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  word-break: break-word;
}
.card-phonetic-display {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.card-meaning-display {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: 0.85rem;
  word-break: break-word;
}
.card-example-display {
  font-style: italic;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  background: rgba(255,255,255,0.035);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border-left: 3px solid var(--indigo);
  text-align: left;
}
.card-syn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.card-bottom {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.fc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ========== QUIZ ========== */
.quiz-wrap {
  max-width: 700px;
  margin: 1.5rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.quiz-title { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 0.45rem; }

.quiz-prompt {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.quiz-sentence {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.quiz-blank {
  font-weight: 700;
  color: var(--cyan);
  border-bottom: 2px dashed var(--cyan);
  padding: 0 3px;
}
.quiz-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.quiz-input-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.quiz-input-row .input-field { flex: 1; }

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  text-align: left;
}
.option-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: rgba(99,102,241,0.45);
  transform: translateY(-1px);
}
.option-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.option-btn.correct { background: rgba(16,185,129,0.18) !important; border-color: var(--emerald) !important; color: var(--emerald-light) !important; }
.option-btn.incorrect { background: rgba(244,63,94,0.18) !important; border-color: var(--rose) !important; color: #fda4af !important; }

.feedback-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  animation: pop 0.2s ease;
}
.feedback-ok { background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.28); color: var(--emerald-light); }
.feedback-err { background: rgba(244,63,94,0.14); border: 1px solid rgba(244,63,94,0.28); color: #fda4af; }

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

/* ========== MODALS ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-overlay.active { display: flex; animation: fade-in 0.18s ease; }
.modal-box {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  max-width: 600px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.modal-textarea {
  width: 100%;
  height: 170px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  resize: vertical;
  margin-bottom: 0.85rem;
  outline: none;
  transition: var(--ease);
}
.modal-textarea:focus { border-color: var(--border-focus); }

.progress-row {
  margin-bottom: 0.85rem;
  display: none;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.progress-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--emerald));
  border-radius: 99px;
  transition: width 0.25s ease;
}

.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.modal-note { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.75rem; }

/* ========== TOASTS ========== */
.toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 300;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(15,22,35,0.96);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.84rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  animation: slide-in 0.22s ease;
  max-width: 340px;
}
.toast-ok  { border-color: rgba(16,185,129,0.4); color: var(--emerald-light); }
.toast-err { border-color: rgba(244,63,94,0.4); color: #fda4af; }

@keyframes fade-in  { from { opacity:0; } to { opacity:1; } }
@keyframes slide-in { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:none; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .app-container { padding: 0 0.75rem 3rem; }
  .topbar { gap: 0.6rem; padding: 0.6rem 0.75rem; }
  .topbar-stats { display: none; }
  .brand-sub { display: none; }
  .options-grid { grid-template-columns: 1fr; }
  table.vocab-table { min-width: 900px; }
}
