/* Antree Event — demo styles */
:root {
  --navy: #12182b;
  --navy-2: #1c2440;
  --navy-3: #2c365a;
  --cream: #f4f1ea;
  --paper: #fffdf8;
  --line: #e2dccf;
  --orange: #ff6a2b;
  --orange-deep: #b83e0c;
  --teal: #2fb8ac;
  --peri: #7c8cf8;
  --amber: #ffb347;
  --purple: #b05ce0;
  --ink: #12182b;
  --muted: #636a7b;
  --muted-2: #9aa2b5;
  --ok: #12a594;
  --bad: #d64545;
  --radius: 20px;
  --shadow: 0 18px 40px -20px rgba(18, 24, 43, .45);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: #0b1020;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- app frame ---------- */
#app {
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: clip;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 120px -40px #000;
}
@media (min-width: 900px) {
  body { padding: 24px 0; }
  #app { min-height: calc(100dvh - 48px); border-radius: 28px; }
}

.chrome { position: sticky; top: 0; z-index: 40; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 16px;
  background: rgba(244, 241, 234, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,24,43,.08);
}
.demobar {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--navy); color: var(--cream);
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px;
}
.demobar b { font-family: var(--display); font-size: 13px; letter-spacing: 0; }
.demobar button {
  margin-left: 4px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 2px 8px; color: var(--cream);
}
.topbar.dark { background: rgba(18,24,43,.86); border-bottom-color: rgba(255,255,255,.1); color: var(--cream); }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--orange); transform: rotate(45deg); }
.brand small { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 2px; }
.topbar.dark .brand small { color: var(--muted-2); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-actions a, .top-actions button {
  font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 999px;
  border: 1px solid rgba(18,24,43,.14); color: var(--ink);
}
.topbar.dark .top-actions a, .topbar.dark .top-actions button { border-color: rgba(255,255,255,.18); color: var(--cream); }
.top-actions .active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.page { flex: 1; display: flex; flex-direction: column; }
.pad { padding: 20px 20px 32px; }
.pad-tight { padding: 14px 20px 24px; }
.grow { flex: 1; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow.on-dark { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; font-weight: 600; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; letter-spacing: .04em; }
.mono { font-variant-numeric: tabular-nums; }
.hr { height: 1px; background: rgba(18,24,43,.1); margin: 16px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  font-weight: 650; font-size: 15px; letter-spacing: -.01em;
  transition: transform .12s ease, background .15s ease, opacity .15s;
  width: 100%;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -12px rgba(255,106,43,.9); }
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(18,24,43,.18); color: var(--ink); }
.btn-ghost.on-dark { border-color: rgba(255,255,255,.24); color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; width: auto; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--cream); overflow: hidden;
  min-height: 440px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 20px 24px;
  background: var(--navy);
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,24,43,.55) 0%, rgba(18,24,43,.15) 32%, rgba(18,24,43,.72) 72%, #12182b 100%);
}
.hero > * { position: relative; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.hero h1 { font-size: 42px; letter-spacing: -.035em; margin: 10px 0 10px; }
.hero .sub { font-size: 14.5px; color: #d3d8e3; max-width: 34ch; }
.hero .bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 22px; }
.hero .price-hint { font-size: 11px; color: var(--muted-2); margin-bottom: 2px; }
.hero .price { font-family: var(--display); font-size: 24px; font-weight: 700; }
.hero .price span { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted-2); }

/* ---------- cards / sections ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.card.dark { background: var(--navy-2); border-color: var(--navy-3); color: var(--cream); }
.card.flat { border-radius: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.spacer { flex: 1; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 22px; }
.link { font-size: 12.5px; font-weight: 600; color: var(--orange-deep); }

/* ---------- steps ---------- */
.steps { display: flex; gap: 6px; padding: 10px 20px 4px; }
.steps i { height: 3px; border-radius: 2px; background: rgba(18,24,43,.12); flex: 1; }
.steps i.on { background: var(--orange); }

