body { background: #f5f7fb; color: #1f2937; }
.landing { min-height: 100vh; background: #eef3f8; }
.landing-shell { min-height: 100vh; display: grid; align-items: center; padding: 32px; }
.landing-candidate { grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: 48px; max-width: 1180px; margin: 0 auto; }
.landing-panel { max-width: 680px; }
.landing h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); font-weight: 800; line-height: .98; letter-spacing: 0; color: #111827; }
.landing-badge { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: .82rem; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.landing-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.landing-highlights div { border-left: 3px solid #2563eb; padding-left: 12px; }
.landing-highlights strong, .landing-highlights span { display: block; }
.landing-highlights span { color: #4b5563; font-size: .92rem; margin-top: 3px; }
.landing-preview { background: #fff; border: 1px solid #dbe3ed; border-radius: 8px; padding: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .14); }
.preview-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; padding-bottom: 14px; margin-bottom: 18px; }
.preview-top span { font-weight: 700; }
.preview-top strong { color: #b91c1c; font-variant-numeric: tabular-nums; }
.preview-question span { color: #64748b; font-size: .9rem; }
.preview-question h2 { font-size: 1.2rem; margin: 8px 0 16px; }
.preview-option { border: 1px solid #d1d5db; border-radius: 8px; padding: 11px 12px; margin-bottom: 10px; background: #fff; }
.preview-option.active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.preview-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 18px; }
.preview-palette i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: #e5e7eb; font-style: normal; font-weight: 700; }
.preview-palette .done { background: #22c55e; color: #fff; }
.preview-palette .review { background: #facc15; }
.preview-palette .active { outline: 3px solid #2563eb; outline-offset: 2px; }
.auth-shell { min-height: calc(100vh - 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 48px; align-items: center; }
.auth-copy h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; font-weight: 800; letter-spacing: 0; color: #111827; }
.auth-copy p { max-width: 620px; color: #4b5563; font-size: 1.1rem; }
.auth-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.auth-points span { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.auth-card { background: #fff; border: 1px solid #dbe3ed; border-radius: 8px; padding: 28px; box-shadow: 0 24px 60px rgba(15, 23, 42, .12); }
.auth-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #64748b; margin: 20px 0; font-size: .9rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #e5e7eb; flex: 1; }
.card, .modal-content { border-radius: 8px; border: 1px solid #e5e7eb; box-shadow: 0 10px 25px rgba(15, 23, 42, .05); }
.stat-card { min-height: 124px; }
.stat-card .value { font-size: 2rem; font-weight: 800; }
.table td, .table th { vertical-align: middle; }
.exam-shell { min-height: calc(100vh - 56px); display: grid; grid-template-columns: minmax(0, 1fr) 310px; }
.exam-main { padding: 24px; background: #fff; }
.exam-side { border-left: 1px solid #e5e7eb; background: #f8fafc; padding: 20px; }
.timer { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #b91c1c; }
.question-box { max-width: 860px; }
.question-text { font-size: 1.2rem; font-weight: 700; }
.option-row { display: block; border: 1px solid #d1d5db; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.option-row:hover { border-color: #2563eb; background: #eff6ff; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.palette button { aspect-ratio: 1; border: 0; border-radius: 6px; font-weight: 700; color: #111827; }
.palette .answered { background: #22c55e; color: #fff; }
.palette .not-answered { background: #ef4444; color: #fff; }
.palette .review { background: #facc15; }
.palette .not-visited { background: #e5e7eb; }
.palette .active { outline: 3px solid #2563eb; outline-offset: 2px; }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.result-hero { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px; }
.review-question { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; margin-bottom: 12px; background: #fff; }
.review-option { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; background: #f8fafc; }
.review-option.correct-option { border-color: #22c55e; background: #f0fdf4; }
.review-option.wrong-option { border-color: #ef4444; background: #fef2f2; }
.ajax-search { max-width: 360px; }
.ajax-per-page { width: 130px; }
.ajax-paginated-list { position: relative; min-height: 180px; }
.ajax-paginated-list.is-loading { opacity: .62; pointer-events: none; }
.row-check-cell { width: 42px; }
.question-paper { background: #fff; border: 1px solid #d1d5db; padding: 32px; color: #111827; }
.paper-header { text-align: center; border-bottom: 2px solid #111827; padding-bottom: 16px; margin-bottom: 18px; }
.paper-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.paper-header p { margin-bottom: 10px; font-weight: 700; text-transform: uppercase; }
.paper-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.paper-instructions { border: 1px solid #d1d5db; padding: 14px 18px; margin-bottom: 18px; }
.paper-instructions ol { margin-bottom: 0; }
.paper-question { break-inside: avoid; page-break-inside: avoid; border-bottom: 1px solid #e5e7eb; padding: 16px 0; }
.paper-question h3 { font-size: 1rem; font-weight: 700; line-height: 1.45; margin: 0 0 12px; }
.paper-marks { white-space: nowrap; font-size: .9rem; color: #4b5563; }
.paper-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.paper-answer { margin-top: 10px; color: #2563eb; font-size: .9rem; font-weight: 700; }
.paper-question-image { max-width: 260px; max-height: 180px; display: block; margin: 8px 0 12px; border: 1px solid #e5e7eb; }
@media (max-width: 991px) {
    .landing-candidate { grid-template-columns: 1fr; gap: 28px; }
    .landing-highlights { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; gap: 28px; }
    .exam-shell { grid-template-columns: 1fr; }
    .exam-side { border-left: 0; border-top: 1px solid #e5e7eb; }
}
@media print {
    body { background: #fff; }
    .navbar, .no-print { display: none !important; }
    main.container { max-width: none; width: 100%; padding: 0 !important; }
    .question-paper { border: 0; padding: 0; }
    .paper-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
