/* =========================================================
   KEI VOTE — Biru · Hitam (Koba Entertainment Indonesia)
   Tema gelap (default) & terang via [data-theme] pada <html>
   ========================================================= */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #04060b; --bg2: #080c16;
  --card: #0c1220; --card2: #121a2c; --card3: #18223a;
  --card-bg: linear-gradient(180deg, rgba(18, 26, 44, .72), rgba(12, 18, 32, .94));
  --line: rgba(120, 160, 255, .10); --line2: rgba(120, 160, 255, .2);
  --text: #edf3ff; --muted: #92a0bd; --dim: #5f6d8a;
  --blue: #38b6ff; --blue-t: #5cc4ff; --blue2: #1f6bff; --blue-soft: rgba(56, 182, 255, .12);
  --grad: linear-gradient(135deg, #38b6ff 0%, #1f6bff 100%);
  --red: #ff3b3b; --gold: #fbbf24; --green: #22c55e; --amber: #f59e0b;
  --input: #070b15;
  --nav-bg: rgba(4, 6, 11, .72); --side-bg: #03050a; --pop-bg: #0f1729;
  --page-glow: radial-gradient(1200px 600px at 85% -10%, rgba(31,107,255,.18), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(56,182,255,.10), transparent 60%);
  --shadow: 0 20px 50px rgba(0, 0, 0, .45); --shadow-sm: 0 8px 24px rgba(0, 0, 0, .3);
  --glow: 0 10px 30px rgba(31, 107, 255, .35);
  --t-green: #4ade80; --t-amber: #fbbf24; --t-blue: #7dd3fc; --t-red: #ff8080; --t-gold: #fcd34d;
  --grid-line: rgba(120, 160, 255, .09);
  --radius: 18px;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fc; --bg2: #e9eff9;
  --card: #ffffff; --card2: #f3f6fb; --card3: #e6edf7;
  --card-bg: #ffffff;
  --line: rgba(16, 40, 90, .09); --line2: rgba(16, 40, 90, .17);
  --text: #0b1426; --muted: #55627b; --dim: #8592aa;
  --blue: #1a9ef0; --blue-t: #0b7fd0; --blue2: #1f6bff; --blue-soft: rgba(31, 107, 255, .09);
  --input: #ffffff;
  --nav-bg: rgba(255, 255, 255, .82); --side-bg: #ffffff; --pop-bg: #ffffff;
  --page-glow: radial-gradient(1200px 600px at 85% -10%, rgba(56,182,255,.20), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(31,107,255,.08), transparent 60%);
  --shadow: 0 18px 40px rgba(16, 40, 90, .12); --shadow-sm: 0 6px 18px rgba(16, 40, 90, .08);
  --glow: 0 10px 26px rgba(31, 107, 255, .28);
  --t-green: #15803d; --t-amber: #b45309; --t-blue: #0b6fbf; --t-red: #c81e1e; --t-gold: #a16207;
  --grid-line: rgba(16, 40, 90, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; transition: background-color .25s, color .25s; }
body.pub { background: var(--page-glow), var(--bg); background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; }
::selection { background: rgba(56, 182, 255, .35); }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 15px; height: 15px; } .ic-lg { width: 24px; height: 24px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .xs { font-size: 12px; } .bold { font-weight: 700; }
.right { text-align: right; } .center { text-align: center; } .tnum { font-variant-numeric: tabular-nums; } .nowrap { white-space: nowrap; }
.blue { color: var(--blue-t); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }
.flex { display: flex; align-items: center; gap: 10px; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 6px; } .grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 880px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.show-m { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(56, 182, 255, .45); }
.btn-ghost { background: var(--card2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line2); background: var(--card3); }
.btn-outline { border-color: var(--line2); color: var(--text); }
.btn-outline:hover { background: var(--card2); }
.btn-white { background: #fff; color: #05070d; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: rgba(255, 59, 59, .1); color: var(--t-red); border-color: rgba(255, 59, 59, .3); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 5px 9px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--card2); border: 1px solid var(--line); flex: none; transition: .2s; }
.icon-btn:hover { border-color: var(--line2); }
.inline { display: inline; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
  background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.live .dot { animation: pulse 1.4s infinite; }
.b-green { background: rgba(34, 197, 94, .12); color: var(--t-green); border-color: rgba(34, 197, 94, .3); }
.b-amber { background: rgba(245, 158, 11, .12); color: var(--t-amber); border-color: rgba(245, 158, 11, .3); }
.b-blue { background: var(--blue-soft); color: var(--t-blue); border-color: rgba(56, 182, 255, .3); }
.b-red { background: rgba(255, 59, 59, .1); color: var(--t-red); border-color: rgba(255, 59, 59, .3); }
.b-gold { background: rgba(251, 191, 36, .14); color: var(--t-gold); border-color: rgba(251, 191, 36, .4); }
.glass { background: rgba(0, 0, 0, .38) !important; border-color: rgba(255, 255, 255, .2) !important; color: #fff !important; backdrop-filter: blur(6px); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.chips::-webkit-scrollbar { display: none; }

/* ---------- Cards / grid ---------- */
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .card { box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.card-h .sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.card.p0 { padding: 0; overflow: hidden; }
.card.p0 > .card-h { padding: 18px 20px 0; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--dim); }
.input, .select, .textarea { width: 100%; padding: 11px 14px; border-radius: 11px; background: var(--input); border: 1px solid var(--line2); outline: none;
  transition: border .15s, box-shadow .15s; font-size: 15px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56, 182, 255, .2); }
.input.is-err, .select.is-err, .textarea.is-err { border-color: rgba(255, 59, 59, .6); }
.input[disabled] { opacity: .6; }
.select option { background: var(--card); color: var(--text); }
.textarea { resize: vertical; min-height: 90px; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.input-icon .input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue2); width: 17px; height: 17px; flex: none; }
.err { color: var(--t-red); font-size: 12px; }
.switch { position: relative; width: 44px; height: 24px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--card3); border: 1px solid var(--line2); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--blue2); border-color: var(--blue2); }
.switch input:checked + span::before { transform: translateX(20px); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
input[type=range] { width: 100%; accent-color: var(--blue2); }
input[type=file] { font-size: 13px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { background: var(--card3); color: var(--text); border: 1px solid var(--line2); border-radius: 9px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--blue-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.cell-user small { color: var(--muted); font-size: 12px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--dim); display: block; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ---------- Avatar / photo / bar ---------- */
.av { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; flex: none; overflow: hidden; letter-spacing: .02em; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sq { border-radius: 16px; }
.av.ring { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--blue); }
.ph { position: relative; overflow: hidden; background: var(--card3); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ph-fb { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .02em; }
.bar { height: 8px; background: var(--card3); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s ease; }
.bar.gold > i { background: linear-gradient(90deg, #fde047, #f59e0b); }

/* ---------- Alerts ---------- */
.flash-wrap { position: fixed; top: 16px; right: 16px; left: auto; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--pop-bg); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 14px; animation: slideIn .3s ease; }
.flash.success .ic { color: var(--t-green); } .flash.error .ic { color: var(--t-red); } .flash.info .ic { color: var(--blue); }
.flash.secret { border-color: rgba(251, 191, 36, .5); } .flash.secret .ic { color: var(--gold); }
.flash button { margin-left: auto; color: var(--dim); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; align-items: flex-start; }
.notice .ic { margin-top: 1px; }
.n-amber { background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .3); color: var(--t-amber); }
.n-blue { background: var(--blue-soft); border: 1px solid rgba(56, 182, 255, .28); color: var(--t-blue); }
.n-red { background: rgba(255, 59, 59, .07); border: 1px solid rgba(255, 59, 59, .28); color: var(--t-red); }
.n-green { background: rgba(34, 197, 94, .07); border: 1px solid rgba(34, 197, 94, .3); color: var(--t-green); }

/* ---------- Tooltip & charts ---------- */
#tip { position: fixed; z-index: 400; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 12px; box-shadow: var(--shadow); display: none; line-height: 1.4; }
#tip b { display: block; font-size: 13px; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--grid-line); stroke-width: 1; }
.chart .ax { fill: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .ln { stroke: var(--blue); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { fill: var(--blue); opacity: .12; }
.chart .br { fill: #3d8bff; } .chart .br.hl { fill: var(--blue); }
.chart .dt { fill: var(--blue); stroke: var(--card); stroke-width: 2; }
.chart .vl { fill: var(--text); font-size: 11.5px; font-weight: 600; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .xh { stroke: var(--dim); stroke-width: 1; opacity: 0; }
.chart .xd { fill: var(--blue); stroke: var(--card); stroke-width: 2; opacity: 0; }
.chart svg.hov .xh, .chart svg.hov .xd { opacity: 1; }

/* =========================================================
   PUBLIC
   ========================================================= */
.pub-nav { position: sticky; top: 0; z-index: 60; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 3px; object-fit: contain; box-shadow: 0 0 0 1px var(--line2), 0 8px 22px rgba(56,182,255,.22); flex: none; }
.logo-t { font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.logo-t b { color: var(--blue-t); }
.logo-t small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: .15s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--card2); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; }
.mnav { display: none; }

.hero { position: relative; overflow: hidden; padding: 72px 0 60px; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line2) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 54px; font-weight: 800; letter-spacing: -.035em; margin: 18px 0; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); font-size: 13px; font-weight: 600; max-width: 100%; }
.eyebrow i { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-style: normal; color: #fff; flex: none; }
.red-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,59,59,.18); }
.live-card { background: var(--card-bg); border: 1px solid var(--line2); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow), 0 0 80px rgba(31,107,255,.12); }
.live-card .lc-banner { height: 120px; position: relative; display: flex; align-items: flex-end; padding: 14px 18px; color: #fff; }
.live-card .lc-body { padding: 16px 20px 20px; }
.lc-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lc-row:last-of-type { border-bottom: 0; }
.rank-n { width: 26px; text-align: center; font-weight: 800; color: var(--muted); font-size: 14px; flex: none; }
.rank-n.r1 { color: #f5b301; } .rank-n.r2 { color: #9aa6bd; } .rank-n.r3 { color: #e08a4a; }

.section { padding: 52px 0; }
.section-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-h h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.section-h p { color: var(--muted); margin-top: 6px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-t); }

.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ev-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .25s, border-color .2s, box-shadow .25s; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.ev-card:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: var(--shadow); }
.ev-banner { position: relative; aspect-ratio: 16 / 8; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background-size: cover !important; background-position: center !important; }
.ev-banner .deco { position: absolute; right: -14px; bottom: -22px; opacity: .18; }
.ev-banner .deco .ic { width: 130px; height: 130px; stroke-width: 1.3; }
.ev-banner-t { font-size: 22px; font-weight: 800; line-height: 1.1; max-width: 90%; text-shadow: 0 2px 14px rgba(0,0,0,.5); position: relative; }
.ev-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0; }
.meta .ic { width: 15px; height: 15px; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ev-foot small { display: block; font-size: 11px; color: var(--dim); }
.ev-foot b { font-size: 14px; font-variant-numeric: tabular-nums; }
.banner-badges { display: flex; justify-content: space-between; gap: 8px; position: relative; flex-wrap: wrap; }

/* Kartu peserta bergaya foto */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: border-color .2s, transform .25s, box-shadow .25s; box-shadow: var(--shadow-sm); }
.p-card:hover { border-color: var(--line2); transform: translateY(-4px); box-shadow: var(--shadow); }
.p-card:hover .ph img { transform: scale(1.04); }
.p-card.is-gugur { opacity: .5; filter: grayscale(.6); }
.p-photo { position: relative; display: block; aspect-ratio: 4 / 5; }
.p-photo .ph { position: absolute; inset: 0; }
.p-photo .ph-fb { font-size: 56px; }
.p-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(3,5,10,.9) 100%); pointer-events: none; }
.p-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; }
.p-cap h4 { font-size: 16px; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.p-cap small { font-size: 12px; opacity: .85; }
.p-no { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.crown { position: absolute; top: 12px; right: 12px; z-index: 1; background: linear-gradient(135deg, #fde047, #f59e0b); color: #2a1a00; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; display: flex; gap: 4px; align-items: center; box-shadow: 0 6px 16px rgba(245,158,11,.35); }
.crown .ic { width: 12px; height: 12px; }
.p-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-song { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-song .ic { width: 14px; height: 14px; color: var(--blue); }
.p-stat { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.p-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.locked { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12.5px; }

.ev-hero { position: relative; padding: 44px 0 128px; color: #fff; overflow: hidden; background-size: cover !important; background-position: center !important; }
.ev-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,5,10,.15), rgba(3,5,10,.55)); pointer-events: none; }
.ev-hero .container { position: relative; z-index: 1; }
.ev-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.025em; margin: 14px 0 8px; max-width: 780px; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.ev-hero p { opacity: .92; max-width: 640px; }
.ev-hero .meta { color: rgba(255,255,255,.88); }
.ev-wrap { margin-top: -90px; position: relative; z-index: 2; }
.ev-info { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd div { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; }
.cd b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd span { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row > div { background: var(--card2); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); min-width: 0; }
.stat-row small { display: block; font-size: 11.5px; color: var(--muted); }
.stat-row b { font-size: 17px; }
.hh { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(56,182,255,.1)); border: 1px solid rgba(251,191,36,.3); }
.hh > .ic { color: var(--gold); }
.hh.reg { background: linear-gradient(135deg, rgba(56,182,255,.14), rgba(31,107,255,.08)); border-color: rgba(56,182,255,.35); }
.hh.reg > .ic { color: var(--blue); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.toolbar .chips { flex: 1; min-width: 0; }
.toolbar .input-icon { width: 260px; }
.toolbar .select { width: auto; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tabs a.on { background: var(--grad); color: #fff; }

.podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: end; margin-bottom: 20px; }
.pod { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); overflow: hidden; }
.pod .ph { width: 100%; aspect-ratio: 1; border-radius: 14px; }
.pod .ph-fb { font-size: 40px; }
.pod.p1 { border-color: rgba(251,191,36,.5); background: linear-gradient(180deg, rgba(251,191,36,.14), var(--card) 55%); }
.pod .medal { font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: var(--card2); margin-top: -22px; position: relative; z-index: 1; border: 1px solid var(--line2); }
.pod.p1 .medal { background: linear-gradient(135deg, #fde047, #f59e0b); color: #2a1a00; border: 0; }
.pod h4 { font-size: 15px; }
.pod .pct { font-size: 22px; font-weight: 800; }
.lb-row { display: grid; grid-template-columns: 34px 46px minmax(0, 1fr) 160px 80px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: var(--blue-soft); }
.lb-row .nm b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .nm small { color: var(--muted); font-size: 12px; }
.lb-row.sultan { grid-template-columns: 34px 46px minmax(0, 1fr) 120px; }
.msg { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg p { font-size: 14px; margin: 3px 0; word-break: break-word; }
.verified { color: var(--blue-t); display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; }
.verified .ic { width: 13px; height: 13px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 14px; box-shadow: var(--glow); }
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-logo { padding: 10px 16px; border-radius: 12px; background: #fff; color: #0b1220; font-weight: 800; font-size: 13px; border: 1px solid rgba(16,40,90,.1); }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .25s, border-color .2s; }
.feat:hover { transform: translateY(-3px); border-color: var(--line2); }
.feat .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; border: 1px solid rgba(56,182,255,.22); }
.feat h4 { margin-bottom: 6px; }
.feat p { font-size: 13.5px; color: var(--muted); }
.cta-band { border-radius: 26px; padding: 44px; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.2), transparent 40%), linear-gradient(135deg, #1f6bff, #0a2a6b 60%, #05070d); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; border: 1px solid rgba(56,182,255,.3); }
.cta-band h2 { font-size: 30px; font-weight: 800; }

.footer { border-top: 1px solid var(--line); padding: 52px 0 28px; margin-top: 40px; background: var(--bg2); }
.footer-g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h5 { font-size: 13px; margin-bottom: 12px; color: var(--text); }
.footer a, .footer p { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.footer a:hover { color: var(--text); }
.footer .brand-logo { width: 190px; margin-bottom: 14px; }
[data-theme="dark"] .footer .brand-logo { background: #fff; border-radius: 14px; padding: 8px 12px; }
.footer-b { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); flex-wrap: wrap; }
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin-top: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.prose h3 { margin: 22px 0 8px; font-size: 17px; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.prose ol, .prose ul { padding-left: 20px; }

.pp { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.pp-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line2); }
.pp-photo .ph-fb { font-size: 80px; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.big-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.big-stats small { font-size: 12px; color: var(--muted); display: block; }
.big-stats b { font-size: 24px; font-weight: 800; }
.video { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); display: grid; place-items: center; color: var(--muted); text-align: center; }
.video iframe { width: 100%; height: 100%; border: 0; }
.qr-box { background: #fff; border-radius: 14px; padding: 10px; display: inline-block; max-width: 100%; }
.qr-box canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }

/* Vote form */
.vote-head { display: flex; gap: 16px; align-items: center; }
.vote-head .ph { width: 84px; height: 105px; border-radius: 14px; flex: none; }
.vote-head .ph-fb { font-size: 26px; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pkg { border: 1.5px solid var(--line2); border-radius: 14px; padding: 12px 14px; text-align: left; transition: .15s; position: relative; background: var(--card2); cursor: pointer; display: block; }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg:hover { border-color: var(--blue); }
.pkg.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(56,182,255,.18); }
.pkg b { display: block; font-size: 17px; }
.pkg small { color: var(--muted); font-size: 12px; }
.pkg .save { position: absolute; top: -9px; right: 10px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 48px; height: 48px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); font-size: 22px; font-weight: 700; flex: none; }
.stepper input { text-align: center; font-size: 20px; font-weight: 800; height: 48px; }
.sum { background: var(--card2); border-radius: 14px; padding: 14px 16px; font-size: 14px; border: 1px solid var(--line); }
.sum .r { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum .r.t { border-top: 1px dashed var(--line2); margin-top: 6px; padding-top: 10px; font-size: 17px; font-weight: 800; }
.vote-bar { display: none; }

/* Pay */
.pay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.qris { background: #fff; color: #111; border-radius: 22px; padding: 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(16,40,90,.1); }
.qris-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.qris-h b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.qris .qr { width: 100%; max-width: 270px; margin: 0 auto; }
.qris .qr canvas { width: 100%; height: auto; image-rendering: pixelated; }
.qris .amt { font-size: 28px; font-weight: 800; margin-top: 12px; }
.timer { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.demo-box { border: 1.5px dashed rgba(251,191,36,.55); background: rgba(251,191,36,.06); border-radius: 16px; padding: 16px; }
.receipt { max-width: 580px; margin: 0 auto; }
.rc-top { text-align: center; padding: 28px 20px 20px; }
.ok-ic { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(34,197,94,.12); color: var(--green); }
.ok-ic .ic { width: 36px; height: 36px; stroke-width: 2.5; }
.ok-ic.warn { background: rgba(245,158,11,.12); color: var(--amber); }
.ok-ic.bad { background: rgba(255,59,59,.1); color: var(--red); }
.ok-ic.info { background: var(--blue-soft); color: var(--blue); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--muted); flex: none; }
.kv > b { text-align: right; min-width: 0; word-break: break-word; }

/* Live screen (selalu gelap) */
.live-screen { color-scheme: dark; --card: #0c1220; --card2: #121a2c; --card3: #18223a; --line: rgba(120,160,255,.1); --line2: rgba(120,160,255,.2); --text: #edf3ff; --muted: #92a0bd; --dim: #5f6d8a;
  color: var(--text); min-height: 100vh; background: radial-gradient(circle at 0% 0%, rgba(56,182,255,.22), transparent 40%), radial-gradient(circle at 100% 100%, rgba(31,107,255,.28), transparent 45%), #020308; padding: 28px 36px; display: grid; grid-template-rows: auto 1fr auto; gap: 22px; }
.live-h { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.live-h h1 { font-size: 34px; font-weight: 800; }
.live-g { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; min-height: 0; }
.live-row { display: grid; grid-template-columns: 50px 64px minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.035); margin-bottom: 10px; border: 1px solid rgba(255,255,255,.06); }
.live-row.top { background: linear-gradient(90deg, rgba(251,191,36,.16), rgba(255,255,255,.03)); border-color: rgba(251,191,36,.35); }
.live-row .rk { font-size: 30px; font-weight: 900; text-align: center; color: var(--muted); }
.live-row.top .rk { color: var(--gold); }
.live-row b { font-size: 20px; }
.live-row .pc { font-size: 26px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.live-feed { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 18px; overflow: hidden; }
.live-feed .fi { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.live-qr { display: flex; align-items: center; gap: 16px; background: #fff; color: #111; border-radius: 16px; padding: 12px 16px 12px 12px; }
.live-qr .qr { width: 86px; }
.live-qr .qr canvas { width: 100%; height: auto; }

/* Auth */
.auth { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }

/* =========================================================
   DASHBOARD
   ========================================================= */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--page-glow), var(--bg); }
.side { background: var(--side-bg); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; z-index: 100; }
.side .logo { padding: 4px 8px 18px; }
.role-pill { margin: 0 6px 16px; padding: 11px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.role-pill b { display: block; color: var(--text); font-size: 13.5px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav .lbl { font-size: 11px; font-weight: 700; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; padding: 14px 12px 6px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 500; transition: .15s; }
.side-nav a:hover { background: var(--card2); color: var(--text); }
.side-nav a.on { background: var(--blue-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(56,182,255,.28); font-weight: 600; }
.side-nav a.on .ic { color: var(--blue); }
.side-nav .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.side-user b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-backdrop { display: none; }
.dtop { height: 66px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.dtop h1 { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcontent { padding: 26px 28px 60px; }
.dburger { display: none; }
.kpi { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .kpi { box-shadow: none; }
.kpi .k-l { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .k-l .ki { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.kpi .k-v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; overflow-wrap: anywhere; }
.kpi .k-d { font-size: 12.5px; color: var(--muted); }
.kpi .up { color: var(--t-green); font-weight: 600; } .kpi .down { color: var(--t-red); font-weight: 600; }
.kpi.hero-kpi { background: linear-gradient(135deg, #1f6bff, #0b2f7a); border-color: rgba(56,182,255,.35); color: #fff; }
.kpi.hero-kpi .k-l, .kpi.hero-kpi .k-d { color: rgba(255,255,255,.8); }
.kpi.hero-kpi .k-l .ki { background: rgba(255,255,255,.16); color: #fff; }
.kpi.hero-kpi .up, .kpi.hero-kpi .down { color: #fff; }
.kpi.hero-kpi .k-v { font-size: 30px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo .ti { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.feed-i { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed-i:last-child { border-bottom: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .select, .filters .input { width: auto; min-width: 170px; padding: 9px 12px; font-size: 13.5px; }
.page-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.ev-head { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; color: #fff; margin-bottom: 20px; flex-wrap: wrap; border: 1px solid var(--line2); background-size: cover !important; background-position: center !important; position: relative; overflow: hidden; }
.ev-head > * { position: relative; z-index: 1; }
.ev-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,10,.7), rgba(3,5,10,.25)); }
.ev-head h2 { font-size: 24px; font-weight: 800; }
.ev-head .meta { color: rgba(255,255,255,.88); }
.ev-thumb { width: 56px; height: 40px; border-radius: 10px; flex: none; background-size: cover !important; background-position: center !important; }
.sec-card { margin-bottom: 18px; }
.sec-card .card-h h3 .n { width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 13px; }
.rows-edit { display: flex; flex-direction: column; gap: 8px; }
.rows-edit .row { display: grid; gap: 8px; align-items: center; }
.rows-edit .row.cat { grid-template-columns: 1fr auto; }
.rows-edit .row.pkg-r { grid-template-columns: 1.4fr .8fr 1fr auto; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 60px; height: 38px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; display: block; }
.swatch input { display: none; }
.swatch:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 2px var(--blue2); }
.score-in { width: 66px; padding: 7px 8px; text-align: center; border-radius: 8px; border: 1px solid var(--line2); background: var(--input); font-variant-numeric: tabular-nums; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line2); }
.tl { position: relative; padding-bottom: 22px; }
.tl:last-child { padding-bottom: 0; }
.tl .tl-d { position: absolute; left: -30px; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--line2); display: grid; place-items: center; }
.tl.done .tl-d { background: var(--green); border-color: var(--green); color: #fff; }
.tl.now .tl-d { background: var(--blue2); border-color: var(--blue2); box-shadow: 0 0 0 5px rgba(31,107,255,.2); }
.tl .tl-d .ic { width: 13px; height: 13px; stroke-width: 3; }
.tl h4 { font-size: 14.5px; }
.tl p { font-size: 13px; color: var(--muted); }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .g-main > [style*="sticky"] { position: static !important; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .hide-m { display: none; }
  .nav-burger { display: inline-grid; }
  .nav-in { gap: 12px; }
  .nav-cta { margin-left: auto; }
  body.nav-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--card); padding: 12px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  body.nav-open .nav-links a { padding: 12px 14px; font-size: 15px; }
  .hero { padding: 40px 0 36px; }
  .hero-in, .ev-info, .pp, .pay-wrap, .live-g { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 38px; }
  .ev-grid, .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp > div:first-child { max-width: 420px; }
  /* dashboard */
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow); }
  body.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
  .dburger { display: inline-grid; }
  .dcontent { padding: 18px 14px 70px; }
  .dtop { padding: 0 14px; height: 60px; }
  .dtop .date-label { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px; }
  .pay-wrap > .col:last-child { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .show-m { display: initial !important; }
  .hide-m { display: none !important; }
  .logo-t small { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  /* bottom navigation ala aplikasi */
  body.pub { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 0; border-radius: 10px; }
  .mnav a .ic { width: 21px; height: 21px; }
  .mnav a.on { color: var(--blue-t); }
  .mnav a.mid { color: #fff; }
  .mnav a.mid span.mi { width: 46px; height: 46px; margin-top: -22px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); border: 3px solid var(--bg); }
  .mnav a.mid em { font-style: normal; color: var(--muted); }
  .flash-wrap { left: 12px; right: 12px; top: 12px; max-width: none; }
  .hero h1 { font-size: 31px; }
  .hero p.lead { font-size: 15px; }
  .hero-stats { gap: 20px; margin-top: 26px; }
  .hero-stats b { font-size: 21px; }
  .hero-cta .btn { flex: 1; }
  .section { padding: 34px 0; }
  .section-h { flex-direction: column; align-items: flex-start; margin-bottom: 16px; }
  .section-h h2 { font-size: 23px; }
  .page-head { padding: 28px 0 16px; }
  .page-head h1 { font-size: 27px; }
  .ev-grid, .g-2, .g-3, .form-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .g-4, .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-card { border-radius: 16px; }
  .p-cap { left: 10px; right: 10px; bottom: 8px; }
  .p-cap h4 { font-size: 14px; }
  .p-body { padding: 10px; gap: 8px; }
  .p-actions { grid-template-columns: minmax(0, 1fr); }
  .p-actions .btn-ghost { display: none; }
  .p-no, .crown { top: 8px; font-size: 10.5px; padding: 3px 8px; }
  .p-no { left: 8px; } .crown { right: 8px; }
  .ev-hero { padding: 26px 0 104px; }
  .ev-hero h1 { font-size: 27px; }
  .ev-info { gap: 12px; }
  .cd b { font-size: 21px; }
  .stat-row { gap: 6px; } .stat-row > div { padding: 8px 9px; } .stat-row b { font-size: 15px; }
  .toolbar { gap: 8px; margin: 18px 0 12px; }
  .toolbar .chips { flex-basis: 100%; }
  .toolbar .select { flex: 1; }
  .toolbar .input-icon { width: 100%; }
  .lb-row { grid-template-columns: 26px 40px minmax(0, 1fr) 68px; gap: 10px; padding: 10px 12px; }
  .lb-row.sultan { grid-template-columns: 26px 40px minmax(0, 1fr) 84px; }
  .lb-row .bar-col { display: none; }
  .podium { gap: 8px; }
  .pod { padding: 8px 8px 12px; border-radius: 14px; }
  .pod h4 { font-size: 12.5px; }
  .pod .pct { font-size: 16px; }
  .pod .medal { font-size: 10.5px; padding: 2px 8px; }
  .big-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .big-stats > div { padding: 10px; } .big-stats b { font-size: 18px; }
  .pp h1 { font-size: 28px !important; }
  .footer-g { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cta-band h2 { font-size: 23px; }
  .card { padding: 16px; border-radius: 16px; }
  .pkg-grid { gap: 8px; }
  .pkg { padding: 10px 12px; } .pkg b { font-size: 15px; }
  /* bar bayar menempel di bawah pada halaman vote */
  body.has-vote-bar { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .vote-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 65; align-items: center; gap: 12px;
    padding: 10px 14px; background: var(--card); border-top: 1px solid var(--line2); box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
  .vote-bar small { display: block; font-size: 11.5px; color: var(--muted); }
  .vote-bar b { font-size: 19px; font-weight: 800; }
  .vote-bar .btn { margin-left: auto; }
  .timer { font-size: 26px; }
  .qris .amt { font-size: 24px; }
  .live-screen { padding: 14px; }
  .live-h h1 { font-size: 22px; }
  .live-row { grid-template-columns: 34px 46px minmax(0, 1fr) 76px; gap: 10px; padding: 10px; }
  .live-row b { font-size: 15px; } .live-row .pc { font-size: 18px; } .live-row .rk { font-size: 22px; }
  .rows-edit .row.pkg-r { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .select, .filters .input, .filters .input-icon { flex: 1 1 100%; min-width: 0; width: 100%; }
  .filters .page-actions { margin-left: 0; width: 100%; }
  .filters .page-actions .btn { flex: 1; }
  .kpi { padding: 14px; } .kpi .k-v { font-size: 19px; } .kpi.hero-kpi .k-v { font-size: 21px; }
  .kpi .k-l .ki { display: none; }
  .ev-head { padding: 16px; } .ev-head h2 { font-size: 19px; }
  .tabs a { padding: 8px 12px; font-size: 13px; }
  .table { font-size: 13px; } .table td, .table th { padding: 10px; }
}
@media print {
  .pub-nav, .footer, .side, .dtop, .no-print, .flash-wrap, .mnav, .vote-bar { display: none !important; }
  body { background: #fff !important; color: #111; padding: 0 !important; }
  .card { background: #fff; border-color: #ddd; box-shadow: none; }
  .muted, .kv > span { color: #555; }
}
