*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f0; color: #1a1a1a; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; }
.container { width: 100%; max-width: 640px; }
.back-link { font-size: 13px; color: #666; text-decoration: none; display: inline-block; margin-bottom: 0.75rem; }
.back-link:hover { color: #1a1a1a; }
h1 { font-size: 22px; font-weight: 500; margin-bottom: 0.25rem; }
.title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 0.25rem; }
.streak-badge { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: #fff3e0; border: 1px solid #ffb74d; color: #e65100; font-weight: 600; white-space: nowrap; }
.subtitle { font-size: 14px; color: #666; margin-bottom: 1rem; }

/* Tab bar */
.tab-bar { display: flex; gap: 0; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; }
.tab-btn { flex: 1; font-size: 13px; padding: 8px 4px; border: none; background: #fff; color: #666; cursor: pointer; font-family: inherit; transition: all 0.15s; font-weight: 500; }
.tab-btn:not(:last-child) { border-right: 1px solid #ccc; }
.tab-btn:hover { background: #f5f5f5; }
.tab-btn.active { background: #1a1a1a; color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Mode & filter rows */
.mode-row { display: flex; gap: 6px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.mode-btn { font-size: 12px; padding: 4px 12px; border-radius: 99px; border: 1px solid #ccc; background: transparent; color: #666; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.mode-btn:hover { background: #eee; }
.mode-btn.active { background: #e3e0ff; border-color: #7c6bc4; color: #4a3a8a; font-weight: 500; }
.mode-btn.active-review { background: #fce4ec; border-color: #e57373; color: #b71c1c; font-weight: 500; }

.topic-row { display: flex; gap: 6px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.topic-btn { font-size: 11px; padding: 3px 10px; border-radius: 99px; border: 1px solid #ccc; background: transparent; color: #666; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.topic-btn:hover { background: #eee; }
.topic-btn.active { background: #e3e0ff; border-color: #7c6bc4; color: #4a3a8a; font-weight: 500; }

/* Progress */
.qz-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 8px; }
.qz-progress { font-size: 13px; color: #666; }
.score-live { font-size: 12px; color: #0f6e56; font-weight: 500; }
.progress-bar-wrap { background: #e0e0e0; border-radius: 99px; height: 6px; margin-bottom: 1.2rem; overflow: hidden; }
.progress-bar-fill { height: 6px; background: #7c6bc4; border-radius: 99px; transition: width 0.3s; }

/* Timer */
.timer-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0.75rem; font-size: 14px; font-weight: 600; }
.timer-bar.warn { color: #e65100; }
.timer-bar.danger { color: #c62828; }

/* Card */
.card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; }

/* Question */
.q-box { background: #EEEDFE; border-radius: 10px; padding: 14px 16px; margin-bottom: 1.25rem; }
.q-text { font-size: 15px; font-weight: 500; color: #534AB7; line-height: 1.55; }
.q-topic { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #e3e0ff; color: #4a3a8a; font-weight: 500; display: inline-block; margin-bottom: 0.75rem; }

/* Mastery badge */
.mastery-badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 99px; margin-left: 6px; font-weight: 500; }
.mastery-new { background: #f0f0f0; color: #999; }
.mastery-learning { background: #fce4ec; color: #c62828; }
.mastery-familiar { background: #e3f2fd; color: #1565c0; }
.mastery-mastered { background: #e1f5ee; color: #0f6e56; }

/* Options */
.qz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; cursor: pointer; transition: background 0.15s, border-color 0.15s; font-family: inherit; font-size: 14px; color: #1a1a1a; line-height: 1.45; }
.qz-opt:hover:not(.disabled) { background: #f5f5f5; border-color: #999; }
.opt-label { min-width: 26px; height: 26px; border-radius: 6px; background: #f5f5f0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: #666; flex-shrink: 0; transition: background 0.15s; }
.qz-opt.correct { background: #e1f5ee; border-color: #1d9e75; }
.qz-opt.correct .opt-label { background: #1d9e75; color: #fff; }
.qz-opt.wrong { background: #faece7; border-color: #d85a30; }
.qz-opt.wrong .opt-label { background: #d85a30; color: #fff; }
.qz-opt.disabled { cursor: default; }

.qz-feedback { font-size: 14px; min-height: 22px; margin-top: 12px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.qz-feedback.ok { color: #0f6e56; }
.qz-feedback.bad { color: #993c1d; }
.next-btn { background: #534AB7; border: none; border-radius: 8px; padding: 8px 20px; font-size: 14px; font-weight: 500; color: #fff; cursor: pointer; font-family: inherit; }
.next-btn:hover { background: #433aa0; }

/* Audio button */
.audio-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; vertical-align: middle; margin-left: 8px; }
.audio-btn:hover { background: #f0f0f0; border-color: #999; }
.audio-btn svg { width: 16px; height: 16px; fill: #666; }

/* Done */
.qz-done { text-align: center; padding: 2rem 0; }
.qz-done .big { font-size: 48px; font-weight: 500; margin-bottom: 0.25rem; }
.qz-done .pct { font-size: 22px; font-weight: 500; margin-bottom: 0.5rem; }
.qz-done .sub { font-size: 15px; color: #666; margin-bottom: 1rem; }
.score-box { display: inline-block; border-radius: 16px; padding: 1.25rem 2.5rem; margin-bottom: 1rem; }
.restart-btn { font-size: 14px; padding: 9px 28px; border-radius: 8px; border: 1px solid #ccc; background: transparent; color: #1a1a1a; cursor: pointer; font-family: inherit; margin: 4px; }
.restart-btn:hover { background: #f0f0f0; }
.restart-btn.review-btn { border-color: #e57373; color: #b71c1c; }

/* Exam result */
.exam-pass { color: #0f6e56; font-size: 18px; font-weight: 600; margin-top: 0.75rem; }
.exam-fail { color: #c62828; font-size: 18px; font-weight: 600; margin-top: 0.75rem; }
.exam-result { margin-top: 1rem; padding: 1rem; background: #f5f5f0; border-radius: 8px; text-align: left; }
.er-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.er-label { color: #666; }
.er-val { font-weight: 600; }

/* Missed review */
.missed-list { margin-top: 1rem; text-align: left; }
.missed-title { font-size: 12px; font-weight: 600; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.missed-item { background: #fff; border-radius: 8px; border-left: 3px solid #e57373; padding: 10px 14px; margin-bottom: 8px; }
.missed-q { font-size: 13px; color: #666; margin-bottom: 4px; }
.missed-a { font-size: 13px; font-weight: 500; color: #0f6e56; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1rem; }
.stat-card { background: #f5f5f0; border-radius: 8px; padding: 0.75rem; text-align: center; }
.stat-num { font-size: 22px; font-weight: 500; }
.stat-label { font-size: 12px; color: #666; margin-top: 2px; }

/* Dashboard */
.dash-toggle { font-size: 13px; padding: 8px 16px; border-radius: 8px; border: 1px solid #ccc; background: transparent; color: #666; cursor: pointer; font-family: inherit; width: 100%; margin-top: 0.75rem; }
.dash-toggle:hover { background: #eee; }
.dashboard { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 1.5rem; margin-top: 0.75rem; display: none; }
.dashboard.open { display: block; }
.dash-section { margin-bottom: 1.5rem; }
.dash-section:last-child { margin-bottom: 0; }
.dash-title { font-size: 14px; font-weight: 600; margin-bottom: 0.75rem; }

.mastery-bar { display: flex; height: 24px; border-radius: 6px; overflow: hidden; margin-bottom: 0.5rem; }
.mastery-bar div { transition: width 0.3s; }
.mb-mastered { background: #1d9e75; }
.mb-familiar { background: #42a5f5; }
.mb-learning { background: #ef5350; }
.mb-new { background: #e0e0e0; }
.mastery-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #666; }
.mastery-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.legend-mastered::before { background: #1d9e75 !important; }
.legend-familiar::before { background: #42a5f5 !important; }
.legend-learning::before { background: #ef5350 !important; }
.legend-new::before { background: #e0e0e0 !important; }

.overall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ov-card { background: #f5f5f0; border-radius: 8px; padding: 0.75rem; text-align: center; }
.ov-num { font-size: 20px; font-weight: 600; }
.ov-label { font-size: 11px; color: #666; margin-top: 2px; }

.weak-list { list-style: none; }
.weak-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.weak-list li:last-child { border-bottom: none; }
.weak-word { font-weight: 500; }
.weak-acc { color: #993c1d; font-size: 12px; }

.history-row { display: flex; gap: 6px; align-items: flex-end; height: 60px; margin-bottom: 0.5rem; }
.history-bar { flex: 1; border-radius: 4px 4px 0 0; background: #7c6bc4; min-height: 2px; }
.history-bar.empty { background: #e0e0e0; }
.history-labels { display: flex; gap: 6px; font-size: 10px; color: #999; }
.history-labels span { flex: 1; text-align: center; }

.reset-btn { font-size: 11px; color: #999; background: none; border: none; cursor: pointer; margin-top: 1rem; text-decoration: underline; font-family: inherit; }
.reset-btn:hover { color: #c62828; }

/* Exam start */
.exam-start { text-align: center; padding: 2rem 0; }
.exam-start .es-title { font-size: 20px; font-weight: 600; margin-bottom: 0.5rem; }
.exam-start .es-desc { font-size: 14px; color: #666; margin-bottom: 1.5rem; }
.exam-start .es-rules { text-align: left; font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 1.5rem; padding: 12px 16px; background: #fafaf5; border-radius: 8px; }
.exam-lang-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 1.5rem; }
.exam-lang-label { font-size: 13px; color: #666; font-weight: 500; }
.exam-lang-btn { font-size: 13px; padding: 6px 18px; border-radius: 99px; border: 1px solid #ccc; background: transparent; color: #666; cursor: pointer; font-family: inherit; font-weight: 500; transition: all 0.15s; }
.exam-lang-btn:hover { background: #eee; }
.exam-lang-btn.active { background: #e3e0ff; border-color: #7c6bc4; color: #4a3a8a; }
.exam-start-btn { font-size: 15px; padding: 12px 36px; border-radius: 8px; border: none; background: #534AB7; color: #fff; cursor: pointer; font-family: inherit; font-weight: 500; }
.exam-start-btn:hover { background: #433aa0; }
.real-exams-sep { display: flex; align-items: center; gap: 10px; margin: 1.75rem 0 1rem; color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.real-exams-sep::before, .real-exams-sep::after { content: ""; flex: 1; height: 1px; background: #e0e0e0; }
.real-exams-list { display: flex; flex-direction: column; gap: 10px; }
.real-exam-card { text-align: left; width: 100%; background: #fafaf5; border: 1px solid #e0dcf0; border-radius: 10px; padding: 14px 16px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.real-exam-card:hover { background: #f0edfb; border-color: #7c6bc4; transform: translateY(-1px); }
.real-exam-card .rec-title { font-size: 15px; font-weight: 600; color: #4a3a8a; margin-bottom: 3px; }
.real-exam-card .rec-desc { font-size: 12px; color: #666; line-height: 1.4; }
.real-exam-card .rec-last { font-size: 11px; color: #888; margin-top: 6px; font-weight: 500; }

/* Study Guide */
.guide-intro { font-size: 13px; color: #666; margin-bottom: 1rem; }
.guide-section { margin-bottom: 8px; }
.guide-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; border: 1px solid; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.guide-toggle.open { border-radius: 8px 8px 0 0; }
.guide-toggle .gt-right { font-size: 12px; font-weight: 400; }
.guide-body { border: 1px solid; border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }
.guide-row { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 14px; }
.guide-row:nth-child(odd) { background: #fff; }
.guide-row:nth-child(even) { background: #f9f9f5; }
.guide-row:not(:first-child) { border-top: 1px solid #f0f0f0; }
.guide-q { font-size: 13px; color: #888; padding-right: 8px; line-height: 1.45; }
.guide-a { font-size: 13px; font-weight: 500; color: #1a1a1a; line-height: 1.45; }
/* Bilingual view */
.bi-filters { display: flex; gap: 6px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.bi-count { font-size: 13px; color: #666; margin-bottom: 1rem; }
.bi-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.bi-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.bi-tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #e3e0ff; color: #4a3a8a; font-weight: 500; }
.bi-num { font-size: 11px; color: #bbb; }
.bi-cols { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 500px) { .bi-cols { grid-template-columns: 1fr; } }
.bi-col { padding: 12px 16px; }
.bi-col:first-child { border-right: 1px solid #f0f0f0; }
@media (max-width: 500px) { .bi-col:first-child { border-right: none; border-bottom: 1px solid #f0f0f0; } }
.bi-lang { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #999; margin-bottom: 6px; }
.bi-q { font-size: 14px; font-weight: 500; color: #1a1a1a; line-height: 1.5; margin-bottom: 8px; }
.bi-opts { font-size: 13px; color: #555; line-height: 1.7; }
.bi-correct { color: #0f6e56; font-weight: 600; }
.bi-answer-hidden { text-align: center; padding: 8px 16px 12px; border-top: 1px solid #f0f0f0; }
.bi-reveal { font-size: 12px; padding: 4px 14px; border-radius: 99px; border: 1px solid #ccc; background: transparent; color: #666; cursor: pointer; font-family: inherit; }
.bi-reveal:hover { background: #e1f5ee; border-color: #1d9e75; color: #0f6e56; }
.bi-answer-shown { text-align: center; padding: 6px 16px 10px; border-top: 1px solid #e1f5ee; background: #f8fdf9; font-size: 13px; font-weight: 500; color: #0f6e56; }
.bi-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 1rem; }
.bi-pager button { font-size: 13px; padding: 6px 16px; border-radius: 8px; border: 1px solid #ccc; background: transparent; color: #1a1a1a; cursor: pointer; font-family: inherit; }
.bi-pager button:hover { background: #f0f0f0; }
.bi-pager button:disabled { opacity: 0.4; cursor: default; }
.bi-pager span { font-size: 13px; color: #666; }

.user-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 13px; color: #666; }
.logout-btn { font-size: 12px; padding: 3px 12px; border-radius: 99px; border: 1px solid #ccc; background: transparent; color: #666; cursor: pointer; font-family: inherit; }
.logout-btn:hover { background: #fce4ec; border-color: #e57373; color: #b71c1c; }
.save-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 2px 6px; opacity: 0.3; transition: opacity 0.15s; vertical-align: middle; }
.save-btn:hover { opacity: 0.7; }
.save-btn.saved { opacity: 1; }
.saved-count { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #fff3e0; color: #e65100; font-weight: 500; margin-left: 6px; }
.qz-exp { font-size: 12px; color: #666; margin-top: 4px; font-style: italic; line-height: 1.4; width: 100%; font-weight: 400; }

/* Map Quiz */
.map-modes { display: flex; gap: 6px; margin-bottom: 1rem; flex-wrap: wrap; }
.map-container { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 12px; margin-bottom: 1rem; overflow: hidden; }
.map-svg { width: 100%; height: auto; display: block; }
.map-region { transition: opacity 0.15s, fill 0.2s; }
.map-region-clickable:hover { opacity: 0.7; cursor: pointer; }
.map-info { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; min-height: 60px; }
.map-info-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: #1a1a1a; }
.map-info-row { font-size: 13px; color: #444; margin-bottom: 4px; line-height: 1.5; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; }
.map-legend-item { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #555; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.map-legend-item:hover { background: #f0f0f0; }
.map-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.map-quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 13px; color: #666; }
.map-quiz-score { color: #0f6e56; font-weight: 500; }
.map-hint { font-size: 13px; color: #e65100; background: #fff3e0; padding: 8px 14px; border-radius: 8px; margin-top: 8px; }
.map-feedback { text-align: center; padding: 12px; border-radius: 10px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.map-fb-ok { background: #E1F5EE; color: #0F6E56; }
.map-fb-bad { background: #FAECE7; color: #993C1D; }

/* Lessons - List */
.les-grid { display: flex; flex-direction: column; gap: 12px; }
.les-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 14px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; overflow: hidden; }
.les-card:hover { border-color: #bbb; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }
.les-card-inner { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.les-icon { font-size: 26px; line-height: 1; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.les-info { flex: 1; min-width: 0; }
.les-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.les-meta { font-size: 12px; color: #888; margin-bottom: 4px; }
.les-chip { font-size: 11px; padding: 2px 8px; border-radius: 99px; display: inline-block; font-weight: 500; }

/* Lessons - Detail */
.les-back { font-size: 13px; color: #666; background: none; border: none; cursor: pointer; font-family: inherit; padding: 4px 0; margin-bottom: 1rem; display: flex; align-items: center; gap: 4px; }
.les-back:hover { color: #1a1a1a; }
.les-hero { border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem; text-align: center; border: 1px solid transparent; }
.les-hero-icon { font-size: 36px; margin-bottom: 6px; }
.les-hero-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.les-hero-chip { font-size: 12px; padding: 3px 12px; border-radius: 99px; font-weight: 600; display: inline-block; }
.les-section { margin-bottom: 10px; }
.les-section-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px 16px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.les-section-toggle:hover { background: #f9f9f5; }
.les-section-toggle.open { border-radius: 10px 10px 0 0; border-bottom-color: transparent; }
.les-section-body { background: #fff; border: 1px solid #e0e0e0; border-top: none; border-radius: 0 0 10px 10px; padding: 18px; font-size: 14px; line-height: 1.8; color: #333; }
.les-section-body p { margin-bottom: 0.75rem; }
.les-section-body p:last-child { margin-bottom: 0; }
.les-section-body strong { color: #1a1a1a; }
.les-tips { background: #fafaf5; border: 1px solid #e0e0e0; border-radius: 12px; padding: 1.25rem; margin-top: 1.25rem; }
.les-tips-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.les-tips-icon { font-size: 18px; }
.les-tips-title { font-size: 14px; font-weight: 600; }
.les-tip { font-size: 13px; color: #555; line-height: 1.6; padding: 6px 0 6px 12px; border-left: 3px solid; margin-bottom: 4px; }
.les-cta { display: block; width: 100%; padding: 14px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; font-family: inherit; margin-top: 1.5rem; text-align: center; transition: opacity 0.15s; }
.les-cta:hover { opacity: 0.9; }
.les-nav { display: flex; justify-content: space-between; margin-top: 1.25rem; }
.les-nav button { font-size: 13px; padding: 8px 18px; border-radius: 8px; border: 1px solid #ccc; background: transparent; color: #1a1a1a; cursor: pointer; font-family: inherit; transition: background 0.12s; }
.les-nav button:hover { background: #f0f0f0; }

/* AI Quiz */
.ai-header { text-align: center; margin-bottom: 1.25rem; padding: 1.5rem; background: linear-gradient(135deg, #EEEDFE 0%, #E6F1FB 100%); border-radius: 14px; }
.ai-badge { display: inline-block; font-size: 11px; padding: 3px 12px; border-radius: 99px; background: #534AB7; color: #fff; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.ai-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.ai-desc { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }
.ai-qz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.ai-cat-tag { font-size: 12px; padding: 4px 12px; border-radius: 99px; font-weight: 600; }
.ai-lang-toggle { display: flex; gap: 6px; margin-bottom: 0.75rem; }
.ai-q-text { font-size: 16px; font-weight: 500; line-height: 1.6; color: #1a1a1a; margin-bottom: 1.25rem; }
.ai-explanation { font-size: 13px; color: #555; line-height: 1.6; padding: 10px 14px; background: #fafaf5; border-radius: 8px; margin-top: 8px; border-left: 3px solid #1d9e75; }

/* Lessons - progress bar (shared with AI) */
.les-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.les-bar { flex: 1; height: 5px; background: #eee; border-radius: 99px; overflow: hidden; }
.les-fill { height: 100%; border-radius: 99px; transition: width 0.3s; }
.les-pct { font-size: 11px; font-weight: 600; min-width: 44px; text-align: right; }
.les-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.les-chip.les-more { color: #999; }
.les-sub { font-size: 12px; color: #888; font-style: italic; margin-bottom: 6px; }

/* XP / Levels */
.xp-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.xp-level { font-size: 12px; font-weight: 600; color: #534AB7; }
.xp-count { font-size: 11px; color: #888; }
.xp-track { height: 6px; background: #e0e0e0; border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.xp-fill { height: 100%; background: linear-gradient(90deg, #534AB7, #7c6bc4); border-radius: 99px; transition: width 0.5s; }
.xp-toast { position: fixed; top: 20px; right: 20px; background: #534AB7; color: #fff; padding: 8px 18px; border-radius: 99px; font-size: 14px; font-weight: 700; z-index: 1000; animation: xp-pop 1.5s ease-out forwards; pointer-events: none; }
@keyframes xp-pop { 0% { opacity: 0; transform: translateY(10px) scale(0.8); } 15% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.xp-bar-wrap { margin-bottom: 0.75rem; }

/* Exam Strategy Tips */
.exam-tips { text-align: left; margin-bottom: 1.5rem; background: #EEEDFE; border-radius: 10px; padding: 16px; }
.exam-tips-title { font-size: 13px; font-weight: 700; color: #534AB7; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.exam-tip { font-size: 13px; color: #444; line-height: 1.5; padding: 5px 0 5px 14px; border-left: 3px solid #7c6bc4; margin-bottom: 6px; }
.exam-tip:last-child { margin-bottom: 0; }
