/* ═══════════════════════════════════════════════════════════════
   EnCoach Exam Session — Full-screen POS-inspired styling
   ═══════════════════════════════════════════════════════════════ */

:root {
    --ec-primary: #1b6ef3;
    --ec-primary-dark: #1557c0;
    --ec-danger: #e74c3c;
    --ec-danger-dark: #c0392b;
    --ec-success: #27ae60;
    --ec-warning: #f39c12;
    --ec-gray-50: #f8f9fa;
    --ec-gray-100: #f0f1f3;
    --ec-gray-200: #e2e4e8;
    --ec-gray-300: #ccd0d5;
    --ec-gray-500: #8b919a;
    --ec-gray-700: #495057;
    --ec-gray-900: #1a1d23;
    --ec-topbar-bg: #1a1d23;
    --ec-topbar-height: 56px;
    --ec-bottombar-height: 64px;
    --ec-radius: 8px;
    --ec-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --ec-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Fullscreen Base ──────────────────────────────────────────── */

.ec-exam-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: var(--ec-gray-50);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

.ec-exam-fullscreen * {
    box-sizing: border-box;
}

/* ── Loading Spinner ──────────────────────────────────────────── */

.ec-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 16px;
}

.ec-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--ec-gray-200);
    border-top-color: var(--ec-primary);
    border-radius: 50%;
    animation: ec-spin 0.8s linear infinite;
}

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

.ec-loading-text {
    font-size: 16px;
    color: var(--ec-gray-500);
    font-weight: 500;
}

/* ── Submitted Overlay ────────────────────────────────────────── */

.ec-submitted-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
    background: var(--ec-gray-50);
}

.ec-submitted-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ec-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    animation: ec-pop 0.4s ease;
}

@keyframes ec-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.ec-submitted-text {
    font-size: 20px;
    color: var(--ec-gray-700);
    font-weight: 600;
}

/* ── Top Bar ──────────────────────────────────────────────────── */

.ec-topbar {
    height: var(--ec-topbar-height);
    background: var(--ec-topbar-bg);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    flex-shrink: 0;
    z-index: 100;
}

.ec-topbar-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.ec-section-tabs {
    display: flex;
    gap: 4px;
    margin-left: 16px;
}

.ec-section-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.ec-section-tab:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.ec-section-tab--active {
    color: #fff;
    background: var(--ec-primary);
    border-color: var(--ec-primary);
}

.ec-topbar-spacer {
    flex: 1;
}

/* ── Timer ────────────────────────────────────────────────────── */

.ec-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.ec-timer-icon {
    font-size: 18px;
    opacity: 0.7;
}

.ec-timer--warning {
    background: rgba(243, 156, 18, 0.2);
    color: var(--ec-warning);
    animation: ec-pulse 1.5s ease-in-out infinite;
}

.ec-timer--critical {
    background: rgba(231, 76, 60, 0.25);
    color: var(--ec-danger);
    animation: ec-pulse 0.6s ease-in-out infinite;
}

@keyframes ec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ec-progress-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Main Content Area ────────────────────────────────────────── */

.ec-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.ec-passage-panel {
    width: 45%;
    background: #fff;
    border-right: 1px solid var(--ec-gray-200);
    overflow-y: auto;
    padding: 32px;
}

.ec-passage-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ec-gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ec-primary);
}

.ec-passage-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ec-gray-700);
    white-space: pre-wrap;
}

.ec-question-panel {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
}

.ec-question-panel--full {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* ── Question Card ────────────────────────────────────────────── */

.ec-question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ec-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ec-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.ec-question-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ec-gray-500);
    background: var(--ec-gray-100);
    padding: 4px 10px;
    border-radius: 4px;
}

.ec-question-stem {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ec-gray-900);
    margin-bottom: 24px;
    font-weight: 500;
}

/* ── MCQ Options ──────────────────────────────────────────────── */

.ec-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--ec-gray-200);
    border-radius: var(--ec-radius);
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}

.ec-option:hover {
    border-color: var(--ec-primary);
    background: rgba(27, 110, 243, 0.03);
}

.ec-option--selected {
    border-color: var(--ec-primary);
    background: rgba(27, 110, 243, 0.06);
}

.ec-option-radio,
.ec-option-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--ec-gray-300);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.ec-option-checkbox {
    border-radius: 4px;
}

.ec-option--selected .ec-option-radio {
    border-color: var(--ec-primary);
    background: var(--ec-primary);
}

.ec-option--selected .ec-option-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.ec-option--selected .ec-option-checkbox {
    border-color: var(--ec-primary);
    background: var(--ec-primary);
}

.ec-option--selected .ec-option-checkbox::after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ec-option-key {
    font-weight: 700;
    color: var(--ec-gray-500);
    font-size: 14px;
    min-width: 20px;
}

.ec-option-label {
    font-size: 15px;
    color: var(--ec-gray-700);
    line-height: 1.5;
}

/* ── TFNG Selector ────────────────────────────────────────────── */

.ec-tfng-options {
    display: flex;
    gap: 12px;
}

