/* ============================================================
   PAINEL TRANSPETRO — Design System Dark Mobile-First
   Google Font: Inter (loaded via index.php)
============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #0d1b26;
  --bg-soft:   #111f2e;
  --card:      #162230;
  --card-2:    #1c2d3e;
  --card-3:    #223444;
  --border:    #253848;
  --border-2:  #2f4a5f;
  --text:      #e8eef4;
  --text-dim:  #7fa3bc;
  --text-mute: #4d6b82;
  --accent:    #3ba9f5;
  --accent-2:  #4de8b8;
  --accent-3:  #a78bfa;
  --warn:      #f5a623;
  --danger:    #f55f5f;
  --ok:        #3fd67a;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 2px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.5);
  --nav-h:     64px;
  --top-h:     56px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  overscroll-behavior: none;
}
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; background: none; border: none; color: var(--text); }
img, video { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--top-h);
  background: rgba(13,27,38,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.topbar-logo {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #06111c; font-size: 15px;
}
.topbar-title {
  min-width: 0;
}
.topbar-title h1 {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title span {
  font-size: 11px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.countdown-badge {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px;
  font-size: 12px; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.countdown-badge b { color: var(--accent-2); font-size: 14px; }

/* ---------- BOTTOM NAVIGATION ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(13,27,38,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  padding: 8px 2px;
  font-size: 10px; font-weight: 600;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav-item .nav-icon { font-size: 20px; line-height: 1; }
.nav-item.active { color: var(--accent); }
.nav-item.active::after {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
.nav-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 800;
  border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  padding: 16px 16px calc(var(--nav-h) + 20px);
  max-width: 680px; margin: 0 auto;
}

/* ---------- VIEWS ---------- */
.view { display: none; }
.view.active { display: block; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; } }

.view-title { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.view-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }

