@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --green-50:  #f0fdf4; --green-100: #dcfce7; --green-200: #bbf7d0;
    --green-300: #86efac; --green-400: #4ade80; --green-500: #22c55e;
    --green-600: #16a34a; --green-700: #15803d; --green-800: #166534;
    --green-900: #14532d;
    --primary:       #16a34a;
    --primary-dark:  #15803d;
    --primary-light: #dcfce7;
    --gray-50:  #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
    --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280;
    --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937;
    --gray-900: #111827;
    --red-500: #ef4444; --red-600: #dc2626;
    --amber-400: #fbbf24; --amber-600: #d97706;
    --blue-500: #3b82f6;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,.08), 0 8px 10px rgba(0,0,0,.04);
    --radius-sm: 6px; --radius: 10px; --radius-lg: 16px; --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-main); background: var(--gray-50); color: var(--gray-800); line-height: 1.6; font-size: 15px; min-height: 100vh; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--gray-900); }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
p { color: var(--gray-600); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.flex { display: flex; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; } .text-xs { font-size: .75rem; }
.font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-gray-500 { color: var(--gray-500); }
.text-red-500 { color: var(--red-500); }
.hidden { display: none !important; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Navbar */
.navbar { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 1.5rem; max-width: 1280px; margin: 0 auto; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; font-size: 1.1rem; font-weight: 800; color: var(--green-800); }
.navbar-brand .brand-icon { width: 38px; height: 38px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem; border-radius: var(--radius); font-family: var(--font-main); font-size: .9rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s ease; text-decoration: none; line-height: 1; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-200); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* Cards */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1rem; color: var(--gray-800); }
.card-body { padding: 1.5rem; }
.stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }
.stat-card .stat-label { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; }
.stat-card-green .stat-icon { background: var(--green-100); color: var(--primary); }
.stat-card-blue .stat-icon  { background: #eff6ff; color: var(--blue-500); }
.stat-card-amber .stat-icon { background: #fffbeb; color: var(--amber-600); }
.stat-card-red .stat-icon   { background: #fef2f2; color: var(--red-600); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-label .required { color: var(--red-500); margin-left: .2rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-family: var(--font-main); font-size: .9rem; color: var(--gray-800); background: #fff; transition: border-color .2s, box-shadow .2s; outline: none; appearance: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.form-input.error { border-color: var(--red-500); }
.form-hint { font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--red-500); margin-top: .3rem; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.form-check-label { font-size: .9rem; color: var(--gray-700); }

/* Subject checkboxes */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.subject-item { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: all .15s; font-size: .875rem; color: var(--gray-700); }
.subject-item:hover { border-color: var(--primary); background: var(--green-50); }
.subject-item input[type="checkbox"] { accent-color: var(--primary); }
.subject-item.checked { border-color: var(--primary); background: var(--green-50); color: var(--green-800); font-weight: 600; }

/* Alerts */
.alert { padding: .875rem 1.25rem; border-radius: var(--radius); font-size: .9rem; display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: var(--green-50); color: var(--green-800); border-color: var(--green-200); }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* Table */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--gray-50); }
thead th { padding: .875rem 1rem; font-size: .8rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .15s; }
tbody tr:hover { background: var(--gray-50); }
tbody td { padding: .875rem 1rem; font-size: .9rem; color: var(--gray-700); }
tbody tr:last-child { border-bottom: none; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-green  { background: var(--green-100); color: var(--green-800); }
.badge-red    { background: #fef2f2; color: #991b1b; }
.badge-amber  { background: #fffbeb; color: #92400e; }
.badge-blue   { background: #eff6ff; color: #1e40af; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }

/* Page Header */
.page-header { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 1.5rem; margin-bottom: 2rem; }
.page-header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.page-title { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); }
.page-subtitle { font-size: .875rem; color: var(--gray-500); margin-top: .15rem; }

/* Auth */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, #166534 0%, #14532d 100%); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; overflow: hidden; }
.auth-page::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.auth-card { background: #fff; border-radius: var(--radius-xl); box-shadow: 0 25px 50px rgba(0,0,0,.25); width: 100%; max-width: 480px; position: relative; z-index: 1; }
.auth-card-header { padding: 2.5rem 2.5rem 1.5rem; text-align: center; border-bottom: 1px solid var(--gray-100); }
.auth-logo { width: 60px; height: 60px; background: var(--primary); border-radius: var(--radius-lg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: #fff; font-size: 1.5rem; }
.auth-card-header h1 { font-size: 1.5rem; }
.auth-card-header p { font-size: .9rem; margin-top: .3rem; }
.auth-card-body { padding: 2rem 2.5rem 2.5rem; }

/* Exam Layout */
.exam-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - 64px); }
.exam-sidebar { background: #fff; border-right: 1px solid var(--gray-200); padding: 1rem; overflow-y: auto; position: sticky; top: 64px; height: calc(100vh - 64px); }
.exam-sidebar h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); font-weight: 700; margin-bottom: .75rem; margin-top: 1rem; }
.exam-sidebar h4:first-child { margin-top: 0; }
.question-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.q-nav-btn { aspect-ratio: 1; border: none; border-radius: 6px; font-size: .75rem; font-weight: 700; font-family: var(--font-mono); cursor: pointer; transition: all .15s; background: var(--gray-100); color: var(--gray-500); }
.q-nav-btn.answered { background: var(--primary); color: #fff; }
.q-nav-btn.current { outline: 2px solid var(--primary); outline-offset: 2px; }
.q-nav-btn.flagged { background: var(--amber-400); color: #fff; }
.exam-main { padding: 1.5rem; max-width: 860px; }
.exam-topbar { background: #fff; border-bottom: 1px solid var(--gray-200); padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 64px; z-index: 50; }
.timer-display { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: .5rem; }
.timer-display.warning { color: var(--amber-600); }
.timer-display.danger  { color: var(--red-600); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* Question Card */
.question-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.question-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.question-number { font-family: var(--font-mono); font-size: .8rem; color: var(--gray-400); font-weight: 600; }
.question-subject { font-size: .8rem; font-weight: 700; color: var(--primary); background: var(--green-50); padding: .2rem .6rem; border-radius: 9999px; }
.question-passage { background: var(--gray-50); border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: .9rem; color: var(--gray-700); line-height: 1.7; font-style: italic; }
.question-text { font-size: 1rem; color: var(--gray-800); font-weight: 500; margin-bottom: 1.25rem; line-height: 1.6; }
.option-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.option-item { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: all .15s; }
.option-item:hover { border-color: var(--primary); background: var(--green-50); }
.option-item.selected { border-color: var(--primary); background: var(--green-50); }
.option-item input[type="radio"] { margin-top: .1rem; accent-color: var(--primary); }
.option-label { font-weight: 700; color: var(--gray-500); font-family: var(--font-mono); font-size: .85rem; margin-right: .25rem; }
.option-text { font-size: .9rem; color: var(--gray-700); }
.exam-nav-btns { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }

/* Watermark */
.question-card::after { content: attr(data-watermark); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-25deg); font-size: 1.2rem; color: rgba(0,0,0,.04); pointer-events: none; white-space: nowrap; font-weight: 900; letter-spacing: .08em; z-index: 0; }

/* Legend */
.legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--gray-500); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.legend-dot-green { background: var(--primary); }
.legend-dot-gray  { background: var(--gray-200); }
.legend-dot-amber { background: var(--amber-400); }

/* Admin Sidebar */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--gray-900); color: #fff; flex-shrink: 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 200; display: flex; flex-direction: column; }
.sidebar-brand { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: .75rem; }
.sidebar-brand-icon { width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-brand span { font-weight: 800; font-size: .95rem; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.nav-section-label { padding: .5rem 1.5rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.3); margin-top: .75rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; color: rgba(255,255,255,.6); font-size: .875rem; font-weight: 500; transition: all .15s; cursor: pointer; text-decoration: none; position: relative; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-item.active { color: #fff; background: rgba(22,163,74,.25); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--primary); border-radius: 0 2px 2px 0; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.admin-content { margin-left: 240px; flex: 1; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 0 1.5rem; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.admin-page-content { padding: 2rem 1.5rem; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: var(--radius-xl); width: 100%; max-width: 560px; box-shadow: var(--shadow-xl); transform: translateY(10px); transition: transform .2s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: .75rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 1.25rem; padding: .25rem; border-radius: var(--radius-sm); }
.modal-close:hover { background: var(--gray-100); }

/* Security overlays */
.security-warning { position: fixed; top: 1rem; right: 1rem; background: var(--red-600); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-lg); font-size: .875rem; font-weight: 600; z-index: 9997; display: none; animation: slideIn .3s ease; max-width: 300px; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.inactivity-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: center; justify-content: center; z-index: 9999; }
.inactivity-box { background: #fff; border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; max-width: 380px; box-shadow: var(--shadow-xl); }
.inactivity-count { font-size: 3rem; font-weight: 900; color: var(--red-600); font-family: var(--font-mono); margin: 1rem 0; }
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9998; gap: 1rem; }

/* Progress */
.steps { display: flex; align-items: center; margin-bottom: 2rem; }
.step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step::after { content: ''; position: absolute; top: 16px; left: 50%; right: -50%; height: 2px; background: var(--gray-200); }
.step:last-child::after { display: none; }
.step.active::after, .step.done::after { background: var(--primary); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-200); color: var(--gray-500); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; z-index: 1; transition: all .2s; }
.step.active .step-dot { background: var(--primary); color: #fff; }
.step.done .step-dot { background: var(--primary); color: #fff; }
.step-label { font-size: .75rem; color: var(--gray-500); margin-top: .4rem; font-weight: 600; }
.step.active .step-label { color: var(--primary); }

/* Misc */
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2.5px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pagination { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.page-btn { width: 36px; height: 36px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; color: var(--gray-600); font-size: .875rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; text-decoration: none; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.photo-upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 2rem; text-align: center; cursor: pointer; transition: all .2s; }
.photo-upload-area:hover { border-color: var(--primary); background: var(--green-50); }
.photo-preview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.score-card { text-align: center; padding: 2.5rem; background: linear-gradient(135deg, #166534, #14532d); border-radius: var(--radius-xl); color: #fff; margin-bottom: 1.5rem; }
.score-value { font-size: 4rem; font-weight: 900; line-height: 1; font-family: var(--font-mono); }
.subject-score-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width .8s ease; }

/* Payment */
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.payment-option { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; cursor: pointer; transition: all .2s; text-align: center; }
.payment-option:hover, .payment-option.selected { border-color: var(--primary); background: var(--green-50); }

/* Exam blur on tab switch */
.exam-main.blurred { filter: blur(8px); transition: filter .3s; }

/* Responsive */
@media (max-width: 1024px) { .exam-layout { grid-template-columns: 180px 1fr; } .admin-sidebar { width: 200px; } .admin-content { margin-left: 200px; } }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .exam-layout { grid-template-columns: 1fr; }
    .exam-sidebar { display: none; }
    .admin-sidebar { transform: translateX(-100%); width: 240px; transition: transform .3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .payment-options { grid-template-columns: 1fr; }
    .auth-card-body { padding: 1.5rem; }
    .auth-card-header { padding: 2rem 1.5rem 1.25rem; }
    .subject-grid { grid-template-columns: 1fr; }
}
@media print { .admin-sidebar, .exam-sidebar, .navbar, .btn { display: none !important; } .admin-content { margin-left: 0; } body { background: #fff; } }