/* ═══════════════════════════════════════════════════════════════
   LEARN HEBREW — Dark Mode CSS
   Mobile-first, clean, beautiful
═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --bg:          #0d0d14;
  --bg-2:        #13131e;
  --bg-3:        #1c1c2e;
  --bg-4:        #252540;
  --border:      #2e2e50;
  --border-light:#3a3a60;

  --primary:     #7c6af5;
  --primary-h:   #9d8ff7;
  --primary-dim: rgba(124,106,245,.15);

  --accent:      #e8a87c;
  --accent-dim:  rgba(232,168,124,.15);

  --success:     #4caf7d;
  --success-dim: rgba(76,175,125,.15);
  --error:       #e05a5a;
  --error-dim:   rgba(224,90,90,.15);

  --text-1:      #f0f0f8;
  --text-2:      #b0b0cc;
  --text-3:      #7070a0;

  --nav-h:       56px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,.4);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.3);

  --font-body:   'Inter', system-ui, sans-serif;
  --font-hebrew: 'Heebo', 'Arial Hebrew', sans-serif;
  --transition:  .2s ease;
}

/* ── Light Mode ──────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f4f4fb;
  --bg-2:        #ffffff;
  --bg-3:        #eaeaf4;
  --bg-4:        #dcdcee;
  --border:      #c8c8e0;
  --border-light:#b0b0d0;

  --primary:     #6355e0;
  --primary-h:   #7c6af5;
  --primary-dim: rgba(99,85,224,.12);

  --accent:      #c47a3a;
  --accent-dim:  rgba(196,122,58,.12);

  --success:     #2e8a57;
  --success-dim: rgba(46,138,87,.12);
  --error:       #c03030;
  --error-dim:   rgba(192,48,48,.12);

  --text-1:      #12122a;
  --text-2:      #3a3a60;
  --text-3:      #7070a0;

  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
}

/* Fix select arrow color for light mode */
[data-theme="light"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233a3a60' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Hebrew text always uses Heebo */
[dir="rtl"], .hebrew { font-family: var(--font-hebrew); }

/* ── Utility ─────────────────────────────────────────────────── */
.hidden { display: none !important; }
.screen { min-height: 100dvh; }

.error-msg { color: var(--error); font-size: .875rem; margin-top: .5rem; }
.msg { font-size: .875rem; margin-top: .5rem; }
.msg.success { color: var(--success); }
.msg.error   { color: var(--error); }

.section-hint {
  color: var(--text-3);
  font-size: .875rem;
  margin-bottom: 1.25rem;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); }

.btn-secondary {
  background: var(--bg-4);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); color: var(--text-1); }

