/* ==================================================================
   Tryout PMB - Stylesheet utama (landing, peserta, admin)
   Warna utama diatur dinamis dari panel admin via variabel CSS.
   ================================================================== */
:root {
  --primary: #0b3d91; --accent: #f5a623; --exam: #1f4e8c;
  --ink: #142033; --ink-2: #4a5568; --muted: #718096; --line: #e2e8f0;
  --bg: #f5f7fb; --card: #fff; --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.14);
  --green: #16a34a; --red: #dc2626; --amber: #d97706; --blue: #2563eb;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .85em; } .mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; }
.text-center { text-align: center; } .text-right { text-align: right; } .nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; } .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; vertical-align: -3px; flex-shrink: 0; }
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.span-2 { grid-column: span 2; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .hide-sm { display: none; } }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: .15s; background: #eef2f7; color: var(--ink); white-space: nowrap; }
.btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #1b1300; }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-warning { background: #fbbf24; color: #3b2a00; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; } .btn-lg { padding: .9rem 1.5rem; font-size: 1.05rem; } .btn-block { width: 100%; }
.btn-icon { padding: .4rem; }

/* ---------- Form ---------- */
.form label, label.field { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], input[type=search], input[type=file], select, textarea, input:not([type]) {
  display: block; width: 100%; margin-top: .3rem; padding: .62rem .8rem; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); font: inherit; font-weight: 400; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
