:root {
    --primary: #0056b3;
    --primary-dark: #003d80;
    --primary-light: #e7f1ff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --gray-bg: #f4f6fb;
    --border: #dee2e6;
    --text: #212529;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* ===================== START PAGE ===================== */
.start-page {
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.start-page::before {
    content: '';
    position: absolute;
    top: -180px; right: -180px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,86,179,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.start-page::after {
    content: '';
    position: absolute;
    bottom: -180px; left: -180px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,86,179,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.start-wrapper { position: relative; z-index: 1; }

.start-logo-ring {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: #f0f6ff;
    border: 2px solid #d0e4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,86,179,0.1);
}

.start-logo { width: 60px; }
.start-title { font-size: 1.7rem; font-weight: 800; color: #0d1b2a; letter-spacing: 0.5px; }
.start-subtitle { font-size: 0.92rem; color: #6c7a8d; }

.pulse-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px; height: 160px;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0,86,179,0.25);
    animation: ringPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.ring-1 { width: 100%; height: 100%; animation-delay: 0s; }
.ring-2 { width: 130%; height: 130%; animation-delay: 0.6s; border-color: rgba(0,86,179,0.15); }
.ring-3 { width: 165%; height: 165%; animation-delay: 1.2s; border-color: rgba(0,86,179,0.08); }

@keyframes ringPulse {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.15); opacity: 0; }
}

.pulse-btn {
    position: relative; z-index: 2;
    width: 108px; height: 108px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0056b3, #003d80);
    color: #ffffff !important;
    font-weight: 800; font-size: 1rem; letter-spacing: 3px;
    border: none;
    display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,86,179,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.pulse-btn:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(0,86,179,0.5); color: #fff !important; }
.pulse-btn:active { transform: scale(0.96); }

.start-hint {
    font-size: 0.82rem; color: #a0aab4;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.dot-blink {
    width: 7px; height: 7px;
    background: #0056b3; border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

/* ===================== LOGIN PAGE ===================== */
.login-page { background: var(--gray-bg); min-height: 100vh; }

.login-wrapper {
    display: flex; width: 100%; max-width: 460px;
    min-height: 500px; border-radius: 16px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}



.login-right { background: #fff; flex: 1; padding: 48px 40px; }

.seat-info-bar {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 10px 16px; border-radius: 6px;
    font-size: 0.88rem; color: var(--primary-dark);
}

.form-label {
    font-weight: 600; font-size: 0.82rem; color: #444;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}

.input-group-text { background: #f8f9fa; border-color: var(--border); }

.form-control { border-color: var(--border); padding: 10px 14px; font-size: 0.9rem; }

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.18);
}

.toggle-pass { cursor: pointer; background: #f8f9fa; border-color: var(--border); border-left: none; }

.btn-login {
    background: linear-gradient(135deg, #0056b3, #003d80);
    border: none; border-radius: 8px;
    font-weight: 600; font-size: 0.95rem; color: #fff; transition: all 0.25s;
}

.btn-login:hover {
    background: linear-gradient(135deg, #003d80, #002a5c);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,86,179,0.3);
}

/* ===================== INSTRUCTIONS ===================== */
.instr-header {
    background: linear-gradient(135deg, #0056b3, #003d80);
    color: #fff; padding: 16px 24px;
    font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; gap: 10px;
}

.instr-body { padding: 28px; max-height: 60vh; overflow-y: auto; }
.instr-section { border-bottom: 1px solid #eef0f3; padding-bottom: 20px; margin-bottom: 20px; }

.instr-section-title {
    font-weight: 700; font-size: 0.92rem; color: #333;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.4px;
}

.instr-section ol { padding-left: 1.3rem; color: #555; font-size: 0.9rem; }
.instr-section ol li { margin-bottom: 8px; line-height: 1.6; }

.btn-start-exam {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none; border-radius: 8px;
    color: #fff; font-weight: 600; font-size: 0.95rem; transition: all 0.25s;
}

.btn-start-exam:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.3);
}

.btn-start-exam:disabled { background: #b0bec5; border: none; cursor: not-allowed; }

/* ===================== EXAM LAYOUT ===================== */
.exam-body {
    background: var(--gray-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.exam-header {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.exam-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.exam-title-text {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.exam-subtitle-text {
    display: block;
    font-size: 0.73rem;
    color: #999;
    font-weight: 400;
}

.exam-header-center {
    flex: 1;
    max-width: 380px;
    margin: 0 32px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.exam-progress-wrap {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
}

.exam-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0056b3, #28a745);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.exam-progress-label {
    font-size: 0.73rem;
    color: #888;
    font-weight: 500;
}

.exam-header-right { display: flex; align-items: center; }

.exam-timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    border: 1.5px solid #ffd5d5;
    border-radius: 10px;
    padding: 6px 14px;
}

.timer-icon {
    font-size: 1.1rem;
    color: var(--danger);
}

.timer-label {
    display: block;
    font-size: 0.68rem;
    color: #aaa;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1px;
}

.exam-timer {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--danger);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    line-height: 1;
}

.exam-timer-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.exam-timer-box.warning .exam-timer,
.exam-timer-box.warning .timer-icon {
    color: #d97706;
}

.exam-timer-box.critical {
    background: #fdecea;
    border-color: var(--danger);
    animation: timerShake 0.5s ease infinite;
}

@keyframes timerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.exam-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 62px);
}

/* ===================== QUESTION PANEL ===================== */
.exam-question-panel {
    flex: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    min-width: 0;
}

.section-bar {
    background: #f8faff;
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.section-bar-left { display: flex; align-items: center; }
.section-bar-right { display: flex; align-items: center; gap: 10px; }

.exam-section-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid #c5d9f5;
}

.exam-qno-label { font-size: 0.85rem; color: #555; }

.layout-toggle-group {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.layout-btn {
    background: #fff; border: none;
    padding: 5px 10px; font-size: 0.78rem;
    color: #999; cursor: pointer; transition: all 0.2s;
    border-right: 1px solid var(--border);
}

.layout-btn:last-child { border-right: none; }
.layout-btn:hover { background: var(--primary-light); color: var(--primary); }
.layout-btn.active { background: var(--primary); color: #fff; }

/* QUESTION CARD */
.question-card {
    padding: 24px 28px 16px;
    flex: 1;
    overflow-y: auto;
}

.question-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.q-marks-badge {
    background: #f0fdf4; color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 0.73rem; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
}

.q-neg-badge {
    background: #fff7ed; color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 0.73rem; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
}

.q-type-badge {
    background: #eff6ff; color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.73rem; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
}

.q-status-chip {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 600;
    color: #666; padding: 4px 10px;
    border-radius: 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.chip-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block;
}

.chip-not-visited { background: #9e9e9e; }
.chip-not-answered { background: var(--danger); }
.chip-answered { background: var(--success); }
.chip-review { background: var(--warning); }
.chip-ans-review { background: var(--info); }

.question-body { margin-bottom: 24px; }

.question-number-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.question-text {
    font-size: 1.1rem; font-weight: 600;
    color: #0f172a; line-height: 1.75;
    margin-bottom: 8px;
}

.question-text-alt {
    font-size: 1rem; color: #000000;
    line-height: 1.6; margin-bottom: 0;
    padding: 10px 14px;
    font-weight: 600;
    background: #f8faff;
    border-left: 3px solid #c5d9f5;
    border-radius: 0 6px 6px 0;
}

/* OPTIONS */
.options-list { margin-top: 4px; }

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

.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.inline-layout { display: flex; flex-wrap: wrap; gap: 10px; }

.inline-layout .option-item {
    flex: 1 1 auto; min-width: 140px;
    justify-content: center; text-align: center;
}

.option-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px; cursor: pointer;
    transition: all 0.18s ease;
    font-size: 0.92rem; color: var(--text);
    background: #fdfdfd; user-select: none;
    position: relative;
}

.option-item::before {
    content: '';
    position: absolute; left: 0; top: 0;
    bottom: 0; width: 3px;
    border-radius: 10px 0 0 10px;
    background: transparent;
    transition: background 0.2s;
}

.option-item:hover {
    background: var(--primary-light);
    border-color: #93c5fd;
    transform: translateX(3px);
}

.option-item:hover::before { background: #93c5fd; }

.option-item.selected {
    background: #eff6ff;
    border-color: var(--primary);
    border-width: 2px;
    transform: translateX(3px);
}

.option-item.selected::before { background: var(--primary); }

.option-item.selected .option-label {
    background: var(--primary);
    color: #fff;
}

.option-item input[type="radio"] {
    accent-color: var(--primary);
    width: 16px; height: 16px;
    cursor: pointer; flex-shrink: 0;
}

.option-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: #e9ecef; border-radius: 6px;
    font-weight: 700; font-size: 0.82rem;
    color: #444; flex-shrink: 0; transition: all 0.2s;
}

.option-text { flex: 1; }

/* ACTION BAR */
.exam-action-bar {
    background: #fff;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
        position: sticky;
    bottom: 0;
    left: 0;
}

.action-bar-left { display: flex; gap: 8px; }
.action-bar-right { display: flex; gap: 8px; }

.btn-action-prev {
    display: flex; align-items: center; gap: 7px;
    background: #fff; border: 1.5px solid var(--border);
    color: #555; font-size: 0.85rem; font-weight: 500;
    padding: 9px 16px; border-radius: 8px; transition: all 0.2s;
}

.btn-action-prev:hover { background: #f1f5f9; border-color: #94a3b8; }

.btn-action-clear {
    display: flex; align-items: center; gap: 7px;
    background: #fff; border: 1.5px solid var(--border);
    color: #555; font-size: 0.85rem; font-weight: 500;
    padding: 9px 16px; border-radius: 8px; transition: all 0.2s;
}

.btn-action-clear:hover { background: #fff1f2; border-color: var(--danger); color: var(--danger); }

.btn-action-review {
    display: flex; align-items: center; gap: 7px;
    background: #fffbeb; border: 1.5px solid #fbbf24;
    color: #92400e; font-size: 0.85rem; font-weight: 600;
    padding: 9px 16px; border-radius: 8px; transition: all 0.2s;
}

.btn-action-review:hover { background: #fef3c7; border-color: #f59e0b; }

.btn-action-save {
    display: flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, #0056b3, #003d80);
    border: none; color: #fff;
    font-size: 0.88rem; font-weight: 700;
    padding: 9px 22px; border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(0,86,179,0.25);
}

.btn-action-save:hover {
    background: linear-gradient(135deg, #003d80, #002a5c);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0,86,179,0.35);
}

/* ===================== SIDEBAR ===================== */
.exam-sidebar {
    width: 300px;
    min-width: 300px;
    background: var(--gray-bg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 62px);
    position: sticky;
    top: 62px;
}

/* CANDIDATE */
.candidate-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.candidate-photo {
    width: 44px; height: 44px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.candidate-name { font-weight: 700; font-size: 0.9rem; color: #1a1a2e; }
.candidate-enroll { font-size: 0.75rem; color: #888; margin-top: 1px; }

.candidate-status-dot {
    width: 10px; height: 10px; border-radius: 50%;
    position: absolute; top: 12px; right: 14px;
}

.candidate-status-dot.online { background: #22c55e; box-shadow: 0 0 0 2px #dcfce7; }

/* STATUS COUNTS */
.status-count-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.status-count-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 6px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: transform 0.15s;
}
.question-lang-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.lang-tab {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
    letter-spacing: 0.3px;
}

.lang-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #c5d9f5;
}

.lang-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.25);
}

.status-count-item:hover { transform: translateY(-2px); }
.status-count-item.answered { border-top: 3px solid var(--success); }
.status-count-item.not-answered { border-top: 3px solid var(--danger); }
.status-count-item.not-visited { border-top: 3px solid #6c757d; }
.status-count-item.review { border-top: 3px solid var(--warning); }
.status-count-item.ans-review { border-top: 3px solid var(--info); }

.status-count-num { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }

.status-count-label {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.66rem; font-weight: 600;
    color: #777; text-transform: uppercase;
    letter-spacing: 0.2px; line-height: 1.2;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* PALETTE LEGEND */
.palette-legend {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.palette-legend-title {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #999; margin-bottom: 8px;
}

.legend-grid {
    display: flex; flex-wrap: wrap; gap: 6px 10px;
}

.legend-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.75rem; color: #555;
}

.legend-dot {
    width: 12px; height: 12px;
    border-radius: 3px; flex-shrink: 0;
}

/* PALETTE BOX */
.palette-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    flex: 1;
}

.palette-header {
    font-weight: 700; font-size: 0.82rem;
    color: #333; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 5px;
    max-height: 140px;
    overflow-y: auto;
}

.q-circle {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    font-size: 0.78rem; font-weight: 700;
    border: 1.5px solid #ddd;
    cursor: pointer; background: #f9f9f9;
    transition: all 0.15s;
}

.q-circle:hover { transform: scale(1.12); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.q-answered { background: var(--success) !important; color: #fff; border-color: var(--success); }
.q-not-answered { background: var(--danger) !important; color: #fff; border-color: var(--danger); }
.q-review { background: var(--warning) !important; color: #000; border-color: var(--warning); }
.q-ans-review { background: var(--info) !important; color: #fff; border-color: var(--info); }
.q-current { border: 2.5px solid var(--primary) !important; box-shadow: 0 0 0 3px rgba(0,86,179,0.18); }

/* SUBMIT BUTTON */
.btn-submit-exam {
    width: 100%;
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    border: none; color: #fff;
    font-weight: 700; font-size: 0.92rem;
    letter-spacing: 0.3px; padding: 13px;
    border-radius: 10px; transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(220,53,69,0.25);
}

.btn-submit-exam:hover {
    background: linear-gradient(135deg, #a71d2a, #7b0d1e);
    color: #fff;
    box-shadow: 0 6px 20px rgba(220,53,69,0.4);
    transform: translateY(-1px);
}

/* ===================== SUBMIT MODAL ===================== */
.submit-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}

.submit-modal-header {
    background: linear-gradient(135deg, #0056b3, #003d80);
    padding: 28px 24px 24px;
    text-align: center;
    color: #fff;
    position: relative;
}

.submit-modal-icon {
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

.submit-modal-close {
    position: absolute; top: 14px; right: 14px;
    filter: invert(1); opacity: 0.7;
}

.submit-modal-close:hover { opacity: 1; }

.submit-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.submit-stat {
    padding: 14px 8px;
    border-radius: 10px;
    text-align: center;
}

.submit-stat.answered { background: #f0fdf4; }
.submit-stat.not-answered { background: #fff1f2; }
.submit-stat.review { background: #fffbeb; }
.submit-stat.not-visited { background: #f8fafc; }
.submit-stat.ans-review { background: #ecfeff; }
.submit-stat.total { background: #eff6ff; }

.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.72rem; color: #888; margin-top: 4px; font-weight: 500; }

.submit-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #78350f;
}

.btn-modal-cancel {
    flex: 1; background: #fff;
    border: 1.5px solid var(--border);
    color: #555; font-weight: 600;
    padding: 10px 20px; border-radius: 8px; transition: all 0.2s;
}

.btn-modal-cancel:hover { background: #f1f5f9; }

.btn-modal-submit {
    flex: 1;
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    border: none; color: #fff;
    font-weight: 700; padding: 10px 20px;
    border-radius: 8px; transition: all 0.25s;
}

.btn-modal-submit:hover {
    background: linear-gradient(135deg, #a71d2a, #7b0d1e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220,53,69,0.35);
}

/* ===================== QUESTION META ROW ===================== */
.question-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ===================== LANGUAGE TABS ===================== */
.question-lang-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
    letter-spacing: 0.3px;
}

.lang-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #c5d9f5;
}

.lang-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.25);
}

/* ===================== META INFO PILLS ===================== */
.meta-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: default;
    line-height: 1.4;
    white-space: nowrap;
    transition: all 0.2s;
}

.pill-marks {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.pill-negative {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.pill-type {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.pill-info {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
    cursor: pointer;
}

.pill-info:hover {
    background: #0369a1;
    color: #fff;
    border-color: #0369a1;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.25);
}

.pill-instructions {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
    cursor: pointer;
}

.pill-instructions:hover {
    background: #6d28d9;
    color: #fff;
    border-color: #6d28d9;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

/* ===================== STATUS CHIP ===================== */
.q-status-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    align-self: flex-start;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.chip-not-visited { background: #9e9e9e; }
.chip-not-answered { background: var(--danger); }
.chip-answered { background: var(--success); }
.chip-review { background: var(--warning); }
.chip-ans-review { background: var(--info); }

/* ===================== INFO & INSTRUCTIONS MODALS ===================== */
.info-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}

.info-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #f8faff;
    border-bottom: 1px solid var(--border);
}

.info-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-modal-icon.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.info-modal-icon.green {
    background: #dcfce7;
    color: #166534;
}

.info-table {
    padding: 0 4px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.info-row:nth-child(odd) {
    background: #fafbff;
}

.info-key {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: #555;
    font-weight: 500;
}

.info-key i {
    width: 16px;
    color: var(--primary);
    font-size: 0.8rem;
}

.info-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: right;
}

.instr-modal-body {
    padding: 4px 0;
    max-height: 65vh;
    overflow-y: auto;
}

.instr-modal-section {
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.instr-modal-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.instr-modal-section ul {
    padding-left: 1.2rem;
    color: #555;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.instr-modal-section ul li {
    margin-bottom: 7px;
    line-height: 1.6;
}

.instr-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ===================== LANDING — LIGHT THEME ===================== */

.landing-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f0f4ff;
    color: #0f172a;
    overflow-x: hidden;
}

/* ---- NAVBAR ---- */
.landing-navbar {
    padding: 14px 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8edf5;
    transition: all 0.3s ease;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.landing-navbar.scrolled {
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid #dde3ef;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.brand-accent {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 500;
}

.nav-link-pill {
    font-size: 0.83rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-link-pill:hover {
    background: #eff6ff;
    color: #2563eb;
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s;
}

.btn-nav-login:hover {
    background: #e8edf8;
    color: #2563eb;
    border-color: #93c5fd;
}

.btn-nav-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 700;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border: 1.5px solid #2563eb;
    box-shadow: 0 3px 10px rgba(37,99,235,0.25);
    transition: all 0.2s;
}

.btn-nav-register:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37,99,235,0.3);
}

/* Hamburger */
.hamburger-wrap {
    width: 24px;
    height: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-wrap span {
    display: block;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-offcanvas {
    width: 270px !important;
    background: #fff;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.mobile-nav-link:hover { color: #2563eb; }

/* ---- HERO ---- */
.hero-section {
    min-height: 70vh;
    background:
        linear-gradient(135deg, rgba(9, 47, 150, 0.88) 0%, rgba(189, 210, 255, 0.197) 50%, rgba(29,78,216,0.90) 100%),
        url('../../bg-landing.jpg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 90px;
    padding-bottom: 50px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(96,165,250,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 85%, rgba(167,139,250,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.08) 0%, transparent 80%);
    z-index: 0;
}


.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ---- TICKER ---- */
.hero-ticker-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.ticker-label {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px 14px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ticker-track-wrap {
    overflow: hidden;
    flex: 1;
    padding: 0 12px;
}

.ticker-track {
    display: inline-flex;
    gap: 60px;
    white-space: nowrap;
    animation: tickerRun 40s linear infinite;
    color: rgb(0, 0, 0);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 8px 0;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerRun {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- ANNOUNCEMENT CARD ---- */
.announcement-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #e8edf5;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
}

.announcement-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.announcement-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.announcement-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.68);
}

.announcement-view-all {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    white-space: nowrap;
}

.announcement-view-all:hover {
    background: rgba(255,255,255,0.24);
    color: #fff;
}

/* Smooth CSS marquee announcement */
.ann-marquee-wrap {
    overflow: hidden;
    height: 230px;
    position: relative;
}

/* Fade top & bottom */
.ann-marquee-wrap::before,
.ann-marquee-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 24px;
    z-index: 2;
    pointer-events: none;
}

.ann-marquee-wrap::before {
    top: 0;
    background: linear-gradient(to bottom, #fff, transparent);
}

.ann-marquee-wrap::after {
    bottom: 0;
    background: linear-gradient(to top, #fff, transparent);
}

.ann-marquee-track {
    display: flex;
    flex-direction: column;
    animation: annScrollUp 28s linear infinite;
    will-change: transform;
}

.ann-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes annScrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.ann-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ann-row:hover { background: #f8faff; }
.ann-row.new-row { background: #f0fdf4; }
.ann-row.imp { background: #fafbff; }

.ann-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ann-dot.green  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.ann-dot.blue   { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.ann-dot.orange { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }

.ann-badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.new-badge { background: #dcfce7; color: #15803d; }
.imp-badge { background: #dbeafe; color: #1d4ed8; }
.res-badge { background: #fef3c7; color: #92400e; }

.ann-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
    line-height: 1.4;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ann-date {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.ann-arr {
    font-size: 0.6rem;
    color: #cbd5e1;
    flex-shrink: 0;
}

/* ---- EXAMS SECTION ---- */
.exams-section {
    padding: 70px 0;
    background: #f0f4ff;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    background: #dbeafe;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.section-desc {
    color: #64748b;
    font-size: 0.9rem;
}

/* Filter Tabs */
.exam-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.exam-filter-btn {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.79rem;
    font-weight: 600;
    background: #fff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.exam-filter-btn:hover { border-color: #93c5fd; color: #2563eb; }

.exam-filter-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 3px 10px rgba(37,99,235,0.22);
}

/* Exam Cards */
.exam-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #e8edf5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.exam-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37,99,235,0.1);
    border-color: #bfdbfe;
}

.exam-card.featured {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

.exam-card-ribbon {
    position: absolute;
    top: 12px;
    left: 0;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 0 6px 6px 0;
    z-index: 2;
    letter-spacing: 0.3px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.12);
}

.exam-card-top {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.exam-card-icon {
    font-size: 2.6rem;
    color: rgba(255,255,255,0.38);
}

.exam-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.free-badge     { background: #fef9c3; color: #854d0e; }
.paid-badge     { background: rgba(255,255,255,0.22); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.new-badge-card { background: #dcfce7; color: #15803d; }

.blue-grad   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.purple-grad { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.green-grad  { background: linear-gradient(135deg, #10b981, #059669); }
.orange-grad { background: linear-gradient(135deg, #f59e0b, #d97706); }
.teal-grad   { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.red-grad    { background: linear-gradient(135deg, #ef4444, #dc2626); }

.exam-card-body { padding: 18px; }

.exam-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.exam-card-meta span {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    background: #f8faff;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #e8edf5;
}

.exam-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.exam-card-desc {
    font-size: 0.79rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}

.exam-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.price-free   { font-size: 0.95rem; font-weight: 900; color: #16a34a; }
.price-amount { font-size: 0.95rem; font-weight: 900; color: #2563eb; }

.btn-exam-apply {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(37,99,235,0.22);
}

.btn-exam-apply:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    padding: 11px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fff;
    color: #2563eb;
    text-decoration: none;
    border: 2px solid #2563eb;
    transition: all 0.2s;
}

.btn-view-all:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 6px 18px rgba(37,99,235,0.22);
}

/* ---- WHY US ---- */
.whyus-section {
    background: #fff;
    padding: 46px 0;
    border-top: 1.5px solid #e8edf5;
    border-bottom: 1.5px solid #e8edf5;
}

.whyus-item { text-align: center; padding: 16px 8px; }

.whyus-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin: 0 auto 10px;
}

.whyus-icon.blue   { background: #dbeafe; color: #2563eb; }
.whyus-icon.green  { background: #dcfce7; color: #16a34a; }
.whyus-icon.orange { background: #fef3c7; color: #d97706; }
.whyus-icon.purple { background: #ede9fe; color: #7c3aed; }

.whyus-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}

.whyus-desc {
    font-size: 0.75rem;
    color: #64748b;
}

/* ---- FOOTER ---- */
.landing-footer {
    background: #1e293b;
    padding: 18px 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .hero-section { padding-top: 80px; min-height: auto; }
}

@media (max-width: 768px) {
    .hero-section { padding-top: 72px; padding-bottom: 30px; }
    .ann-marquee-wrap { height: 200px; }
    .section-title { font-size: 1.5rem; }
    .ann-text { font-size: 0.76rem; }
}

@media (max-width: 480px) {
    .ann-date { display: none; }
    .exam-filter-tabs { gap: 6px; }
    .exam-filter-btn { padding: 5px 12px; font-size: 0.74rem; }
}


/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.6rem; }
    .hero-stats-row { padding: 14px 16px; }
    .hero-stat { padding: 4px 16px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; letter-spacing: -0.8px; }
    .hero-section { padding-top: 70px; }
    .hero-stat-divider { display: none; }
    .hero-stats-row { gap: 10px; }
    .hero-stat { padding: 8px 14px; }
    .announcement-scroll-wrap,
    .announcement-list { height: 190px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-right { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .hero-desc { font-size: 0.9rem; }
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    .hero-cta-row { flex-direction: column; align-items: center; }
    .section-title { font-size: 1.6rem; }
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .exam-layout { flex-direction: column; }
    .exam-sidebar {
        width: 100%; min-width: unset;
        max-height: none; position: static;
        border-top: 1px solid var(--border);
    }
    .exam-question-panel { border-right: none; }
}

@media (max-width: 768px) {
    .login-right { padding: 32px 24px; }
    .question-text { font-size: 0.97rem; }
    .exam-header { padding: 0 14px; }
    .grid-layout { grid-template-columns: 1fr 1fr; }
    .palette-grid { grid-template-columns: repeat(6, 1fr); }
    .question-card { padding: 16px 16px 12px; }
    .exam-action-bar { padding: 10px 14px; }
}

@media (max-width: 576px) {
    .exam-timer { font-size: 1rem; }
    .action-bar-left, .action-bar-right { gap: 6px; }
    .btn-action-prev, .btn-action-clear,
    .btn-action-review, .btn-action-save { padding: 8px 10px; font-size: 0.78rem; }
    .grid-layout { grid-template-columns: 1fr; }
    .inline-layout { flex-direction: column; }
    .palette-grid { grid-template-columns: repeat(5, 1fr); }
    .status-count-grid { grid-template-columns: repeat(3, 1fr); }
    .submit-stats-grid { grid-template-columns: repeat(2, 1fr); }
}




/* ===================== REGISTER PAGE ===================== */
.register-body {
    background: var(--bg);
    min-height: 100vh;
}

.register-wrapper {
    max-width: 1460px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

/* ---- TABS ---- */
.reg-tabs-wrap {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px 24px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.reg-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 560px;
}

.reg-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.reg-tab-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2.5px solid #e2e8f0;
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}

.reg-tab-num {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.reg-tab-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.2s;
}

.reg-tab.active .reg-tab-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,86,179,0.3);
}

.reg-tab.active .reg-tab-num {
    background: #ffd700;
    color: #1a1a2e;
}

.reg-tab.active .reg-tab-label {
    color: var(--primary);
}

.reg-tab.completed .reg-tab-icon {
    background: #dcfce7;
    color: #16a34a;
    border-color: #86efac;
}

.reg-tab.completed .reg-tab-num {
    background: #16a34a;
    color: #fff;
}

.reg-tab.completed .reg-tab-label {
    color: #16a34a;
}

.reg-tab-line {
    flex: 1;
    height: 2.5px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 6px;
    margin-bottom: 18px;
    transition: background 0.3s;
}

/* ---- STEP CARD ---- */
.reg-step {
    display: none;
}

.reg-step.active {
    display: block;
    animation: fadeSlideUp 0.3s ease;
}

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

.reg-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: visible;
    margin-bottom: 16px;
}

.reg-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a73e8 100%);
    color: #fff;
}

.reg-card-header h5 {
    color: #fff;
}

.reg-card-header small {
    color: rgba(255,255,255,0.75) !important;
}

.reg-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.reg-card-body {
    padding: 24px;
}

/* ---- SECTION TITLE ---- */
.reg-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
    margin-bottom: 16px;
}

/* ---- INPUTS ---- */
.reg-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}

.req {
    color: #ef4444;
}

.reg-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}

.reg-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

.reg-input::placeholder {
    color: #b0bec5;
}

.reg-readonly {
    background: #f8faff;
    color: #64748b;
    cursor: not-allowed;
}

select.reg-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

/* ---- INPUT WITH PREFIX ---- */
.reg-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reg-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

    .reg-input-group:has(.reg-input.is-invalid) {
        border-color: #dc3545 !important;
        background-color: #fff5f5 !important;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
    }

.reg-input-prefix {
    padding: 9px 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    border-right: 1.5px solid #e2e8f0;
    white-space: nowrap;
}

.prefix-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* ---- UPLOAD BOX ---- */
.reg-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbff;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.reg-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.82rem;
}

.reg-upload-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.reg-upload-preview small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.reg-upload-img {
    max-height: 80px;
    max-width: 120px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.reg-upload-filename {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

/* ---- CHECKBOX ---- */
.reg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.reg-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- INFO BOX ---- */
.reg-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #1d4ed8;
    display: flex;
    align-items: center;
}

/* ---- ELIGIBILITY CHIP ---- */
.reg-eligibility-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fefce8;
    border: 1px solid #fde68a;
    font-size: 0.82rem;
    font-weight: 600;
    color: #92400e;
    min-height: 38px;
}

.elig-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- DECLARATION BOX ---- */
.reg-declaration-box {
    background: #fafbff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.83rem;
    color: #555;
    line-height: 1.7;
}

/* ---- SAME ADDRESS CHECK ---- */
.reg-same-address-check {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 16px;
}

/* ---- REVIEW STEP ---- */
.reg-review-banner {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.83rem;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.review-candidate-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #f8faff;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    margin-bottom: 20px;
}

.review-photo-wrap img {
    width: 80px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.review-candidate-info h5 {
    color: #1a1a2e;
}

.review-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.review-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #c5d9f5;
}

.review-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.review-section {
    padding: 16px 20px;
    border-bottom: 1.5px solid #f1f5f9;
}

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

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

.review-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-key {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.review-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
}

.reg-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- NAV BUTTONS ---- */
.reg-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 16px;
    z-index: 10;
    margin-top: 16px;
}

.reg-step-indicator {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.btn-reg-prev {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #374151;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reg-prev:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.btn-reg-next {
    display: inline-flex;
    align-items: center;
    padding: 9px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(0,86,179,0.3);
}

.btn-reg-next:hover {
    background: #0047b3;
    box-shadow: 0 4px 14px rgba(0,86,179,0.4);
    transform: translateY(-1px);
}

.btn-reg-submit {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(22,163,74,0.3);
}

.btn-reg-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(22,163,74,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .reg-card-body {
        padding: 16px;
    }
    .reg-tabs-wrap {
        padding: 14px 12px;
    }
    .review-candidate-header {
        flex-direction: column;
        text-align: center;
    }
    .review-meta-chips {
        justify-content: center;
    }
    .reg-submit-row {
        flex-direction: column-reverse;
    }
    .btn-reg-submit, .btn-reg-prev {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reg-tab-label {
        font-size: 0.62rem;
    }
    .reg-tab-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    
}


.reg-upload-wrap {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
}

.reg-upload-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff4d4d, #c0392b);
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.45);
    transition: all 0.25s ease;
}

    .reg-upload-remove-btn:hover {
        background: linear-gradient(135deg, #c0392b, #96281b);
        transform: scale(1.15) rotate(90deg);
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.55);
    }

    .reg-upload-remove-btn i {
        font-size: 11px;
        font-weight: 700;
    }