/* =========================================================
   KOSSMAMA — Design system
   ========================================================= */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --border: #e3e8e6;
  --border-strong: #cfd8d4;
  --text: #0f1f1a;
  --text-2: #4a5a55;
  --muted: #7a8a85;
  --primary: #0b7a5c;
  --primary-600: #096a50;
  --primary-50: #e8f5f0;
  --primary-100: #cfeadf;
  --accent: #c8961e;
  --accent-50: #fbf3df;
  --ok: #138a52; --ok-bg: #e5f6ec;
  --warn: #b26b00; --warn-bg: #fdf1dc;
  --bad: #c2362f; --bad-bg: #fde8e6;
  --info: #2563c9; --info-bg: #e6eefc;
  --blue: #2563c9; --violet: #7c4dd6; --orange: #d9681e;
  --sidebar: #0b1d19;
  --sidebar-2: #12302a;
  --sidebar-text: #b8cbc5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 31, 26, .05), 0 4px 16px rgba(15, 31, 26, .04);
  --shadow-lg: 0 12px 40px rgba(15, 31, 26, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0b1210;
  --surface: #121b18;
  --surface-2: #17221f;
  --border: #22312c;
  --border-strong: #2e413b;
  --text: #e6efec;
  --text-2: #b0c0bb;
  --muted: #7f928c;
  --primary: #2bb58a;
  --primary-600: #23a07a;
  --primary-50: #12302a;
  --primary-100: #18413a;
  --accent-50: #2c2512;
  --ok-bg: #11301f; --warn-bg: #33270f; --bad-bg: #3a1714; --info-bg: #142540;
  --ok: #4fd18f; --warn: #f1b24a; --bad: #f47a72; --info: #7aa7f4;
  --sidebar: #070e0c;
  --sidebar-2: #10201c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .7em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; }
.ic { width: 16px; height: 16px; stroke-width: 2; flex: none; vertical-align: -3px; }
.hidden { display: none !important; }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-lg { margin-top: 28px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: .15s; text-decoration: none !important; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); color: #fff; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(.95); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); }
.only-mobile { display: none; }
@media (max-width: 900px) { .only-mobile { display: inline-grid; } .hide-sm { display: none !important; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: 13px; color: var(--text-2); }
.field .req::after { content: ' *'; color: var(--bad); }
.field small, .hint { color: var(--muted); font-size: 12px; }
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 {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 14px var(--font); transition: border .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
input[type=file] { padding: 6px 8px; height: auto; }
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); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--primary); }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.radio-card { position: relative; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--surface); transition: .15s; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.radio-card strong { display: block; font-size: 13.5px; }
.radio-card span { font-size: 12px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; min-width: 150px; height: 34px; }
.filters input[type=search] { min-width: 220px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card + .card { margin-top: 16px; }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 10px; }