.btn-full   { width: 100%; }
.btn-large  { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-sm     { padding: .4rem .8rem; font-size: .8rem; }

.btn-wrong {
  flex: 1;
  background: var(--error-dim);
  color: var(--error);
  border: 1px solid var(--error);
  font-size: .95rem;
  padding: .8rem;
}
.btn-wrong:hover { background: var(--error); color: #fff; }

.btn-right {
  flex: 1;
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid var(--success);
  font-size: .95rem;
  padding: .8rem;
}
.btn-right:hover { background: var(--success); color: #fff; }

.btn-audio {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.btn-audio:hover  { background: var(--primary-dim); border-color: var(--primary); }
.btn-audio:active { transform: scale(.9); }

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════════════════════ */
.field-group { display: flex; flex-direction: column; gap: .4rem; }
.field-group label { font-size: .8rem; font-weight: 500; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .65rem .9rem;
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237070a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.search-input { background: var(--bg-3); }

.field-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.field-row .field-group { flex: 1; min-width: 140px; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN SCREEN
═══════════════════════════════════════════════════════════════ */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
  min-height: 100dvh;
}

.login-container {
  width: 100%;
  max-width: 380px;
}

.login-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo-hebrew {
  display: block;
  font-family: var(--font-hebrew);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .5rem;
  text-shadow: 0 0 40px rgba(124,106,245,.4);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: .25rem;
}

.login-subtitle {
  font-size: .9rem;
  color: var(--text-3);
}

.login-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#login-btn .btn-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  max-width: 900px;
  margin: 0 auto;
  gap: .5rem;
}

.nav-logo {
  font-family: var(--font-hebrew);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-right: auto;
}

.nav-tabs {
  display: flex;
  gap: .25rem;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: .35rem .6rem;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-tab .nav-icon { font-size: 1.1rem; }
.nav-tab:hover { color: var(--text-2); background: var(--bg-3); }
.nav-tab.active { color: var(--primary); background: var(--primary-dim); }

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}
.btn-logout:hover { color: var(--error); border-color: var(--error); }

.btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-theme-toggle:hover { background: var(--bg-3); border-color: var(--border-light); color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════════
   APP SECTIONS
═══════════════════════════════════════════════════════════════ */
.app-section {
  display: none;
  padding-top: calc(var(--nav-h) + 1.25rem);
  min-height: 100dvh;
}
.app-section.active { display: block; }

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* ── Sub-tabs ────────────────────────────────────────────────── */
.sub-tabs, .admin-sub-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .75rem;
}

.sub-tab {
  padding: .45rem .9rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.sub-tab:hover  { color: var(--text-2); background: var(--bg-3); }
.sub-tab.active { color: var(--primary); background: var(--primary-dim); }

.sub-section { display: none; }
.sub-section.active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   ALPHABET GRID
═══════════════════════════════════════════════════════════════ */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

@media (min-width: 480px) { .alphabet-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .alphabet-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 800px) { .alphabet-grid { grid-template-columns: repeat(6, 1fr); } }

.letter-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  user-select: none;
}
.letter-card:hover  { border-color: var(--primary); background: var(--bg-3); }
.letter-card:active { transform: scale(.96); }
.letter-card.playing { border-color: var(--accent); background: var(--accent-dim); }

.letter-char {
  font-family: var(--font-hebrew);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  direction: rtl;
}
.letter-final {
  font-family: var(--font-hebrew);
  font-size: 1.1rem;
  color: var(--text-3);
  direction: rtl;
}
.letter-name  { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.letter-sound { font-size: .75rem; color: var(--text-3); }
.letter-example {
  font-family: var(--font-hebrew);
  font-size: .9rem;
  color: var(--accent);
  direction: rtl;
}

/* ═══════════════════════════════════════════════════════════════
   WORDS TABLE
═══════════════════════════════════════════════════════════════ */
.words-controls {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.words-controls .search-input { flex: 1; min-width: 160px; }
.words-controls select { width: auto; }

.words-stats {
  font-size: .85rem;
  color: var(--text-3);
  margin-bottom: .75rem;
}

#words-table-wrap { overflow-x: auto; }

.words-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.words-table th {
  text-align: left;
  padding: .6rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.words-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--bg-3);
  vertical-align: middle;
}
.words-table tr:last-child td { border-bottom: none; }
.words-table tr:hover td { background: var(--bg-2); }

.words-table .cell-hebrew {
  font-family: var(--font-hebrew);
  font-size: 1.1rem;
  font-weight: 600;
  direction: rtl;
  white-space: nowrap;
}
.words-table .cell-translit { color: var(--text-3); font-style: italic; }

.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-learned  { background: var(--success-dim); color: var(--success); }
.badge-new      { background: var(--bg-4); color: var(--text-3); }
.badge-mastered { background: var(--primary-dim); color: var(--primary); }
.badge-admin    { background: var(--accent-dim); color: var(--accent); }
.badge-learner  { background: var(--bg-4); color: var(--text-3); }

.cell-audio { width: 2.5rem; }

/* ═══════════════════════════════════════════════════════════════
   FLASHCARDS
═══════════════════════════════════════════════════════════════ */
.flashcards-start, .flashcards-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}
.flashcards-start h2, .flashcards-done h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.fc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  width: 100%;
  max-width: 400px;
}
.fc-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem;
  text-align: center;
}
.fc-stat-num  { font-size: 1.6rem; font-weight: 700; color: var(--text-1); line-height: 1; }
.fc-stat-lbl  { font-size: .72rem; color: var(--text-3); margin-top: .2rem; }

.flashcards-session { display: flex; flex-direction: column; gap: 1rem; }

.fc-progress-bar-wrap {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.fc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width .4s ease;
  width: 0%;
}

.fc-counter {
  font-size: .85rem;
  color: var(--text-3);
  text-align: center;
}

/* Card */
.fc-card {
  perspective: 1000px;
  min-height: 320px;
  cursor: pointer;
}
.fc-card-inner {
  position: relative;
  min-height: 320px;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.fc-card[data-flipped="true"] .fc-card-inner {
  transform: rotateY(180deg);
}

.fc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
}
.fc-face.fc-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  padding-top: 1.75rem;
}

.fc-hebrew {
  font-family: var(--font-hebrew);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-1);
  text-align: center;
  line-height: 1.2;
  direction: rtl;
}
.fc-flip-btn { margin-top: .5rem; }

