/* =====================================================================
   Tryout Nusantara — stylesheet utama
   ===================================================================== */

:root {
	--navy: #0f2f5c;
	--navy-soft: #17457f;
	--primary: #1d5fd6;
	--primary-soft: #e8f0fe;
	--accent: #f59e0b;
	--ink: #10233c;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #f5f7fb;
	--white: #ffffff;
	--success: #15803d;
	--success-soft: #e7f6ec;
	--danger: #b91c1c;
	--danger-soft: #fdeaea;
	--warning: #b45309;
	--warning-soft: #fef3c7;
	--info: #1d4ed8;
	--info-soft: #e8efff;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 10px 30px rgba(15, 47, 92, .08);
	--shadow-sm: 0 2px 8px rgba(15, 47, 92, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: 2.1rem; letter-spacing: -.02em; }
h2 { font-size: 1.55rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
small { font-size: .85em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-head { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }

/* ---------------------------------------------------------------- navbar */
.navbar {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(140%) blur(8px);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--navy); font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
	background: linear-gradient(140deg, var(--navy), var(--primary));
	color: #fff; font-size: .95rem; letter-spacing: .5px;
	box-shadow: 0 6px 14px rgba(29, 95, 214, .28);
}
.brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 9px 13px; border-radius: 8px; color: #33475f; font-weight: 500; font-size: .93rem; }
.nav-links a:hover { background: var(--primary-soft); color: var(--navy); text-decoration: none; }
.nav-links a.aktif { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 1.1rem; }

.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
	width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--primary-soft); color: var(--navy); font-weight: 700; font-size: .85rem;
}
.avatar-lg { width: 60px; height: 60px; flex-basis: 60px; font-size: 1.2rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
	font: inherit; font-weight: 600; font-size: .93rem; line-height: 1.2;
	cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(29, 95, 214, .22); }