/* ---------- Stats ---------- */
.stat { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.stat-ic .ic { width: 22px; height: 22px; }
.stat-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat-hint { font-size: 12px; color: var(--muted); }
.tone-primary { background: var(--primary-50); color: var(--primary); }
.tone-accent { background: var(--accent-50); color: var(--accent); }
.tone-blue { background: var(--info-bg); color: var(--blue); }
.tone-warn { background: var(--warn-bg); color: var(--warn); }
.tone-bad { background: var(--bad-bg); color: var(--bad); }
.tone-violet { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.tone-orange { background: color-mix(in srgb, var(--orange) 12%, transparent); color: var(--orange); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 4px; }
.cell-user { display: flex; gap: 10px; align-items: center; }
.cell-user strong { display: block; font-size: 13.5px; }
.cell-user small { color: var(--muted); font-size: 12px; }
.table input[type=number] { height: 32px; width: 84px; padding: 0 8px; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-gold { background: var(--accent-50); color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.chip .ic { width: 13px; height: 13px; }
.chip-blue { background: var(--info-bg); color: var(--blue); }
.chip-violet { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.chip-orange { background: color-mix(in srgb, var(--orange) 12%, transparent); color: var(--orange); }
.chip-muted { background: var(--surface-2); color: var(--muted); }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 12px; color: #fff; }
.medal-1 { background: linear-gradient(135deg, #f2c94c, #c8961e); }
.medal-2 { background: linear-gradient(135deg, #cfd6dc, #8d99a3); }
.medal-3 { background: linear-gradient(135deg, #e3a274, #a8622e); }

/* ---------- Avatar ---------- */
.avatar { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; background: var(--primary-50); }
.avatar.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.avatar.lg { width: 72px; height: 72px; border-radius: 14px; font-size: 22px; }
.avatar-init { display: inline-grid; place-items: center; color: var(--primary); font-weight: 800; font-size: 13px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid transparent; font-size: 13.5px; }
.alert .ic { margin-top: 2px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-info { background: var(--info-bg); color: var(--info); }
.callout { padding: 14px 16px; border-radius: var(--radius); background: var(--primary-50); border: 1px solid var(--primary-100); }
.callout.gold { background: var(--accent-50); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- App shell ---------- */
body.app { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: none; background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #13a57c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.brand small { display: block; font-size: 11.5px; opacity: .7; }
.sidebar .brand { padding: 18px 18px 14px; color: #fff; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #6d8a82; padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; font-size: 13.5px; text-decoration: none !important; }
.nav-link:hover { background: var(--sidebar-2); color: #fff; }
.nav-link.active { background: color-mix(in srgb, var(--primary) 26%, transparent); color: #fff; box-shadow: inset 3px 0 0 #2bd19f; }
.nav-link span { flex: 1; }
.nav-badge { font-style: normal; background: #e0a72b; color: #1b1406; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; }
.sidebar-foot a { color: var(--sidebar-text); display: flex; gap: 8px; align-items: center; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-title { font-weight: 700; font-size: 15px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.reg-pill { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; }
.reg-pill.open { background: var(--ok-bg); color: var(--ok); }
.reg-pill.closed { background: var(--bad-bg); color: var(--bad); }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--text); font: inherit; }
.user-meta { text-align: left; line-height: 1.2; max-width: 190px; }
.user-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: var(--muted); font-size: 11.5px; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--text); background: none; border: 0; font: 500 13.5px var(--font); cursor: pointer; text-decoration: none; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu form { margin: 0; }
.content { padding: 24px; flex: 1; max-width: 1400px; width: 100%; }
.app-foot { padding: 14px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 800; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sidebar-backdrop { display: none; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
  .content { padding: 16px; }
  .topbar { padding: 0 12px; }
  .user-meta, .reg-pill { display: none; }
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }
.tabs a .badge { margin-left: 2px; }

/* ---------- Pager / empty ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.pager-links { display: flex; gap: 4px; }
.pager-links a { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; text-decoration: none; }
.pager-links a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state.big { padding: 80px 20px; }
.empty-state h2 { font-size: 40px; color: var(--text); }
.empty-state h3 { color: var(--text); font-size: 16px; }
.empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-ic .ic { width: 26px; height: 26px; }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.step.done .step-num { background: var(--ok); color: #fff; border-color: var(--ok); }
.step.current { border-color: var(--primary); background: var(--primary-50); }
.step.current .step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.step strong { display: block; font-size: 13px; }
.step small { color: var(--muted); font-size: 11.5px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ''; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border-strong); }
.tl-item.done::before { border-color: var(--ok); background: var(--ok); }
.tl-item.now::before { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.tl-item strong { display: block; }
.tl-item small { color: var(--muted); }

/* ---------- Modal ---------- */
.modal { display: none; position: fixed; inset: 0; background: rgba(5, 15, 12, .55); z-index: 100; padding: 24px; overflow-y: auto; }
.modal.open { display: grid; place-items: start center; }
.modal-card { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; margin-top: 4vh; box-shadow: var(--shadow-lg); }
.modal-card.wide { max-width: 980px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px; }
.modal-body iframe { width: 100%; height: 75vh; border: 0; border-radius: 8px; }
.modal-body img { max-width: 100%; display: block; margin: auto; border-radius: 8px; }

/* ---------- Misc components ---------- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 6px; } }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.doc-thumb { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.doc-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.doc-thumb .pdf { height: 160px; display: grid; place-items: center; color: var(--bad); font-weight: 700; }
.doc-thumb .pdf .ic { width: 40px; height: 40px; }
.doc-thumb span { display: block; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.link-doc { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; font-size: 12.5px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #19b386); border-radius: 99px; }
.bar-list .row { display: grid; grid-template-columns: 1fr 140px 40px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.bar-list .row b { text-align: right; }
.kbd { font-family: ui-monospace, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.code-box { font-family: ui-monospace, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-x: auto; white-space: pre; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }
.prose ul { padding-left: 18px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose h4 { margin: 16px 0 8px; font-size: 14px; color: var(--primary); }
.scan-box { display: flex; gap: 10px; }
.scan-box input { height: 48px; font-size: 18px; font-weight: 700; letter-spacing: .05em; }
.scan-box .btn { height: 48px; }

/* ---------- Public ---------- */
body.public { background: var(--surface); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.pub-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.pub-nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.pub-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.pub-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.pub-links a:hover, .pub-links a.active { color: var(--primary); background: var(--primary-50); }
.pub-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) {
  .pub-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .pub-links.show { display: flex; }
  .pub-nav-inner { justify-content: space-between; }
}
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--primary) 26%, transparent), transparent), linear-gradient(180deg, #0b2a22, #0a1f1a); color: #fff; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 72px 20px 80px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 48px 20px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; margin: 18px 0 12px; line-height: 1.05; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #f6d27a, #e6a93a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: #c8dbd4; max-width: 560px; }
.hero .btn { border-color: rgba(255,255,255,.25); }
.hero .btn:not(.btn-accent) { background: rgba(255,255,255,.06); color: #fff; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px; backdrop-filter: blur(6px); }
.hero-card h3 { font-size: 14px; color: #f6d27a; text-transform: uppercase; letter-spacing: .08em; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.countdown div { background: rgba(0,0,0,.25); border-radius: 12px; padding: 12px 6px; text-align: center; }
.countdown b { display: block; font-size: 26px; font-weight: 800; }
.countdown small { font-size: 11px; color: #a9c2ba; text-transform: uppercase; letter-spacing: .06em; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; }
.hero-stats small { color: #a9c2ba; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 15px; }
.kicker { color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.comp-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: .2s; color: var(--text); text-decoration: none !important; }
.comp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.comp-card h4 { margin: 4px 0 0; font-size: 15.5px; }
.comp-card .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.prize { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prize-item { text-align: center; padding: 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.prize-item .medal { width: 46px; height: 46px; font-size: 18px; margin-bottom: 10px; }
.prize-item b { display: block; font-size: 20px; }
@media (max-width: 680px) { .prize { grid-template-columns: 1fr; } }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; counter-reset: f; }
.flow-item { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.flow-item::before { counter-increment: f; content: counter(f); position: absolute; top: 14px; right: 16px; font-size: 32px; font-weight: 800; color: var(--primary-100); }
.flow-item .ic { width: 26px; height: 26px; color: var(--primary); margin-bottom: 10px; }
.flow-item strong { display: block; margin-bottom: 4px; }
.flow-item p { font-size: 13px; color: var(--muted); margin: 0; }
.pub-main { min-height: 60vh; }
.page-hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: 40px 0 28px; }
.page-hero h1 { font-size: 30px; font-weight: 800; }
.pub-foot { background: #0a1916; color: #b9cbc5; padding: 48px 0 0; margin-top: 0; }
.pub-foot h4 { color: #fff; }
.pub-foot a { color: #d7e6e1; }
.pub-foot .muted { color: #8aa59d; }
.pub-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.pub-foot .brand { color: #fff; }
@media (max-width: 760px) { .pub-foot-grid { grid-template-columns: 1fr; } }
.pub-copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding: 16px 20px; font-size: 12.5px; }

/* ---------- Auth ---------- */
body.auth { background: var(--bg); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { background: linear-gradient(160deg, #0b3a2e, #071a15); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; bottom: -180px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.auth-side .brand.light { color: #fff; }
.auth-side-body { position: relative; z-index: 1; max-width: 460px; }
.auth-side h2 { font-size: 30px; font-weight: 800; margin: 16px 0 10px; }
.auth-side p { color: #b6cdc6; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-points li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: #dcebe6; }
.auth-points .ic { color: #3fd6a5; }
.auth-side-foot { color: #85a49b; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 26px; font-weight: 800; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Ranking ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.podium-item { text-align: center; padding: 18px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.podium-item.j1 { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(180deg, var(--accent-50), var(--surface)); }
.podium-item strong { display: block; margin-top: 8px; }
.podium-item small { color: var(--muted); }
@media (max-width: 680px) { .podium { grid-template-columns: 1fr; } }

/* ---------- Print helpers ---------- */
@media print {
  .sidebar, .topbar, .app-foot, .no-print, .pub-nav, .pub-foot { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}

/* =========================================================
   KOSSMAMA v1.1 — Tema berwarna (overrides)
   ========================================================= */
:root {
  --bg: #f3f6fb;
  --surface-2: #f6f8fc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0e9f6e;
  --primary-600: #0b8a5f;
  --primary-50: #e7f8f1;
  --primary-100: #c6efdd;
  --accent: #f59e0b;
  --accent-50: #fff6e0;
  --g-primary: linear-gradient(135deg, #10b981 0%, #0e9f6e 45%, #0d7f86 100%);
  --g-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  --g-blue: linear-gradient(135deg, #60a5fa, #2563eb);
  --g-violet: linear-gradient(135deg, #c084fc, #7c3aed);
  --g-pink: linear-gradient(135deg, #f472b6, #db2777);
  --g-orange: linear-gradient(135deg, #fb923c, #ea580c);
  --g-cyan: linear-gradient(135deg, #22d3ee, #0891b2);
  --g-red: linear-gradient(135deg, #f87171, #dc2626);
  --sidebar: #0a1f2e;
  --sidebar-2: #12324a;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
}
:root[data-theme="dark"] { --bg: #0b1220; --surface: #111a2b; --surface-2: #162238; --border: #22314a; --border-strong: #2f4262; --primary: #34d399; --primary-50: #0f2e2a; --primary-100: #164139; --accent-50: #33260c; }

/* Buttons */
.btn-primary { background: var(--g-primary); border-color: transparent; box-shadow: 0 4px 14px rgba(14, 159, 110, .28); }
.btn-primary:hover { filter: brightness(1.06); background: var(--g-primary); }
.btn-accent { background: var(--g-accent); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(245, 158, 11, .32); }
.btn-ok { background: linear-gradient(135deg, #22c55e, #15803d); border-color: transparent; }

/* Gradient icon tiles */
.stat-ic, .empty-ic { color: #fff !important; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.stat-ic .ic, .empty-ic .ic { color: #fff; }
.tone-primary, .empty-ic { background: var(--g-primary) !important; }
.tone-accent { background: var(--g-accent) !important; }
.tone-blue { background: var(--g-blue) !important; }
.tone-violet { background: var(--g-violet) !important; }
.tone-orange { background: var(--g-orange) !important; }
.tone-warn { background: linear-gradient(135deg, #fcd34d, #f59e0b) !important; }
.tone-bad { background: var(--g-red) !important; }

/* Stat cards with colored glow */
.stat { position: relative; overflow: hidden; border: 0; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, .12), transparent 70%); }
.grid > .stat:nth-child(4n+2)::after { background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 70%); }
.grid > .stat:nth-child(4n+3)::after { background: radial-gradient(circle, rgba(124, 58, 237, .12), transparent 70%); }
.grid > .stat:nth-child(4n+4)::after { background: radial-gradient(circle, rgba(245, 158, 11, .15), transparent 70%); }

/* Cards */
.card { border-color: transparent; box-shadow: var(--shadow); }
.card-head h3 .ic { color: var(--primary); }
.card-head { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-radius: var(--radius) var(--radius) 0 0; }
.table th { background: linear-gradient(180deg, #eef6f3, #e8f1fb); color: #475569; }
:root[data-theme="dark"] .table th { background: var(--surface-2); color: var(--muted); }

/* Sidebar */
.sidebar { background: linear-gradient(180deg, #0b2a2a 0%, #0a1f2e 45%, #141a3a 100%); }
.sidebar .brand-mark, .brand-mark { background: var(--g-primary); box-shadow: 0 6px 16px rgba(16, 185, 129, .35); }
.nav-group { display: flex; align-items: center; gap: 8px; color: #8aa3b5; }
.nav-group span { width: 6px; height: 6px; border-radius: 50%; }
.nav-link .ic { color: var(--tone, #94a3b8); opacity: .9; }
.nav-link:hover { background: rgba(255, 255, 255, .06); }
.nav-link.active { background: linear-gradient(90deg, color-mix(in srgb, var(--tone, #34d399) 30%, transparent), rgba(255,255,255,.03)); box-shadow: inset 3px 0 0 var(--tone, #34d399); }
.nav-link.active .ic { opacity: 1; }
.nav-badge { background: var(--g-accent); color: #fff; }

/* Topbar */
.topbar { position: sticky; }
.topbar-accent { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1, #ec4899, #f59e0b); }
.page-head h1 { background: linear-gradient(90deg, #0f766e, #2563eb 60%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .page-head h1 { background: linear-gradient(90deg, #34d399, #60a5fa, #c084fc); -webkit-background-clip: text; background-clip: text; }

/* Badges & chips brighter */
.badge-ok { background: #dcfce7; color: #15803d; }
.badge-warn { background: #fef3c7; color: #b45309; }
.badge-bad { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-gold { background: var(--g-accent); color: #fff; }
:root[data-theme="dark"] .badge-ok { background: var(--ok-bg); color: var(--ok); }
:root[data-theme="dark"] .badge-warn { background: var(--warn-bg); color: var(--warn); }
:root[data-theme="dark"] .badge-bad { background: var(--bad-bg); color: var(--bad); }
:root[data-theme="dark"] .badge-info { background: var(--info-bg); color: var(--info); }
.progress > span { background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1); }
.tabs a.active { color: var(--primary); border-image: linear-gradient(90deg, #10b981, #6366f1) 1; }
.step.done .step-num { background: var(--g-primary); }
.step.current { border-color: #6366f1; background: linear-gradient(135deg, #eef2ff, #ecfeff); }
.step.current .step-num { background: linear-gradient(135deg, #6366f1, #06b6d4); border-color: transparent; }
:root[data-theme="dark"] .step.current { background: #182544; }
.callout { background: linear-gradient(135deg, #ecfdf5, #eff6ff); border-color: #c7e9dc; }
.callout.gold { background: linear-gradient(135deg, #fffbeb, #fff1f2); border-color: #fde68a; }
:root[data-theme="dark"] .callout { background: #12302a; border-color: #1f4a40; }
:root[data-theme="dark"] .callout.gold { background: #33260c; border-color: #5a4310; }

/* Public: hero */
.hero { background:
  radial-gradient(800px 420px at 90% -10%, rgba(245, 158, 11, .35), transparent 60%),
  radial-gradient(700px 500px at 60% 120%, rgba(99, 102, 241, .45), transparent 60%),
  radial-gradient(800px 600px at -10% 40%, rgba(16, 185, 129, .45), transparent 60%),
  linear-gradient(135deg, #052e2b 0%, #0b3b4f 50%, #1e1b4b 100%); }
.hero h1 em { background: linear-gradient(90deg, #fde68a, #fbbf24, #fb7185); -webkit-background-clip: text; background-clip: text; }
.hero-card { background: rgba(255, 255, 255, .08); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero-stats b { background: linear-gradient(90deg, #6ee7b7, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero { background: radial-gradient(600px 220px at 85% 0%, rgba(99, 102, 241, .14), transparent 70%), radial-gradient(600px 260px at 0% 100%, rgba(16, 185, 129, .16), transparent 70%), linear-gradient(180deg, #f0fdf8, #eef4ff); }
:root[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0f2027, #111a2b); }
.page-hero h1 { background: linear-gradient(90deg, #065f46, #1d4ed8 60%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .page-hero h1 { background: linear-gradient(90deg, #6ee7b7, #93c5fd, #d8b4fe); -webkit-background-clip: text; background-clip: text; }
.kicker { background: linear-gradient(90deg, #059669, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section.alt { background: linear-gradient(180deg, #f3f7ff, #f2fbf7); }
:root[data-theme="dark"] .section.alt { background: var(--bg); }

/* Competition cards per bidang */
.comp-card { position: relative; overflow: hidden; border: 0; box-shadow: var(--shadow); padding-top: 22px; }
.comp-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--g-primary); }
.comp-card.b-olimpiade::before { background: var(--g-blue); }
.comp-card.b-seni::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
.comp-card.b-olahraga::before { background: var(--g-orange); }
.comp-card.b-olimpiade:hover { box-shadow: 0 16px 36px rgba(37, 99, 235, .18); }
.comp-card.b-seni:hover { box-shadow: 0 16px 36px rgba(168, 85, 247, .2); }
.comp-card.b-olahraga:hover { box-shadow: 0 16px 36px rgba(234, 88, 12, .2); }
.comp-card .mono { font-weight: 700; }
.comp-card.b-olimpiade .mono { color: #2563eb; } .comp-card.b-seni .mono { color: #a21caf; } .comp-card.b-olahraga .mono { color: #c2410c; }

.flow-item { border: 0; box-shadow: var(--shadow); }
.flow-item .ic { color: #fff; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--g-primary); }
.flow-item:nth-child(2) .ic { background: var(--g-blue); } .flow-item:nth-child(3) .ic { background: var(--g-violet); }
.flow-item:nth-child(4) .ic { background: var(--g-accent); } .flow-item:nth-child(5) .ic { background: var(--g-cyan); } .flow-item:nth-child(6) .ic { background: var(--g-pink); }
.flow-item::before { color: #e2e8f0; }
.prize-item { border: 0; box-shadow: var(--shadow); }
.prize-item:nth-child(1) { background: linear-gradient(180deg, #fff7db, var(--surface)); }
.prize-item:nth-child(2) { background: linear-gradient(180deg, #f1f5f9, var(--surface)); }
.prize-item:nth-child(3) { background: linear-gradient(180deg, #ffedd5, var(--surface)); }
.pub-foot { background: linear-gradient(135deg, #052e2b, #0b2a3f 60%, #1e1b4b); }
.auth-side { background: radial-gradient(500px 400px at 100% 0%, rgba(245, 158, 11, .3), transparent 60%), radial-gradient(600px 500px at 0% 100%, rgba(99, 102, 241, .4), transparent 60%), linear-gradient(160deg, #064e3b, #0b2a3f 60%, #1e1b4b); }

/* ---------- Wizard pendaftaran ---------- */
.wiz-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.wiz-step { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); transition: .2s; }
.wiz-step small { display: block; color: var(--muted); font-size: 11px; }
.wiz-step b { display: block; font-size: 13px; }
.wiz-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.wiz-step.active { border-color: transparent; background: linear-gradient(135deg, #eef2ff, #ecfeff); box-shadow: 0 6px 18px rgba(99, 102, 241, .15); }
.wiz-step.active .wiz-dot { background: linear-gradient(135deg, #6366f1, #06b6d4); color: #fff; }
.wiz-step.done .wiz-dot { background: var(--g-primary); color: #fff; }
:root[data-theme="dark"] .wiz-step.active { background: #182544; }
@media (max-width: 1000px) { .wiz-steps { grid-template-columns: repeat(6, auto); overflow-x: auto; } .wiz-step span:last-child { display: none; } .wiz-step.active span:last-child { display: block; } }
.wiz-body { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .wiz-body { grid-template-columns: 1fr; } .wiz-side { order: -1; } }
.wiz-side { position: sticky; top: 86px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.sum-card { background: linear-gradient(160deg, #052e2b, #0b3b4f 60%, #1e1b4b); color: #e2e8f0; }
.sum-card .section-title { color: #93c5fd; }
.sum-card .muted { color: #a5b4c3 !important; }
.sum-card .list-plain li { border-color: rgba(255, 255, 255, .1); }
.sum-name { font-size: 18px; font-weight: 800; color: #fff; }
.sum-total { margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .25); }
.sum-total b { font-size: 22px; background: linear-gradient(90deg, #fde68a, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 6px 0 6px 24px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--g-primary); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 800; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pick { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: .15s; }
.pick input { position: absolute; opacity: 0; }
.pick strong { font-size: 13.5px; line-height: 1.3; }
.pick small { color: var(--muted); font-size: 12px; }
.pick-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; background: #cbd5e1; }
.pick.b-olimpiade .pick-ic { background: var(--g-blue); }
.pick.b-seni .pick-ic { background: linear-gradient(135deg, #c084fc, #db2777); }
.pick.b-olahraga .pick-ic { background: var(--g-orange); }
.pick:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.pick:has(input:checked) { border-color: transparent; box-shadow: 0 0 0 2px #6366f1, 0 10px 24px rgba(99, 102, 241, .18); background: linear-gradient(135deg, #f5f7ff, #f0fdfa); }
.pick.b-olimpiade:has(input:checked) { box-shadow: 0 0 0 2px #2563eb, 0 10px 24px rgba(37, 99, 235, .18); }
.pick.b-seni:has(input:checked) { box-shadow: 0 0 0 2px #a855f7, 0 10px 24px rgba(168, 85, 247, .2); }
.pick.b-olahraga:has(input:checked) { box-shadow: 0 0 0 2px #ea580c, 0 10px 24px rgba(234, 88, 12, .2); }
:root[data-theme="dark"] .pick:has(input:checked) { background: #182544; }
.pick:has(input:checked)::after { content: '✓'; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--g-primary); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.upload-box { padding: 14px; border: 1.5px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); }
.upload-prev { height: 220px; border-radius: 12px; display: grid; place-items: center; text-align: center; margin-bottom: 10px; background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; overflow: hidden; }
.upload-prev.doc { background: linear-gradient(135deg, #dbeafe, #e0e7ff); color: #1e3a8a; height: 160px; }
.upload-prev .ic { width: 34px; height: 34px; display: block; margin: 0 auto 6px; }
.upload-prev b, .upload-prev small { display: block; }
.upload-prev img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bank-card { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(251, 191, 36, .35), transparent 60%), linear-gradient(135deg, #065f46, #0e7490 55%, #4338ca); box-shadow: 0 14px 30px rgba(14, 116, 144, .25); }
.bank-card small { display: block; opacity: .8; font-size: 12px; }
.bank-card b { display: block; font-size: 15px; }
.bank-card .mono { display: block; font-size: 26px; font-weight: 800; letter-spacing: .06em; margin: 4px 0; }
.bank-total { text-align: right; }
.bank-total b { font-size: 28px; color: #fde68a; margin-bottom: 6px; }
.bank-card .btn { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero-soft { padding-bottom: 32px; }

/* Success page */
.success-hero { text-align: center; padding: 40px 20px; border-radius: 20px; color: #fff; background: radial-gradient(500px 300px at 85% 0%, rgba(251, 191, 36, .35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(99, 102, 241, .45), transparent 60%), linear-gradient(135deg, #065f46, #0b3b4f 55%, #1e1b4b); box-shadow: 0 20px 50px rgba(6, 95, 70, .25); }
.success-hero h1 { font-size: 30px; font-weight: 800; }
.success-hero p { color: #d1e7e0; }
.success-ic { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--g-accent); box-shadow: 0 10px 26px rgba(245, 158, 11, .4); }
.success-ic .ic { width: 36px; height: 36px; color: #fff; }
.code-pill { display: inline-block; padding: 10px 22px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); margin-top: 8px; }
.code-pill small { display: block; color: #a7f3d0; font-size: 12px; }
.code-pill b { font-size: 22px; letter-spacing: .06em; }
.success-hero .btn:not(.btn-accent) { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* =========================================================
   Navigasi mobile (bottom tab bar + drawer)
   ========================================================= */
.mnav, .mdrawer, .drawer-backdrop, .only-mobile-block, .sidebar-close { display: none; }
@media (max-width: 900px) {
  .only-mobile-block { display: block; }
  .mnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border); box-shadow: 0 12px 34px rgba(15, 23, 42, .18); }
  body.public, body.app { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body.app .app-foot { margin-bottom: 0; }
  .mnav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; border: 0; background: none; color: var(--muted);
    font: 600 10.5px var(--font); text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mnav-ic { position: relative; display: grid; place-items: center; width: 40px; height: 30px; border-radius: 12px; transition: .2s; }
  .mnav-ic .ic { width: 21px; height: 21px; }
  .mnav-ic em { position: absolute; top: -3px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--g-accent); color: #fff; font: 800 10px/17px var(--font); font-style: normal; }
  .mnav-ic em.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 2px; right: 6px; }
  .mnav-item.active { color: var(--primary); }
  .mnav-item.active .mnav-ic { background: linear-gradient(135deg, color-mix(in srgb, #10b981 18%, transparent), color-mix(in srgb, #6366f1 18%, transparent)); }
  .mnav-item:active .mnav-ic { transform: scale(.9); }
  .mnav-fab .mnav-ic { width: 52px; height: 52px; margin-top: -26px; border-radius: 18px; color: #fff; background: var(--g-accent); box-shadow: 0 10px 22px rgba(245, 158, 11, .45), 0 0 0 5px var(--surface); }
  .mnav-fab { color: var(--text); }
  .mnav-fab.active .mnav-ic { background: var(--g-primary); }

  /* Drawer publik */
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(2, 6, 23, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .mdrawer { display: flex; flex-direction: column; gap: 14px; position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(86vw, 340px); padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: var(--surface); box-shadow: -20px 0 50px rgba(2, 6, 23, .25); transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
  .mdrawer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1, #ec4899, #f59e0b); }
  body.drawer-open .mdrawer { transform: none; }
  body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  body.drawer-open, body.sidebar-open { overflow: hidden; }
  .mdrawer-head { display: flex; justify-content: space-between; align-items: center; }
  .mdrawer .reg-pill { display: inline-flex; align-self: flex-start; }
  .mdrawer-links { display: flex; flex-direction: column; gap: 4px; }
  .mdrawer-links a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; }
  .mdrawer-links a .chev { margin-left: auto; color: var(--muted); }
  .mdrawer-links a.active { background: var(--surface-2); color: var(--primary); }
  .dl-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--tone); box-shadow: 0 4px 12px color-mix(in srgb, var(--tone) 35%, transparent); }
  .mdrawer-foot { margin-top: auto; display: grid; gap: 8px; }
  .mdrawer-foot small { text-align: center; }
  .pub-links { display: none !important; }
  .pub-cta .btn-primary { display: none; }

  /* Sidebar admin sebagai drawer */
  .sidebar { width: min(84vw, 300px); z-index: 80; box-shadow: 20px 0 50px rgba(2, 6, 23, .35); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  body.sidebar-open .sidebar-backdrop { z-index: 75; background: rgba(2, 6, 23, .5); }
  .sidebar-close { display: inline-grid; position: absolute; top: 18px; right: 12px; color: #cbd5e1; }
  .sidebar-close:hover { background: rgba(255, 255, 255, .08); border-color: transparent; }
  .sidebar-user { margin: 0 14px 6px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); display: flex !important; gap: 10px; align-items: center; color: #e2e8f0; }
  .sidebar-user strong { display: block; font-size: 13px; } .sidebar-user small { color: #94a3b8; font-size: 11.5px; }
  .sidebar-foot { display: flex; justify-content: space-between; align-items: center; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sidebar-foot button { display: flex; gap: 8px; align-items: center; background: none; border: 0; color: #fca5a5; font: 600 12.5px var(--font); cursor: pointer; }
  .nav-link { padding: 10px; }
  .topbar .dropdown { display: none; }
  .content { padding-bottom: 8px; }
}
@media print { .mnav, .mdrawer, .drawer-backdrop { display: none !important; } }
@media (max-width: 680px) {
  .g4:has(> .stat), .g3:has(> .stat) { grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .stat-ic { width: 38px; height: 38px; }
  .stat-value { font-size: 18px; }
  .page-head h1 { font-size: 20px; }
  .page-actions { width: 100%; } .page-actions .btn { flex: 1; justify-content: center; }
}
