/* ─────────────────────────────────────────────────────────
   TOPIK Exam Styles
   ───────────────────────────────────────────────────────── */

/* ── Topik Page: Hero & Categories ───────────────────── */
.topik-header { margin-bottom: 24px; }

.topik-hero {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px; padding: 32px; color: #fff;
}
.topik-hero-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
}
.topik-hero-icon .material-icons-round { font-size: 36px; }
.topik-hero h2 { margin: 0 0 4px; font-size: 1.5rem; }
.topik-hero p { margin: 0; opacity: .85; font-size: .95rem; }

.topik-categories {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.topik-cat-card {
    background: var(--card-bg, #fff); border-radius: 14px;
    padding: 24px; cursor: pointer;
    border: 1px solid var(--border-color, #e5e7eb);
    display: flex; flex-direction: column; gap: 8px;
    transition: all .25s ease; position: relative;
}
.topik-cat-card:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, .15);
    transform: translateY(-2px); border-color: #667eea;
}
.topik-cat-card .cat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex; align-items: center; justify-content: center;
}
.topik-cat-card .cat-icon .material-icons-round { color: #fff; font-size: 24px; }
.topik-cat-card h3 { margin: 4px 0 0; font-size: 1.1rem; color: var(--text, #1a1a2e); }
.topik-cat-card .cat-count { font-size: .85rem; color: var(--text-muted, #6b7280); }
.topik-cat-card .cat-arrow {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted, #aaa); font-size: 20px;
    transition: transform .2s;
}
.topik-cat-card:hover .cat-arrow { transform: translateY(-50%) translateX(4px); color: #667eea; }

/* ── Section Back Button ──────────────────────────────── */
.section-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted, #6b7280); cursor: pointer; margin-bottom: 12px;
    font-size: .9rem; padding: 6px 0; transition: color .2s;
}
.section-back:hover { color: #667eea; }

/* ── Exam List ────────────────────────────────────────── */
.exam-list { display: flex; flex-direction: column; gap: 12px; }
.exam-card {
    background: var(--card-bg, #fff); border-radius: 14px;
    padding: 20px 24px; cursor: pointer;
    border: 1px solid var(--border-color, #e5e7eb);
    display: flex; justify-content: space-between; align-items: center;
    transition: all .2s;
}
.exam-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #667eea; }
.exam-card h4 { margin: 0 0 8px; font-size: 1rem; color: var(--text, #1a1a2e); }
.exam-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.exam-meta > span {
    display: flex; align-items: center; gap: 4px;
    font-size: .82rem; color: var(--text-muted, #6b7280);
}
.exam-meta .material-icons-round { font-size: 16px; }
.exam-card-right { display: flex; align-items: center; gap: 12px; }
.last-score {
    background: #f0f4ff; color: #667eea; padding: 4px 12px; border-radius: 20px;
    font-size: .85rem; font-weight: 600;
}

/* ── History ──────────────────────────────────────────── */
.topik-history { margin-top: 32px; }
.topik-history h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-radius: 12px; cursor: pointer;
    background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e5e7eb);
    transition: background .2s;
}
.history-item:hover { background: #f8f9ff; }
.history-title { font-weight: 600; font-size: .95rem; display: block; }
.history-meta { font-size: .8rem; color: var(--text-muted, #9ca3af); margin-top: 2px; }
.history-score {
    font-weight: 700; font-size: 1.1rem; padding: 4px 14px;
    border-radius: 20px;
}
.history-score.pass { background: #d1fae5; color: #059669; }
.history-score.fail { background: #fee2e2; color: #dc2626; }

/* ── Exam Page: Full-screen exam taking ───────────────── */
.exam-page {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--bg, #f5f6fa); display: flex; flex-direction: column;
}
.exam-topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: #fff; border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,.05); flex-shrink: 0;
}
.exam-topbar-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.exam-topbar-title { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.exam-topbar-center { flex-shrink: 0; padding: 0 16px; }

/* Back button */
.btn-back-exam {
    flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 10px;
    border: 2px solid #e5e7eb; background: #f9fafb;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #555; transition: all .2s;
}
.btn-back-exam:hover { border-color: #667eea; color: #667eea; background: #f0f4ff; }

.exam-timer {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.4rem; font-weight: 700; font-family: 'Montserrat', monospace;
    color: #333; padding: 8px 20px; border-radius: 12px;
    background: #f0f4ff;
}
.exam-timer .material-icons-round { font-size: 22px; color: #667eea; }
.exam-timer.warning { background: #fef3c7; color: #d97706; }
.exam-timer.warning .material-icons-round { color: #d97706; }
.exam-timer.danger { background: #fee2e2; color: #dc2626; animation: pulse-danger 1s infinite; }
.exam-timer.danger .material-icons-round { color: #dc2626; }

@keyframes pulse-danger {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.exam-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.exam-progress {
    font-size: .9rem; color: var(--text-muted, #6b7280);
    font-weight: 600; white-space: nowrap;
}

/* Bảng câu hỏi toggle button */
.btn-nav-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px;
    border: 2px solid #667eea; background: transparent;
    color: #667eea; font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all .2s;
}
.btn-nav-toggle:hover { background: #f0f4ff; }
.btn-nav-toggle .material-icons-round { font-size: 20px; }

.btn-submit {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all .2s;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(102,126,234,.3); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Floating Nav Panel ───────────────────────────────── */
.exam-nav-overlay {
    display: none; position: fixed; inset: 0; z-index: 1050;
    background: rgba(0,0,0,.3);
}
.exam-nav-overlay.open { display: block; }

.exam-nav-panel {
    position: fixed; top: 65px; right: -320px; width: 300px;
    background: #fff; border-radius: 16px 0 0 16px;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    z-index: 1060; padding: 20px;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - 80px); overflow-y: auto;
}
.exam-nav-panel.open { right: 0; }

.nav-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
.nav-panel-title { font-weight: 700; font-size: 1rem; color: #1a1a2e; }
.nav-close-btn {
    border: none; background: #f3f4f6; border-radius: 8px;
    padding: 4px; cursor: pointer; display: flex; align-items: center;
    color: #666; transition: background .2s;
}
.nav-close-btn:hover { background: #e5e7eb; color: #333; }

.nav-legend {
    display: flex; gap: 16px; margin-bottom: 14px;
}
.nav-legend-item {
    display: flex; align-items: center; gap: 6px;
    font-size: .8rem; color: var(--text-muted, #6b7280);
}
.nav-dot-sample {
    width: 20px; height: 20px; border-radius: 5px;
    border: 2px solid #e5e7eb; background: #fff; display: inline-block;
}
.nav-dot-sample.answered { background: #667eea; border-color: #667eea; }

.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nav-dot {
    width: 100%; aspect-ratio: 1; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    border: 2px solid #e5e7eb; color: #666; transition: all .2s;
    background: #fff;
}
.nav-dot:hover { border-color: #667eea; color: #667eea; }
.nav-dot.answered { background: #667eea; color: #fff; border-color: #667eea; }

/* ── Exam Body: Centered Questions ────────────────────── */
.exam-body {
    flex: 1; overflow-y: auto;
    display: flex; justify-content: center;
    padding: 24px 16px;
}
.exam-questions-wrap {
    width: 100%; max-width: 780px;
}
.exam-questions { width: 100%; }

/* ── Question Card ────────────────────────────────────── */
.question-card {
    background: #fff; border-radius: 14px; padding: 24px;
    margin-bottom: 20px; border: 1px solid #e5e7eb;
}
.question-header {
    margin-bottom: 12px;
}
.question-num {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; padding: 4px 14px; border-radius: 20px;
    font-size: .82rem; font-weight: 700;
}
.question-text {
    font-size: 1rem; line-height: 1.6; margin-bottom: 16px;
    color: var(--text, #1a1a2e);
}
.question-media { margin-bottom: 16px; }
.question-media img {
    max-width: 100%; max-height: 300px; border-radius: 10px;
    cursor: zoom-in; border: 1px solid #e5e7eb;
}
.question-media audio { width: 100%; border-radius: 8px; }

/* ── Answer Options: 2x2 Grid ─────────────────────────── */
.answer-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.answer-option {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    border: 2px solid #e5e7eb; cursor: pointer;
    transition: all .2s; background: #fafbfc;
    min-height: 56px;
}
.answer-option:hover { border-color: #bfc8ff; background: #f5f7ff; }
.answer-option.selected {
    border-color: #667eea; background: #eef1ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .1);
}
.option-label {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; background: #e5e7eb; color: #555;
    flex-shrink: 0; margin-top: 1px;
}
.answer-option.selected .option-label { background: #667eea; color: #fff; }
.option-text { font-size: .95rem; line-height: 1.5; word-break: break-word; }

/* ── Image Zoom Overlay ───────────────────────────────── */
.image-zoom-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center;
    padding: 40px; cursor: pointer;
}
.image-zoom-overlay img { max-width: 95%; max-height: 90vh; border-radius: 8px; }
.close-zoom {
    position: absolute; top: 20px; right: 20px; color: #fff; font-size: 32px;
    cursor: pointer; opacity: .8; transition: opacity .2s;
}
.close-zoom:hover { opacity: 1; }

/* ── Result Page ──────────────────────────────────────── */
.result-hero {
    display: flex; align-items: center; gap: 28px;
    padding: 32px; border-radius: 16px; margin-bottom: 32px;
}
.result-hero.pass { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.result-hero.fail { background: linear-gradient(135deg, #fee2e2, #fecaca); }

.result-score-ring { width: 120px; height: 120px; position: relative; flex-shrink: 0; }
.result-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(0,0,0,.1); stroke-width: 3.8; }
.ring-fill { fill: none; stroke-width: 3.8; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.result-hero.pass .ring-fill { stroke: #059669; }
.result-hero.fail .ring-fill { stroke: #dc2626; }
.ring-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 1.6rem; font-weight: 800; font-family: 'Montserrat', sans-serif;
}
.result-hero.pass .ring-text { color: #059669; }
.result-hero.fail .ring-text { color: #dc2626; }

.result-info h2 { margin: 0 0 8px; font-size: 1.3rem; }
.result-detail { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.result-detail > span { display: flex; align-items: center; gap: 4px; font-size: .9rem; }
.badge-timeout { background: #fef3c7; color: #d97706; padding: 2px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600; }
.result-actions { display: flex; gap: 10px; }

/* ── Result Questions Review ─────────────────────────── */
.result-questions h3 { margin-bottom: 20px; font-size: 1.1rem; }
.result-question {
    background: #fff; border-radius: 14px; padding: 24px;
    margin-bottom: 16px; border-left: 4px solid;
}
.result-question.correct { border-left-color: #059669; }
.result-question.wrong { border-left-color: #dc2626; }
.rq-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rq-num { font-weight: 700; font-size: .9rem; }
.rq-status { display: flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; }
.result-question.correct .rq-status { color: #059669; }
.result-question.wrong .rq-status { color: #dc2626; }
.rq-text { font-size: .95rem; line-height: 1.6; margin-bottom: 14px; }

.rq-options { display: flex; flex-direction: column; gap: 8px; }
.rq-opt {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    font-size: .9rem; border: 1px solid #e5e7eb;
}
.rq-opt.correct-answer { background: #d1fae5; border-color: #059669; }
.rq-opt.wrong-answer { background: #fee2e2; border-color: #dc2626; }
.rq-opt .opt-label {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .8rem; background: #e5e7eb; flex-shrink: 0;
}
.rq-opt.correct-answer .opt-label { background: #059669; color: #fff; }
.rq-opt.wrong-answer .opt-label { background: #dc2626; color: #fff; }
.correct-icon { color: #059669; font-size: 18px; margin-left: auto; }
.wrong-icon { color: #dc2626; font-size: 18px; margin-left: auto; }

.rq-explanation {
    margin-top: 12px; padding: 12px 16px; border-radius: 10px;
    background: #fef9e7; display: flex; gap: 10px; font-size: .88rem;
    color: #92400e; line-height: 1.5;
}
.rq-explanation .material-icons-round { color: #d97706; font-size: 20px; flex-shrink: 0; }

/* ── Buttons (shared) ─────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-primary:hover { opacity: .9; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px;
    border: 2px solid #667eea; background: transparent;
    color: #667eea; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: #f0f4ff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ── Utility ──────────────────────────────────────────── */
.page-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 60px 0; color: var(--text-muted, #9ca3af); font-size: 1rem;
}
.error-msg {
    display: flex; align-items: center; gap: 8px; padding: 32px;
    color: #dc2626; font-size: .95rem; justify-content: center;
}
.empty-msg { text-align: center; padding: 40px; color: var(--text-muted, #9ca3af); }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ── Mobile Responsive ────────────────────────────────── */
@media (max-width: 640px) {
    .topik-hero { flex-direction: column; text-align: center; padding: 24px; }
    .topik-categories { grid-template-columns: 1fr; }

    /* Topbar: compact on mobile */
    .exam-topbar { padding: 8px 12px; gap: 6px; }
    .exam-topbar-title { font-size: .8rem; }
    .exam-timer { font-size: 1rem; padding: 6px 12px; }
    .exam-timer .material-icons-round { font-size: 18px; }
    .btn-nav-label, .btn-submit-label { display: none; } /* icon-only on mobile */
    .btn-nav-toggle { padding: 8px 10px; }
    .btn-submit { padding: 8px 10px; }
    .exam-progress { font-size: .8rem; }

    /* Nav panel: bottom sheet on mobile, hidden by default */
    .exam-nav-panel {
        top: auto; bottom: 0; right: 0; left: 0;
        width: 100%; max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
    }
    .exam-nav-panel.open {
        transform: translateY(0);
        right: 0;
    }

    /* Questions centered */
    .exam-body { padding: 16px 12px; }
    .answer-options-grid { grid-template-columns: 1fr; } /* 1 column on small screens */

    .result-hero { flex-direction: column; text-align: center; }
}

/* ── Inline Result Highlighting ────────────────────────── */
.result-correct {
    border-left: 4px solid #059669 !important;
    background: #f0fdf4 !important;
}
.result-wrong {
    border-left: 4px solid #dc2626 !important;
    background: #fff5f5 !important;
}
.result-opt-correct {
    border-color: #059669 !important;
    background: #d1fae5 !important;
    pointer-events: none;
}
.result-opt-correct .option-label { background: #059669 !important; color: #fff !important; }
.result-opt-wrong {
    border-color: #dc2626 !important;
    background: #fee2e2 !important;
    pointer-events: none;
}
.result-opt-wrong .option-label { background: #dc2626 !important; color: #fff !important; }

/* ── Auto-submit notice ────────────────────────────────── */
.exam-auto-notice {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    background: #dc2626; color: #fff; padding: 12px 28px; border-radius: 12px;
    font-weight: 600; z-index: 2000; box-shadow: 0 4px 20px rgba(0,0,0,.2);
    animation: slideDown .3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Result Modal ──────────────────────────────────────── */
.result-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.result-modal {
    position: relative; overflow: hidden;
    background: #fff; border-radius: 24px;
    padding: 36px 32px; width: 100%; max-width: 440px;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
    text-align: center;
    opacity: 0; transform: scale(.85) translateY(30px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.result-modal.open { opacity: 1; transform: scale(1) translateY(0); }

.confetti-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.result-modal-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.result-modal-icon.pass {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    animation: trophy-bounce .6s .3s cubic-bezier(.34,1.56,.64,1) both;
}
.result-modal-icon.fail { background: #f3f4f6; }
.result-modal-icon .material-icons-round { font-size: 40px; color: #d97706; }
.result-modal-icon.fail .material-icons-round { color: #6b7280; }

@keyframes trophy-bounce {
    from { transform: scale(0) rotate(-20deg); }
    to   { transform: scale(1) rotate(0deg); }
}

.result-modal-title {
    font-size: 1.5rem; font-weight: 800; margin: 0 0 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.result-modal-user {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: .95rem; font-weight: 600; color: #374151;
    background: #f9fafb; border-radius: 10px; padding: 8px 16px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.result-modal-user .material-icons-round { font-size: 18px; color: #667eea; }
.result-modal-phone {
    display: flex; align-items: center; gap: 4px;
    color: #6b7280; font-size: .85rem;
}

.result-modal-score {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 20px; border-radius: 16px; margin-bottom: 24px;
}
.result-modal-score.pass { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.result-modal-score.fail { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.result-modal-score .result-score-ring { width: 90px; height: 90px; flex-shrink: 0; }

.result-modal-stats {
    text-align: left; flex: 1;
    display: flex; flex-direction: column; gap: 8px;
}
.stat-row {
    display: flex; align-items: center; gap: 8px;
    font-size: .9rem; color: #374151;
}
.stat-row .material-icons-round { font-size: 18px; }

.result-modal-actions {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.result-modal-actions .btn-outline,
.result-modal-actions .btn-primary { flex: 1; min-width: 130px; justify-content: center; }

/* ── Submit Confirm Dialog ─────────────────────────────── */
.submit-confirm-dialog {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.scd-box {
    background: #fff; border-radius: 20px;
    padding: 32px 28px; max-width: 380px; width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
    animation: scaleIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes scaleIn { from { transform: scale(.8); } to { transform: scale(1); } }

.scd-icon {
    font-size: 48px; color: #667eea;
    display: block; margin-bottom: 16px;
}
.scd-msg {
    font-size: 1rem; line-height: 1.6; color: #374151;
    margin: 0 0 24px;
}
.scd-actions {
    display: flex; gap: 12px; justify-content: center;
}
.scd-actions .btn-outline,
.scd-actions .btn-primary { flex: 1; justify-content: center; }

/* ── Exam Intro Modal ──────────────────────────────────── */
.exam-intro-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn .2s ease;
}

.exam-intro-box {
    background: #fff; border-radius: 24px;
    padding: 36px 32px; width: 100%; max-width: 460px;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
    text-align: center;
    opacity: 0; transform: scale(.9) translateY(20px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.exam-intro-box.open { opacity: 1; transform: scale(1) translateY(0); }

.exam-intro-icon {
    width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
}
.exam-intro-icon .material-icons-round { font-size: 36px; color: #fff; }

.exam-intro-title {
    font-size: 1.25rem; font-weight: 800; margin: 0 0 20px;
    color: #1a1a2e; line-height: 1.4;
}

.exam-intro-meta {
    display: flex; gap: 12px; justify-content: center;
    margin-bottom: 24px; flex-wrap: wrap;
}
.ei-meta-item {
    display: flex; align-items: center; gap: 6px;
    background: #f0f4ff; color: #667eea;
    padding: 8px 16px; border-radius: 20px;
    font-size: .9rem; font-weight: 600;
}
.ei-meta-item .material-icons-round { font-size: 18px; }

.exam-intro-notices {
    text-align: left; display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 24px; background: #f9fafb;
    border-radius: 14px; padding: 16px 20px;
}
.ei-notice {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .88rem; color: #374151; line-height: 1.5;
}
.ei-notice .material-icons-round {
    font-size: 20px; color: #667eea; flex-shrink: 0; margin-top: 1px;
}

.exam-intro-wish {
    font-size: 1rem; font-weight: 600; color: #667eea;
    margin: 0 0 24px;
}

.exam-intro-actions {
    display: flex; gap: 12px; justify-content: center;
}
.exam-intro-actions .btn-outline,
.exam-intro-actions .btn-primary { flex: 1; justify-content: center; }
.exam-intro-actions .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 1rem;
}