.btn-primary:hover { background: #1a52b8; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0b2445; color: #fff; }
.btn-accent { background: var(--accent); color: #3c2503; }
.btn-accent:hover { background: #e08b06; color: #3c2503; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f3c9c9; }
.btn-danger:hover { background: #fbdada; }
.btn-success { background: var(--success-soft); color: var(--success); border-color: #bfe3ca; }
.btn-sm { padding: 7px 13px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- cards */
.card {
	background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-body { padding: 22px; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3, .card-head h2 { margin: 0; font-size: 1.05rem; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 var(--radius) var(--radius); }
.card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- badges */
.badge {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 10px; border-radius: 999px;
	font-size: .76rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
	background: #eef2f7; color: #475569;
}
.badge-hijau { background: var(--success-soft); color: var(--success); }
.badge-merah { background: var(--danger-soft); color: var(--danger); }
.badge-kuning { background: var(--warning-soft); color: var(--warning); }
.badge-biru { background: var(--info-soft); color: var(--info); }
.badge-ungu { background: #f1e9fe; color: #6b21a8; }
.badge-abu { background: #eef2f7; color: #475569; }
.badge-lg { font-size: .85rem; padding: 5px 13px; }

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

/* ---------------------------------------------------------------- forms */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label, .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .88rem; color: #24384f; }
.form-control {
	width: 100%; padding: 11px 13px; font: inherit; font-size: .93rem; color: var(--ink);
	background: #fff; border: 1px solid #cfd9e6; border-radius: var(--radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 95, 214, .14); }
.form-control::placeholder { color: #97a5b6; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.form-hint { margin-top: 5px; font-size: .8rem; color: var(--muted); }
.form-error { margin-top: 5px; font-size: .8rem; color: var(--danger); font-weight: 600; }
.form-control.is-invalid { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; font-size: .9rem; color: #33475f; }
.check input { margin: 4px 0 0; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------------------------------------------------------------- alerts */
.alert { display: flex; gap: 12px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 18px; border: 1px solid transparent; }
.alert p:last-child { margin-bottom: 0; }
.alert-sukses { background: var(--success-soft); border-color: #c6e7d1; color: #14532d; }
.alert-error { background: var(--danger-soft); border-color: #f4c7c7; color: #7f1d1d; }
.alert-info { background: var(--info-soft); border-color: #cfdcff; color: #1e3a8a; }
.alert-warning { background: var(--warning-soft); border-color: #fbdca2; color: #78350f; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------------------------------------------------------------- hero */
.hero { background: linear-gradient(160deg, #0f2f5c 0%, #17457f 58%, #1d5fd6 130%); color: #fff; padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero::after {
	content: ""; position: absolute; right: -160px; top: -140px; width: 460px; height: 460px;
	border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .28), transparent 65%);
}
.hero h1 { color: #fff; font-size: 2.6rem; max-width: 640px; }
.hero p.lead { font-size: 1.07rem; color: #d6e3f5; max-width: 590px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #c4d6ee; font-size: .87rem; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #eaf1fb; font-size: .8rem; font-weight: 600; }

.hero-card { background: #fff; border-radius: 18px; padding: 24px; color: var(--ink); box-shadow: 0 24px 60px rgba(4, 18, 40, .38); }
.hero-card h4 { margin-bottom: 4px; }
.hero-stat { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat strong { color: var(--navy); }

/* ---------------------------------------------------------------- stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.stat-value.hijau { color: var(--success); }
.stat-value.merah { color: var(--danger); }
.stat-value.netral { color: var(--navy); }
.stat-note { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------- pricing */
.paket { display: flex; flex-direction: column; }
.paket-harga { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; }
.paket-harga strong { font-size: 1.9rem; color: var(--navy); letter-spacing: -.02em; }
.paket-fitur { list-style: none; margin: 14px 0 0; padding: 0; font-size: .9rem; }
.paket-fitur li { display: flex; gap: 9px; padding: 6px 0; color: #33475f; }
.paket-fitur li::before { content: "✓"; color: var(--success); font-weight: 700; }
.paket-unggulan { border-color: var(--accent); box-shadow: 0 14px 34px rgba(245, 158, 11, .16); position: relative; }
.paket-label { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #3c2503; font-size: .72rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; letter-spacing: .04em; }

/* ---------------------------------------------------------------- steps & features */
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step { position: relative; padding-left: 52px; }
.step-num { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
table.table th, table.table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table th { background: #f8fafd; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.table tbody tr:hover { background: #fbfcff; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table td.angka { text-align: right; font-variant-numeric: tabular-nums; }
table.table-compact th, table.table-compact td { padding: 9px 12px; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------------------------------------------------------------- empty */
.empty { padding: 44px 22px; text-align: center; color: var(--muted); }
.empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: .5; }
.empty h4 { color: var(--navy); }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: linear-gradient(165deg, #0f2f5c, #1d5fd6); color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-aside h2 { color: #fff; font-size: 1.9rem; }
.auth-aside p { color: #d5e3f5; }
.auth-aside ul { color: #d5e3f5; padding-left: 20px; font-size: .92rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 1.7rem; }

/* ---------------------------------------------------------------- exam */
.exam-head { background: var(--navy); color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.exam-head h4 { color: #fff; margin: 0; font-size: 1rem; }
.exam-head .muted { color: #b9cdec; }
.timer { display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 7px 15px; border-radius: 10px; font-variant-numeric: tabular-nums; font-weight: 700; }
.timer.hampir { background: rgba(185, 28, 28, .28); border-color: rgba(248, 113, 113, .5); }
.exam-layout { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
.question-text { font-size: 1.03rem; line-height: 1.7; color: #1b2f47; }
.question-text p:last-child { margin-bottom: 0; }
.opsi-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.opsi {
	display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
	padding: 13px 15px; border: 1px solid #dbe4ef; border-radius: 10px; background: #fff;
	font: inherit; font-size: .94rem; color: #1b2f47; cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s;
}
.opsi:hover { border-color: var(--primary); background: #f8fbff; }
.opsi.dipilih { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(29, 95, 214, .14); }
.opsi-kode { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #eef2f7; color: #475569; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.opsi.dipilih .opsi-kode { background: var(--primary); color: #fff; }
.nav-soal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.nav-soal button {
	aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid #dbe4ef; background: #fff;
	font: inherit; font-size: .82rem; font-weight: 600; color: #33475f; cursor: pointer;
}
.nav-soal button.dijawab { background: var(--primary-soft); border-color: #b9cdf3; color: var(--primary); }
.nav-soal button.aktif { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav-soal button.ragu { background: var(--warning-soft); border-color: #fbdca2; color: var(--warning); }

.review-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; background: #fff; }
.review-item.benar { border-left: 4px solid var(--success); }
.review-item.salah { border-left: 4px solid var(--danger); }
.review-item.kosong { border-left: 4px solid #94a3b8; }
.review-opsi { padding: 7px 11px; border-radius: 7px; font-size: .89rem; margin-top: 6px; background: #f8fafc; }
.review-opsi.kunci { background: var(--success-soft); color: #14532d; font-weight: 600; }
.review-opsi.pilihan-salah { background: var(--danger-soft); color: #7f1d1d; }
.pembahasan { margin-top: 12px; padding: 12px 14px; border-radius: 9px; background: #f8fafc; font-size: .89rem; color: #33475f; }
.pembahasan strong { color: var(--navy); }

/* ---------------------------------------------------------------- progress */
.progress { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.progress.hijau span { background: var(--success); }
.progress.kuning span { background: var(--accent); }

.bar-row { display: grid; grid-template-columns: 150px 1fr 60px; gap: 12px; align-items: center; font-size: .88rem; padding: 7px 0; }
.bar-track { height: 9px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--primary); }
.bar-fill.hijau { background: var(--success); }
.bar-fill.merah { background: #ef4444; }
.bar-fill.netral { background: #94a3b8; }

/* ---------------------------------------------------------------- footer */
.footer { background: #0b2445; color: #b8c9e0; padding: 46px 0 22px; margin-top: 60px; font-size: .9rem; }
.footer a { color: #d7e4f5; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #95abc9; }

/* ---------------------------------------------------------------- admin */
.admin-shell { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0f2f5c; color: #c9d9ee; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand { color: #fff; padding: 6px 10px 18px; }
.admin-sidebar .brand small { color: #9db6d6; }
.admin-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.admin-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #7f9cbf; padding: 16px 12px 6px; font-weight: 700; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #c9d9ee; font-size: .9rem; font-weight: 500; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.admin-nav a.aktif { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .22); }
.admin-main { background: var(--bg); min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 40; }
.admin-topbar h1 { font-size: 1.18rem; margin: 0; }
.admin-content { padding: 26px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { margin-bottom: 2px; }
.page-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .form-group { margin-bottom: 0; min-width: 170px; }

/* ---------------------------------------------------------------- misc */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: #1b2f47; }
.kode-invoice { font-family: "Consolas", "Courier New", monospace; font-weight: 700; letter-spacing: .03em; }
.rekening { border: 1px dashed #cfd9e6; border-radius: 10px; padding: 12px 14px; background: #fbfcfe; margin-bottom: 10px; }
.rekening strong { display: block; color: var(--navy); font-size: 1.02rem; letter-spacing: .02em; }
.skor-besar { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--navy); }
.page-note { font-size: .84rem; color: var(--muted); }

@media (max-width: 980px) {
	.hero-grid, .grid-3, .grid-4, .stat-grid, .grid-2, .footer-grid, .form-row, .exam-layout, .auth-wrap { grid-template-columns: 1fr; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.auth-aside { display: none; }
	.admin-shell { grid-template-columns: 1fr; }
	.admin-sidebar { position: static; height: auto; }
	.admin-nav { grid-template-columns: repeat(2, 1fr); }
	.hero h1 { font-size: 2.1rem; }
	.nav-links { display: none; }
	.nav-toggle { display: inline-block; }
	.nav-links.terbuka {
		display: flex; flex-direction: column; align-items: stretch;
		position: absolute; left: 0; right: 0; top: 68px; background: #fff;
		padding: 12px 20px 18px; border-bottom: 1px solid var(--line); gap: 4px;
		box-shadow: 0 18px 32px rgba(15, 47, 92, .10);
	}
	.footer-grid { gap: 26px; }
}

@media (max-width: 620px) {
	.section { padding: 44px 0; }
	.grid-3, .grid-4 { grid-template-columns: 1fr; }
	.stat-grid { grid-template-columns: 1fr; }
	.hero h1 { font-size: 1.8rem; }
	.kv { grid-template-columns: 1fr; }
	.bar-row { grid-template-columns: 110px 1fr 44px; }
	.admin-nav { grid-template-columns: 1fr; }
	.admin-content { padding: 18px; }
	.card-head, .card-body { padding-left: 16px; padding-right: 16px; }
	.nav-actions .btn span.hide-sm { display: none; }
}

@media print {
	.navbar, .footer, .exam-head, .no-print { display: none !important; }
	body { background: #fff; }
}

/* =====================================================================
   Halaman login
   ===================================================================== */

.auth-body { background: #081a33; }

.login-page {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	background:
		radial-gradient(900px 600px at 12% 8%, rgba(29, 95, 214, .5), transparent 62%),
		radial-gradient(720px 540px at 88% 92%, rgba(56, 189, 248, .22), transparent 60%),
		linear-gradient(155deg, #071527 0%, #0b2242 45%, #081a33 100%);
}

.login-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .55;
	pointer-events: none;
	animation: login-melayang 14s ease-in-out infinite;
}

.login-glow-1 { width: 420px; height: 420px; top: -120px; left: -80px; background: rgba(37, 99, 235, .55); }
.login-glow-2 { width: 480px; height: 480px; bottom: -180px; right: -140px; background: rgba(14, 165, 233, .32); animation-delay: -6s; }

.login-grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 78%);
	pointer-events: none;
}

@keyframes login-melayang {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(18px, 26px, 0) scale(1.06); }
}

.login-wrap {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
	padding: 56px 28px;
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 64px;
	align-items: center;
}

.login-brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; margin-bottom: 34px; }
.login-brand .brand-mark { width: 50px; height: 50px; font-size: 1.05rem; border-radius: 15px; box-shadow: 0 12px 30px rgba(29, 95, 214, .45); }
.login-brand-teks { display: flex; flex-direction: column; line-height: 1.25; }
.login-brand-teks strong { font-size: 1.05rem; letter-spacing: .01em; }
.login-brand-teks small { color: #9db6d6; font-size: .78rem; }

.login-intro h1 {
	color: #fff;
	font-size: clamp(2rem, 3.2vw, 2.85rem);
	line-height: 1.14;
	letter-spacing: -.022em;
	margin: 0 0 16px;
}

.login-grad {
	background: linear-gradient(100deg, #7dd3fc, #60a5fa 45%, #c7d2fe);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.login-lead { color: #b9cbe4; font-size: .98rem; max-width: 30rem; margin: 0 0 30px; }

.login-perks { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; }
.login-perks li { display: flex; align-items: flex-start; gap: 13px; }
.login-perk-ikon {
	flex: 0 0 auto;
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 12px;
	font-size: 1rem;
	color: #bfdbfe;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .12);
}
.login-perks strong { display: block; color: #edf4ff; font-size: .92rem; font-weight: 600; }
.login-perks small { color: #93a9c7; font-size: .8rem; }

.login-stats { display: flex; gap: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 30rem; }
.login-stats strong { display: block; color: #fff; font-size: 1.45rem; line-height: 1.2; }
.login-stats span { color: #8ba4c5; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.login-card {
	width: 100%;
	max-width: 442px;
	background: #fff;
	border-radius: 22px;
	padding: 34px 32px 28px;
	box-shadow: 0 32px 70px rgba(2, 10, 26, .5), 0 0 0 1px rgba(255, 255, 255, .06);
}

.login-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.login-card h2 { margin: 14px 0 4px; font-size: 1.55rem; letter-spacing: -.01em; }
.login-sub { color: var(--muted); font-size: .88rem; margin: 0 0 20px; }

.login-field { margin-bottom: 15px; }
.login-field label { display: block; font-size: .82rem; font-weight: 600; color: #334155; margin-bottom: 6px; }

.login-input { position: relative; display: flex; align-items: center; }
.login-input-ikon { position: absolute; left: 13px; font-size: .95rem; opacity: .55; pointer-events: none; }

.login-control {
	width: 100%;
	padding: 12px 62px 12px 38px;
	font-family: inherit;
	font-size: .94rem;
	color: var(--ink);
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 11px;
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.login-control::placeholder { color: #94a3b8; }
.login-control:focus {
	background: #fff;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(29, 95, 214, .13);
}

.login-toggle {
	position: absolute;
	right: 7px;
	border: 0;
	background: transparent;
	color: var(--primary);
	font-family: inherit;
	font-size: .78rem;
	font-weight: 700;
	padding: 7px 9px;
	border-radius: 8px;
	cursor: pointer;
}
.login-toggle:hover { background: var(--primary-soft); }

.login-submit { margin-top: 8px; border-radius: 12px; box-shadow: 0 12px 26px rgba(29, 95, 214, .28); }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: #94a3b8; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.login-demo { display: grid; gap: 8px; }
.login-demo-item {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 9px 12px;
	font-family: inherit;
	font-size: .8rem;
	color: var(--ink);
	text-align: left;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.login-demo-item:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.login-demo-note { font-size: .72rem; color: var(--muted); margin: 8px 0 0; text-align: center; }

.login-daftar { text-align: center; font-size: .86rem; margin: 18px 0 0; color: var(--muted); }
.login-foot { color: #7f97b8; font-size: .75rem; text-align: center; margin: 18px 0 0; }

@media (max-width: 900px) {
	.login-wrap { grid-template-columns: 1fr; gap: 26px; padding: 32px 18px 40px; align-content: center; }
	.login-intro { text-align: center; }
	.login-brand { margin-bottom: 20px; justify-content: center; }
	.login-intro h1 { font-size: 1.7rem; }
	.login-lead, .login-perks, .login-stats { display: none; }
	.login-card { padding: 26px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.login-glow { animation: none; }
}

/* =====================================================================
   Keamanan halaman ujian
   ===================================================================== */

.exam-watermark {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
	user-select: none;
	overflow: hidden;
}

.exam-watermark span {
	font-size: clamp(2.4rem, 6vw, 5rem);
	font-weight: 800;
	letter-spacing: .06em;
	color: #0f2f5c;
	opacity: .045;
	transform: rotate(-24deg);
	white-space: nowrap;
	line-height: 1.6;
}

.exam-layout { position: relative; z-index: 1; }
.exam-layout .question-text, .exam-layout .opsi-list { user-select: none; -webkit-user-select: none; }

.exam-secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--success-soft);
	border: 1px solid #c6e7d1;
	color: #14532d;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .03em;
	white-space: nowrap;
}

.exam-guard {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 14px;
	margin-bottom: 16px;
	border-radius: var(--radius-sm);
	background: #eef4ff;
	border: 1px solid #d6e3fb;
	font-size: .8rem;
	color: #1e3a8a;
}
.exam-guard strong { color: #1e3a8a; }
.exam-guard .hitungan { font-variant-numeric: tabular-nums; font-weight: 700; }

.exam-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 60;
	max-width: min(92vw, 460px);
	padding: 12px 18px;
	border-radius: 12px;
	background: #0f172a;
	color: #f8fafc;
	font-size: .84rem;
	line-height: 1.5;
	box-shadow: 0 18px 40px rgba(2, 10, 26, .35);
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: transform .22s ease, opacity .22s ease;
}
.exam-toast.tampil { transform: translate(-50%, 0); opacity: 1; }
.exam-toast strong { color: #fde68a; }

@media print {
	.exam-watermark { display: none; }
}