/* ---------- CARDS ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* ---------- STATS GRID ---------- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
  text-align: center;
}
.stat-card .num { font-size: 28px; font-weight: 900; color: var(--accent-2); line-height: 1; }
.stat-card .lbl { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }

/* ---------- PROGRESS BAR ---------- */
.prog-bar { height: 6px; background: var(--card-3); border-radius: 4px; overflow: hidden; }
.prog-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width .4s; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:active { background: var(--card-3); border-color: var(--border-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06111c; }
.btn.primary:hover { background: #5bc0ff; }
.btn.success { background: #14261c; border-color: #1f5a3a; color: var(--ok); }
.btn.danger  { background: #2b1414; border-color: #5a2a2a; color: #ffb3b3; }
.btn.ghost   { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- FORM ELEMENTS ---------- */
.field { margin-bottom: 12px; }
.field label { font-size: 12.5px; color: var(--text-dim); display: block; margin-bottom: 5px; }
input[type=text], input[type=password], input[type=number], input[type=date],
textarea, select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent); outline-offset: 0;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 80px; }

/* ---------- CRONOGRAMA — SUBJECT CARDS ---------- */
.subject-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  border-left: 4px solid var(--border);
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.subject-card.phase-1 { border-left-color: var(--accent); }
.subject-card.phase-2 { border-left-color: var(--accent-3); }
.subject-card.phase-3 { border-left-color: var(--warn); }
.subject-card.phase-4 { border-left-color: var(--danger); }
.subject-card.phase-5 { border-left-color: var(--ok); }
.subject-card.current { box-shadow: 0 0 0 2px var(--accent-2), var(--shadow); }

.subj-week { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px; }
.subj-title { font-size: 16px; font-weight: 700; margin: 3px 0 6px; }
.subj-dates { font-size: 12px; color: var(--text-dim); }
.subj-current-tag {
  display: inline-block; background: var(--accent-2); color: #082219;
  font-size: 10.5px; font-weight: 800; padding: 2px 8px;
  border-radius: 999px; margin-left: 8px;
}

.checks-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.check-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px;
  cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.check-pill input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent-2); }
.check-pill.done { background: #14261c; border-color: #1f5a3a; color: var(--ok); }

.subtopics-list { margin: 8px 0 0 18px; font-size: 13px; color: #c0d0da; }
.subtopics-list li { margin-bottom: 2px; }

/* ---------- QUESTÕES ---------- */
.q-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.q-filter-row { display: flex; gap: 8px; }
.q-filter-row select, .q-filter-row input { flex: 1; }

.q-stat-strip { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.q-stat-chip {
  flex-shrink: 0; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 14px; font-size: 12.5px;
  display: flex; align-items: center; gap: 6px;
}
.q-stat-chip b { color: var(--accent-2); }

.question-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.q-meta { font-size: 11.5px; color: var(--text-dim); margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.q-tag { background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.q-enunciado { font-size: 14px; line-height: 1.6; margin-bottom: 14px; white-space: pre-wrap; }

.q-alt {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  margin-bottom: 7px; cursor: pointer; font-size: 13px;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.q-alt .letra { font-weight: 800; color: var(--accent-2); min-width: 20px; }
.q-alt:hover { border-color: var(--border-2); }
.q-alt.selected { border-color: var(--accent); background: #152a3d; }
.q-alt.correct  { border-color: var(--ok); background: #14261c; }
.q-alt.correct .letra { color: var(--ok); }
.q-alt.wrong    { border-color: var(--danger); background: #2b1414; }
.q-alt.wrong .letra { color: var(--danger); }
.q-alt.disabled { cursor: default; }

.q-feedback { font-size: 13px; font-weight: 700; margin: 8px 0 4px; }
.q-feedback.ok  { color: var(--ok); }
.q-feedback.err { color: var(--danger); }

.q-explic {
  margin-top: 10px; display: flex; flex-direction: column; gap: 6px;
}
.q-explic-item {
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: 12.5px; line-height: 1.55;
  border: 1px solid var(--border); background: var(--card-2);
}
.q-explic-item.certa  { border-color: #1f5a3a; background: #14261c; color: #c9f5dc; }
.q-explic-item.errada { border-color: #3a2222; background: #241414; color: #e0bcbc; }

.q-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.q-nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 14px;
}
.q-nav-info { font-size: 13px; color: var(--text-dim); }

/* ---------- FLASHCARDS ---------- */
.flip-card {
  width: 100%; max-width: 500px; margin: 0 auto;
  height: 220px; perspective: 1200px; cursor: pointer;
}
.flip-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d; transition: transform .45s;
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-size: 17px; font-weight: 600;
  background: linear-gradient(160deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
}
.flip-face.back { transform: rotateY(180deg); color: var(--accent-2); }
.flip-hint { text-align: center; font-size: 12px; color: var(--text-mute); margin-top: 8px; }

.fc-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.fc-actions .btn { flex: 1; justify-content: center; }

.deck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.deck-card {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; cursor: pointer;
  transition: border-color .15s;
}
.deck-card:hover { border-color: var(--accent); }
.deck-card.active { border-color: var(--accent-2); background: #152d28; }
.deck-card h4 { font-size: 13px; margin-bottom: 4px; }
.deck-card .deck-count { font-size: 12px; color: var(--text-dim); }

/* ---------- VÍDEOS ---------- */
.video-group-card {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden;
}
.video-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; user-select: none;
}
.video-group-header .grp-title { font-weight: 700; font-size: 14px; }
.video-group-header .grp-count { font-size: 12px; color: var(--text-dim); }
.video-group-body { display: none; border-top: 1px solid var(--border); }
.video-group-body.open { display: block; }

.video-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
}
.video-item:last-child { border-bottom: none; }
.video-item:hover { background: var(--card-3); }
.video-item.playing { background: #14322c; }
.video-item .vi-icon { font-size: 22px; flex-shrink: 0; }
.video-item .vi-info { flex: 1; min-width: 0; }
.video-item .vi-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-item .vi-meta { font-size: 11.5px; color: var(--text-dim); }

.video-player-wrap {
  background: #000; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.video-player-wrap video { width: 100%; display: block; max-height: 320px; background: #000; }
.video-player-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.video-player-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }

/* ---------- ANOTAÇÕES ---------- */
.notes-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.notes-tab-btn {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background: var(--card-2); border: 1px solid var(--border); color: var(--text-dim);
  font-weight: 600; transition: .15s;
}
.notes-tab-btn.active { background: var(--accent); border-color: var(--accent); color: #06111c; }
.note-editor {
  min-height: 300px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px; font-size: 14px;
  line-height: 1.65; color: var(--text); outline: none;
}
.note-editor:focus { border-color: var(--accent); }
.note-toolbar { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.note-toolbar button {
  background: var(--card-2); border: 1px solid var(--border); color: var(--text);
  padding: 5px 10px; border-radius: 6px; font-size: 13px;
}
.note-toolbar button:hover { background: var(--card-3); }
.note-save-status { font-size: 11.5px; color: var(--text-mute); text-align: right; margin-top: 6px; }

/* ---------- SIMULADOS ---------- */
.sim-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  border-left: 4px solid var(--warn);
}
.sim-card.done { border-left-color: var(--ok); }
.sim-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.sim-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.sim-score-row { display: flex; gap: 10px; margin-top: 10px; }
.sim-score-block {
  flex: 1; background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px; text-align: center;
}
.sim-score-block .ss-num { font-size: 22px; font-weight: 900; color: var(--accent-2); }
.sim-score-block .ss-lbl { font-size: 11px; color: var(--text-dim); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #173226; border: 1px solid #1f5a3a; color: var(--ok);
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #2b1414; border-color: #5a2a2a; color: #ffb3b3; }

/* ---------- LOGIN SCREEN ---------- */
.login-wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  width: 100%; max-width: 340px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-lg);
}
.login-logo {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #06111c; font-size: 22px;
}
.login-title { text-align: center; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.login-sub { text-align: center; font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
.login-error { background: #2b1414; border: 1px solid #5a2a2a; color: #ffb3b3;
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; margin-bottom: 12px; text-align: center; }

/* ---------- EMPTY STATES ---------- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }
.empty-state p { font-size: 14px; }

/* ---------- SECTION HEADER ---------- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h2 { font-size: 18px; font-weight: 800; }

/* ---------- PHASE LABEL ---------- */
.phase-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-mute); margin: 20px 0 8px;
}
.phase-label:first-child { margin-top: 0; }

/* ---------- DASH SUBJECT ROW ---------- */
.dash-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.dash-row:last-child { border-bottom: none; }
.dash-row .dr-name { flex: 1; font-size: 13px; min-width: 0; }
.dash-row .dr-week { font-size: 11px; color: var(--text-dim); flex-shrink: 0; }
.dash-row .dr-bar { width: 80px; flex-shrink: 0; }
.dash-row .dr-pct { font-size: 12px; color: var(--text-dim); width: 32px; text-align: right; flex-shrink: 0; }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.pagination button { min-width: 36px; height: 36px; border-radius: var(--radius-sm); font-size: 13px; }
.pagination button.active { background: var(--accent); color: #06111c; font-weight: 700; }
.pagination-info { font-size: 12px; color: var(--text-dim); }

/* ============================================================
   ENGLISH MODULE (Duolingo Style)
============================================================ */
.eng-path-container { display: flex; flex-direction: column; align-items: center; padding: 40px 0; gap: 40px; }
.eng-unit { width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.eng-unit-header { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 16px; width: 100%; text-align: center; margin-bottom: 24px; position: sticky; top: 70px; z-index: 10; }
.eng-unit-title { font-size: 16px; font-weight: 800; color: var(--text); }
.eng-unit-desc { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.eng-nodes { display: flex; flex-direction: column; align-items: center; gap: 30px; position: relative; }
.eng-node { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; transition: transform 0.2s; position: relative; z-index: 2; box-shadow: 0 4px 0 rgba(0,0,0,0.2); }
.eng-node.locked { background: var(--card); border: 3px solid var(--border); color: var(--text-mute); opacity: 0.7; cursor: not-allowed; }
.eng-node.completed { background: var(--ok); color: #06111c; border: 3px solid #2da65e; box-shadow: 0 4px 0 #207a44; }
.eng-node.available { background: var(--accent); color: #06111c; border: 3px solid #2b8cd0; box-shadow: 0 4px 0 #1f6496; animation: bounce 2s infinite; }
.eng-node:active:not(.locked) { transform: translateY(4px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.eng-node-label { position: absolute; top: calc(100% + 8px); font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 6px; }

/* Lesson Mode */
.eng-lesson-view { position: fixed; inset: 0; background: var(--bg); z-index: 200; display: flex; flex-direction: column; }
.eng-header { display: flex; align-items: center; padding: 16px 20px; gap: 16px; }
.eng-close { font-size: 24px; color: var(--text-mute); cursor: pointer; }
.eng-progress-bar { flex: 1; height: 16px; background: var(--card); border-radius: 8px; overflow: hidden; }
.eng-progress-fill { height: 100%; background: var(--ok); transition: width 0.3s ease; }
.eng-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; max-width: 600px; margin: 0 auto; width: 100%; overflow-y: auto; }
.eng-prompt { font-size: 22px; font-weight: 800; margin-bottom: 30px; line-height: 1.4; color: var(--text); }
.eng-options { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.eng-option { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--text); }
.eng-option:hover { background: #1f2c38; }
.eng-option.selected { border-color: var(--accent); background: rgba(63, 169, 245, 0.1); color: var(--accent); }
.eng-option.correct { border-color: var(--ok); background: rgba(63, 214, 122, 0.1); color: var(--ok); }
.eng-option.wrong { border-color: var(--err); background: rgba(245, 101, 101, 0.1); color: var(--err); }

/* Pairs Matching */
.eng-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.eng-pairs-cols { display: flex; width: 100%; gap: 16px; }
.eng-pair-col { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.eng-pair-btn { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 14px 10px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.eng-pair-btn.selected { border-color: var(--accent); background: rgba(63, 169, 245, 0.1); color: var(--accent); }
.eng-pair-btn.wrong { border-color: var(--err); background: rgba(245, 101, 101, 0.1); color: var(--err); }
.eng-pair-btn.matched { visibility: hidden; }

/* Sentence Builder */
.eng-sb-dropzone { min-height: 50px; border-bottom: 2px solid var(--border); width: 100%; margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding-bottom: 10px; }
.eng-sb-bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.eng-sb-word { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 16px; font-weight: 600; cursor: pointer; color: var(--text); box-shadow: 0 4px 0 var(--border); transition: transform 0.1s; }
.eng-sb-word:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }

/* Fill in the blank */
.eng-input { background: var(--card); border: 2px solid var(--border); color: var(--text); padding: 12px 16px; font-size: 18px; border-radius: 8px; text-align: center; width: 100%; outline: none; margin-bottom: 20px; }
.eng-input:focus { border-color: var(--accent); }

.eng-footer { padding: 20px; background: var(--card); border-top: 1px solid var(--border); }
.eng-btn-check { width: 100%; padding: 16px; font-size: 16px; font-weight: 800; text-transform: uppercase; border-radius: 12px; border: none; background: var(--border); color: var(--text-mute); cursor: not-allowed; transition: all 0.2s; }
.eng-btn-check.active { background: var(--ok); color: #06111c; cursor: pointer; box-shadow: 0 4px 0 #207a44; }
.eng-btn-check.active:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }

/* Result Modal bottom */
.eng-result { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.eng-result.show { transform: translateY(0); }
.eng-result.success { background: #d7ffb8; color: #1a4a15; }
.eng-result.error { background: #ffdfe0; color: #8a1318; }
.eng-result-title { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.eng-result-desc { font-size: 15px; font-weight: 600; opacity: 0.9; }
.eng-result-btn { padding: 14px; font-size: 16px; font-weight: 800; text-transform: uppercase; border-radius: 12px; border: none; cursor: pointer; width: 100%; }
.eng-result.success .eng-result-btn { background: #58cc02; color: white; box-shadow: 0 4px 0 #58a700; }
.eng-result.error .eng-result-btn { background: #ff4b4b; color: white; box-shadow: 0 4px 0 #ea2b2b; }
.eng-result-btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
