:root {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-input: #1a1a3e;
    --text-primary: #e0e0ff;
    --text-secondary: #8888aa;
    --text-muted: #555577;
    --accent: #00d4ff;
    --accent-dim: #0099cc;
    --success: #00e676;
    --error: #ff5252;
    --warning: #ffd740;
    --border: #2a2a4a;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --nav-height: 60px;
}

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

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

/* NAVIGATION */
.nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    padding: 4px 12px;
    transition: color 0.2s;
}

.nav-item.active { color: var(--accent); }
.nav-item .icon { font-size: 22px; }

/* HEADERS */
.page-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-header h1 { font-size: 22px; font-weight: 700; }
.page-header .subtitle { font-size: 12px; color: var(--text-secondary); }

/* STAT CARDS */
.stats-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
}

.stat-card {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .value { font-size: 20px; font-weight: 700; color: var(--accent); }
.stat-card .label { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

/* COURSE CARDS */
.course-list { padding: 8px 16px; display: flex; flex-direction: column; gap: 12px; }

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.course-card:active { transform: scale(0.98); border-color: var(--accent); }

.course-card .title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.course-card .desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.course-card .meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }
.course-card .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-beginner { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.badge-intermediate { background: rgba(255, 215, 64, 0.15); color: var(--warning); }
.badge-advanced { background: rgba(255, 82, 82, 0.15); color: var(--error); }

/* LESSON LIST */
.module-section { margin: 12px 16px; }
.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
}

.module-header h3 { font-size: 15px; font-weight: 600; }
.module-header .arrow { transition: transform 0.2s; }
.module-header .arrow.open { transform: rotate(180deg); }

.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.lesson-item:active { background: var(--bg-card); }
.lesson-item .icon { font-size: 20px; width: 32px; text-align: center; }
.lesson-item .info { flex: 1; }
.lesson-item .title { font-size: 13px; font-weight: 500; }
.lesson-item .xp { font-size: 11px; color: var(--accent-dim); }
.lesson-item .status { font-size: 16px; }
.lesson-item .status.completed { color: var(--success); }

/* CONTENT PAGES */
.content-page { padding: 16px; }
.content-page h1 { font-size: 22px; margin-bottom: 16px; }
.content-page h2 { font-size: 18px; margin: 20px 0 8px; }
.content-page p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.content-page code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.content-page pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
    border: 1px solid var(--border);
}

.content-page pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* CODE EDITOR */
.editor-section {
    padding: 16px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.editor-header h3 { font-size: 14px; font-weight: 600; }

.code-editor {
    width: 100%;
    min-height: 200px;
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    resize: vertical;
    tab-size: 4;
}

.code-editor:focus { outline: none; border-color: var(--accent); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:active { background: var(--accent-dim); }

.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }

.btn-success { background: var(--success); color: var(--bg-primary); }
.btn-error { background: var(--error); color: white; }

.btn-sm { padding: 8px 16px; font-size: 12px; width: auto; }

.btn-group { display: flex; gap: 8px; padding: 16px; }

/* OUTPUT */
.output-box {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
    min-height: 60px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.output-box.success { border-color: var(--success); }
.output-box.error { border-color: var(--error); }

/* QUIZ */
.quiz-question { margin-bottom: 20px; }

.quiz-question .q-text {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.quiz-option:active { border-color: var(--accent); }
.quiz-option.selected { border-color: var(--accent); background: rgba(0, 212, 255, 0.1); }
.quiz-option.correct { border-color: var(--success); background: rgba(0, 230, 118, 0.1); }
.quiz-option.wrong { border-color: var(--error); background: rgba(255, 82, 82, 0.1); }

.quiz-option .radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-option.selected .radio { border-color: var(--accent); }
.quiz-option.selected .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* AUTH FORMS */
.auth-page {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-page .logo {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.auth-page .tagline { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }

.form-group { width: 100%; margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.15s;
}

.form-input:focus { outline: none; border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }

.form-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
}

.form-link a { color: var(--accent); text-decoration: none; cursor: pointer; }

/* RESULT OVERLAY */
.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.result-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--border);
}

.result-card .emoji { font-size: 48px; margin-bottom: 12px; }
.result-card h2 { font-size: 20px; margin-bottom: 8px; }
.result-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* AI TUTOR CHAT */
.chat-toggle {
    position: fixed;
    bottom: 72px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.chat-toggle:active { transform: scale(0.9); }

.chat-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 70vh;
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    z-index: 160;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); }
    to { transform: translateX(-50%) translateY(0); }
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.chat-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    animation: fadeIn 0.2s;
}

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

