/* ============================================================
   Voting Vendor Awards — gaya bersama (form + admin)
   ============================================================ */
:root {
  color-scheme: light;
  --bg: #eef2f7;
  --bg-2: #e4ebf4;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #edf1f6;
  --line: #dde3ec;
  --line-strong: #c5cfdc;
  --text: #101828;
  --text-2: #475467;
  --text-3: #6b7689;
  --primary: #1f6fd1;
  --primary-ink: #ffffff;
  --primary-soft: #e3eefc;
  --accent: #6250d6;
  --good: #12805c;
  --good-soft: #def5ec;
  --warn: #b25e00;
  --warn-soft: #fff1dc;
  --bad: #c8322f;
  --bad-soft: #fde6e5;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 4px 10px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 60px rgba(16, 24, 40, .16);
  --blob-1: #8fb8f0;
  --blob-2: #b2a6f2;
  --blob-3: #8fe0c2;
  --blob-4: #f6c39a;
  --radius: 16px;
  --radius-sm: 10px;
  --kat: var(--primary);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1117;
    --bg-2: #111722;
    --surface: #161c27;
    --surface-2: #1b2230;
    --surface-3: #232b3b;
    --line: #2a3344;
    --line-strong: #3a4558;
    --text: #eef1f6;
    --text-2: #b6bfcd;
    --text-3: #8d97a8;
    --primary: #4c93ec;
    --primary-ink: #0b1220;
    --primary-soft: #1a2d47;
    --accent: #9085e9;
    --good: #3cc48f;
    --good-soft: #13372a;
    --warn: #f0a640;
    --warn-soft: #3a2a12;
    --bad: #ef6b68;
    --bad-soft: #3d1a1a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
    --blob-1: #1d4d8f;
    --blob-2: #3b2f86;
    --blob-3: #105a45;
    --blob-4: #6a3a17;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117; --bg-2: #111722; --surface: #161c27; --surface-2: #1b2230; --surface-3: #232b3b;
  --line: #2a3344; --line-strong: #3a4558; --text: #eef1f6; --text-2: #b6bfcd; --text-3: #8d97a8;
  --primary: #4c93ec; --primary-ink: #0b1220; --primary-soft: #1a2d47; --accent: #9085e9;
  --good: #3cc48f; --good-soft: #13372a; --warn: #f0a640; --warn-soft: #3a2a12; --bad: #ef6b68; --bad-soft: #3d1a1a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 6px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 70px rgba(0,0,0,.55);
  --blob-1: #1d4d8f; --blob-2: #3b2f86; --blob-3: #105a45; --blob-4: #6a3a17;
}

*, *::before, *::after { box-sizing: border-box; }
/* tidak boleh ada geser ke samping: animasi masuk (mis. .step yang meluncur dari kanan) sempat membuat halaman
   lebih lebar dari layar HP, sehingga browser memperbesar area halaman dan bar bawah (position: fixed) terdorong keluar layar */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- animated background ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 600px at 10% -10%, var(--bg-2), transparent 60%), var(--bg); }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 22s var(--ease) infinite alternate; }
.bg-blobs span:nth-child(1) { width: 460px; height: 460px; background: var(--blob-1); top: -120px; left: -80px; }
.bg-blobs span:nth-child(2) { width: 380px; height: 380px; background: var(--blob-2); top: 30%; right: -120px; animation-duration: 26s; animation-delay: -6s; }
.bg-blobs span:nth-child(3) { width: 340px; height: 340px; background: var(--blob-3); bottom: -120px; left: 20%; animation-duration: 30s; animation-delay: -12s; }
.bg-blobs span:nth-child(4) { width: 260px; height: 260px; background: var(--blob-4); top: 55%; left: -60px; animation-duration: 24s; animation-delay: -3s; opacity: .35; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 80px) scale(.95); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; min-width: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: var(--shadow-sm); }
.brand-logo svg { width: 20px; height: 20px; }
.brand small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; line-height: 1.2; }
.brand-text { min-width: 0; }
.brand-text b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); max-width: 240px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.user-chip .who { min-width: 0; line-height: 1.15; padding-right: 8px; }
.user-chip .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who small { color: var(--text-3); font-size: 11px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--text-2); transition: .2s var(--ease); flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 24px 16px 120px; }
.wrap-wide { max-width: 1200px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px 24px; margin-bottom: 16px; position: relative;
}
.card h1, .card h2, .card h3 { margin: 0 0 6px; letter-spacing: -.015em; line-height: 1.25; }
.card h1 { font-size: 28px; }
.card h2 { font-size: 21px; }
.card h3 { font-size: 16px; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: 13px; }
.req { color: var(--bad); }