input[type=color] { width: 70px; height: 40px; padding: 2px; border: 1px solid #cbd5e1; border-radius: 8px; margin-top: .3rem; display: block; }
textarea { min-height: 96px; resize: vertical; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.check { display: flex !important; align-items: flex-start; gap: .55rem; font-weight: 500 !important; cursor: pointer; }
.check input { margin-top: .3rem; width: 17px; height: 17px; accent-color: var(--primary); }
.help { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.req::after { content: " *"; color: var(--red); }
.input-group { display: flex; gap: .5rem; align-items: flex-end; } .input-group > * { flex: 1; }
.captcha-box { display: flex; align-items: center; gap: .8rem; }
.captcha-q { background: #eef2f7; border: 1px dashed #94a3b8; padding: .55rem .9rem; border-radius: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; margin-top: .3rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem .3rem; margin: 0 0 1.2rem; }
legend { font-weight: 700; padding: 0 .5rem; color: var(--primary); }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 2.6rem; }
.pw-eye { position: absolute; right: .5rem; bottom: .45rem; background: none; border: 0; cursor: pointer; color: var(--muted); padding: .2rem; }

/* ---------- Kartu, alert, badge, tabel ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; margin-bottom: 1.2rem; border: 1px solid #edf1f6; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
.card.narrow { max-width: 520px; margin: 0 auto; }
.alert { position: relative; padding: .85rem 2.4rem .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid; font-size: .93rem; }
.alert-success { background: #ecfdf3; border-color: #a6f4c5; color: #05603a; }
.alert-danger { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.alert-info { background: #eff8ff; border-color: #b2ddff; color: #194185; }
.alert-close { position: absolute; right: .6rem; top: .5rem; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; }
.badge { display: inline-block; padding: .18rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #166534; } .badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; } .badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #eef2f7; color: #475569; } .badge-purple { background: #ede9fe; color: #5b21b6; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f8fafc; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); white-space: nowrap; }
.table tr:hover td { background: #fafcff; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.pagination { display: flex; gap: .3rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.pagination a, .pagination span.active { padding: .35rem .75rem; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
.pagination span.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .muted { margin-left: .6rem; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); border: 1px solid #edf1f6; display: flex; gap: 1rem; align-items: center; }
.stat .stat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); }
.stat .stat-ic .ic { width: 22px; height: 22px; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.1; } .stat span { color: var(--muted); font-size: .85rem; }
.bars { display: grid; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 48px; gap: .7rem; align-items: center; font-size: .88rem; }
.bar-track { background: #eef2f7; border-radius: 99px; height: 12px; overflow: hidden; }
.bar-fill { background: var(--primary); height: 100%; border-radius: 99px; }
.bar-fill.accent { background: var(--accent); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: .35rem 1rem; font-size: .93rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: .4rem; } }
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; padding: .7rem 1rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs .active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; } .tab-pane.active { display: block; }
.big-code { font-size: 4rem; margin: 0; color: var(--primary); }
.score-big { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.preview-html img { max-width: 100%; } .preview-html { overflow-wrap: anywhere; }
.thumb { max-height: 70px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 4px; }

/* ---------- Header publik ---------- */
.site-header, .topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none !important; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; } .brand b { font-size: 1rem; } .brand small { color: var(--muted); font-size: .76rem; }
.brand-light { color: #fff; } .brand-light small { color: rgba(255,255,255,.7); }
.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav > a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .93rem; display: inline-flex; gap: .35rem; align-items: center; }
.main-nav > a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); gap: .7rem; }
  .main-nav.open { display: flex; }
}

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); color: #fff; padding: 5rem 0 6rem; }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px; background: var(--bg); clip-path: ellipse(70% 100% at 50% 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.1rem; opacity: .92; max-width: 600px; }
.hero-badge { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .35rem .9rem; border-radius: 99px; font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { margin-top: 1rem; font-size: .9rem; opacity: .85; }
.hero-visual { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.5deg); }
.hero-visual img { display: block; width: 100%; }
.mock-head { background: var(--exam); color: #fff; padding: .7rem 1rem; display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1fr 110px; gap: .8rem; padding: 1rem; }
.mock-q { font-size: .85rem; } .mock-q p { margin: 0 0 .6rem; }
.mock-opt { border: 1px solid var(--line); border-radius: 8px; padding: .35rem .6rem; margin-bottom: .35rem; font-size: .8rem; display: flex; gap: .5rem; }
.mock-opt b { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #94a3b8; display: grid; place-items: center; font-size: .7rem; flex-shrink: 0; }
.mock-opt.sel { border-color: var(--exam); background: color-mix(in srgb, var(--exam) 8%, #fff); } .mock-opt.sel b { background: var(--exam); color: #fff; border-color: var(--exam); }
.mock-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-content: start; }
.mock-nums i { font-style: normal; font-size: .65rem; text-align: center; border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 0; }
.mock-nums i.a { background: #16a34a; color: #fff; border-color: #16a34a; } .mock-nums i.r { background: #facc15; border-color: #eab308; }
.mock-timer { background: #fff; color: var(--exam); padding: 1px 8px; border-radius: 5px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { transform: none; } .hero { padding: 3.5rem 0 5rem; } }

.section { padding: 4.5rem 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: .4rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: .2s; height: 100%; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .f-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); margin-bottom: 1rem; }
.feature .f-ic .ic { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; } .feature p { color: var(--ink-2); margin: 0; font-size: .93rem; }
.stats-band { margin-top: -3rem; position: relative; z-index: 2; }
.stats-band .grid-4 > div { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.3rem; text-align: center; }
.stats-band b { display: block; font-size: 2rem; color: var(--primary); line-height: 1.1; }
.stats-band span { color: var(--muted); font-size: .88rem; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; counter-reset: step; }
.tl-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.2rem 1.2rem; }
.tl-item::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 1.2rem; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #1b1300; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--bg); }
.section.alt .tl-item::before { box-shadow: 0 0 0 5px #fff; }
.tl-item h3 { font-size: 1rem; margin-top: .5rem; } .tl-item p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.sched-list { display: grid; gap: .7rem; max-width: 760px; margin: 0 auto; }
.sched-item { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius-sm); border-left: 4px solid var(--primary); box-shadow: var(--shadow); flex-wrap: wrap; }
.sched-item b { color: var(--ink); } .sched-item span { color: var(--primary); font-weight: 700; }
.subtes-table td:last-child, .subtes-table th:last-child, .subtes-table td:nth-child(3), .subtes-table th:nth-child(3) { text-align: center; }
.prodi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; gap: .9rem; align-items: center; }
.prodi-card .jenjang { background: var(--primary); color: #fff; font-weight: 800; border-radius: 10px; padding: .55rem .6rem; font-size: .85rem; min-width: 50px; text-align: center; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .7rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 1rem; margin: 0; }
.cta-band { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 65%, #000)); color: #fff; border-radius: 20px; padding: 2.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; } .cta-band p { margin: 0; opacity: .9; }
.news-item { border-bottom: 1px dashed var(--line); padding: .8rem 0; } .news-item:last-child { border: 0; }
.news-item h4 { margin: 0 0 .2rem; } .news-item p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.map-embed { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.site-footer { background: #0e1726; color: rgba(255,255,255,.78); padding: 3.5rem 0 0; margin-top: 3rem; }
.site-footer h4 { color: #fff; } .site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; } .contact-list li { display: flex; gap: .5rem; align-items: center; }
.footer-bottom { text-align: center; padding: 1.2rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Halaman auth ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(900px 400px at 0% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent), radial-gradient(900px 400px at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--bg); }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2rem; }
.auth-card.wide { width: min(860px, 100%); }
.auth-head { text-align: center; margin-bottom: 1.4rem; }
.auth-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: .6rem; }
.auth-head h1 { font-size: 1.4rem; margin-bottom: .2rem; }
.auth-foot { text-align: center; margin-top: 1.2rem; font-size: .92rem; }
.req-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; font-size: .9rem; }
.req-list .ok { color: var(--green); } .req-list .no { color: var(--red); font-weight: 700; }
.steps-list li { margin-bottom: .5rem; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.success-box { text-align: center; } .success-box .no-big { font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; color: var(--primary); background: #eef4ff; padding: .7rem; border-radius: 10px; margin: .8rem 0; }

/* ---------- Panel peserta ---------- */
.page { padding: 1.8rem 0 3rem; min-height: 70vh; }
.page-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-title h1 { font-size: 1.5rem; margin: 0; }
.welcome { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); color: #fff; border-radius: var(--radius); padding: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.welcome h2 { margin: 0 0 .2rem; } .welcome p { margin: 0; opacity: .9; }
.to-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: #fff; display: grid; gap: .6rem; }
.to-card h3 { margin: 0; font-size: 1.08rem; }
.to-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .87rem; color: var(--ink-2); }
.to-meta span { display: inline-flex; gap: .3rem; align-items: center; }
.mini-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.score-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.score-tile small { color: var(--muted); display: block; font-weight: 600; } .score-tile b { font-size: 1.5rem; color: var(--primary); }
.review-q { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1rem; background: #fff; }
.review-q.ok { border-left: 5px solid var(--green); } .review-q.bad { border-left: 5px solid var(--red); } .review-q.empty { border-left: 5px solid #cbd5e1; }
.review-opt { padding: .35rem .6rem; border-radius: 6px; margin: .2rem 0; font-size: .93rem; }
.review-opt.key { background: #dcfce7; font-weight: 600; } .review-opt.wrong { background: #fee2e2; text-decoration: line-through; }
.pembahasan { background: #f8fafc; border-radius: 8px; padding: .8rem 1rem; margin-top: .7rem; font-size: .93rem; border: 1px dashed #cbd5e1; }

/* ---------- Kartu peserta (cetak) ---------- */
.id-card { max-width: 760px; margin: 0 auto; background: #fff; border: 2px solid var(--primary); border-radius: 14px; overflow: hidden; }
.id-card-head { background: var(--primary); color: #fff; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.3rem; }
.id-card-head img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 4px; object-fit: contain; }
.id-card-head h2 { margin: 0; font-size: 1.15rem; } .id-card-head p { margin: 0; opacity: .85; font-size: .85rem; }
.id-card-body { display: grid; grid-template-columns: 130px 1fr; gap: 1.3rem; padding: 1.3rem; }
.id-photo { width: 130px; height: 165px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; background: #f1f5f9; display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; }
.id-no { font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; color: var(--primary); }
.id-card-foot { border-top: 1px dashed var(--line); padding: 1rem 1.3rem; font-size: .85rem; color: var(--ink-2); }
.id-card-foot ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* ---------- Admin ---------- */
.admin { background: #f3f5f9; }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: #0e1726; color: rgba(255,255,255,.75); position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.sidebar-brand { display: flex; gap: .7rem; align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 9px; padding: 3px; }
.sidebar-brand b { color: #fff; display: block; } .sidebar-brand small { font-size: .75rem; }
.side-group { padding: 1.1rem 1.2rem .35rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .5; }
.sidebar nav a { display: flex; gap: .7rem; align-items: center; padding: .55rem 1.2rem; color: rgba(255,255,255,.78); font-size: .92rem; border-left: 3px solid transparent; text-decoration: none; }
.sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--accent); }
.admin-main { flex: 1; min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: .7rem 1.4rem; }
.admin-top-title { font-weight: 700; font-size: 1.05rem; flex: 1; }
.admin-top-right { display: flex; gap: .6rem; align-items: center; }
.admin-top .nav-toggle { display: none; }
.admin-content { padding: 1.4rem; max-width: 1400px; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 1rem; }
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filter-bar label { margin: 0; font-size: .8rem; } .filter-bar input, .filter-bar select { min-width: 150px; }
@media (max-width: 980px) {
  .sidebar { position: fixed; left: -260px; z-index: 60; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .admin-top .nav-toggle { display: inline-flex; }
}
.opt-row { display: grid; grid-template-columns: 34px 1fr; gap: .6rem; align-items: start; margin-bottom: .6rem; }
.opt-row .opt-letter { width: 34px; height: 34px; border-radius: 50%; background: #eef2f7; display: grid; place-items: center; font-weight: 800; margin-top: .3rem; }
.opt-row textarea { min-height: 52px; margin-top: 0; }
.pgk-key { display: flex; gap: .4rem; align-items: center; margin-top: .3rem; } .pgk-key select { width: 110px; margin: 0; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(22,163,74,0); } }
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.modal h3 { margin-top: 0; } .modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }

/* ---------- Cetak ---------- */
.print-only { display: none; }
@media print {
  body { background: #fff; font-size: 12px; }
  .site-header, .topbar, .sidebar, .admin-top, .toolbar, .filter-bar, .no-print, .mini-footer, .alert, .pagination, .btn, .tabs { display: none !important; }
  .print-only { display: block; }
  .admin-content, .page { padding: 0; } .card { box-shadow: none; border: 0; padding: 0; }
  .table-wrap { border: 0; overflow: visible; } .table th, .table td { padding: 4px 6px; border: 1px solid #999; }
  .tab-pane { display: block !important; }
  a { color: inherit; }
}
.print-head { display: flex; gap: 1rem; align-items: center; border-bottom: 3px double #000; padding-bottom: .6rem; margin-bottom: 1rem; }
.print-head img { width: 60px; height: 60px; object-fit: contain; } .print-head h2 { margin: 0; font-size: 1.2rem; } .print-head p { margin: 0; }
.grid-side { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 1.2rem; align-items: start; }
.grid-2.gap { gap: 1rem; }
@media (max-width: 900px) { .grid-side { grid-template-columns: 1fr; } }
.print-head.print-only { display: none; }
@media print { .print-head.print-only { display: flex; } }
.filter-bar label input, .filter-bar label select { margin-top: .3rem; }