.chat-msg.tutor {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg-primary);
    border-bottom-right-radius: 4px;
}

.chat-msg code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: rgba(0,0,0,0.2);
    padding: 1px 4px;
    border-radius: 3px;
}

.chat-msg pre {
    margin: 6px 0;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.chat-input:focus { border-color: var(--accent); }

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-typing {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.2); }
}

/* LOADING */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* MONACO EDITOR OVERRIDES */
.monaco-container {
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.monaco-container .margin {
    background: #0d0d1a !important;
}

.editor-section + .editor-section {
    margin-top: 16px;
}

/* CHECKBOX STYLE */
input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* RESULT OVERLAY FIX */
.result-card .btn {
    width: auto;
    min-width: 120px;
}

/* PERSIAN RTL SUPPORT */
[dir="rtl"] .auth-page { text-align: right; }
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .module-header { text-align: right; }
[dir="rtl"] .content-page { text-align: right; }
[dir="rtl"] .nav-item .icon { margin-left: 4px; margin-right: 0; }
[dir="rtl"] .lesson-item { text-align: right; }
[dir="rtl"] .quiz-question { text-align: right; }
[dir="rtl"] .stats-bar { direction: ltr; }

/* DEEP-DIVE LESSON STYLES */
.deepdive-section { margin: 12px 16px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.deepdive-section h3 { font-size: 15px; padding: 14px 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.deepdive-content { padding: 12px 16px; }
.deepdive-section pre { background: #0d0d1a; padding: 12px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 13px; margin: 8px 0; }

/* PRACTICE TERMINAL */
.terminal { background: #0a0a0a; border: 1px solid #333; border-radius: var(--radius-sm); margin: 12px 16px; overflow: hidden; font-family: 'Cascadia Code', 'Fira Code', monospace; font-size: 13px; }
.terminal-header { background: #1a1a1a; padding: 6px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #333; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.close { background: #ff5f56; }
.terminal-dot.min { background: #ffbd2e; }
.terminal-dot.max { background: #27c93f; }
.terminal-title { color: #888; font-size: 11px; flex: 1; text-align: center; font-family: sans-serif; }
.terminal-body { padding: 8px 12px; min-height: 120px; max-height: 300px; overflow-y: auto; }
.terminal-output { color: #00e676; white-space: pre-wrap; word-break: break-all; margin-bottom: 4px; }
.terminal-output.error { color: #ff5252; }
.terminal-input-line { display: flex; align-items: center; gap: 4px; }
.terminal-prompt { color: var(--accent); font-weight: 600; }
.terminal-input { background: transparent; border: none; color: #fff; font-family: inherit; font-size: 13px; flex: 1; outline: none; caret-color: var(--accent); }
.terminal-input::placeholder { color: #555; }

/* MCQ STYLES */
.mcq-list { display: flex; flex-direction: column; gap: 12px; }
.mcq-item { background: var(--bg-primary); border-radius: var(--radius-sm); padding: 12px; border: 1px solid var(--border); }
.mcq-question { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.mcq-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: 0.2s; margin-bottom: 4px; border: 1px solid transparent; font-size: 13px; }
.mcq-option:hover { background: rgba(0,212,255,0.05); border-color: var(--border); }
.mcq-option.selected { border-color: var(--accent); background: rgba(0,212,255,0.08); }
.mcq-option.correct { border-color: var(--success); background: rgba(0,230,118,0.08); }
.mcq-option.wrong { border-color: var(--error); background: rgba(255,82,82,0.08); }
.mcq-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-muted); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mcq-option.selected .mcq-radio { border-color: var(--accent); }
.mcq-option.selected .mcq-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mcq-option.correct .mcq-radio { border-color: var(--success); }
.mcq-option.correct .mcq-radio::after { background: var(--success); }
.mcq-option.wrong .mcq-radio { border-color: var(--error); }
.mcq-option.wrong .mcq-radio::after { background: var(--error); }
.mcq-explanation { font-size: 12px; color: var(--text-secondary); margin-top: 8px; padding: 8px; background: rgba(0,212,255,0.04); border-radius: 4px; display: none; }
.mcq-explanation.show { display: block; }

/* FILL IN THE BLANK */
.fill-blank-item { margin-bottom: 12px; }
.fill-blank-sentence { font-size: 14px; margin-bottom: 6px; }
.fill-blank-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; color: var(--text-primary); font-size: 14px; width: 100%; outline: none; font-family: 'Vazirmatn', sans-serif; }
.fill-blank-input:focus { border-color: var(--accent); }
.fill-blank-input.correct { border-color: var(--success); }
.fill-blank-input.wrong { border-color: var(--error); }

/* WRITING EXERCISE */
.writing-item { margin-bottom: 16px; }
.writing-prompt { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.writing-rubric { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; white-space: pre-line; background: rgba(0,0,0,0.2); padding: 8px 10px; border-radius: 6px; }
.writing-textarea { background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; color: var(--text-primary); font-size: 14px; width: 100%; min-height: 80px; outline: none; resize: vertical; font-family: 'Vazirmatn', monospace; }
.writing-textarea:focus { border-color: var(--accent); }

/* GOLDEN KEY / IQ */
.golden-key-card { margin: 12px 16px; padding: 16px; background: linear-gradient(135deg, #1a1a2e, #2a1a3e); border: 1px solid #ffd700; border-radius: var(--radius); text-align: center; }
.golden-key-icon { font-size: 48px; margin-bottom: 8px; }
.golden-key-title { font-size: 18px; font-weight: 700; color: #ffd700; margin-bottom: 4px; }
.golden-key-desc { font-size: 13px; color: var(--text-secondary); }
.iq-bar { height: 6px; background: var(--bg-card); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.iq-bar-fill { height: 100%; background: linear-gradient(90deg, #ffd700, #ffaa00); border-radius: 3px; transition: width 0.5s; }

/* LEVEL BROWSER */
.level-card { margin: 8px 16px; padding: 16px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 12px; }
.level-card:hover { border-color: var(--accent); }
.level-card-icon { font-size: 32px; }
.level-card-info { flex: 1; }
.level-card-title { font-size: 16px; font-weight: 600; }
.level-card-subtitle { font-size: 12px; color: var(--text-secondary); }
.level-card-progress { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* SUBSECTION LIST */
.subsection-item { margin: 6px 16px; padding: 12px 14px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.subsection-item:hover { border-color: var(--accent); }
.subsection-item.exam { border-color: #ffd700; background: linear-gradient(135deg, #1a1a2e, #2a1a0e); }
.subsection-item.premium { border-color: var(--accent-dim); }
.subsection-item.locked { opacity: 0.5; cursor: default; }
.subsection-num { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.subsection-item.exam .subsection-num { border-color: #ffd700; color: #ffd700; }
.subsection-item.golden .subsection-num { border-color: var(--success); background: rgba(0,230,118,0.1); }
.subsection-info { flex: 1; }
.subsection-title { font-size: 14px; font-weight: 500; }
.subsection-desc { font-size: 11px; color: var(--text-secondary); }
.subsection-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 500; }
.subsection-badge.exam { background: rgba(255,215,0,0.15); color: #ffd700; }
.subsection-badge.premium { background: rgba(0,212,255,0.1); color: var(--accent); }
.subsection-badge.done { background: rgba(0,230,118,0.1); color: var(--success); }
.subsection-status { font-size: 18px; flex-shrink: 0; }

/* MARKDOWN EXPORT BUTTON */
.md-export-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #6c2bd9; color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 500; width: 100%; justify-content: center; transition: 0.2s; font-family: 'Vazirmatn', sans-serif; }
.md-export-btn:hover { background: #7b3be9; }

/* EXAM MODAL */
.exam-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.exam-modal { background: var(--bg-primary); border-radius: var(--radius); padding: 24px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; border: 1px solid #ffd700; }
.exam-modal h2 { text-align: center; margin-bottom: 16px; color: #ffd700; }