/* reveal on enter */
.reveal { animation: fadeUp .55s var(--ease) both; }
.reveal-d1 { animation-delay: .06s; } .reveal-d2 { animation-delay: .12s; } .reveal-d3 { animation-delay: .18s; } .reveal-d4 { animation-delay: .24s; } .reveal-d5 { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
.shake { animation: shake .5s both; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-theme="dark"] .btn-primary { color: var(--primary-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: var(--primary-ink); } }
.btn-primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ---------- inputs ---------- */
.field { position: relative; margin-bottom: 16px; }
.field input {
  width: 100%; padding: 22px 14px 8px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; font-size: 16px;
}
.field label { position: absolute; left: 15px; top: 15px; color: var(--text-3); pointer-events: none; transition: .2s var(--ease); font-size: 15px; }
.field input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 6px; font-size: 12px; color: var(--primary); font-weight: 600; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; padding-left: 4px; }
.field.error input { border-color: var(--bad); animation: shake .45s; }

.search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s; flex: 1; min-width: 0;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); background: var(--surface); }
.search svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.search input { border: 0; outline: 0; background: transparent; padding: 11px 0; width: 100%; min-width: 0; font-size: 15px; }
select.select { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface-2); font-size: 14px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { padding: 28px; border-radius: 22px; box-shadow: var(--shadow-lg); animation: cardIn .7s var(--spring) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-3); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px; font-weight: 600; color: var(--text-2); border-radius: 9px; transition: color .25s; }
.tabs button.active { color: var(--text); }
.tabs .slider { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .35s var(--spring); }
.tabs[data-tab="register"] .slider { transform: translateX(100%); }
.form-pane { animation: fadeUp .4s var(--ease) both; }
.alert { padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; animation: fadeUp .3s var(--ease) both; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-good { background: var(--good-soft); color: var(--good); }
.alert-info { background: var(--primary-soft); color: var(--primary); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- home ---------- */
.kat-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--kat) 15%, transparent); color: var(--kat); margin-bottom: 12px; }
.kat-ico svg { width: 22px; height: 22px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge-vote { background: color-mix(in srgb, var(--kat) 14%, transparent); color: var(--kat); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- bar langkah (bawah layar): ikon saja, sorotan berwarna bergeser ke ikon aktif ---------- */
@property --i { syntax: "<number>"; inherits: true; initial-value: 0; }
.tabbar {
  --x: calc((var(--i) + .5) / var(--n) * 100%);
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25;
  width: calc(100% - 24px); max-width: 480px; height: 60px; transform: translateX(-50%);
  display: flex; align-items: center; transition: --i .45s var(--ease);
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.tb-hl {
  position: absolute; top: 50%; left: var(--x); width: 50px; height: 42px; margin: -21px 0 0 -25px; border-radius: 15px;
  background: var(--bc, var(--primary)); box-shadow: 0 6px 16px color-mix(in srgb, var(--bc, var(--primary)) 45%, transparent);
  transition: background .3s;
}
.tb-item { position: relative; flex: 1; height: 100%; display: grid; place-items: center; border: 0; background: none; color: var(--text-3); cursor: pointer; transition: color .25s; }
.tb-item svg { width: 22px; height: 22px; }
.tb-item:hover { color: var(--text); }
.tb-item.selesai { color: var(--primary); }
.tb-item.selesai::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tb-item.on { color: #fff; }
.step-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.step-actions .info { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); }

/* ---------- step transitions ---------- */
.step { animation: stepIn .5s var(--ease) both; }
.step.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

/* ---------- category header ---------- */
.kat-head { display: flex; gap: 14px; align-items: flex-start; }
.kat-head .kat-ico { margin: 0; width: 48px; height: 48px; flex: none; }
.kat-head .en { font-size: 13px; color: var(--text-3); font-style: italic; }
.crit-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.crit-table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.crit-table tr:last-child td { border-bottom: 0; }
.crit-table .w { width: 120px; text-align: right; }
.wbar { display: inline-flex; align-items: center; gap: 8px; }
.wbar span { display: inline-block; height: 8px; border-radius: 0 4px 4px 0; background: var(--kat); min-width: 4px; transform-origin: left; animation: growX .8s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }
.wbar b { font-variant-numeric: tabular-nums; width: 34px; text-align: right; }
details.more { margin-top: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
details.more summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
details.more[open] summary svg { transform: rotate(90deg); }
details.more .in { padding: 0 14px 12px 38px; font-size: 14px; color: var(--text-2); }
details.more ul { margin: 0; padding-left: 18px; }
details.more li { margin: 3px 0; }
details.more[open] .in { animation: fadeUp .3s var(--ease); }

/* ---------- vendor picker ---------- */
.q-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.picker-tools { display: flex; gap: 8px; margin: 14px 0 10px; flex-wrap: wrap; }
.counter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px;
  background: color-mix(in srgb, var(--kat) 14%, transparent); color: var(--kat); transition: background .3s; }
.counter.full { background: var(--warn-soft); color: var(--warn); }
.counter.bump { animation: pop .35s var(--spring); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .25; transition: opacity .25s, transform .25s var(--spring); }
.dots i.on { opacity: 1; transform: scale(1.15); }
.tray { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--kat); color: #fff; font-size: 13px; font-weight: 600;
  animation: chipIn .35s var(--spring) both; max-width: 100%; }
.chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); color: #fff; display: grid; place-items: center; flex: none; }
.chip button:hover { background: rgba(255,255,255,.4); }
.chip button svg { width: 12px; height: 12px; }
@keyframes chipIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.vendor-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 440px; overflow: auto; padding: 4px; margin: 0 -4px; scroll-behavior: smooth; }
.vendor-item {
  position: relative; display: flex; gap: 10px; align-items: center; text-align: left; width: 100%;
  padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; animation: fadeUp .35s var(--ease) both;
}
.vendor-item:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.vendor-item .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: .25s var(--spring); }
.vendor-item .box svg { width: 14px; height: 14px; color: #fff; transform: scale(0); transition: transform .25s var(--spring); }
.vendor-item .vi { min-width: 0; flex: 1; }
.vendor-item .vn { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.vendor-item .vm { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.vendor-item.sel { border-color: var(--kat); background: color-mix(in srgb, var(--kat) 8%, var(--surface)); }
.vendor-item.sel .box { background: var(--kat); border-color: var(--kat); transform: scale(1.08); }
.vendor-item.sel .box svg { transform: scale(1); }
.vendor-item.dis { opacity: .5; }
.vendor-item mark { background: color-mix(in srgb, var(--kat) 25%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { text-align: center; color: var(--text-3); padding: 28px 10px; grid-column: 1 / -1; }

/* ---------- rating ---------- */
.rate-card { animation: fadeUp .45s var(--ease) both; }
.ring { width: 64px; height: 64px; position: relative; flex: none; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .tr { stroke: var(--line); }
.ring .fg { stroke: var(--kat); stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.ring .val small { display: block; font-size: 9px; font-weight: 600; color: var(--text-3); margin-top: -4px; text-align: center; }
.crit-row { padding: 14px 0; border-top: 1px solid var(--line); }
.crit-row.missing { border-radius: 12px; background: var(--bad-soft); padding: 14px 12px; margin: 0 -12px; border-top-color: transparent; animation: pulseRing 1s 2; }
.crit-name { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.crit-name .badge { font-variant-numeric: tabular-nums; }
.crit-ind { font-size: 12.5px; color: var(--text-3); margin: -4px 0 10px; }
/* slider nilai 1–5: 1–2 merah sedih, 3–4 oranye senyum tipis, 5 hijau senyum lebar */
.rate-line { display: flex; align-items: center; gap: 14px; }
.rate { --rc: var(--line-strong); --p: 0%; flex: 1; min-width: 0; padding: 14px 18px; margin: -6px -2px; border-radius: 999px; cursor: pointer; touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; }
.rate:focus-visible { box-shadow: 0 0 0 3px var(--primary-soft); }
.rate[data-t="low"], .rate-val[data-t="low"] { --rc: #e5484d; }
.rate[data-t="mid"], .rate-val[data-t="mid"] { --rc: #f08c2e; }
.rate[data-t="high"], .rate-val[data-t="high"] { --rc: #1fae6b; }
.rate-rail { position: relative; height: 12px; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
.rate-fill { position: absolute; left: -6px; top: 0; bottom: 0; width: calc(var(--p) + 6px); border-radius: 99px; background: var(--rc); opacity: 0; transition: width .2s var(--spring), background .2s; }
.rate[data-v] .rate-fill { opacity: 1; }
.rate-dot { position: absolute; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: color-mix(in srgb, var(--text-3) 75%, transparent); }
.rate-thumb {
  position: absolute; top: 50%; left: var(--p); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rc); box-shadow: 0 0 0 3px var(--surface), 0 4px 10px rgba(0, 0, 0, .3);
  opacity: 0; transform: scale(.4); transition: left .2s var(--spring), background .2s, transform .2s var(--spring), opacity .2s;
}
.rate[data-v] .rate-thumb { opacity: 1; transform: none; }
.rate.drag .rate-thumb { transform: scale(1.14); }
.rate-thumb svg { width: 24px; height: 24px; }
.rate-thumb circle { fill: #1a1a1a; }
.rate-thumb path { fill: none; stroke: #1a1a1a; stroke-width: 1.8; stroke-linecap: round; display: none; }
.rate-thumb .m-high { fill: #1a1a1a; stroke: none; }
.rate[data-t="low"] .m-low, .rate[data-t="mid"] .m-mid, .rate[data-t="high"] .m-high { display: block; }
.rate-val { flex: none; width: 76px; text-align: right; line-height: 1.15; }
.rate-val b { display: block; font-size: 19px; font-weight: 800; color: var(--rc, var(--text-3)); font-variant-numeric: tabular-nums; }
.rate-val small { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ---------- nav footer ---------- */
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
@keyframes slideUp { from { transform: translateY(100%); } }
.navbar .in { max-width: 780px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.navbar .info { flex: 1; font-size: 13px; color: var(--text-2); min-width: 0; }

/* ---------- review ---------- */
.rev-kat { padding: 16px 0; border-top: 1px solid var(--line); }
.rev-kat:first-of-type { border-top: 0; }
.rev-kat h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.rev-kat h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--kat); }
.rev-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.rev-item .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.rev-item .sb { width: 120px; height: 8px; border-radius: 0 4px 4px 0; background: var(--line); overflow: hidden; flex: none; }
.rev-item .sb i { display: block; height: 100%; background: var(--kat); border-radius: 0 4px 4px 0; animation: growX .9s var(--ease) both; transform-origin: left; }
.rev-item .sc { width: 52px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.link-btn { border: 0; background: none; color: var(--primary); font-weight: 600; padding: 0; font-size: 13px; }

/* ---------- done ---------- */
.done { text-align: center; padding: 40px 24px; }
.trophy { width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffe59a, #f3b52a 60%, #c98500); box-shadow: 0 18px 40px rgba(201, 133, 0, .35); animation: trophyIn 1s var(--spring) both; }
.trophy svg { width: 60px; height: 60px; color: #fff; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
@keyframes trophyIn { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.1) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; gap: 8px; align-items: center; animation: toastIn .4s var(--spring) both; }
.toast.out { animation: toastOut .3s var(--ease) both; }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(10, 14, 22, .5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fadeIn .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 640px; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; animation: cardIn .45s var(--spring) both; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { flex: 1; margin: 0; font-size: 19px; }

/* ---------- loader ---------- */
.loader { min-height: 60vh; display: grid; place-items: center; color: var(--text-3); }
.loader .spinner { width: 34px; height: 34px; border-width: 3px; color: var(--primary); }

/* ---------- admin ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile .lab { font-size: 13px; color: var(--text-2); font-weight: 600; }
.tile .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 4px; }
.tile .sub { font-size: 12px; color: var(--text-3); }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--good); border-radius: 99px; transition: width 1s var(--ease); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.seg button { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--text-2); display: inline-flex; gap: 7px; align-items: center; transition: .2s var(--ease); }
.seg button i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.seg button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.board { display: flex; flex-direction: column; gap: 4px; }
.brow { display: grid; grid-template-columns: 34px minmax(140px, 300px) 1fr; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 10px; position: relative; animation: fadeUp .45s var(--ease) both; }
.brow:hover { background: var(--surface-2); }
.brow .rk { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-3); color: var(--text-2); }
.brow.r1 .rk { background: #f3b52a; color: #3d2800; }
.brow.r2 .rk { background: #c9d1dc; color: #22303f; }
.brow.r3 .rk { background: #d99a6c; color: #3a1d08; }
.brow .bn { font-weight: 600; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.brow .bn small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
.brow .bt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brow .bb { height: 18px; border-radius: 0 4px 4px 0; background: var(--kat); transform-origin: left; animation: growX 1s var(--ease) both; min-width: 3px; max-width: calc(100% - 60px); }
.brow .bv { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; box-shadow: var(--shadow); min-width: 180px; max-width: 280px; opacity: 0; transition: opacity .12s; }
.tip.show { opacity: 1; }
.tip b { display: block; margin-bottom: 4px; font-size: 13px; }
.tip .tr { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.tip .tr span:last-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 700; color: var(--text-2); background: var(--surface-2); padding: 10px 12px; white-space: nowrap; position: sticky; top: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }
.status svg { width: 13px; height: 13px; }
.status.ok { background: var(--good-soft); color: var(--good); }
.status.no { background: var(--warn-soft); color: var(--warn); }
.mini-list { margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-2); }
.mini-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.pin-box { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.pin-box > span svg { width: 20px; height: 20px; color: var(--text-2); }

.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-danger.btn-solid { background: var(--bad); color: #fff; border-color: transparent; }
.danger-zone { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--bad) 50%, var(--line)); font-size: 14px; }
.danger-zone .dz-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--bad); flex: none; }

/* juara HSE */
.hse-empty { margin-top: 14px; padding: 16px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-2); color: var(--text-2); font-size: 14px; text-align: center; }
.hse-list { display: grid; gap: 8px; margin-top: 14px; }
.hse-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); animation: fadeUp .45s var(--ease) both; }
.hse-row .hn { flex: 1; min-width: 0; line-height: 1.3; }
.hse-row .hn b { display: block; font-size: 14px; }
.hse-row .hn small { color: var(--text-3); font-size: 12px; }
.hse-row .md { font-size: 22px; }
.hse-row .rk, .slot .rk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-3); color: var(--text-2); flex: none; }
.hse-row.r1 .rk, .slot.r1 .rk { background: #f3b52a; color: #3d2800; }
.hse-row.r2 .rk, .slot.r2 .rk { background: #c9d1dc; color: #22303f; }
.hse-row.r3 .rk, .slot.r3 .rk { background: #d99a6c; color: #3a1d08; }
.hse-row.r1 { border-color: color-mix(in srgb, #f3b52a 55%, var(--line)); background: color-mix(in srgb, #f3b52a 10%, var(--surface-2)); }
.podium { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); text-align: center; position: relative; min-height: 96px; transition: border-color .2s, background .2s; }
.slot.on { border-style: solid; border-color: var(--kat); background: color-mix(in srgb, var(--kat) 8%, var(--surface)); animation: pop .35s var(--spring); }
.slot .sn { font-size: 12px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.slot .sx { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; }
.slot .sx svg { width: 12px; height: 12px; }
.vendor-item .rankbox b { color: #fff; font-size: 12px; font-weight: 800; animation: pop .35s var(--spring); }
@media (max-width: 640px) {
  .podium { grid-template-columns: 1fr; }
  .slot { flex-direction: row; min-height: 0; text-align: left; padding: 8px 36px 8px 10px; }
  #btnHse span { display: none; }
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.sec-title h2 { margin: 0; flex: 1; }
.updated { font-size: 12px; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 16px 16px 120px; }
  .card { padding: 18px 16px; }
  .card h1 { font-size: 23px; }
  .vendor-list { grid-template-columns: 1fr; max-height: 380px; }
  .picker-tools .search { flex: 1 1 100%; }
  .picker-tools .select { flex: 1; }
  .rate-val { width: 72px; }
  .rate-line { gap: 10px; }
  .user-chip .who { display: none; }
  .brand small { display: none; }
  .brow { grid-template-columns: 30px 1fr; }
  .brow .bt { grid-column: 2; }
  .rev-item .sb { width: 70px; }
  .crit-table .w { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bg-blobs span { animation: none; }
}

/* ---------- admin: status buka / tutup voting ---------- */
.vt-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.vt-bar.buka { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.vt-bar.tutup { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad) 5%, var(--surface)); }
.vt-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px color-mix(in srgb, var(--good) 18%, transparent); }
.vt-bar.tutup .vt-dot { background: var(--bad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 18%, transparent); }
.vt-teks { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.vt-teks b { font-size: 15px; }
.vt-bar.buka .vt-teks b { color: var(--good); }
.vt-bar.tutup .vt-teks b { color: var(--bad); }
.vt-teks small { font-size: 13px; color: var(--text-3); }