/* ---------- zone map ---------- */
.map-wrap {
  background: var(--navy); border-radius: var(--radius); padding: 10px;
  position: relative; overflow: hidden;
}
.map-wrap svg { width: 100%; height: auto; display: block; }
.zone-shape { cursor: pointer; transition: opacity .15s, transform .15s; transform-origin: center; }
.zone-shape:hover { opacity: .85; }
.zone-label { font-family: var(--sans); font-weight: 700; fill: #fff; pointer-events: none; }
.zone-sub { font-family: var(--sans); font-weight: 500; fill: rgba(255,255,255,.75); pointer-events: none; }
.stage-label { font-family: var(--sans); font-weight: 700; fill: rgba(255,255,255,.55); letter-spacing: .18em; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 4px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend b { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- zone list ---------- */
.zone-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; transition: border-color .15s, transform .12s;
}
.zone-row:active { transform: scale(.99); }
.zone-row.selected { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(18,24,43,.06); }
.zone-dot { width: 12px; height: 36px; border-radius: 4px; flex: none; }
.zone-row .grow { min-width: 0; }
.zone-row .name { display: block; font-weight: 650; font-size: 14.5px; }
.zone-row .meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.zone-row .right { text-align: right; }
.zone-row .price { font-family: var(--display); font-weight: 700; font-size: 15px; }
.zone-row .per { font-size: 10.5px; color: var(--muted); }
.score {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; color: var(--orange-deep);
  background: #fff2ea; border-radius: 999px; padding: 2px 7px;
}
.score.good { color: #0d7a6f; background: #e5f6f4; }

/* ---------- zone detail ---------- */
.detail-photo { position: relative; height: 230px; overflow: hidden; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,43,.05) 30%, rgba(18,24,43,.82) 100%); }
.detail-photo .caption { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.detail-photo h2 { color: #fff; font-size: 28px; }
.detail-photo .caption p { color: #d3d8e3; font-size: 12.5px; }

.fact { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed rgba(18,24,43,.12); font-size: 13.5px; }
.fact:last-child { border-bottom: 0; }
.fact b { font-weight: 650; }
.fact .k { color: var(--muted); }

.seatmap { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 8px 0; }
.seatrow { display: flex; gap: 5px; align-items: center; }
.seatrow .rlabel { width: 14px; font-size: 10px; color: var(--muted); }
.seat { width: 15px; height: 15px; border-radius: 4px; background: rgba(18,24,43,.1); }
.seat.taken { background: rgba(18,24,43,.28); }
.seat.mine { background: var(--orange); }

/* ---------- people picker ---------- */
.people-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.people {
  aspect-ratio: 1 / 1; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--display); font-size: 22px; font-weight: 700;
}
.people small { font-family: var(--sans); font-size: 9.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.people.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.people.on small { color: var(--muted-2); }

/* ---------- checkout ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  height: 50px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--paper);
  padding: 0 14px; font-size: 15px; outline: none; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--ink); }
.field .hint { font-size: 11px; color: var(--muted); }

.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); }
.pay-method .logo { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.pay-method .check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 11px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--orange); margin-top: 1px; flex: none; }

.summary { display: flex; flex-direction: column; gap: 8px; }
.summary .line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.summary .line.total { font-size: 18px; font-weight: 700; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--display); }

/* ---------- ticket ---------- */
.ticket {
  background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.ticket .stripe { height: 8px; }
.ticket .body { padding: 18px; }
.ticket .perf { position: relative; height: 22px; }
.ticket .perf::before, .ticket .perf::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream); transform: translateY(-50%);
}
.ticket .perf::before { left: -11px; }
.ticket .perf::after { right: -11px; }
.ticket .perf .dash { position: absolute; top: 50%; left: 16px; right: 16px; border-top: 1.5px dashed rgba(18,24,43,.18); }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 4px; }
.qrbox canvas { width: 168px; height: 168px; image-rendering: pixelated; }
.qrbox .code { font-size: 11px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge.ok { background: #e5f6f4; color: #0d7a6f; }
.badge.warn { background: #fff2ea; color: var(--orange-deep); }
.badge.dark { background: rgba(255,255,255,.1); color: var(--cream); }

/* ---------- moment ---------- */
.moment-stage {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 380px;
  background: url("../assets/img/venue-night.jpg") center/cover;
  display: grid; place-items: center; padding: 20px;
}
.moment-stage::after { content: ""; position: absolute; inset: 0; background: rgba(10,14,26,.35); }
.moment-card {
  position: relative; z-index: 1; width: 100%; max-width: 300px;
  border-radius: 20px; padding: 18px; color: #fff;
  background: linear-gradient(160deg, rgba(18,24,43,.86), rgba(18,24,43,.62));
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
}
.moment-card .big { font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: -.03em; }
.moment-card .rowline { display: flex; justify-content: space-between; font-size: 11px; color: #c9d0e0; margin-top: 10px; }

/* ---------- gate ---------- */
.gate-hero { text-align: center; padding: 28px 20px 8px; }
.gate-result {
  border-radius: 20px; padding: 26px 20px; text-align: center; color: #fff;
  transition: background .2s;
}
.gate-result.ok { background: var(--ok); }
.gate-result.bad { background: var(--bad); }
.gate-result.idle { background: var(--navy-2); }
.gate-result .icon { font-size: 40px; line-height: 1; }
.gate-result h2 { margin: 8px 0 4px; font-size: 28px; }
.gate-result p { font-size: 13px; opacity: .9; }
.scan-form { display: flex; gap: 8px; }
.scan-form input { flex: 1; height: 50px; border-radius: 13px; border: 1.5px solid var(--line); padding: 0 14px; background: var(--paper); font-size: 15px; letter-spacing: .06em; }
.counter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counter .card { padding: 14px; }
.counter .n { font-family: var(--display); font-size: 26px; font-weight: 700; }
.counter .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- passport ---------- */
.stamp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stamp {
  aspect-ratio: 1/1; border-radius: 16px; border: 1.5px dashed rgba(18,24,43,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; padding: 8px; font-size: 9.5px; color: var(--muted); line-height: 1.2;
}
.stamp.on { border: 0; background: var(--navy); color: var(--cream); }
.stamp .em { font-size: 22px; }
.stamp.on small { color: var(--muted-2); }

/* ---------- admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { text-align: left; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 7px 6px; border-bottom: 1px solid rgba(18,24,43,.06); vertical-align: middle; }
.admin-table input { width: 100%; height: 34px; border-radius: 8px; border: 1px solid var(--line); padding: 0 8px; font-size: 12px; background: #fff; }
.admin-table .zname { font-weight: 650; white-space: nowrap; }
.admin-table .zname b { display: inline-block; width: 6px; height: 6px; border-radius: 2px; margin-right: 6px; }
.sku-table td { font-size: 11.5px; }
.sku-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(18,24,43,.08); font-size: 12.5px; }
.check-item:last-child { border-bottom: 0; }
.check-item .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex: none; margin-top: 1px; }
.check-item.err .dot { background: #fde8e8; color: var(--bad); }
.check-item.ok .dot { background: #e5f6f4; color: var(--ok); }
.check-item .fix { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; color: var(--orange-deep); border-bottom: 1px solid currentColor; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px;
  font-size: 12.5px; z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- misc ---------- */
.progress-ring { --p: 70; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(18,24,43,.1) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 5px; background: var(--paper); border-radius: 50%; }
.progress-ring span { position: relative; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(18,24,43,.06); color: var(--muted); }
.pill.on { background: var(--ink); color: var(--cream); }

.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 13px; }
.footer-note { padding: 18px 20px 30px; font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.5; }

.processing {
  position: fixed; inset: 0; z-index: 200; background: rgba(18,24,43,.72);
  display: grid; place-items: center; color: var(--cream); text-align: center;
  backdrop-filter: blur(4px);
}
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--orange); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =========================================================
   Ops shell — admin + gate, full width (desktop first)
   ========================================================= */
body[data-shell="ops"] { background: #eceef2; padding: 0; }
body[data-shell="ops"] #app {
  max-width: none; min-height: 100dvh; border-radius: 0; box-shadow: none;
  background: #f5f6f8; overflow: visible;
}
body[data-shell="ops"] .chrome { display: none; }

.ops-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 24px;
  background: var(--navy); color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ops-top .brand small { color: var(--muted-2); }
.ops-event { display: flex; flex-direction: column; line-height: 1.2; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14); min-width: 0; }
.ops-event b { font-size: 13.5px; font-weight: 650; }
.ops-event span { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-tabs { display: flex; gap: 4px; margin-left: auto; background: rgba(255,255,255,.06); padding: 4px; border-radius: 10px; }
.ops-tabs a { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 7px; color: #c7cddb; }
.ops-tabs a:hover { color: #fff; }
.ops-tabs a.active { background: var(--cream); color: var(--ink); }
.ops-exit { font-size: 12.5px; font-weight: 600; color: #c7cddb; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); white-space: nowrap; }
.ops-exit:hover { color: #fff; border-color: rgba(255,255,255,.32); }

.ops-main { width: 100%; max-width: 1240px; margin: 0 auto; }
.ops-main > section.pad { padding: 28px 24px 48px; }
.ops-gate { max-width: 760px; }
.ops-lede { max-width: 70ch; }
.ops-main .card.flat { background: #fff; border-color: #e3e5ea; }
.ops-main .card { border-radius: 14px; }

@media (max-width: 720px) {
  .ops-top { gap: 10px; padding: 0 14px; }
  .ops-event, .ops-exit { display: none; }
  .ops-main > section.pad { padding: 18px 16px 40px; }
}

/* ---------- ops role picker ---------- */
.ops-pick { max-width: 760px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 28px; }
.ops-pick h1 { font-size: 40px; margin-top: 8px; }
.ops-pick .muted { margin-top: 8px; }
.ops-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ops-role {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  background: #fff; border: 1px solid #e3e5ea; border-radius: 16px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ops-role:hover { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(18,24,43,.5); transform: translateY(-1px); }
.ops-role-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--cream); font-size: 18px; margin-bottom: 6px; }
.ops-role b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.ops-role span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.ops-role small { margin-top: auto; padding-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
@media (max-width: 620px) {
  .ops-pick { padding: 40px 18px; }
  .ops-pick-grid { grid-template-columns: 1fr; }
}

.ops-publish {
  font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 9px; white-space: nowrap;
  background: var(--orange); color: #fff;
}
.ops-publish.warn { background: transparent; color: #ffb38f; border: 1px solid rgba(255,140,90,.45); }
.ops-publish.warn:hover { border-color: #ffb38f; }

/* =========================================================
   Admin console
   ========================================================= */
.ops-admin { max-width: none; }
.adm { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100dvh - 60px); }
.adm-side {
  position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 14px; background: #fff; border-right: 1px solid #e3e5ea;
}
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; font-weight: 550; color: #3a4153;
}
.adm-nav a:hover { background: #f2f3f6; }
.adm-nav a.active { background: var(--navy); color: #fff; }
.adm-nav .ic { width: 20px; text-align: center; opacity: .75; font-size: 13px; }
.adm-nav .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #fff2ea; color: var(--orange-deep); }
.adm-nav a.active .cnt { background: var(--orange); color: #fff; }
.adm-side-foot { display: flex; flex-direction: column; gap: 6px; }
.adm-status { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #f2f3f6; font-size: 12px; }
.adm-status b { font-size: 13px; }
.adm-status span { color: var(--muted); }
.adm-status.warn { background: #fff4ee; } .adm-status.warn b { color: var(--orange-deep); }
.adm-status.ok { background: #e8f6f3; } .adm-status.ok b { color: #0d7a6f; }

.adm-body { padding: 26px 32px 56px; display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 1320px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-head h1 { font-size: 28px; }
.adm-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.adm-head-actions { display: flex; gap: 8px; align-items: center; }
.adm .btn-sm { min-height: 36px; border-radius: 9px; font-size: 13px; }
.adm .btn-ghost { background: #fff; border: 1px solid #d9dce3; }
.adm .btn-ghost.danger { color: var(--bad); border-color: #f0c7c7; }

.panel { background: #fff; border: 1px solid #e3e5ea; border-radius: 14px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.panel-h h3 { font-size: 15px; font-family: var(--sans); font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel-h .meta { font-size: 12px; color: var(--muted); }
.panel-b { padding: 14px 18px 18px; }
.foot-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.empty-sm { font-size: 13px; color: var(--muted); padding: 18px 0; text-align: center; }
.mono { font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid #e3e5ea; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 550; }
.kpi b { font-family: var(--display); font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b small { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi .s { font-size: 11.5px; color: var(--muted); }
.mini-bar { height: 5px; border-radius: 99px; background: #eceef2; overflow: hidden; margin: 4px 0 2px; }
.mini-bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }

.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stack-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.zbars { display: flex; flex-direction: column; }
.zbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px 120px; align-items: center; gap: 14px; padding: 9px 6px; border-radius: 8px; font-size: 13px; }
.zbar:hover { background: #f6f7f9; }
.zbar .nm { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zbar .nm i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.track { height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.track .fill { display: block; height: 100%; border-radius: 99px; background: var(--ok); min-width: 2px; }
.zbar .v { text-align: right; font-weight: 600; }
.zbar .v small { color: var(--muted); font-weight: 500; }
.zbar .r { text-align: right; color: var(--muted); }

.state { display: flex; gap: 12px; align-items: flex-start; }
.state .dot, .issues .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.state.ok .dot { background: #e5f6f4; color: var(--ok); }
.state b { display: block; font-size: 14px; }
.state span { font-size: 12.5px; color: var(--muted); }
.panel .state + .btn { margin-top: 14px; }
.issues { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.issues li { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; }
.issues .dot { background: #fde8e8; color: var(--bad); width: 20px; height: 20px; font-size: 11px; }

.arrival { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.arrival .col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.arrival .b { width: 100%; border-radius: 4px 4px 0 0; background: #d5d9e2; }
.arrival .b.peak { background: var(--orange); }
.arrival-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }

.gate-line { display: grid; grid-template-columns: minmax(0, 1fr) 100px 54px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f1f4; font-size: 13px; }
.gate-line b { display: block; }
.gate-line span { font-size: 11.5px; color: var(--muted); }
.gate-line .mono { text-align: right; font-size: 13px; color: var(--ink); font-weight: 600; }
.gate-line + .link { display: inline-block; margin-top: 12px; }

.feed { list-style: none; display: flex; flex-direction: column; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f1f4; font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #f0f1f4; color: #3a4153; }
.feed .order .ic { background: #fff2ea; color: var(--orange-deep); }
.feed .scan .ic, .feed .publish .ic { background: #e5f6f4; color: #0d7a6f; }
.feed .scan-bad .ic { background: #fde8e8; color: var(--bad); }
.feed .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- forms (dense, desktop) ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > label { font-size: 12px; font-weight: 600; color: #3a4153; }
.fld input, .fld textarea, .fld .ro {
  width: 100%; min-height: 38px; border: 1px solid #d9dce3; border-radius: 9px; padding: 8px 11px;
  font-size: 13.5px; background: #fff; outline: none; font-variant-numeric: tabular-nums;
}
.fld textarea { resize: vertical; line-height: 1.45; font-family: inherit; }
.fld input:focus, .fld textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,24,43,.08); }
.fld .ro { background: #f6f7f9; color: #3a4153; display: flex; align-items: center; gap: 8px; }
.fld .hint { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.fld.err input, .fld.err textarea { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(214,69,69,.1); }
.fld.err .hint { color: var(--bad); }
.affix { position: relative; display: flex; align-items: center; }
.affix span { position: absolute; right: 11px; font-size: 12.5px; color: var(--muted); pointer-events: none; }
.affix input { padding-right: 36px; }
.affix.pre span { left: 11px; right: auto; }
.affix.pre input { padding-left: 34px; padding-right: 11px; }
.span-2 { grid-column: span 2; }

.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border: 1px solid #e3e5ea; border-radius: 10px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .knob { width: 34px; height: 20px; border-radius: 99px; background: #d5d9e2; position: relative; flex: none; margin-top: 1px; transition: background .15s; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .knob { background: var(--ok); }
.switch input:checked + .knob::after { transform: translateX(14px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch b { display: block; font-size: 13px; }
.switch small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Zona & harga ---------- */
.rules-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.zgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.zlist { background: #fff; border: 1px solid #e3e5ea; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.zlist a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; font-size: 13px; }
.zlist a:hover { background: #f4f5f7; }
.zlist a.active { background: #f0f1f4; box-shadow: inset 3px 0 0 var(--ink); }
.zlist i { width: 10px; height: 10px; border-radius: 3px; }
.zlist .nm { font-weight: 600; min-width: 0; line-height: 1.25; }
.zlist .nm small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.zlist .pr { font-size: 12.5px; color: #3a4153; }
.warn-dot { width: 18px; height: 18px; border-radius: 50%; background: #fde8e8; color: var(--bad); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-row { display: flex; gap: 12px; align-items: center; padding-top: 4px; }
.photo-row img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; }
.photo-row div { display: flex; flex-direction: column; gap: 2px; }

.sys .panel-b { display: flex; flex-direction: column; }
.skus { display: flex; flex-direction: column; border: 1px solid #e3e5ea; border-radius: 10px; overflow: hidden; }
.sku { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef0f3; }
.sku:last-child { border-bottom: 0; }
.sku .k { font-size: 13px; font-weight: 600; }
.sku .k small { color: var(--muted); font-weight: 500; }
.sku b { font-size: 14px; text-align: right; }
.sku .per { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.sku em { font-style: normal; color: #0d7a6f; font-weight: 600; }
.preview-h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #3a4153; }
.phone { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: var(--cream); border: 8px solid var(--navy); box-shadow: 0 20px 40px -24px rgba(18,24,43,.6); position: relative; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 90px; height: 16px; background: var(--navy); border-radius: 0 0 12px 12px; z-index: 2; }
.phone .caption { left: 12px; right: 12px; bottom: 10px; }
.phone-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.phone-body .pp { font-family: var(--display); font-size: 22px; font-weight: 700; }
.phone .facts { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 2px 10px; }
.phone .fact { font-size: 11.5px; padding: 6px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow: auto; max-height: calc(100dvh - 260px); border: 1px solid #eef0f3; border-radius: 10px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { position: sticky; top: 0; background: #f8f9fb; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid #e3e5ea; white-space: nowrap; }
.dtable td { padding: 9px 12px; border-bottom: 1px solid #f0f1f4; white-space: nowrap; }
.dtable tr:hover td { background: #fafbfc; }
.dtable .num { text-align: right; }
.dtable .zn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dtable .zn i { width: 8px; height: 8px; border-radius: 2px; }

.check-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f1f4; font-size: 13.5px; }
.check-row:last-child { border-bottom: 0; }
.check-row .sev { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fde8e8; color: var(--bad); text-transform: uppercase; letter-spacing: .04em; }
.check-row .acts { display: flex; gap: 12px; align-items: center; }
.checks-list { padding-left: 18px; font-size: 13px; color: #3a4153; display: flex; flex-direction: column; gap: 6px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f1f4; font-size: 13px; }
.kv span { color: var(--muted); }

.badge.bad { background: #fde8e8; color: var(--bad); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters select, .search input {
  height: 36px; border: 1px solid #d9dce3; border-radius: 9px; padding: 0 11px; font-size: 13px; background: #fff; outline: none;
}
.search { flex: 1; min-width: 220px; max-width: 360px; }
.search input { width: 100%; padding-left: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23636a7b' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='m9.5 9.5 3 3'/%3E%3C/svg%3E") no-repeat 11px center; }
.filters select:focus, .search input:focus { border-color: var(--ink); }
.seg { display: inline-flex; background: #f0f1f4; border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font-size: 12.5px; font-weight: 600; color: #3a4153; padding: 6px 11px; border-radius: 7px; }
.seg button small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(18,24,43,.12); }
.seg.lane button.on.sepi { background: var(--ok); color: #fff; }
.seg.lane button.on.ramai { background: #f0a020; color: #fff; }
.seg.lane button.on.penuh { background: var(--bad); color: #fff; }
.grid-1-1 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }

/* ---------- S&K ---------- */
.tnc { font-size: 13.5px; line-height: 1.6; color: #2a3042; max-width: 72ch; }
.tnc h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; margin: 16px 0 4px; letter-spacing: 0; }
.tnc h4:first-child { margin-top: 0; }
.tnc mark { background: #fde8e8; color: var(--bad); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.tnc .tnc-title { font-weight: 700; margin-bottom: 8px; }
.tnc.manual { color: #5a6072; }
.tnc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 4px; }
.tnc-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid #e3e5ea; }
.tnc-table td { padding: 6px 8px; border-bottom: 1px solid #f0f1f4; white-space: nowrap; }
.tnc-table .num { text-align: right; }
.panel-h h3 .badge { margin-left: 4px; }
.tnc-scroll { overflow-x: auto; }
.grid-tnc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }

/* ---------- Pesanan ---------- */
.rows-link tbody tr { cursor: pointer; }
.dtable tr.sel td { background: #f3f4f7; }
.dtable td.muted { color: var(--muted); }
.dtable td.wrap { white-space: normal; }
.with-drawer { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.drawer { position: sticky; top: 76px; overflow: hidden; }
.drawer-stripe { height: 5px; }
.drawer .x { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.drawer .x:hover { background: #f0f1f4; color: var(--ink); }
.drawer .kv b { display: inline-flex; align-items: center; gap: 6px; }
.kv.total { border-bottom: 0; padding-top: 12px; font-size: 14px; }
.kv.total span { color: var(--ink); font-weight: 600; }
.drawer h5 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 8px; }
.mini-log { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.mini-log li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: #e8f6f3; }
.mini-log li.bad { background: #fde8e8; }
.mini-log li span:last-child { color: var(--muted); }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Gate & kapasitas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip-z { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #f0f1f4; }
.chip-z i { width: 8px; height: 8px; border-radius: 2px; }
.gate-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.gate-stats div { background: #f6f7f9; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.gate-stats span, .gate-stats small { font-size: 11.5px; color: var(--muted); }
.gate-stats b { font-family: var(--display); font-size: 20px; font-weight: 650; }
.panel .fld + .link { display: inline-block; margin-top: 14px; }
.track.sm { height: 6px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #f0f1f4; color: #3a4153; white-space: nowrap; }
.tag.price { background: #eef0ff; color: #4a56c4; }
.tag.fix { background: #e5f6f4; color: #0d7a6f; }
.tag.order { background: #fff2ea; color: var(--orange-deep); }
.tag.scan { background: #e8f6f3; color: #0d7a6f; }
.tag.bad { background: #fde8e8; color: var(--bad); }
.tag.ops { background: #f3eefc; color: #7a3fb0; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .zgrid { grid-template-columns: 224px minmax(0, 1fr); }
  .zgrid .sys { grid-column: 1 / -1; }
  .sys .panel-b { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 20px; align-items: start; }
  .sys .preview-h { grid-column: 2; grid-row: 1; margin-top: 0; }
  .sys .phone { grid-column: 2; grid-row: 2 / span 3; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-1-1, .grid-tnc, .with-drawer { grid-template-columns: 1fr; }
  .drawer { position: static; order: -1; }
  .with-drawer { display: flex; flex-direction: column; align-items: stretch; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .rules-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: sticky; top: 60px; z-index: 30; height: auto; flex-direction: row; padding: 8px 12px; border-right: 0; border-bottom: 1px solid #e3e5ea; overflow-x: auto; }
  .adm-nav { flex-direction: row; gap: 4px; }
  .adm-nav a { white-space: nowrap; padding: 7px 11px; font-size: 13px; }
  .adm-nav .ic { display: none; }
  .adm-side-foot { display: none; }
  .adm-body { padding: 18px 16px 48px; }
  .zgrid { grid-template-columns: 1fr; }
  .zlist { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .zlist a { flex: none; grid-template-columns: 10px auto auto; white-space: nowrap; }
  .zlist .nm small { display: none; }
  .zlist a .pr { display: none; }
  .zlist a.active { box-shadow: inset 0 -2px 0 var(--ink); }
  .sys .panel-b { display: flex; }
  .zbar { grid-template-columns: 110px minmax(0, 1fr) 84px; }
  .zbar .r { display: none; }
}
@media (max-width: 560px) {
  .kpis { gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi b { font-size: 20px; }
  .form-grid, .rules-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .adm-head h1 { font-size: 24px; }
  .ops-publish { padding: 7px 10px; font-size: 12px; }
  .ops-publish .lg, .ops-top .badge, .ops-top .brand small { display: none; }
  .ops-tabs a { padding: 6px 10px; }
  .check-row { grid-template-columns: 1fr; gap: 8px; }
  .search { min-width: 0; max-width: none; flex-basis: 100%; }
  .gate-stats { grid-template-columns: 1fr; }
}

/* =========================================================
   Gate device — dark, full-screen, arm's-length readable
   ========================================================= */
body.gate-mode { background: #0b1020; }
body.gate-mode #app { background: #0b1020; }
.gate-app { min-height: 100dvh; background: #0b1020; color: #e9ecf3; display: flex; flex-direction: column; }
.gate-app .mono { font-variant-numeric: tabular-nums; }
.g-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; background: #0f152a; border-bottom: 1px solid rgba(255,255,255,.07); }
.g-top .brand { color: #fff; }
.g-top .brand small { color: #8c94aa; }
.g-ident { display: flex; flex-direction: column; line-height: 1.2; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.12); min-width: 0; }
.g-ident b { font-size: 15px; font-weight: 700; color: #fff; }
.g-ident span { font-size: 11.5px; color: #8c94aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-spacer { flex: 1; }
.g-lane { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; padding: 6px 11px; border-radius: 999px; background: rgba(18,165,148,.16); color: #4fd6c4; white-space: nowrap; }
.g-lane i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.g-lane.ramai { background: rgba(240,160,32,.16); color: #ffbe55; }
.g-lane.penuh { background: rgba(214,69,69,.18); color: #ff7b7b; }
#g-clock { font-family: var(--display); font-size: 17px; font-weight: 600; color: #fff; }
.g-btn { font-size: 12.5px; font-weight: 600; color: #c7cddb; padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.g-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.g-muted { color: #8c94aa; }
.g-muted a { color: #ffb38f; }
.gate-app .small { font-size: 12.5px; }

/* setup */
.g-setup { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; display: flex; flex-direction: column; gap: 28px; }
.g-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.g-setup h1 { font-size: 36px; color: #fff; margin: 8px 0 6px; }
.g-setup h3 { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; font-weight: 650; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.g-setup h3 span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 12px; }
.g-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-choice { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: #141b33; border: 1.5px solid rgba(255,255,255,.08); color: #e9ecf3; min-height: 96px; }
.g-choice:hover { border-color: rgba(255,255,255,.25); }
.g-choice.on { border-color: var(--orange); background: #1b2240; box-shadow: 0 0 0 3px rgba(255,106,43,.18); }
.g-choice b { font-family: var(--display); font-size: 20px; font-weight: 600; color: #fff; }
.g-choice > span { font-size: 13px; color: #a3abbf; line-height: 1.45; }
.g-zchips { display: flex; flex-wrap: wrap; gap: 5px; }
.g-zchips em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.07); color: #c7cddb; }
.g-zchips i, .g-zrow i, .g-res-zone i, .g-demo-list i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.g-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #141b33; cursor: pointer; }
.g-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.g-check b { display: block; font-size: 13.5px; color: #fff; }
.g-check small { display: block; font-size: 12px; color: #8c94aa; margin-top: 2px; }
.g-text { width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.12); background: #141b33; color: #fff; padding: 0 16px; font-size: 16px; outline: none; }
.g-text:focus { border-color: var(--orange); }
.g-start { height: 60px; border-radius: 14px; background: var(--orange); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 14px 30px -14px rgba(255,106,43,.9); }

/* scan */
.g-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 20px; padding: 20px; width: 100%; max-width: 1400px; margin: 0 auto; align-items: start; }
.g-scan { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.g-viewfinder { position: relative; aspect-ratio: 4 / 3; max-height: 52dvh; width: 100%; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #1b2445 0%, #0f152a 70%); border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; }
.g-viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-frame { position: absolute; width: min(56%, 300px); aspect-ratio: 1; }
.g-frame i { position: absolute; width: 38px; height: 38px; border: 4px solid var(--orange); }
.g-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.g-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.g-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.g-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.g-viewfinder.cam .g-frame::after { content: ""; position: absolute; left: 6%; right: 6%; height: 2px; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: gscan 1.8s ease-in-out infinite; }
@keyframes gscan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.g-vf-msg { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 20px; }
.g-vf-msg b { font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; }
.g-vf-msg span { font-size: 13px; color: #8c94aa; max-width: 36ch; }
.g-cam-off { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; }
.g-input { display: flex; gap: 10px; }
.g-input input { flex: 1; min-width: 0; height: 58px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.12); background: #141b33; color: #fff; padding: 0 18px; font-size: 18px; font-family: var(--display); letter-spacing: .04em; outline: none; text-transform: uppercase; }
.g-input input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 15px; color: #6c748a; }
.g-input input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,43,.18); }
.g-go { height: 58px; padding: 0 26px; border-radius: 14px; background: var(--orange); color: #fff; font-size: 16px; font-weight: 700; }

.g-demo { border-radius: 14px; background: #121933; border: 1px dashed rgba(255,255,255,.14); }
.g-demo-h { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 13px; font-weight: 600; color: #c7cddb; }
.g-demo-h small { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 11px; }
.g-demo-h span:last-child { font-size: 12px; color: #8c94aa; }
.g-demo-list { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 8px; }
.g-demo-list button { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-align: left; color: #e9ecf3; }
.g-demo-list button:hover { background: rgba(255,255,255,.05); }
.g-demo-list span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-demo-list b { font-size: 14px; }
.g-demo-list small { font-size: 11.5px; color: #8c94aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-demo-list em { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8c94aa; }
.g-demo-list em.go { color: var(--orange); }

.g-live { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.g-card { background: #121933; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 16px 18px; }
.g-card h4 { font-family: var(--sans); font-size: 13px; font-weight: 650; color: #fff; margin-bottom: 10px; letter-spacing: 0; display: flex; justify-content: space-between; align-items: baseline; }
.g-card h4 small { font-size: 11.5px; font-weight: 500; color: #8c94aa; }
.g-big { display: flex; flex-direction: column; gap: 6px; }
.g-big > span { font-size: 13px; color: #a3abbf; }
.g-big b { font-family: var(--display); font-size: 56px; line-height: 1; font-weight: 650; color: #fff; }
.g-big b small { font-size: 24px; color: #6c748a; font-weight: 500; }
.g-big > small { font-size: 12px; color: #8c94aa; }
.g-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: 99px; background: #2fd1bd; }
.g-zrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.g-zrow:last-child { border-bottom: 0; }
.g-zrow span { flex: 1; }
.g-zrow b { color: #fff; }
.gate-app .seg { background: rgba(255,255,255,.07); }
.gate-app .seg button { color: #c7cddb; padding: 9px 16px; font-size: 13.5px; }
.gate-app .seg button.on { color: #fff; }
.g-log { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.g-log li { display: grid; grid-template-columns: 44px 110px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: rgba(47,209,189,.08); }
.g-log li.bad { background: rgba(255,90,90,.1); }
.g-log time { color: #8c94aa; }
.g-log b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #9ff0e4; }
.g-log li.bad b { color: #ff9c9c; }

/* full-screen result */
.g-result { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; cursor: pointer; animation: gres .16s ease-out; }
.g-result.ok { background: linear-gradient(180deg, #0f8f7f 0%, #0a6b5f 100%); }
.g-result.bad { background: linear-gradient(180deg, #c93a3a 0%, #9c2525 100%); }
.g-result.warn { background: linear-gradient(180deg, #d98a12 0%, #a8650a 100%); cursor: default; }
.g-result::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: var(--zc); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
@keyframes gres { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.g-res-in { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: #fff; }
.g-res-ic { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 64px; font-weight: 700; background: rgba(255,255,255,.18); margin-bottom: 8px; }
.g-res-in h1 { font-size: clamp(44px, 8vw, 84px); line-height: 1; color: #fff; letter-spacing: -.03em; }
.g-res-sub { font-size: clamp(18px, 2.6vw, 26px); font-weight: 600; opacity: .95; }
.g-res-zone { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 22px; border-radius: 999px; background: rgba(0,0,0,.22); font-size: 20px; font-weight: 650; }
.g-res-zone i { width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.g-res-hint { font-size: 17px; opacity: .9; max-width: 44ch; }
.g-res-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.g-res-btn { min-height: 56px; padding: 0 24px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #fff; background: rgba(0,0,0,.24); border: 1.5px solid rgba(255,255,255,.4); }
.g-res-btn.primary { background: #fff; color: #7a4a06; border-color: #fff; }
.g-vf-msg .g-res-btn { min-height: 46px; font-size: 14px; background: var(--orange); border-color: var(--orange); }
.g-res-timer { width: min(320px, 70%); height: 5px; border-radius: 99px; background: rgba(255,255,255,.25); margin-top: 22px; overflow: hidden; position: relative; }
.g-res-timer::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: gtimer 1.7s linear forwards; }
.g-res-timer.bad::after { animation-duration: 2.8s; }
@keyframes gtimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.g-res-tap { font-size: 12.5px; opacity: .7; }
.gate-app.wristband .g-result.ok .g-res-zone { font-size: 26px; padding: 16px 28px; }
.gate-app.wristband .g-result.ok .g-res-zone i { width: 40px; height: 40px; }

@media (max-width: 900px) {
  .g-main { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .g-viewfinder { aspect-ratio: 16 / 11; }
  .g-top { padding: 0 12px; gap: 10px; }
  .g-top .g-btn:last-child, .g-top .brand small { display: none; }
}
@media (max-width: 560px) {
  .g-choices { grid-template-columns: 1fr; }
  .g-setup h1 { font-size: 28px; }
  .g-lane { display: none; }
  .g-top .g-btn { padding: 6px 9px; }
  .g-ident span { max-width: 140px; }
  .g-res-ic { width: 92px; height: 92px; font-size: 48px; }
  .g-log li { grid-template-columns: 40px minmax(0, 1fr); }
  .g-log li span { display: none; }
}

/* =========================================================
   Buyer app v2 — follows the deck prototype screens
   ========================================================= */
.demobar-ops { margin-left: 6px; font-size: 9px; letter-spacing: .06em; color: #ffb38f; border: 1px solid rgba(255,179,143,.4); border-radius: 999px; padding: 2px 8px; }
body[data-shell="buyer"] .page { position: relative; }
.center { text-align: center; }

.b-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 8px; }
.b-head-t { flex: 1; min-width: 0; }
.b-head h1 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.b-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-head.dark h1 { color: #fff; }
.b-back { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(18,24,43,.07); font-size: 26px; line-height: 1; padding-bottom: 3px; color: var(--ink); }
.b-back.dark, .b-head.dark .b-back { background: rgba(255,255,255,.1); color: #fff; }
.b-back.float { position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(255,255,255,.85); }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chips span { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #ece7dc; color: var(--ink); }

/* sticky bottom CTA */
.cta-bar { position: sticky; bottom: 0; z-index: 30; margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,253,248,0) 0%, var(--paper) 22%); }
.cta-bar .btn { flex: 1; min-height: 56px; border-radius: 16px; font-size: 16px; }
.cta-price { display: flex; flex-direction: column; line-height: 1.15; }
.cta-price span { font-size: 11.5px; color: var(--muted); }
.cta-price b { font-family: var(--display); font-size: 20px; font-weight: 700; }
.cta-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cta-split { justify-content: space-between !important; padding: 0 20px !important; }
.cta-split span:last-child { font-variant-numeric: tabular-nums; }

/* home */
body[data-route="home"] #app { background: var(--paper); }
.ev-hero { position: relative; height: 380px; overflow: hidden; background: var(--navy); }
.ev-hero img { width: 100%; height: 100%; object-fit: cover; }
.ev-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,43,.15) 30%, rgba(18,24,43,.85) 100%); }
.ev-title { position: absolute; left: 20px; right: 20px; bottom: 44px; color: #fff; }
.ev-title .eyebrow { color: #ffb347; }
.ev-title h1 { font-size: 36px; font-weight: 700; margin-top: 6px; color: #fff; }
.ev-mytix { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 12.5px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.9); padding: 8px 12px; border-radius: 999px; }
.ev-sheet { position: relative; margin-top: -24px; background: var(--paper); border-radius: 24px 24px 0 0; padding: 22px 20px 12px; display: flex; flex-direction: column; gap: 16px; }
.ev-when b { display: block; font-size: 16px; font-weight: 700; }
.ev-when span { font-size: 13.5px; color: var(--muted); }
.ev-zones { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ev-zones b { font-size: 15px; }
.ev-zones .muted { font-size: 12.5px; }
.ev-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.ev-strip i { height: 10px; border-radius: 3px; }
.ev-desc { font-size: 14px; color: #4a5163; line-height: 1.55; }
.ev-info { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ev-info div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; background: #fff; font-size: 13px; }
.ev-info span { color: var(--muted); }

/* pilih */
body[data-route="zones"] #app, body[data-route="people"] #app { background: var(--paper); }
.ppl-row { display: flex; align-items: center; gap: 8px; padding: 6px 18px 12px; }
.ppl-row > span { font-size: 14.5px; font-weight: 700; margin-right: auto; white-space: nowrap; }
.ppl { width: 44px; height: 44px; border-radius: 50%; background: #ece7dc; font-family: var(--display); font-size: 17px; font-weight: 600; flex: none; }
.ppl.on { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px rgba(255,106,43,.45); }
.ppl-row.ask .ppl { box-shadow: 0 0 0 2px rgba(255,106,43,.35); }
.ppl-row.shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.b-mapcard { margin: 0 14px; padding: 10px 8px 8px; border-radius: 20px; background: #f4f1ea; }
.b-map { margin: 0; background: transparent; padding: 0; border: 0; }
.b-map svg { display: block; width: 100%; height: auto; }
.b-map .zone-shape { cursor: pointer; transition: opacity .15s; }
.b-map .m-stage { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: #fff; letter-spacing: .14em; pointer-events: none; }
.b-map .m-price { font-family: var(--sans); font-size: 17px; font-weight: 700; pointer-events: none; }
.fw-note { font-size: 12px; font-weight: 600; color: var(--orange-deep); padding: 2px 10px; }
.b-sheet { margin-top: 14px; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 14px 24px; box-shadow: 0 -12px 30px -24px rgba(18,24,43,.4); flex: 1; }
.b-grip { width: 40px; height: 4px; border-radius: 99px; background: #ddd6c8; margin: 4px auto 12px; }
.b-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.chip { flex: none; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: #ece7dc; color: var(--ink); white-space: nowrap; }
.chip.dark { background: var(--ink); color: #fff; }
.chip.on { background: #dff4f1; color: #0d7a6f; }
.ask-note { font-size: 13px; color: var(--orange-deep); background: #fff2ea; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; }
.zcards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.zcard { display: flex; gap: 12px; text-align: left; padding: 14px 16px 14px 14px; border-radius: 18px; border: 1.5px solid #ebe5d8; background: #fff; transition: transform .1s; }
.zcard:active { transform: scale(.99); }
.zcard.best { border-color: var(--teal); background: #f1faf8; }
.zcard .bar { width: 5px; border-radius: 99px; flex: none; }
.zc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.zc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.zc-top b { font-family: var(--display); font-size: 19px; font-weight: 700; }
.zc-meta { font-size: 12.5px; color: var(--muted); }
.zc-bot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 2px; }
.zc-bot .save { font-size: 13px; font-weight: 600; color: #0d9a88; }
.zc-bot .pp { font-size: 12px; color: var(--muted); white-space: nowrap; }
.zc-bot .pp b { font-family: var(--display); font-size: 21px; color: var(--ink); }
.score10 { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #ece7dc; color: #4a5163; white-space: nowrap; }
.score10.good { background: #2f8f5b; color: #fff; }
.score10.top { background: #12a594; color: #fff; }

/* zone detail */
body[data-route="zone"] #app { background: var(--paper); }
.pano { position: relative; height: 300px; background: var(--navy); }
.pano-scroll { height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; }
.pano-scroll::-webkit-scrollbar { display: none; }
.pano-scroll img { height: 100%; width: auto; min-width: 190%; max-width: none; object-fit: cover; }
.pano-cap { position: absolute; left: 20px; right: 20px; bottom: 34px; color: #fff; pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.pano-cap span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.pano-cap b { font-size: 15.5px; }
.zd-sheet { position: relative; margin-top: -22px; background: var(--paper); border-radius: 24px 24px 0 0; padding: 22px 20px 8px; display: flex; flex-direction: column; gap: 12px; }
.zd-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.zd-top h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; }
.zd-top h2 i { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.zd-pos { font-size: 13.5px; margin-top: -6px; }
.zd-desc { font-size: 13.5px; color: #4a5163; }
.vs-box { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 14px; }
.vs-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.vs-row span { color: var(--muted); white-space: nowrap; }
.vs-row b { text-align: right; }
.seat-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13.5px; margin-top: 4px; }
.seat-h span { color: #0d9a88; font-weight: 700; white-space: nowrap; }
.b-seats { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.b-seatrow { display: grid; grid-template-columns: 14px repeat(12, 1fr); gap: 5px; align-items: center; }
.b-seatrow > span { font-size: 10px; color: var(--muted); font-weight: 600; }
.b-seat { aspect-ratio: 1.15; border-radius: 6px; background: color-mix(in srgb, var(--zc) 28%, white); }
.b-seat:hover { background: color-mix(in srgb, var(--zc) 55%, white); }
.b-seat.taken { background: #e4ded2; cursor: not-allowed; }
.b-seat.mine { background: var(--ink); }
.stage-hint { order: -1; text-align: center; font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.area-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px dashed var(--line); font-size: 13px; }
.area-box span { color: var(--muted); }
.zd-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); padding-bottom: 4px; }

/* checkout */
body[data-route="checkout"] #app { background: var(--paper); }
.hold { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.hold.expired { color: var(--bad); }
.co { padding: 6px 18px 12px; display: flex; flex-direction: column; gap: 16px; }
.co-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--zc) 60%, white); background: color-mix(in srgb, var(--zc) 9%, white); }
.co-card .bar { width: 5px; align-self: stretch; border-radius: 99px; background: var(--zc); flex: none; }
.co-card .grow { display: flex; flex-direction: column; min-width: 0; }
.co-card .grow b { font-family: var(--display); font-size: 17px; }
.co-card .grow span { font-size: 12.5px; color: var(--muted); }
.co-card > b { font-size: 16px; white-space: nowrap; }
.co .field label { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); font-weight: 650; }
.co .field input { height: 52px; border-radius: 14px; font-size: 15px; }
.co-label { font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 6px solid var(--ink); flex: none; }
.pay-opt b { font-size: 15px; }
.pay-opt em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #0d9a88; }
.pay-opt .ganti { margin-left: auto; font-size: 13px; color: var(--muted); }
.co-lines { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.co-lines > div, .co-prot { display: flex; justify-content: space-between; gap: 10px; color: #4a5163; }
.co-lines .total { color: var(--ink); font-weight: 700; font-size: 15px; padding-top: 6px; }
.co-prot { cursor: pointer; }
.co-prot .tog { display: inline-flex; align-items: center; gap: 8px; }
.co-prot input { width: 18px; height: 18px; accent-color: var(--orange); }
.co-prot em { font-style: normal; }
.co-consent { font-size: 13.5px; }

/* ticket */
body[data-route="ticket"] #app, body[data-route="moment"] #app { background: radial-gradient(120% 60% at 50% 0%, #2a1f4d 0%, #12182b 60%); }
body[data-route="ticket"] .demobar, body[data-route="moment"] .demobar { background: #0d1122; }
.tk, .mo { padding: 8px 16px 28px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.tk-head { display: flex; align-items: center; gap: 10px; padding: 8px 2px 0; }
.tk-head h1 { flex: 1; font-family: var(--display); font-size: 24px; font-weight: 700; color: #fff; }
.tk-share { font-size: 13px; font-weight: 650; color: #fff; background: rgba(255,255,255,.12); padding: 9px 14px; border-radius: 999px; }
.tk-card { border-radius: 24px; padding: 20px 18px 16px; color: #1b1407; background: linear-gradient(140deg, color-mix(in srgb, var(--zc) 55%, #ffd36b) 0%, var(--zc) 100%); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--zc) 80%, black); }
.tk-ev { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.tk-card h2 { font-size: 30px; font-weight: 700; margin: 4px 0 12px; color: #1b1407; }
.tk-grid { display: flex; gap: 22px; margin-bottom: 16px; }
.tk-grid span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.tk-grid b { font-family: var(--display); font-size: 26px; font-weight: 700; white-space: nowrap; }
.tk-grid.long b { font-size: 21px; }
.tk-grid.long { gap: 16px; }
.tk-inner { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; color: var(--ink); }
.tk-inner canvas { width: 132px; height: 132px; flex: none; image-rendering: pixelated; }
.tk-gate { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-gate b { font-family: var(--display); font-size: 20px; }
.tk-gate > span { font-size: 13px; color: var(--muted); }
.tk-gate em { font-style: normal; font-weight: 700; filter: brightness(.8); }
.tk-live { display: inline-flex !important; align-items: center; gap: 6px; font-size: 12px !important; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: #e5f6f4; color: #0d7a6f !important; width: fit-content; }
.tk-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tk-live.ramai { background: #fff3dd; color: #a8650a !important; }
.tk-live.penuh { background: #fde8e8; color: var(--bad) !important; }
.tk-gate small { font-size: 11px; color: var(--muted); }
.tk-void { background: #fde8e8; color: var(--bad); padding: 10px 14px; border-radius: 12px; font-weight: 650; font-size: 13.5px; }
.tk-route { background: #fff; color: var(--ink); border-radius: 22px; padding: 16px 18px 6px; }
.tk-route-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tk-route-h h3 { font-size: 19px; font-weight: 700; }
.tk-route-h span { font-size: 12.5px; color: var(--muted); }
.tk-step { display: flex; gap: 12px; padding: 9px 0; }
.tk-step .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; background: #eceef2; color: var(--muted); }
.tk-step.done .dot { background: var(--teal); color: #fff; }
.tk-step b { display: block; font-size: 14.5px; }
.tk-step b em { font-style: normal; color: #0d9a88; font-size: 12.5px; }
.tk-step span { font-size: 12.5px; color: var(--muted); }
.tk-group { background: rgba(255,255,255,.07); border-radius: 20px; padding: 16px 18px; }
.tk-group h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.tk-member { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; color: #d8dcea; }
.tk-member em { font-style: normal; font-size: 13px; }
.tk-member .ok { color: #4fd6c4; }
.tk-member button { font-size: 12.5px; font-weight: 650; color: #ffbe55; }
.tk-paid { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #a3abbf; }
.tk-paid b { color: #fff; }
.tk-note { font-size: 12px; color: #8c94aa; text-align: center; line-height: 1.5; }
.tk-note a { color: #ffb38f; }
.btn-light { background: #fff; color: var(--ink); }

/* moment */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.08); border-radius: 18px; padding: 5px; }
.seg3 button { padding: 11px; border-radius: 14px; font-weight: 600; color: #c7cddb; font-size: 14px; }
.seg3 button.on { background: #fff; color: var(--ink); }
.mo-stage { position: relative; border-radius: 22px; padding: 70px 22px 26px; background-color: #2a3046; background-image: linear-gradient(45deg, #343a52 25%, transparent 25%), linear-gradient(-45deg, #343a52 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #343a52 75%), linear-gradient(-45deg, transparent 75%, #343a52 75%); background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; }
.png-tag { position: absolute; top: 14px; right: 16px; font-size: 11.5px; color: #c7cddb; }
.mo-card { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.mo-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.mo-brand i { width: 18px; height: 18px; border-radius: 4px; }
.mo-wave { width: 100%; height: 40px; margin: 10px 0 8px; }
.mo-line { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mo-big { font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.mo-big.long { font-size: 36px; }
.mo-stats { display: flex; gap: 32px; margin-top: 12px; }
.mo-stats span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.mo-stats b { font-family: var(--display); font-size: 28px; }
.mo-ref { background: #1c2440; border-radius: 20px; padding: 16px 18px; }
.mo-ref-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mo-ref-h b { font-size: 16px; }
.pts { font-size: 12.5px; font-weight: 700; background: var(--teal); color: #fff; padding: 4px 10px; border-radius: 999px; }
.mo-ref-link { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.mo-ref-link button { color: #ffbe55; font-weight: 700; }
.mo-ref p { font-size: 12.5px; color: #a3abbf; margin-top: 10px; }

@media (max-width: 380px) {
  .ppl { width: 38px; height: 38px; font-size: 15px; }
  .ppl-row { gap: 6px; }
  .zd-top h2 { font-size: 22px; }
  .tk-inner canvas { width: 112px; height: 112px; }
}

/* ---------- server sync ---------- */
.sync-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #a3abbf; white-space: nowrap; }
.sync-pill i { width: 7px; height: 7px; border-radius: 50%; background: #8c94aa; }
.sync-pill.on { color: #7fe3d4; } .sync-pill.on i { background: #2fd1bd; }
.sync-pill.warn { color: #ffbe55; } .sync-pill.warn i { background: #ffbe55; }
.login-row { display: flex; gap: 10px; max-width: 420px; }
.login-row input { flex: 1; height: 52px; border-radius: 14px; border: 1.5px solid #d9dce3; padding: 0 16px; font-size: 16px; background: #fff; outline: none; }
.login-row input:focus { border-color: var(--ink); }
.login-row .btn { width: auto; min-height: 52px; }
@media (max-width: 720px) { .ops-top .sync-pill { display: none; } }