.ec-tfng-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--ec-gray-200);
    border-radius: var(--ec-radius);
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--ec-gray-700);
    background: #fff;
    transition: all 0.15s;
}

.ec-tfng-btn:hover {
    border-color: var(--ec-primary);
}

.ec-tfng-btn--selected {
    border-color: var(--ec-primary);
    background: var(--ec-primary);
    color: #fff;
}

/* ── Gap Fill ─────────────────────────────────────────────────── */

.ec-gap-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ec-gap-label {
    font-weight: 600;
    color: var(--ec-gray-500);
    font-size: 14px;
    min-width: 32px;
}

.ec-gap-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--ec-gray-200);
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.ec-gap-input:focus {
    border-color: var(--ec-primary);
}

/* ── Audio Recorder ───────────────────────────────────────────── */

.ec-audio-recorder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: var(--ec-gray-50);
    border-radius: var(--ec-radius);
    border: 2px dashed var(--ec-gray-200);
}

.ec-record-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #fff;
}

.ec-record-btn--start {
    background: var(--ec-danger);
}

.ec-record-btn--start:hover {
    background: var(--ec-danger-dark);
    transform: scale(1.05);
}

.ec-record-btn--stop {
    background: var(--ec-gray-700);
    animation: ec-recording-pulse 1s ease-in-out infinite;
}

@keyframes ec-recording-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 16px rgba(231, 76, 60, 0); }
}

.ec-audio-duration {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ec-gray-900);
}

.ec-audio-hint {
    font-size: 13px;
    color: var(--ec-gray-500);
}

.ec-audio-playback {
    width: 100%;
    max-width: 360px;
}

.ec-audio-error {
    color: var(--ec-danger);
    font-size: 14px;
    font-weight: 500;
}

/* ── Rich Editor / Writing ────────────────────────────────────── */

.ec-rich-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-editor-textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 2px solid var(--ec-gray-200);
    border-radius: var(--ec-radius);
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ec-editor-textarea:focus {
    border-color: var(--ec-primary);
}

.ec-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ec-word-count {
    font-size: 13px;
    color: var(--ec-gray-500);
    font-weight: 500;
}

.ec-word-count--low {
    color: var(--ec-warning);
}

.ec-word-count--ok {
    color: var(--ec-success);
}

.ec-word-count--over {
    color: var(--ec-danger);
}

.ec-word-range {
    font-size: 12px;
    color: var(--ec-gray-500);
}

/* ── Numerical Input ──────────────────────────────────────────── */

.ec-numerical-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-numerical-input {
    width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--ec-gray-200);
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.ec-numerical-input:focus {
    border-color: var(--ec-primary);
}

.ec-numerical-unit {
    font-size: 15px;
    color: var(--ec-gray-500);
    font-weight: 500;
}

.ec-numerical-tolerance {
    font-size: 12px;
    color: var(--ec-gray-500);
    margin-top: 8px;
}

/* ── Code Editor ──────────────────────────────────────────────── */

.ec-code-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-code-lang {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ec-gray-500);
    background: var(--ec-gray-100);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.ec-code-textarea {
    width: 100%;
    min-height: 280px;
    padding: 16px;
    border: 2px solid var(--ec-gray-200);
    border-radius: var(--ec-radius);
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    background: #1e1e2e;
    color: #cdd6f4;
    tab-size: 4;
    transition: border-color 0.2s;
}

.ec-code-textarea:focus {
    border-color: var(--ec-primary);
}

/* ── Bottom Bar ───────────────────────────────────────────────── */

.ec-bottombar {
    height: var(--ec-bottombar-height);
    background: #fff;
    border-top: 1px solid var(--ec-gray-200);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    flex-shrink: 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.ec-nav-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--ec-gray-200);
    background: #fff;
    color: var(--ec-gray-700);
    transition: all 0.15s;
}

.ec-nav-btn:hover:not(:disabled) {
    border-color: var(--ec-primary);
    color: var(--ec-primary);
}

.ec-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ec-flag-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--ec-gray-200);
    background: #fff;
    color: var(--ec-gray-500);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ec-flag-btn--active {
    border-color: var(--ec-warning);
    background: rgba(243, 156, 18, 0.08);
    color: var(--ec-warning);
}

.ec-bottombar-spacer {
    flex: 1;
}

/* ── Question Navigator Dots ──────────────────────────────────── */

.ec-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 480px;
}

.ec-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--ec-gray-200);
    background: #fff;
    color: var(--ec-gray-500);
    transition: all 0.15s;
}

.ec-dot:hover {
    border-color: var(--ec-primary);
}

.ec-dot--current {
    border-color: var(--ec-primary);
    background: var(--ec-primary);
    color: #fff;
    transform: scale(1.15);
}

.ec-dot--answered {
    border-color: var(--ec-success);
    background: var(--ec-success);
    color: #fff;
}

.ec-dot--flagged {
    border-color: var(--ec-warning);
    background: var(--ec-warning);
    color: #fff;
}

.ec-dot--answered.ec-dot--flagged {
    background: var(--ec-warning);
    border-color: var(--ec-warning);
}

/* ── Review / Submit Buttons ──────────────────────────────────── */