.fc-pronunciation {
  font-size: 1.4rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  text-align: center;
}
.fc-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  align-self: center;
}
.fc-english {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
}

.fc-streak-dots {
  display: flex;
  gap: .4rem;
  margin-top: .25rem;
}
.streak-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border);
  transition: background var(--transition);
}
.streak-dot.filled { background: var(--success); border-color: var(--success); }

.fc-answer-btns {
  display: flex;
  gap: .75rem;
  width: 100%;
  margin-top: auto;
}

/* Done screen */
.done-icon { font-size: 3rem; }
.done-stats {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: center;
  min-width: 200px;
}
.done-stat-row { font-size: .9rem; color: var(--text-2); }
.done-stat-row strong { color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════════
   TRANSLATION
═══════════════════════════════════════════════════════════════ */
.translation-idle, .translation-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}
.translation-idle h2, .translation-done h2 { font-size: 1.5rem; font-weight: 600; }

.trans-stats {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  font-size: .85rem;
  color: var(--text-2);
}

.translation-exercise { display: flex; flex-direction: column; gap: 1.25rem; }

.trans-progress {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-3);
}

.trans-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.trans-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-bottom: .75rem;
  font-weight: 600;
}
.trans-english {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.4;
}

.trans-streak-hint {
  font-size: .8rem;
  color: var(--text-2);
  margin: .25rem 0 0;
}

.trans-input-wrap { display: flex; flex-direction: column; gap: .5rem; }
.trans-input {
  font-family: var(--font-hebrew);
  font-size: 1.3rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  text-align: right;
}

