/* ============================================================
   Voting Penghargaan Vendor — 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; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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.stripe { overflow: hidden; padding-top: 30px; }
.card.stripe::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--kat); }
.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-grid { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; }
.auth-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; margin: 14px 0 12px; letter-spacing: -.03em; }
.auth-hero h1 .grad { background: linear-gradient(90deg, var(--primary), var(--accent), #1baf7a, var(--primary)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.auth-hero p { color: var(--text-2); font-size: 16px; max-width: 460px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.award-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.award-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); animation: fadeUp .6s var(--ease) both; }
.award-tag i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.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 ---------- */
.hello { display: flex; gap: 18px; align-items: center; }
.hello .wave { font-size: 40px; display: inline-block; animation: wave 2.2s ease-in-out 0.4s 2; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.kat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.kat-card {
  --kat: var(--primary);
  position: relative; overflow: hidden; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.kat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kat-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--kat); opacity: .1; transition: transform .5s var(--ease); }
.kat-card:hover::after { transform: scale(1.6); }
.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; }
.kat-card h3 { font-size: 15px; margin: 0 0 4px; }
.kat-card p { font-size: 13px; color: var(--text-2); margin: 0; }
.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); }
.kat-card .badge { margin-top: 12px; }
.steps-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.how { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 13px; color: var(--text-2); }
.how b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.how .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- progress ---------- */
.progress-wrap { position: sticky; top: 57px; z-index: 20; padding: 10px 0 12px; margin: -8px 0 8px; background: linear-gradient(var(--bg) 70%, transparent); }
.progress-steps { display: flex; gap: 6px; }
.progress-steps .ps { flex: 1; min-width: 0; }
.ps .bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ps .bar i { display: block; height: 100%; width: 0; background: var(--kat, var(--primary)); border-radius: 99px; transition: width .6s var(--ease); }
.ps.done .bar i, .ps.active .bar i { width: 100%; }
.ps.active .bar i { animation: barGrow .6s var(--ease); }
@keyframes barGrow { from { width: 0; } }
.ps .lbl { display: block; font-size: 12px; margin-top: 5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ps.active .lbl { color: var(--text); font-weight: 700; }

/* ---------- 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 { border-left: 5px solid var(--kat); animation: fadeUp .45s var(--ease) both; }
.rate-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.rate-head .rh-t { flex: 1; min-width: 0; }
.rate-head .rh-t b { display: block; font-size: 16px; line-height: 1.3; }
.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; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button {
  border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 8px 4px 7px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; transition: transform .2s var(--spring), border-color .2s, background .2s, color .2s;
}
.scale button .sn { font-weight: 800; font-size: 17px; line-height: 1.1; }
.scale button .sl { font-size: 11px; color: var(--text-3); line-height: 1.2; text-align: center; }
.scale button:hover { border-color: var(--kat); transform: translateY(-2px); }
.scale button.on { background: var(--kat); border-color: var(--kat); color: #fff; animation: pop .35s var(--spring); }
.scale button.on .sl { color: rgba(255,255,255,.88); }
.scale button.fill:not(.on) { background: color-mix(in srgb, var(--kat) 12%, var(--surface-2)); border-color: color-mix(in srgb, var(--kat) 35%, var(--line)); }

/* ---------- 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);
  animation: slideUp .5s var(--ease) both; }
@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) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-hero { text-align: center; }
  .auth-hero p { margin: 0 auto; }
  .award-stack { justify-content: center; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 16px 16px 120px; }
  .card { padding: 18px 16px; }
  .card.stripe { padding-top: 26px; }
  .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; }
  .steps-how { grid-template-columns: 1fr; }
  .scale button .sl { display: none; }
  .scale button { padding: 10px 2px; }
  .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; }
  .progress-wrap { top: 55px; }
}
@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; }
}