.ec-review-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--ec-primary);
    background: #fff;
    color: var(--ec-primary);
    transition: all 0.15s;
}

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

.ec-submit-btn {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--ec-success);
    color: #fff;
    transition: all 0.15s;
}

.ec-submit-btn:hover {
    background: #219150;
}

/* ── Review Overlay ───────────────────────────────────────────── */

.ec-review-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ec-fade-in 0.2s ease;
}

@keyframes ec-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ec-review-panel {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 680px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--ec-shadow-lg);
    animation: ec-slide-up 0.25s ease;
}

@keyframes ec-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ec-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ec-gray-200);
}

.ec-review-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ec-gray-900);
}

.ec-review-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--ec-gray-100);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ec-gray-700);
    transition: background 0.15s;
}

.ec-review-close:hover {
    background: var(--ec-gray-200);
}

.ec-review-stats {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    background: var(--ec-gray-50);
}

.ec-review-stat {
    text-align: center;
}

.ec-review-stat-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--ec-gray-900);
}

.ec-review-stat-label {
    font-size: 12px;
    color: var(--ec-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ec-review-section {
    padding: 16px 24px;
}

.ec-review-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ec-gray-700);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ec-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
}

.ec-review-cell {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--ec-gray-200);
    background: #fff;
    color: var(--ec-gray-500);
    transition: all 0.15s;
}

.ec-review-cell:hover {
    transform: scale(1.08);
}

.ec-review-cell--answered {
    border-color: var(--ec-success);
    background: rgba(39, 174, 96, 0.08);
    color: var(--ec-success);
}

.ec-review-cell--flagged {
    border-color: var(--ec-warning);
    background: rgba(243, 156, 18, 0.08);
    color: var(--ec-warning);
}

.ec-review-cell--unanswered {
    border-color: var(--ec-gray-200);
    background: var(--ec-gray-50);
    color: var(--ec-gray-500);
}

.ec-review-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--ec-gray-200);
    gap: 12px;
}

.ec-review-legend {
    display: flex;
    gap: 16px;
    padding: 0 24px 16px;
}

.ec-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ec-gray-500);
    font-weight: 500;
}

.ec-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.ec-legend-dot--answered {
    background: var(--ec-success);
}

.ec-legend-dot--flagged {
    background: var(--ec-warning);
}

.ec-legend-dot--unanswered {
    background: var(--ec-gray-200);
}

/* ── Confirm Modal ────────────────────────────────────────────── */

.ec-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ec-fade-in 0.15s ease;
}

.ec-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--ec-shadow-lg);
    text-align: center;
    animation: ec-slide-up 0.2s ease;
}

.ec-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.ec-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ec-gray-900);
    margin-bottom: 8px;
}

.ec-modal-body {
    font-size: 15px;
    color: var(--ec-gray-500);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ec-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ec-modal-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--ec-gray-200);
    background: #fff;
    color: var(--ec-gray-700);
    transition: all 0.15s;
}

.ec-modal-cancel:hover {
    border-color: var(--ec-gray-300);
}

.ec-modal-confirm {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--ec-success);
    color: #fff;
    transition: all 0.15s;
}

.ec-modal-confirm:hover {
    background: #219150;
}

/* ── Placement-specific styles ────────────────────────────────── */

.ec-placement-progress {
    width: 100%;
    padding: 0 20px;
    margin: 0;
}

.ec-progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.ec-progress-bar-fill {
    height: 100%;
    background: var(--ec-success);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ec-placement-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
}

.ec-placement-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ec-placement-card {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--ec-shadow-lg);
    overflow: hidden;
}

.ec-placement-card-header {
    padding: 20px 28px;
    background: var(--ec-gray-50);
    border-bottom: 1px solid var(--ec-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ec-placement-card-body {
    padding: 28px;
}

.ec-placement-actions {
    display: flex;
    justify-content: flex-end;
    padding: 20px 28px;
    border-top: 1px solid var(--ec-gray-200);
}

.ec-placement-next {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--ec-primary);
    color: #fff;
    transition: all 0.15s;
}

.ec-placement-next:hover {
    background: var(--ec-primary-dark);
}

.ec-placement-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Placement Results ────────────────────────────────────────── */

.ec-placement-results {
    text-align: center;
    padding: 60px 40px;
}

.ec-placement-results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ec-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 auto 24px;
    animation: ec-pop 0.4s ease;
}

.ec-placement-results-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ec-gray-900);
    margin-bottom: 8px;
}

.ec-placement-results-level {
    font-size: 48px;
    font-weight: 800;
    color: var(--ec-primary);
    margin-bottom: 8px;
}

.ec-placement-results-desc {
    font-size: 15px;
    color: var(--ec-gray-500);
    margin-bottom: 32px;
}

.ec-placement-results-btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--ec-primary);
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
    .ec-passage-panel {
        display: none;
    }

    .ec-question-panel {
        padding: 20px;
    }

    .ec-section-tabs {
        display: none;
    }

    .ec-dots {
        max-width: 200px;
    }

    .ec-review-panel {
        width: 95%;
        max-height: 90vh;
    }
}