.trans-feedback {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.trans-result-label {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.trans-result-label.correct { color: var(--success); }
.trans-result-label.wrong   { color: var(--error); }

.trans-comparison { display: flex; flex-direction: column; gap: .75rem; }
.trans-comp-row { display: flex; flex-direction: column; gap: .25rem; }
.comp-label { font-size: .75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.comp-text {
  font-family: var(--font-hebrew);
  font-size: 1.2rem;
  color: var(--text-2);
  direction: rtl;
  text-align: right;
}
.comp-correct { color: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   ADMIN
═══════════════════════════════════════════════════════════════ */
.admin-sub { display: none; }
.admin-sub.active { display: block; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.admin-toolbar h3 { font-size: 1.1rem; font-weight: 600; }

.admin-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.admin-list { display: flex; flex-direction: column; gap: .5rem; }

.admin-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-hebrew {
  font-family: var(--font-hebrew);
  font-size: 1.1rem;
  font-weight: 600;
  direction: rtl;
}
.admin-row-sub { font-size: .8rem; color: var(--text-3); }
.admin-row-actions { display: flex; gap: .5rem; flex-shrink: 0; }

.btn-delete {
  background: var(--error-dim);
  color: var(--error);
  border: 1px solid var(--error);
  border-radius: var(--radius);
  padding: .3rem .65rem;
  font-size: .78rem;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-delete:hover { background: var(--error); color: #fff; }

.btn-edit {
  background: var(--bg-4);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .3rem .65rem;
  font-size: .78rem;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-edit:hover { background: var(--border); color: var(--text-1); }

/* ── Inline sentence edit form ──────────────────────────────── */
.sent-edit-form {
  width: 100%;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sent-edit-fields {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.sent-edit-fields input {
  flex: 1;
  min-width: 140px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .6rem;
  font-size: .85rem;
  color: var(--text-1);
}
.sent-edit-fields input:focus { outline: none; border-color: var(--primary); }
.sent-edit-btns { display: flex; gap: .5rem; }

/* Seed section */
.seed-status {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.seed-log {
  margin-top: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: monospace;
  font-size: .8rem;
  color: var(--text-2);
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.seed-log .log-ok   { color: var(--success); }
.seed-log .log-err  { color: var(--error); }
.seed-log .log-info { color: var(--text-3); }

/* Users list */
.user-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.user-email { flex: 1; font-size: .9rem; font-weight: 500; }
.user-meta  { font-size: .78rem; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1.25rem;
  font-size: .875rem;
  color: var(--text-1);
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error   { border-color: var(--error);   color: var(--error); }

/* ═══════════════════════════════════════════════════════════════
   LOADING STATE
═══════════════════════════════════════════════════════════════ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-3);
  font-size: .9rem;
  gap: .5rem;
}
.spin { animation: spin 1s linear infinite; display: inline-block; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
═══════════════════════════════════════════════════════════════ */

/* On small screens hide tab labels so logout button stays visible */
@media (max-width: 499px) {
  .nav-tab .nav-label { display: none; }
  .nav-tab { padding: .35rem .55rem; }
}

@media (min-width: 600px) {
  .nav-tab { font-size: .8rem; padding: .4rem .9rem; }
  .fc-hebrew { font-size: 4rem; }
  .fc-face { padding: 2.5rem 2rem; }
  .words-table td, .words-table th { padding: .75rem 1rem; }
}

@media (min-width: 900px) {
  .section-inner { padding: 0 2rem 3rem; }
  .admin-form .field-row { flex-wrap: nowrap; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN — toggle learned button + progress section
═══════════════════════════════════════════════════════════════ */
.btn-toggle-learned {
  font-size: .75rem;
  padding: .3rem .65rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-learned {
  background: rgba(74, 222, 128, .15);
  border-color: var(--success);
  color: var(--success);
}
.btn-not-learned {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}
.btn-not-learned:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Progress tab */
.progress-stats {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.prog-stat-row {
  font-size: .9rem;
  color: var(--text-2);
}
.prog-stat-row strong { color: var(--text-1); }

.progress-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.progress-action-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.progress-action-block h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 .25rem;
}
.progress-action-block .section-hint { margin: 0 0 .75rem; }

.danger-zone { border-color: rgba(239, 68, 68, .4); }

.btn-danger {
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 8px;
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.btn-danger:hover { background: rgba(239, 68, 68, .1); }

/* ── Flashcard "New word" badge ─────────────────────────────── */
.badge-new-word {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: rgba(251,191,36,.15);
  color: #f59e0b;
  border: 1px solid rgba(251,191,36,.35);
  margin-bottom: .5rem;
}

/* ── Flashcard "Mastery check" badge ────────────────────────── */
.badge-mastery-check {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(124,106,245,.35);
  margin-bottom: .5rem;
}

/* Allow 4-stat row to wrap gracefully on very small screens */
#flashcards-stats {
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   HOME SECTION
═══════════════════════════════════════════════════════════════ */
.home-hero {
  text-align: center;
  padding: 1.75rem 0 1.5rem;
}
.home-hero-hebrew {
  font-family: var(--font-hebrew);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 40px rgba(124,106,245,.35);
  margin-bottom: .4rem;
}
.home-hero-sub {
  font-size: .95rem;
  color: var(--text-3);
}

/* 4-stat grid */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 480px) {
  .home-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem .75rem;
  text-align: center;
}
.home-stat-accent { border-color: var(--success); }
.home-stat-primary { border-color: var(--primary); }
.home-stat-dim    { border-color: var(--border); opacity: .75; }

.home-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}
.home-stat-accent .home-stat-num  { color: var(--success); }
.home-stat-primary .home-stat-num { color: var(--primary); }

.home-stat-lbl {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Progress bar */
.home-progress-wrap {
  margin-bottom: 1rem;
}
.home-progress-bg {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: .4rem;
}
.home-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width .6s ease;
}
.home-progress-pct {
  font-size: .8rem;
  color: var(--text-3);
  text-align: right;
}

/* All-time accuracy row */
.home-accuracy {
  font-size: .875rem;
  color: var(--success);
  background: var(--success-dim);
  border: 1px solid rgba(76,175,125,.25);
  border-radius: var(--radius);
  padding: .55rem 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Quick-start action buttons */
.home-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}
.home-action-btn {
  width: 100%;
  font-size: 1rem;
  padding: .9rem 1.5rem;
  justify-content: center;
}

@media (min-width: 520px) {
  .home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  /* Materials button spans full width on the second row */
  .home-action-btn:last-child {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN — sentences pagination
═══════════════════════════════════════════════════════════════ */
.sent-page-info {
  font-size: .8rem;
  color: var(--text-3);
  padding: .25rem 0 .75rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 .5rem;
}
.pag-page {
  font-size: .85rem;
  color: var(--text-2);
  min-width: 100px;
  text-align: center;
}
.pag-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── AI-generated sentence badges ─────────────────────────── */
.badge-ai-generated,
.badge-ai-pending,
.badge-ai-approved {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  vertical-align: middle;
}
.badge-ai-generated,
.badge-ai-pending {
  background: rgba(124,106,245,.15);
  color: var(--primary);
  border: 1px solid rgba(124,106,245,.35);
}
.badge-ai-approved {
  background: rgba(80,180,100,.15);
  color: #4caf70;
  border: 1px solid rgba(80,180,100,.35);
}

/* ── Basic (free) tier badge ───────────────────────────────── */
.badge-basic {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: rgba(255,200,50,.15);
  color: #c8a000;
  border: 1px solid rgba(255,200,50,.35);
  vertical-align: middle;
}

/* ── Sentence filter bar ───────────────────────────────────── */
.sent-filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.sent-filter-btn {
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.sent-filter-btn:hover { background: var(--bg-3); }
.sent-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Approve button ────────────────────────────────────────── */
.btn-approve {
  padding: .3rem .7rem;
  border-radius: 6px;
  border: 1px solid rgba(80,180,100,.5);
  background: rgba(80,180,100,.12);
  color: #4caf70;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-approve:hover { background: rgba(80,180,100,.25); }

/* ── isBasic checkbox label in edit form ───────────────────── */
.sent-edit-basic-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-2);
  cursor: pointer;
}

/* ── Shown (seen but not yet learned) word badge ─────────── */
.badge-shown {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: rgba(112,112,160,.2);
  color: var(--text-2);
  border: 1px solid rgba(112,112,160,.35);
  vertical-align: middle;
}

/* ── Custom (manually added) sentence badge ─────────────── */
.badge-custom {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(232,168,124,.35);
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   HOME — daily streak banner
═══════════════════════════════════════════════════════════════ */
.home-streak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(232,168,124,.1));
  border: 1px solid rgba(245,158,11,.35);
  border-radius: var(--radius);
  padding: .6rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 1rem;
  text-align: center;
}
.home-streak .streak-fire { font-size: 1.3rem; }
.home-streak .streak-best {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-3);
  margin-left: .25rem;
}

/* ═══════════════════════════════════════════════════════════════
   FLASHCARDS — mode selector & category grid
═══════════════════════════════════════════════════════════════ */
.fc-mode-section,
.fc-category-section {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.fc-mode-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .6rem;
}

.fc-mode-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .fc-mode-btns { grid-template-columns: 1fr; }
}

.fc-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .85rem .6rem;
  border-radius: var(--radius);
  line-height: 1.2;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.fc-mode-btn:active { transform: scale(.97); }
.fc-mode-icon { font-size: 1.5rem; }
.fc-mode-name { font-size: .85rem; font-weight: 600; }
.fc-mode-desc { font-size: .72rem; color: var(--text-3); }
.fc-mode-btn.btn-primary .fc-mode-desc { color: rgba(255,255,255,.7); }

/* Category grid */
.fc-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
}

@media (max-width: 480px) {
  .fc-category-grid { grid-template-columns: repeat(3, 1fr); }
}

.fc-cat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem .4rem .55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  user-select: none;
}
.fc-cat-card:hover  { border-color: var(--primary); background: var(--bg-3); }
.fc-cat-card:active { transform: scale(.95); }

.fc-cat-emoji { font-size: 1.6rem; line-height: 1; }
.fc-cat-name  {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  text-transform: capitalize;
  line-height: 1.2;
}
.fc-cat-count {
  font-size: .65rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════════════════
   PRACTICE HUB — sub-tabs for Flashcards / Sentences / Conjugate
   ══════════════════════════════════════════════════════════════ */

.practice-sub-tab {
  /* extend .sub-tab styles */
  flex: 1;
  padding: .5rem .75rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.practice-sub-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.practice-sub-tab:hover:not(.active) {
  color: var(--text-2);
}

.practice-sub-section {
  margin-top: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   CONJUGATION LESSONS (Materials/Conjugations tab)
   ══════════════════════════════════════════════════════════════ */

.conj-ref-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Lesson card */
.conj-lesson-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

/* Accordion header — full-width clickable button */
.conj-lesson-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.conj-lesson-header:hover .conj-lesson-title { color: var(--primary); }
.conj-lesson-header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.conj-lesson-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.conj-lesson-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  transition: color var(--transition);
}
.conj-lesson-chevron {
  font-size: .9rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.conj-lesson-card[data-open="true"] .conj-lesson-chevron {
  transform: rotate(180deg);
}

/* Collapsible body */
.conj-lesson-body {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1rem;
  margin-top: .25rem;
  border-top: 1px solid var(--border);
}
.conj-lesson-card[data-open="true"] .conj-lesson-body {
  display: flex;
}

.conj-lesson-intro {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* Content blocks */
.conj-block-text {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.conj-block-callout {
  font-size: .85rem;
  color: var(--text-2);
  background: var(--bg-3);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  line-height: 1.6;
}

.conj-block-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  margin: 0 0 .5rem;
}

/* Example list (rows with audio + Hebrew + translit + English) */
.conj-example-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.conj-example-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .65rem;
  background: var(--bg-3);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.conj-ex-root {
  font-family: 'Heebo', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(124,106,245,.12);
  border-radius: 999px;
  padding: .1rem .5rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.conj-ex-hebrew {
  font-family: 'Heebo', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  flex-shrink: 0;
}
.conj-ex-translit {
  font-style: italic;
  font-size: .82rem;
  color: var(--accent);
  flex-shrink: 0;
}
.conj-ex-english {
  font-size: .82rem;
  color: var(--text-3);
  margin-left: auto;
}

/* Table block */
.conj-block-table-wrap {
  display: flex;
  flex-direction: column;
}
.conj-table-wrap {
  overflow-x: auto;
}
.conj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.conj-table th {
  text-align: left;
  padding: .45rem .6rem;
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.conj-table td {
  padding: .55rem .6rem;
  border-bottom: 1px solid var(--bg-3);
  vertical-align: top;
  line-height: 1.5;
}
.conj-table tr:last-child td { border-bottom: none; }
.conj-table tr:hover td { background: var(--bg-3); }
.conj-table-key {
  font-size: .82rem;
  color: var(--text-3);
  white-space: nowrap;
  font-weight: 500;
}
.conj-table-heb {
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}

/* Practice button inside lesson card */
.conj-lesson-practice-btn {
  align-self: flex-start;
  font-size: .85rem;
  padding: .5rem 1rem;
}

/* ══════════════════════════════════════════════════════════════
   CONJUGATION PRACTICE (Practice/Conjugate sub-section)
   ══════════════════════════════════════════════════════════════ */

/* Start screen */
.conj-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}
.conj-start h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.conj-start-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  width: 100%;
  max-width: 420px;
}
@media (min-width: 480px) {
  .conj-start-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Progress bar */
.conj-progress-wrap {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: .5rem;
}
.conj-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width .4s ease;
  width: 0%;
}

.conj-counter {
  font-size: .82rem;
  color: var(--text-3);
  text-align: center;
  margin-bottom: .25rem;
}

/* Practice layout */
.conj-practice {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Question card */
.conj-question-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.conj-prompt-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  font-weight: 600;
}
.conj-verb-phrase {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.conj-streak-dots {
  display: flex;
  gap: .4rem;
  margin-top: .15rem;
}

/* Choice buttons grid */
.conj-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.conj-choice-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-family: 'Heebo', sans-serif;
  font-size: 1.3rem;
  padding: 1rem .75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform .1s;
  direction: rtl;
  text-align: center;
  line-height: 1.3;
}
.conj-choice-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(124,106,245,.1);
}
.conj-choice-btn:active:not(:disabled) {
  transform: scale(.97);
}
.conj-choice-btn:disabled {
  cursor: not-allowed;
  opacity: .75;
}
.conj-choice-correct {
  background: rgba(76,175,125,.15) !important;
  border-color: var(--success) !important;
  color: var(--success) !important;
}
.conj-choice-wrong {
  background: rgba(224,90,90,.15) !important;
  border-color: var(--error) !important;
  color: var(--error) !important;
}

/* Feedback panel */
.conj-feedback {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.conj-feedback-result {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.conj-feedback-result.correct { color: var(--success); }
.conj-feedback-result.wrong   { color: var(--error); }
.conj-feedback-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.conj-feedback-label {
  font-size: .7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.conj-answer-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.conj-correct-form {
  font-family: 'Heebo', sans-serif;
  font-size: 1.5rem;
  color: var(--success);
  font-weight: 700;
}
.conj-correct-translit {
  font-size: .9rem;
  color: var(--text-3);
  font-style: italic;
}

/* Done screen */
.conj-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}
.conj-done h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Done stats rows (shared with translation done screen) */
.done-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .75rem;
  background: var(--bg-3);
  border-radius: var(--radius);
  font-size: .9rem;
  gap: 1rem;
}
.done-stat-highlight {
  background: rgba(76,175,125,.12);
  color: var(--success);
}
.done-stat-highlight strong { color: var(--success); }

/* Audio button used inside conjugation table */
.conj-audio-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: .25rem .4rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  opacity: .7;
}
.conj-audio-btn:hover { background: var(--bg-3); opacity: 1; }
