:root {
  --blue: #0d6efd;
  --blue-dark: #0b5ed7;
  --green: #198754;
  --green-bright: #28a745;
  --red: #e60000;
  --red-btn: #dc3545;
  --yellow: #ffc107;
  --yellow-soft: #ffe066;
  --gray: #6c757d;
  --text: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
  --bg: #f4f6f9;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; font-size: 16px; }
button, input { font: inherit; }
a { color: var(--blue); }
.hidden { display: none !important; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 16px; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 6px; padding: 9px 16px; cursor: pointer; font-size: 1rem; text-decoration: none; line-height: 1.3;
  transition: background .15s, box-shadow .15s, opacity .15s; color: #fff; background: var(--gray); }
.btn:focus-visible { outline: 3px solid rgba(13, 110, 253, .45); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--blue); }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn-success { background: var(--green); }
.btn-success:hover:not(:disabled) { background: #157347; }
.btn-danger { background: var(--red-btn); }
.btn-danger:hover:not(:disabled) { background: #bb2d3b; }
.btn-warning { background: var(--yellow); color: #000; }
.btn-warning:hover:not(:disabled) { background: #ffca2c; }
.btn-secondary { background: var(--gray); }
.btn-secondary:hover:not(:disabled) { background: #5c636a; }
.btn-outline-danger { background: #fff; color: var(--red-btn); border-color: var(--red-btn); }
.btn-outline-danger:hover:not(:disabled) { background: #fff5f5; }
.btn-light { background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .32); }
.btn-lg { padding: 12px 22px; font-size: 1.2rem; }
.btn-block { width: 100%; }
.ico { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }

/* ---------- Header situs ---------- */
.site-header { background: linear-gradient(90deg, #1e3c72, #2a5298 60%, #4a6fb3); color: #fff; }
.site-header > .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand-logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.brand-logo svg { width: 44px; height: 44px; }
.brand h1 { margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: .3px; }
.brand p { margin: 2px 0 0; opacity: .9; font-size: .98rem; }
.user-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.user-nav .hello { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }

main.page { padding: 40px 0 60px; }

/* ---------- Kartu ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 12px 20px; font-size: 1.6rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-head.blue { background: var(--blue); color: #fff; }
.card-head.yellow { background: var(--yellow); color: #212529; font-size: 1.45rem; }
.card-head.plain { background: #f8f9fa; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
.card-body { padding: 20px; }

/* ---------- Halaman info ujian ---------- */
.info-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 18px; }
.desc { font-size: 1.15rem; color: #444; margin: 0; }
.section-title { font-size: 1.15rem; color: #444; padding-bottom: 8px; border-bottom: 2px solid var(--border); margin: 0 0 8px; font-weight: 500; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 1.1rem; vertical-align: top; }
.kv td:first-child { white-space: nowrap; }
.kv td:last-child { font-weight: 700; }
.materi { list-style: none; padding: 0; margin: 0; }
.materi li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: 1.1rem; }
.materi .name { display: flex; align-items: center; gap: 8px; }
.pill { background: #555c63; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 8px; padding: 7px 0; font-size: 1.08rem; align-items: flex-start; }
.checklist .ok { color: var(--green); } .checklist .no { color: var(--red-btn); } .checklist .clock { color: #f0ad00; }
.action-card .card-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; }
.nab-list { display: flex; flex-direction: column; gap: 2px; font-weight: 700; }
.nab-list small { font-weight: 400; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-start; justify-content: center; padding: 140px 16px 16px; z-index: 1000; animation: fade .15s; }
.modal { background: #fff; border-radius: 8px; width: 100%; max-width: 624px; box-shadow: 0 10px 40px rgba(0,0,0,.3); overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #f8f9fa; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 1.45rem; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.modal-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: #555; padding: 0 4px; }
.modal-body { padding: 20px; font-size: 1.1rem; }
.modal-body ul { margin: 10px 0 0; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Form auth ---------- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; }
.tabs button { border: 0; background: #e9ecef; padding: 14px; font-weight: 600; cursor: pointer; font-size: 1.05rem; color: #495057; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input { border: 1px solid #ced4da; border-radius: 6px; padding: 10px 12px; font-size: 1rem; }
.field input:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 3px rgba(13, 110, 253, .2); }
.alert { border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; font-size: .98rem; }
.alert-danger { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.alert-info { background: #0dcaf0; color: #052c33; font-size: 1.08rem; padding: 18px 20px; border-radius: 8px; }
.alert-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; }

/* ---------- Daftar ujian ---------- */
.page-title { font-size: 1.6rem; margin: 0 0 20px; }
.exam-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.exam-card .card-body { display: flex; flex-direction: column; gap: 12px; }
.exam-card h3 { margin: 0; font-size: 1.25rem; }
.exam-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: .82rem; font-weight: 700; color: #fff; }
.badge-blue { background: var(--blue); } .badge-green { background: var(--green); } .badge-yellow { background: var(--yellow); color: #000; } .badge-gray { background: var(--gray); }

/* ---------- Halaman ujian ---------- */
body.exam { background: #f4f5f8; }
.exam-header { background: linear-gradient(90deg, #6673e6, #7b5cc7 55%, #8a52b4); color: #fff; position: sticky; top: 0; z-index: 50; }
.exam-header .bar { display: grid; grid-template-columns: minmax(200px, 360px) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 14px 16px; }
.exam-title h1 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.exam-title p { margin: 2px 0 0; opacity: .85; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-box { background: rgba(255, 255, 255, .2); border-radius: 14px; padding: 12px 18px 14px; }
.progress-box .count { text-align: right; font-size: 1rem; margin-bottom: 6px; }
.progress-track { height: 10px; background: rgba(255, 255, 255, .9); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 999px; width: 0; transition: width .3s; }
.timer { background: rgba(255, 255, 255, .22); border-radius: 22px; padding: 12px 28px; font-size: 2rem; font-weight: 700; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.timer.warn { background: #dc3545; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .8; } }
.exam-body { display: grid; grid-template-columns: 365px minmax(0, 1fr); gap: 30px; padding: 20px 16px 30px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.nav-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 14px 16px 24px; }
.nav-panel h2 { font-size: 1.2rem; font-weight: 500; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.nav-scroll { max-height: calc(100vh - 330px); min-height: 200px; overflow-y: auto; padding-right: 10px; }
.nav-grid { display: grid; grid-template-columns: repeat(5, 49px); gap: 8px; }
.nav-btn { width: 49px; height: 49px; border-radius: 8px; border: 2px solid rgba(0,0,0,.15); color: #fff; background: var(--red); font-size: 1.1rem; font-weight: 500; cursor: pointer; padding: 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.nav-btn.done { background: var(--green-bright); }
.nav-btn.active { background: var(--yellow-soft); color: #fff; border-color: #e0b000; }
.nav-btn:focus-visible { outline: 3px solid #0d6efd; outline-offset: 1px; }
.legend { list-style: none; margin: 18px 0 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.legend .dot { width: 24px; height: 24px; border-radius: 50%; }
.legend .dot.g { background: var(--green-bright); } .legend .dot.y { background: var(--yellow-soft); } .legend .dot.r { background: var(--red); }
.finish-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.q-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 38px; min-height: 560px; display: flex; flex-direction: column; }
.q-card h2 { margin: 0 0 6px; font-size: 1.85rem; font-weight: 500; }
.subtes-badge { align-self: flex-start; display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 6px; }
.q-sep { border: 0; border-top: 1px solid #e9ecef; margin: 16px 0 30px; }
.q-stem { background: #f8f9fa; border-left: 5px solid var(--blue); border-radius: 8px; padding: 24px 28px; font-size: 1.12rem; white-space: pre-line; line-height: 1.8; }
.q-image { margin-top: 18px; text-align: center; }
.q-image img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.options { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.opt { display: flex; align-items: flex-start; gap: 22px; text-align: left; width: 100%; background: #fff; border: 2px solid #e3e6ea; border-radius: 10px; padding: 18px 16px; cursor: pointer; font-size: 1.1rem; color: var(--text); transition: border-color .12s, background .12s; }
.opt:hover { border-color: #b6d4fe; }
.opt .letter { width: 44px; height: 44px; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; font-weight: 700; flex: none; }
.opt .txt { padding-top: 8px; }
.opt.selected { border-color: var(--blue); background: #f0f6ff; color: var(--blue-dark); }
.opt.selected .letter { background: var(--blue); color: #fff; }
.options.letters { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.options.letters .opt { width: auto; min-width: 110px; justify-content: center; align-items: center; gap: 0; }
.options.letters .opt .txt { display: none; }
.q-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 30px; flex-wrap: wrap; }
.save-state { font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.save-state.err { color: var(--red-btn); font-weight: 600; }
.save-state.ok { color: var(--green); }
.nav-toggle { display: none; }
.offline-banner { background: #dc3545; color: #fff; text-align: center; padding: 6px; font-weight: 600; }
.center-msg { max-width: 560px; margin: 80px auto; text-align: center; }

/* ---------- Hasil ---------- */
.result-title { display: flex; align-items: center; gap: 16px; font-size: 2.2rem; font-weight: 600; color: #1d3557; margin: 0; }
.result-title svg { width: 40px; height: 40px; fill: var(--green); }
.result-sub { color: #555; font-size: 1.15rem; margin: 8px 0 40px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.score-card { background: linear-gradient(120deg, #6673e6, #8152b9); border-radius: var(--radius); color: #fff; padding: 40px 24px 26px; text-align: center; }
.score-total { font-size: 4.3rem; font-weight: 800; line-height: 1; }
.score-label { font-size: 1.4rem; margin-top: 6px; }
.status-pill { display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 1rem; }
.status-pill.pass { background: #d1e7dd; color: #0f5132; } .status-pill.fail { background: #f8d7da; color: #842029; }
.score-subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.score-sub .val { font-size: 2.3rem; font-weight: 800; color: #26c6f9; line-height: 1.1; }
.score-sub .name { font-size: 1.02rem; margin-top: 6px; }
.score-sub .meta { font-size: .88rem; opacity: .9; margin-top: 4px; }
.score-sub .st { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.score-sub .st.pass { background: #d1e7dd; color: #0f5132; } .score-sub .st.fail { background: #f8d7da; color: #842029; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table td { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
.detail-table td:first-child { color: #555; }
.detail-table td:last-child { text-align: right; font-weight: 500; }
.detail-table tr:last-child td { border-bottom: 0; }
.result-actions { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.nab-note { margin-top: 18px; font-size: .9rem; color: #555; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .exam-body { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
  .nav-grid { grid-template-columns: repeat(5, 42px); gap: 6px; }
  .nav-btn { width: 42px; height: 42px; font-size: 1rem; }
}
@media (max-width: 900px) {
  .info-grid, .result-grid { grid-template-columns: 1fr; }
  .info-cols { grid-template-columns: 1fr; gap: 20px; }
  .exam-header .bar { grid-template-columns: 1fr auto; gap: 10px 14px; padding: 10px 16px; }
  .exam-title { grid-column: 1 / -1; }
  .exam-title h1 { font-size: 1.15rem; }
  .progress-box { padding: 8px 12px 10px; }
  .timer { font-size: 1.35rem; padding: 8px 16px; }
  .exam-body { grid-template-columns: 1fr; padding: 12px 16px 24px; gap: 14px; }
  .side { position: static; gap: 12px; }
  .nav-panel { padding: 14px 16px; }
  .nav-panel h2 { margin: 0; }
  .nav-panel:not(.collapsed) h2 { margin-bottom: 14px; }
  .nav-toggle { margin-left: auto; padding: 6px 14px; font-size: .9rem; }
  .finish-box { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .nav-panel.collapsed .nav-collapsible { display: none; }
  .nav-scroll { max-height: none; }
  .nav-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
  .nav-btn { width: 100%; }
  .q-card { padding: 20px 18px; min-height: 0; }
  .q-card h2 { font-size: 1.4rem; }
  .q-stem { padding: 16px 18px; font-size: 1.02rem; line-height: 1.7; }
  .opt { gap: 14px; padding: 12px; font-size: 1rem; }
  .opt .letter { width: 36px; height: 36px; }
  .opt .txt { padding-top: 5px; }
  .options.letters .opt { min-width: 0; flex: 1 1 18%; }
  .brand-logo { width: 48px; height: 48px; } .brand-logo svg { width: 34px; height: 34px; }
  .brand h1 { font-size: 1.25rem; }
  .card-head { font-size: 1.3rem; }
  .score-subs { grid-template-columns: 1fr; }
  .score-total { font-size: 3.4rem; }
  .modal-backdrop { padding-top: 60px; }
}
@media (max-width: 480px) {
  .user-nav .hello { width: 100%; }
  .q-actions .btn { flex: 1; }
  .kv td { padding: 12px 8px; }
}
.stack { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Menu utama ---------- */
.main-nav { background: rgba(0, 0, 0, .18); }
.main-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); text-decoration: none; padding: 12px 16px; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: #fff; border-bottom-color: #f2c14e; }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stat .k { color: var(--muted); font-size: .92rem; }
.stat .v { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { color: var(--muted); font-size: .85rem; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff3cd; border: 1px solid #ffe69c; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.empty { color: var(--muted); padding: 8px 0; }
.meter-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.meter-row:last-child { border-bottom: 0; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: .97rem; }
.meter-top .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { height: 8px; background: #e9ecef; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.meter.lemah > span { background: var(--red-btn); } .meter.cukup > span { background: #f0ad00; } .meter.kuat > span { background: var(--green); } .meter.belum > span { background: #adb5bd; }
.meter-sub { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.trend { width: 100%; height: auto; display: block; }
.trend .grid { stroke: #e9ecef; } .trend .line { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.trend .dot { fill: #fff; stroke: var(--blue); stroke-width: 2.5; } .trend .nab { stroke: var(--red-btn); stroke-dasharray: 5 4; }
.trend text { font-size: 11px; fill: #6c757d; font-family: var(--font); }

/* ---------- Try Out ---------- */
.to-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.to-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--blue); }
.to-card .no { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.to-card h3 { margin: 0; font-size: 1.15rem; }
.to-card .btn { margin-top: auto; }
.to-card.locked { border-top-color: #adb5bd; background: #f8f9fa; }
.to-card.locked h3 { color: #6c757d; }
.ghost { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #e9ecef, #dee2e6); }
.ghost.w60 { width: 60%; } .ghost.w80 { width: 80%; } .ghost.w40 { width: 40%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .page-title { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Belajar ---------- */
.rek-card { background: linear-gradient(120deg, #1e3c72, #2a5298); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.rek-card h2 { margin: 4px 0; font-size: 1.5rem; }
.rek-card p { margin: 0; opacity: .9; }
.rek-card .eyebrow { font-size: .85rem; text-transform: uppercase; letter-spacing: .8px; opacity: .8; }
.kel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.kel-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.kel-item:last-child { border-bottom: 0; }
.kel-item .meter { grid-column: 1 / -1; margin-top: 0; }
.btn-sm { padding: 5px 12px; font-size: .88rem; }
.drill-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.drill-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.drill-dots button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ced4da; background: #fff; cursor: pointer; font-weight: 600; }
.drill-dots button.cur { border-color: var(--blue); color: var(--blue); }
.drill-dots button.ok { background: var(--green); border-color: var(--green); color: #fff; }
.drill-dots button.no { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.drill-dots button.mid { background: #f0ad00; border-color: #f0ad00; color: #fff; }
.opt.correct { border-color: var(--green); background: #e9f7ef; color: #0f5132; }
.opt.correct .letter { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red-btn); background: #fdecee; color: #842029; }
.opt.wrong .letter { background: var(--red-btn); color: #fff; }
.opt.partial { border-color: #f0ad00; background: #fff8e6; color: #664d03; }
.opt.partial .letter { background: #f0ad00; color: #fff; }
.feedback.mid { background: #fff8e6; border: 1px solid #ffe69c; }
.opt:disabled { cursor: default; }
.opt .skor-opsi { margin-left: auto; align-self: center; font-weight: 700; font-size: .9rem; white-space: nowrap; padding-left: 8px; }
.feedback { margin-top: 22px; border-radius: 8px; padding: 16px 20px; }
.feedback.ok { background: #e9f7ef; border: 1px solid #badbcc; }
.feedback.no { background: #fdecee; border: 1px solid #f5c2c7; }
.feedback h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feedback p { margin: 0; line-height: 1.7; }
.q-card.drill { min-height: 0; }
@media (max-width: 900px) {
  .dash-grid, .kel-grid { grid-template-columns: 1fr; }
  .main-nav a { padding: 10px 12px; }
  .stat .v { font-size: 1.6rem; }
}

/* Pengumuman admin di dashboard peserta */
.pengumuman { display: flex; gap: 12px; align-items: flex-start; background: #e7f1ff; border: 1px solid #b6d4fe; color: #084298; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.pengumuman .ico { flex: none; margin-top: 3px; fill: currentColor; }
.pengumuman p { margin: 4px 0 0; white-space: pre-wrap; color: #1f3b63; }

/* Ajak teman (referral) */
.ajak { border: 1px solid #c3d9ff; }
.card-head.ajak-head { background: linear-gradient(120deg, #1e3c72, #2a5298); color: #fff; font-size: 1.25rem; }
.card-head.ajak-head .ico { fill: #f2c14e; }
.ajak-isi { margin: 0 0 16px; line-height: 1.7; }
.ajak-progres { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.ajak-titik { display: flex; gap: 10px; margin-top: 10px; }
.ajak-titik span { width: 36px; height: 36px; border-radius: 50%; border: 2px dashed #adb5bd; display: grid; place-items: center; }
.ajak-titik span .ico { fill: #adb5bd; }
.ajak-titik span.isi { border: 2px solid var(--green); background: var(--green); }
.ajak-titik span.isi .ico { fill: #fff; }
.ajak-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.ajak-baris { display: flex; gap: 8px; }
.ajak-link { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #ced4da; border-radius: 6px; background: #f8f9fa; font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.ajak-aksi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ajak-status { color: var(--green); font-weight: 600; font-size: .9rem; }
.ajak-detail { margin-top: 14px; }
.ajak-detail summary { cursor: pointer; font-weight: 600; }
.ajak-teman { list-style: none; padding: 0; margin: 10px 0; }
.ajak-teman li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--border); }
.ajak-teman .ok .ico { fill: var(--green); } .ajak-teman .no .ico { fill: var(--red-btn); }
.to-card.ajak-kunci { border-top-color: #f0ad00; cursor: pointer; }
.to-card.ajak-kunci:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.badge-orange { background: #f0ad00; color: #212529; }
.lanjut-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff8e6; border: 1px solid #ffe69c; border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.lanjut-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.lanjut-card p { margin: 0; }

/* Pembahasan try out */
.bahas-wrap { margin-top: 36px; }
.bahas-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.bahas-filter button { border: 1px solid #ced4da; background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .9rem; }
.bahas-filter button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.bahas-item { margin-bottom: 18px; }
.bahas-item .card-body { padding: 18px 20px; }
.bahas-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.bahas-top strong { color: var(--text); font-size: 1rem; }
.bahas-stem { white-space: pre-wrap; line-height: 1.7; margin: 0; }
.bahas-item .options { margin-top: 16px; gap: 10px; }
.bahas-item .opt { cursor: default; font-size: 1rem; padding: 10px 12px; gap: 14px; }
.bahas-item .opt .letter { width: 34px; height: 34px; }
.bahas-item .opt .txt { padding-top: 5px; }
.bahas-item .opt .label-kamu { font-size: .78rem; font-weight: 700; margin-left: 6px; }
.bahas-item .feedback { margin-top: 14px; padding: 12px 16px; }
.bahas-item .feedback p { white-space: pre-wrap; }
a.to-card { color: inherit; text-decoration: none; }
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert .ico { fill: currentColor; vertical-align: -2px; }
