:root {
  --bg: #0A0E27;
  --bg2: #131a35;
  --card: #161e3d;
  --gold: #E8FF00;
  --gold-dim: #9db300;
  --blue: #2e7bff;
  --blue-glow: rgba(46, 123, 255, .35);
  --text: #eef2ff;
  --muted: #9aa4c0;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(46,123,255,.18), transparent),
              radial-gradient(900px 500px at 10% 0%, rgba(232,255,0,.10), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
/* Lapisan neon gaming di seluruh halaman (publik & admin).
   Hanya transform/opacity yang dianimasikan agar ringan di HP. */
body::before {
  content: ''; position: fixed; inset: -5%; z-index: -1; pointer-events: none;
  background:
    /* partikel melayang halus */
    radial-gradient(circle 2px at 8% 22%, rgba(232,255,0,.55), transparent 3px),
    radial-gradient(circle 1.5px at 24% 68%, rgba(46,123,255,.6), transparent 3px),
    radial-gradient(circle 2px at 41% 12%, rgba(0,255,200,.45), transparent 3px),
    radial-gradient(circle 1.5px at 58% 84%, rgba(232,255,0,.4), transparent 3px),
    radial-gradient(circle 2px at 73% 38%, rgba(46,123,255,.5), transparent 3px),
    radial-gradient(circle 1.5px at 88% 58%, rgba(232,255,0,.45), transparent 3px),
    radial-gradient(circle 2px at 15% 88%, rgba(0,255,200,.4), transparent 3px),
    radial-gradient(circle 1.5px at 33% 42%, rgba(46,123,255,.45), transparent 3px),
    radial-gradient(circle 2px at 66% 6%, rgba(232,255,0,.4), transparent 3px),
    radial-gradient(circle 1.5px at 93% 28%, rgba(0,255,200,.45), transparent 3px),
    /* glow neon */
    radial-gradient(560px 420px at 12% 18%, rgba(232,255,0,.12), transparent 70%),
    radial-gradient(680px 500px at 88% 72%, rgba(46,123,255,.20), transparent 70%),
    radial-gradient(460px 360px at 65% 8%, rgba(0,255,200,.09), transparent 70%);
  animation: neonDrift 26s ease-in-out infinite alternate;
}
/* Aksen light beam diagonal yang sangat samar */
html::before {
  content: ''; position: fixed; top: -25%; left: 55%; width: 260px; height: 150%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(46,123,255,.07) 30%, rgba(232,255,0,.05) 55%, transparent 100%);
  animation: beamPulse 16s ease-in-out infinite alternate;
}
@keyframes beamPulse {
  from { opacity: .6; transform: rotate(16deg) translateX(-30px); }
  to { opacity: 1; transform: rotate(16deg) translateX(30px); }
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 44px);
}
@keyframes neonDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .85; }
  to { transform: translate3d(2%, 1%, 0) scale(1.04); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html::before, body::before { animation: none; }
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,39,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232,255,0,.25);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .5px; }
.brand .gold { color: var(--gold); }
nav a { color: var(--muted); text-decoration: none; margin-left: 14px; font-size: .9rem; }
nav a:hover { color: var(--gold); }

/* Hero */
/* Hero: banner background terlihat jelas, teks tetap terbaca via text-shadow */
.hero { position: relative; overflow: hidden; text-align: center; padding: 46px 22px 38px; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('/hero-banner.jpg') center 35% / cover no-repeat;
  filter: brightness(.85) saturate(1.1);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,39,.55) 0%, rgba(10,14,39,.22) 35%, rgba(10,14,39,.32) 60%, var(--bg) 96%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--gold), #f4ffa8, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(232,255,0,.25);
}
.hero-tagline {
  font-size: 1.02rem; font-weight: 700; color: #fff; margin: 10px auto 2px; max-width: 560px;
  text-shadow: 0 2px 14px rgba(0,0,0,.9), 0 0 24px rgba(232,255,0,.3);
}
/* Collapse: header bisa diketuk untuk expand/collapse dengan animasi */
.collapse-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 0; text-align: left;
  min-height: 44px;
}
.collapse-head h2 { margin-bottom: 0; }
.collapse-head .chev {
  color: var(--gold); font-size: 1.5rem; line-height: 1; flex-shrink: 0;
  transition: transform .35s ease;
  text-shadow: 0 0 12px rgba(232,255,0,.4);
}
.collapse-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.collapse-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
/* S&K: tanpa card/box — hanya teks polos, diwakili chevron expand */
.collapse-body > ul.syarat { overflow: hidden; min-height: 0; margin: 0; padding: 0 0 0 22px; list-style: disc; }
.collapse-body > ul.syarat li { margin-bottom: 8px; }
.collapse-body.open { grid-template-rows: 1fr; }
.collapse-body.open > ul.syarat { margin-top: 12px; }
/* Preview banner di form admin */
.banner-preview { max-width: 100%; max-height: 140px; border-radius: 12px; margin-top: 8px; border: 1px solid rgba(232,255,0,.25); }
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, var(--gold), #b9d400);
  color: #1a1400; font-weight: 800; padding: 13px 28px; border-radius: 999px;
  font-size: 1rem; margin-top: 18px; box-shadow: 0 4px 24px rgba(232,255,0,.35);
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.blue {
  background: linear-gradient(135deg, var(--blue), #1a56c4); color: #fff;
  box-shadow: 0 4px 24px var(--blue-glow);
}
.btn.ghost { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); box-shadow: none; }
.btn.small { padding: 8px 18px; font-size: .85rem; margin-top: 8px; }

/* Cards & sections */
section { padding: 28px 0; }
section h2 { font-size: 1.4rem; margin-bottom: 4px; color: var(--gold); }
section h2 .ico { margin-right: 6px; }
section p.desc { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.card {
  background: var(--card); border: 1px solid rgba(232,255,0,.18);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: #fff; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(232,255,0,.4);
  background: transparent; color: var(--gold); font-weight: 700; cursor: pointer; font-size: .9rem;
}
.tab.active { background: var(--gold); color: #1a1400; }

/* Tables */
table.tarif { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tarif th, table.tarif td { padding: 10px 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
table.tarif th { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
table.tarif td.price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.bonus { display: inline-block; font-size: .7rem; background: rgba(46,123,255,.2); color: #9fc0ff;
  border: 1px solid rgba(46,123,255,.5); border-radius: 6px; padding: 1px 7px; margin-left: 6px; }
.tarif-note { color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* Forms */
label { display: block; font-size: .85rem; color: var(--muted); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 1rem;
  background: var(--bg2); border: 1px solid rgba(255,255,255,.14); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,255,0,.15); }
input[type=checkbox] { width: auto; margin-right: 8px; transform: scale(1.2); }
.checkrow { display: flex; align-items: center; margin: 12px 0; font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* Results */
.result { margin-top: 16px; padding: 16px; border-radius: 12px; font-size: .95rem; display: none; }
.result.show { display: block; }
.result.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.5); }
.result.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.5); }
.result .big { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.mono { font-family: ui-monospace, monospace; }
.wa-link-btn { display: inline-block; margin-top: 10px; }

/* Loyalty */
.points-big { font-size: 2.4rem; font-weight: 900; color: var(--gold); }

/* Syarat */
ul.syarat { padding-left: 20px; color: var(--text); font-size: .95rem; }
ul.syarat li { margin: 8px 0; }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 16px 40px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; }

/* Admin */
.admin-login { max-width: 380px; margin: 80px auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid rgba(46,123,255,.3); border-radius: 12px; padding: 14px; text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 900; color: var(--gold); }
.stat .lbl { font-size: .78rem; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; text-transform: uppercase; }
.badge.booked { background: rgba(232,255,0,.18); color: var(--gold); border: 1px solid var(--gold); }
.badge.active { background: rgba(46,123,255,.18); color: #9fc0ff; border: 1px solid var(--blue); }
.badge.done { background: rgba(34,197,94,.15); color: #7ee2a8; border: 1px solid var(--green); }
.badge.cancelled { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid var(--red); }
.badge.ready { background: rgba(34,197,94,.15); color: #7ee2a8; border: 1px solid var(--green); }
.badge.disewa { background: rgba(46,123,255,.18); color: #9fc0ff; border: 1px solid var(--blue); }
.badge.maintenance { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid var(--red); }
table.admin { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.admin th, table.admin td { padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
table.admin th { color: var(--gold); font-size: .72rem; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.row-actions button { margin: 2px 4px 2px 0; padding: 5px 10px; font-size: .75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: var(--bg2); color: var(--text); cursor: pointer; }
.row-actions button:hover { border-color: var(--gold); color: var(--gold); }
.log-msg { max-width: 320px; white-space: pre-wrap; font-size: .78rem; color: var(--muted); max-height: 120px; overflow-y: auto; }
.hidden { display: none !important; }

/* ===== Komponen baru: suggest customer, jaminan, kelengkapan ===== */
.suggest-wrap { position: relative; }
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: var(--bg2); border: 1px solid rgba(232,255,0,.35);
  border-radius: 10px; margin-top: 4px; overflow: hidden;
  display: none; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  max-height: 260px; overflow-y: auto;
}
.suggest.show { display: block; }
.suggest-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.06); min-height: 44px; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item:active { background: rgba(232,255,0,.08); }
.hint { font-size: .8rem; color: var(--gold); margin-top: 6px; min-height: 1.1em; }
.end-info { font-size: .85rem; color: var(--gold); margin-top: 6px; font-weight: 600; }

.fieldset { margin-top: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; }
label.fieldset-title { font-size: .85rem; color: var(--text); font-weight: 700; margin: 0 0 8px; }
.fieldset-title .opt { color: var(--muted); font-weight: 400; font-size: .75rem; }
.jam-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
label.jam-check { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 150px; min-height: 44px; cursor: pointer; font-size: .9rem; color: var(--text); }
.jam-check input[type=checkbox] { width: 22px; height: 22px; margin: 0; flex: none; }
.jam-name { flex: 1; margin: 0; min-width: 0; }
.kel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; min-height: 44px; }
.kel-name { font-size: .9rem; }
.kel-qty { display: flex; align-items: center; gap: 6px; flex: none; }
.kel-qty input { width: 76px; text-align: center; padding: 10px 8px; margin: 0; }
.kel-qty span { font-size: .8rem; color: var(--muted); }

/* ===== Anti horizontal scroll ===== */
html, body { overflow-x: clip; }
.mono { overflow-wrap: anywhere; word-break: break-word; }
img, table { max-width: 100%; }

/* ===== Mobile: umum ===== */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  header.top .wrap { flex-wrap: wrap; gap: 4px 10px; padding: 10px 12px; }
  .brand { font-size: 1rem; }
  nav { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  nav a { margin-left: 0; font-size: .85rem; padding: 10px 2px; }
  .hero { padding: 34px 20px 30px; min-height: 380px; }
  .btn { padding: 14px 24px; }
  .btn.small { padding: 12px 18px; }
  .tab { min-height: 44px; padding: 10px 18px; }
  .card { padding: 16px 14px; }
  section { padding: 20px 0; }
  section h2 { font-size: 1.2rem; }
  input, select, textarea { font-size: 16px; } /* cegah auto-zoom di iOS */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat .num { font-size: 1.5rem; }
  .admin-login { margin: 40px auto; }
  .jam-row { flex-wrap: wrap; }
  .jam-name { flex: 1 1 100%; }
  .result { font-size: .9rem; }
}

/* ===== Mobile: tabel admin jadi kartu — KECUALI .compact (tetap baris tabel) ===== */
@media (max-width: 700px) {
  /* .table-scroll sengaja tetap overflow-x:auto sebagai jaring pengaman:
     tabel compact boleh scroll internal, halaman TIDAK boleh ikut geser. */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.admin, table.admin tbody, table.admin tr, table.admin td { display: block; width: 100%; }
  table.admin tr:first-child { display: none; }
  table.admin tr:not(:first-child) {
    background: var(--card);
    border: 1px solid rgba(232,255,0,.16);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
  }
  table.admin td { border: none; padding: 4px 0; }
  table.admin td::before {
    content: attr(data-label);
    display: block;
    font-size: .66rem; text-transform: uppercase; letter-spacing: .6px;
    color: var(--muted); margin-bottom: 1px;
  }
  /* Tabel compact: tetap tampil sebagai tabel baris di HP */
  table.admin.compact, table.admin.compact tbody { display: table; width: 100%; }
  table.admin.compact tr, table.admin.compact tr:first-child { display: table-row; }
  table.admin.compact th, table.admin.compact td {
    display: table-cell; border: none; border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 6px; text-align: left; vertical-align: middle;
  }
  table.admin.compact tr:not(:first-child) { background: none; border: none; border-radius: 0; margin-bottom: 0; padding: 0; }
  table.admin.compact td::before { display: none; }
  .row-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .row-actions button { min-height: 44px; padding: 10px 16px; font-size: .85rem; margin: 0; }
  .log-msg { max-width: none; }
  table.tarif { font-size: .85rem; }
}

/* Baris customer: bisa diklik */
.cust-row { cursor: pointer; }
.cust-row:hover td { background: rgba(232,255,0,.06); }

/* ===== Ronde 6: daftar unit sebagai baris tabel, aksi di kanan ===== */
#unit-table { table-layout: fixed; }
#unit-table th:nth-child(2), #unit-table td:nth-child(2) { width: 58px; white-space: nowrap; }
#unit-table th:nth-child(3), #unit-table td:nth-child(3) { width: 96px; white-space: nowrap; }
#unit-table th:nth-child(4), #unit-table td:nth-child(4) { width: 108px; }
#unit-table td:nth-child(1) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#unit-table .unit-actions { padding: 0; }
#unit-table .dd { position: relative; display: inline-block; }
#unit-table .dd-btn { min-height: 44px; padding: 7px 14px; font-size: .78rem; margin: 0; white-space: nowrap; border-radius: 10px; border: 1px solid rgba(232,255,0,.4); background: var(--bg2); color: var(--gold); cursor: pointer; }
#unit-table .dd-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px; background: #141a3d; border: 1px solid rgba(232,255,0,.25); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); overflow: hidden; padding: 4px; }
#unit-table .dd-menu.open { display: block; }
#unit-table .dd-menu button { display: block; width: 100%; text-align: left; margin: 0; min-height: 40px; padding: 9px 12px; font-size: .82rem; border: 0; background: transparent; color: var(--text); border-radius: 8px; white-space: nowrap; }
#unit-table .dd-menu button:hover { background: rgba(232,255,0,.12); color: var(--gold); border: 0; }
#unit-table .dd-menu button.danger:hover { background: rgba(255,93,93,.14); color: #ff5d5d; }

/* QR Code unit: frame putih rounded */
.qr-frame { background: #fff; border-radius: 16px; padding: 22px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 6px; }
.qr-frame canvas { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-name { color: #0A0E27; font-weight: 800; font-size: 1.25rem; }
.qr-sub { color: #666; font-size: .8rem; }

/* Scanner QR fullscreen */
#scan-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(4,6,20,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
#scan-overlay.hidden { display: none; }
.scan-box { position: relative; width: min(86vw, 340px); aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; }
#scan-video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.scan-status { color: #fff; font-size: .92rem; text-align: center; max-width: 340px; min-height: 2.4em; }

/* Baris pilih unit + tombol scan di modal verifikasi */
.vf-unit-row { display: flex; gap: 8px; align-items: center; }
.vf-unit-row select { flex: 1; min-width: 0; }
.vf-unit-row .btn { flex-shrink: 0; margin-top: 0; }
.hist-row { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .88rem; }
.hist-row:last-child { border-bottom: none; }

/* Tombol WhatsApp hijau */
.btn.wa-btn, a.btn.wa-btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: #25D366; border-color: #25D366; color: #062b16;
  margin-top: 10px;
}

/* ===== Segmented buttons (opsi <= 4) ===== */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  flex: 1 1 0; min-width: 0; min-height: 48px;
  padding: 12px 10px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid rgba(232,255,0,.35);
  background: var(--bg2); color: var(--text);
  font-weight: 700; font-size: .92rem; font-family: inherit;
  transition: background .12s, color .12s, border-color .12s;
}
.seg-btn.active {
  background: var(--gold); border-color: var(--gold); color: #1a1400;
  box-shadow: 0 2px 16px rgba(232,255,0,.35);
}
.seg-btn:active { transform: scale(.98); }

/* ===== Modal verifikasi ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,6,18,.78); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 12px; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 560px;
  background: var(--card); border: 1px solid rgba(232,255,0,.25);
  border-radius: 16px; padding: 20px; margin: 20px 0;
  box-shadow: 0 10px 50px rgba(0,0,0,.5);
}
.modal h3 { margin-bottom: 4px; }
.modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal .modal-actions .btn { flex: 1 1 42%; margin-top: 0; min-width: 0; padding: 12px 14px; font-size: .9rem; text-align: center; }
/* Detail booking: tombol aksi seragam — satu tinggi, teks satu baris, tidak jumbo. */
#bkd-actions .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; padding: 10px 8px; }
/* Detail booking: baris nama customer + tombol chat WA kecil. */
.bkd-cust-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bkd-cust-name { font-weight: 700; }
.wa-chat-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: #25d366; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.wa-chat-btn:active { transform: scale(.93); }

/* ===== Halaman invoice publik ===== */
.inv-wrap { max-width: 640px; }
.inv-card { margin-top: 24px; }
.inv-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(232,255,0,.2); }
.inv-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.inv-biz { font-weight: 900; font-size: 1.15rem; color: var(--gold); }
.inv-title { font-size: .8rem; letter-spacing: 1.5px; color: var(--muted); }
.inv-sec { margin: 14px 0; font-size: .95rem; }
.inv-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 4px; }
.points-box { text-align: center; background: rgba(232,255,0,.06); border: 1px dashed rgba(232,255,0,.4); border-radius: 12px; padding: 14px; }
.inv-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: var(--muted); text-align: center; }
.syarat.small { font-size: .85rem; }

/* ===== Form bisnis: logo preview ===== */
.logo-preview { max-width: 120px; max-height: 120px; border-radius: 12px; margin-top: 8px; background: #fff; padding: 4px; }

/* ===== Logo brand di header ===== */
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; }

/* ===== Ronde 3: card & button lebih friendly ===== */
:root {
  --green-neon: #2bff88;
  --red-neon: #ff5d5d;
  --gray-neon: #9aa0b4;
}
.card {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, rgba(232,255,0,.45), rgba(46,123,255,.25), rgba(232,255,0,.15)) border-box;
  transition: transform .15s, box-shadow .15s;
}
.card:active { transform: scale(.99); }
.stat {
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, rgba(46,123,255,.55), rgba(232,255,0,.25)) border-box;
  border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .15s;
  cursor: default;
}
.stat-ico { font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.stat .num.small { font-size: 1.25rem; }
.stat:active { transform: scale(.97); }
.stat.fin { cursor: pointer; }
.stat.fin:hover { box-shadow: 0 6px 26px rgba(232,255,0,.25); }
.stat.fin-in .num { color: var(--green-neon); }
.stat.fin-out .num { color: var(--red-neon); }
.stat.fin-saldo .num { color: var(--gold); }

.btn {
  background: linear-gradient(135deg, #f4ffa8, var(--gold) 45%, #c4e000);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:active { transform: scale(.95); }
.btn.blue:active { transform: scale(.95); }
.btn.loading {
  position: relative; color: transparent; pointer-events: none; filter: saturate(.6);
}
.btn.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 3px solid rgba(0,0,0,.25); border-top-color: #1a1400;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn.blue.loading::after { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: .7; cursor: wait; }

/* ===== Stepper qty kelengkapan ===== */
.stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.step-btn {
  width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; font-weight: 800;
  border: 1.5px solid rgba(232,255,0,.4); background: var(--bg2); color: var(--gold);
  cursor: pointer; line-height: 1; transition: transform .1s, background .1s;
}
.step-btn:active { transform: scale(.9); background: rgba(232,255,0,.15); }
.step-val { min-width: 34px; text-align: center; font-weight: 900; font-size: 1.15rem; color: var(--text); }
.step-val.has { color: var(--gold); }

/* ===== Badge status unit (cek ketersediaan) ===== */
.unit-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.unit-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1.5px solid var(--badge, var(--gray-neon));
  color: var(--text);
}
.unit-badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--badge, var(--gray-neon));
  box-shadow: 0 0 8px var(--badge, var(--gray-neon));
}

/* ===== Bukti transfer thumbnails ===== */
.bukti-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; margin-top: 6px; border: 1.5px solid rgba(232,255,0,.4); }
.bukti-big { max-width: 280px; width: 100%; border-radius: 12px; border: 1.5px solid rgba(232,255,0,.4); }

/* ===== Ronde 5: perbaikan tabel customer (anti teks berantakan) ===== */
table.admin.compact { table-layout: fixed; }
table.admin.compact th:nth-child(1), table.admin.compact td:nth-child(1) { width: auto; }
table.admin.compact th:nth-child(2), table.admin.compact td:nth-child(2) { width: 112px; }
table.admin.compact th:nth-child(3), table.admin.compact td:nth-child(3) { width: 76px; }
table.admin.compact th { white-space: nowrap; }
table.admin.compact td:nth-child(1) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.admin.compact td:nth-child(2), table.admin.compact td:nth-child(3) { white-space: nowrap; }
table.admin.compact td.mono { word-break: normal; overflow-wrap: normal; }

/* ===== Ronde 9: tabel booking kompak — 1 transaksi = 1 baris ===== */
#booking-table { table-layout: fixed; }
#booking-table th, #booking-table td { padding: 8px 4px; font-size: .78rem; vertical-align: middle; }
#booking-table th { white-space: nowrap; }
#booking-table th:nth-child(1), #booking-table td:nth-child(1) { width: 114px; }
#booking-table th:nth-child(2), #booking-table td:nth-child(2) { width: auto; }
#booking-table th:nth-child(3), #booking-table td:nth-child(3) { width: 76px; }
#booking-table th:nth-child(4), #booking-table td:nth-child(4) { width: 80px; }
#booking-table td:nth-child(1), #booking-table td:nth-child(2) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#booking-table td:nth-child(3) { white-space: nowrap; text-align: right; }
#booking-table td:nth-child(4) { white-space: nowrap; }
#booking-table td.mono { word-break: normal; overflow-wrap: normal; }
.bk-row { cursor: pointer; }
.bk-row:hover td { background: rgba(232,255,0,.06); }

/* ===== Ronde 16: tabel booking lebih padat di HP + tab filter kompak ===== */
@media (max-width: 700px) {
  #booking-table th, #booking-table td { padding: 7px 3px; font-size: .75rem; }
  #booking-table th:nth-child(1), #booking-table td:nth-child(1) { width: 58px; }
  #booking-table th:nth-child(3), #booking-table td:nth-child(3) { width: 68px; }
  /* Kolom Total boleh wrap + font lebih kecil agar angka besar tidak menimpa badge status (temuan #12). */
  #booking-table td:nth-child(3) { white-space: normal; overflow-wrap: anywhere; font-size: .7rem; line-height: 1.3; text-align: right; }
  #booking-table th:nth-child(4), #booking-table td:nth-child(4) { width: 72px; }
  #booking-table .badge { font-size: .6rem; padding: 2px 7px; }
  #bk-filter-tabs { gap: 6px; }
  #bk-filter-tabs .tab { min-height: 44px; padding: 8px 14px; font-size: .78rem; }
}

/* ===== Ronde 16: riwayat keuangan kompak — 1 transaksi = 1 baris ringkas ===== */
.keu-list { display: flex; flex-direction: column; }
.keu-row { padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.keu-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.keu-ket { font-size: .85rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keu-ket .mono { font-size: .72rem; color: var(--muted); }
.keu-nom { font-weight: 800; white-space: nowrap; font-size: .9rem; }
.keu-nom.in { color: var(--green-neon); }
.keu-nom.out { color: var(--red); }
.keu-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .72rem; color: var(--muted); }
.pill { font-size: .62rem; font-weight: 700; text-transform: uppercase; border-radius: 999px; padding: 1px 8px; border: 1px solid; white-space: nowrap; }
.pill-in { color: #7ee2a8; border-color: var(--green); background: rgba(34,197,94,.12); }
.pill-out { color: var(--gold); border-color: var(--gold); background: rgba(232,255,0,.1); }
.keu-del { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: var(--muted); border-radius: 8px; padding: 3px 10px; font-size: .7rem; cursor: pointer; white-space: nowrap; }
.keu-empty { text-align: center; color: var(--muted); padding: 16px; font-size: .85rem; }

/* ===== Ronde 5: dashboard kompak ===== */
.stat-grid.dash { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grid.dash .stat { padding: 10px 6px; }
.stat-grid.dash .stat-ico { font-size: 1.25rem; margin-bottom: 2px; }
.stat-grid.dash .stat .num { font-size: 1.35rem; }
.stat-grid.dash .stat .num.small { font-size: 1.02rem; overflow-wrap: anywhere; }
.stat-grid.dash .stat .lbl { font-size: .7rem; }
.stat-grid.dash .stat.fin { min-height: 72px; }

/* ===== Keuangan: filter 1 baris + 3 kartu sebaris (nyaman di 390px) ===== */
.keu-filter { display: flex; gap: 10px; align-items: flex-end; }
.keu-filter-field { flex: 1; min-width: 0; }
.keu-filter-field label { display: block; margin-bottom: 6px; }
.keu-filter-field input { width: 100%; }
#keu-reload { flex: 0 0 auto; width: auto; white-space: nowrap; margin-top: 0; }
.stat-grid.keu { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grid.keu .stat { padding: 10px 4px; }
.stat-grid.keu .stat-ico { font-size: 1.15rem; margin-bottom: 2px; }
.stat-grid.keu .stat .num { font-size: 1.08rem; overflow-wrap: anywhere; }
.stat-grid.keu .stat .lbl { font-size: .72rem; }
@media (max-width: 360px) {
  .stat-grid.keu .stat .num { font-size: .95rem; }
  .stat-grid.keu .stat-ico { font-size: 1rem; }
}

/* ===== Ronde 5: grafik pemasukan (CSS murni) ===== */
.chart-filters { display: flex; gap: 8px; margin-bottom: 12px; }
.chart-bars { display: flex; align-items: stretch; gap: 4px; height: 160px; }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.chart-val { font-size: .6rem; color: var(--gold); margin-bottom: 3px; white-space: nowrap; min-height: .9em; }
.chart-bar {
  width: 72%; max-width: 34px; min-height: 3px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #f4ffa8, var(--gold) 60%, #9db300);
  box-shadow: 0 0 10px rgba(232,255,0,.25);
  transition: height .3s ease;
}
.chart-bar.zero { background: rgba(255,255,255,.09); box-shadow: none; }
.chart-lbl { font-size: .6rem; color: var(--muted); margin-top: 4px; white-space: nowrap; min-height: .9em; }

/* ===== Ronde 5: kartu menu pengaturan + baris data read-only ===== */
.set-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.set-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, rgba(46,123,255,.55), rgba(232,255,0,.25)) border-box;
  border: 1.5px solid transparent; border-radius: 14px;
  padding: 16px 14px; cursor: pointer; font-family: inherit; text-align: left;
  color: var(--text); min-height: 96px;
  transition: transform .12s, box-shadow .12s;
}
.set-card:active { transform: scale(.96); }
.set-card:hover { box-shadow: 0 6px 26px rgba(232,255,0,.22); }
.set-ico { font-size: 1.6rem; line-height: 1; }
.set-lbl { font-weight: 800; font-size: .95rem; color: #fff; }
.set-desc { font-size: .75rem; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .9rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); flex: none; }
.kv .v { text-align: right; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.back-link {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--gold); font-size: .95rem; font-weight: 800;
  padding: 12px 4px; margin-bottom: 6px; min-height: 44px;
}
.back-link:active { transform: scale(.97); }

/* ===== Ronde 5: skeleton shimmer (loading awal) ===== */
.skel {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.06); border-radius: 12px; min-height: 86px;
}
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(232,255,0,.09), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ===== Ronde 5: hamburger menu web publik (mobile) ===== */
.nav-toggle {
  display: none; background: none; cursor: pointer; font-family: inherit;
  border: 1.5px solid rgba(232,255,0,.45); color: var(--gold);
  font-size: 1.25rem; border-radius: 10px; width: 44px; height: 44px; line-height: 1;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  header.top .wrap { position: relative; }
  header.top nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,14,39,.98);
    border-bottom: 1px solid rgba(232,255,0,.25);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .32s ease, opacity .25s ease;
  }
  header.top nav.open { max-height: 340px; opacity: 1; }
  header.top nav a { margin: 0; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.07); font-size: .95rem; }
  header.top nav a:active { background: rgba(232,255,0,.08); }
}
/* ===== Bottom navigation (mobile saja) ===== */
.bottomnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(10,14,39,.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(232,255,0,.3);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
}
.bn-item {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: .68rem; font-weight: 600; font-family: inherit;
  padding: 8px 4px; min-height: 56px; border-radius: 12px;
  transition: color .12s, transform .12s;
}
.bn-item:active { transform: scale(.93); }
.bn-item.active { color: var(--gold); }
.bn-ico { font-size: 1.35rem; line-height: 1; }
.bn-fab {
  flex: none; width: 62px; height: 62px; margin-top: -30px; border-radius: 50%;
  border: 3px solid var(--bg); cursor: pointer;
  background: linear-gradient(135deg, #f4ffa8, var(--gold) 50%, #c4e000);
  color: #1a1400; font-size: 2rem; font-weight: 900; line-height: 1;
  box-shadow: 0 6px 24px rgba(232,255,0,.55);
  transition: transform .12s;
}
.bn-fab:active { transform: scale(.9); }
@media (max-width: 768px) {
  body.logged-in .bottomnav { display: flex; align-items: flex-end; justify-content: space-around; }
  body.logged-in #admin-tabs { display: none; }
  body.logged-in.admin-page { padding-bottom: 96px; }
}

/* ===== Ronde 7: kartu dashboard bisa diklik + badge jumlah tab booking ===== */
.stat.clickable { cursor: pointer; }
.stat.clickable:hover { box-shadow: 0 6px 26px rgba(232,255,0,.25); }
.cnt {
  display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px;
  border-radius: 999px; background: var(--gold); color: #1a1400;
  font-size: .75rem; font-weight: 900;
}
.tab:not(.active) .cnt { background: rgba(232,255,0,.25); color: var(--gold); }
/* hint di samping tombol Share Loc */
#bk-antar-extra .hint, #ao-antar-extra .hint { display: inline-block; margin: 8px 0 0 10px; }

/* ===== Ronde 10: kartu item multi-unit (ringkas & collapsible) ===== */
.item-card {
  border: 1px solid rgba(232,255,0,.22);
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.item-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; cursor: pointer; user-select: none;
  min-height: 44px;
}
.item-head:active { background: rgba(232,255,0,.06); }
.item-title { flex: 1; font-weight: 700; font-size: .92rem; }
.item-toggle { color: var(--gold); font-size: 1rem; }
.item-del {
  border: 1px solid rgba(255,93,93,.5); background: transparent; color: #ff8a8a;
  border-radius: 8px; min-width: 44px; min-height: 44px; font-size: .85rem; cursor: pointer;
}
.item-body { padding: 0 12px 12px; }
.item-card.collapsed .item-body { display: none; }
.link-btn {
  background: none; border: none; color: #ff8a8a; cursor: pointer;
  font-size: .85rem; text-decoration: underline; padding: 0;
}
/* Voucher: daftar admin */
.voucher-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voucher-code {
  font-family: ui-monospace, monospace; font-weight: 800; color: var(--gold);
  background: rgba(232,255,0,.1); border: 1px dashed rgba(232,255,0,.5);
  padding: 4px 10px; border-radius: 8px; letter-spacing: 1px;
}
/* Kartu voucher admin: ketuk untuk edit. Info wrap, tidak overflow. */
.voucher-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(232,255,0,.14);
  border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; color: var(--text);
  transition: transform .12s ease, border-color .12s ease;
}
.voucher-item:active { transform: scale(.98); border-color: var(--gold); }
.voucher-item .vtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voucher-item .vinfo {
  margin-top: 6px; font-size: .8rem; line-height: 1.5; color: var(--muted);
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}
.vbadge {
  font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  letter-spacing: .3px;
}
.vbadge.on { background: rgba(34,197,94,.14); color: #4ade80; border: 1px solid rgba(74,222,128,.45); }
.vbadge.off { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.45); }
.btn.danger { background: linear-gradient(135deg, #dc2626, #991b1b); box-shadow: 0 4px 14px rgba(220,38,38,.35); }

/* ---- Produk ala Shopee (ronde 11) ---- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  overflow: hidden; cursor: pointer; padding: 0; text-align: left; color: var(--text);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.product-card:active { transform: scale(.97); border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232,255,0,.25); }
.product-img { aspect-ratio: 1/1; background: linear-gradient(135deg, #1a2148, #0A0E27); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-ph { font-size: 3.2rem; filter: drop-shadow(0 4px 12px rgba(232,255,0,.25)); }
.product-body { padding: 10px 12px 12px; }
.product-name { font-weight: 800; font-size: 1rem; }
.product-tag { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.product-price { color: var(--gold); font-weight: 800; font-size: .95rem; margin-top: 6px; }
.product-stock { font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* ---- Bottom sheet varian ---- */
#sheet-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,6,20,.7);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 1; transition: opacity .25s ease;
}
#sheet-backdrop.hidden { display: none; }
#variant-sheet {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: #141a3d; border-radius: 20px 20px 0 0; padding: 18px 18px 26px;
  border-top: 2px solid rgba(232,255,0,.4);
  animation: sheetUp .28s ease;
  position: relative;
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#sheet-close {
  position: absolute; top: 10px; right: 12px; min-width: 44px; min-height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--text);
  font-size: .9rem; cursor: pointer;
}
.sheet-top { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.sheet-img {
  width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #1a2148, #0A0E27); display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
}
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-img .product-ph { font-size: 2.2rem; }
.sheet-price { color: var(--gold); font-weight: 800; font-size: 1.35rem; }
.sheet-pname { font-weight: 700; margin: 8px 0 4px; }
#variant-sheet label { display: block; margin-top: 12px; font-weight: 700; font-size: .9rem; }
#sheet-book:disabled { opacity: .45; cursor: not-allowed; }

/* ---- Checkout ---- */
.co-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.co-item-main { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.co-item-title { font-weight: 700; font-size: .88rem; }
.co-item-price { color: var(--gold); font-weight: 800; white-space: nowrap; font-size: .88rem; }
.co-item-del {
  border: 1px solid rgba(255,93,93,.5); background: transparent; color: #ff8a8a;
  border-radius: 8px; min-width: 44px; min-height: 44px; font-size: .85rem; cursor: pointer; flex-shrink: 0;
}
.total-tagihan {
  margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(232,255,0,.07); border: 1px solid rgba(232,255,0,.35);
}
.tt-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); padding: 2px 0; }
.tt-row.disc { color: #7dff9e; }
.tt-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px dashed rgba(232,255,0,.3); font-weight: 800; font-size: 1.15rem; }
.tt-total span:last-child { color: var(--gold); }
.btn.big { width: 100%; padding: 16px; font-size: 1.1rem; font-weight: 800; }

/* ---- Matriks harga admin ---- */
.price-matrix { width: 100%; border-collapse: collapse; font-size: .85rem; }
.price-matrix th, .price-matrix td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; vertical-align: middle; }
.price-matrix th { color: var(--gold); font-size: .75rem; text-transform: uppercase; }
.price-matrix td:first-child, .price-matrix th:first-child { text-align: left; }
.price-matrix input[type=number] {
  width: 100%; max-width: 110px; padding: 8px 6px; font-size: .85rem; text-align: right;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; color: var(--text);
}
.price-matrix input[type=number]:focus { border-color: var(--gold); outline: none; }
.price-matrix .dur-off { opacity: .45; }
.dur-row { display: flex; align-items: center; gap: 8px; }
.badge-off { background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid rgba(255,255,255,.15); }

/* ---- Loyalty: progress bar & riwayat poin ---- */
.ly-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); margin: 10px 0 6px; overflow: hidden; }
.ly-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #E8FF00, #b8d400); transition: width .5s; }
.ly-hist { margin-top: 8px; border-top: 1px dashed rgba(255,255,255,.15); padding-top: 4px; }
.ly-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .85rem; }
.ly-row small { color: var(--muted); }
.ly-row .plus { color: #7dff9e; white-space: nowrap; }

/* ---- Testimoni publik ---- */
.ulasan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ulasan-card { margin: 0; }
.ulasan-stars { font-size: 1rem; letter-spacing: 2px; margin-bottom: 6px; }
.ulasan-comment { font-size: .9rem; margin: 0 0 8px; font-style: italic; }
.ulasan-name { font-size: .8rem; color: var(--gold); font-weight: 700; }

/* ---- Form rating di halaman invoice ---- */
.rate-stars { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.rate-stars button { background: none; border: 0; font-size: 2.2rem; cursor: pointer; padding: 4px; filter: grayscale(1); opacity: .5; }
.rate-stars button.on { filter: none; opacity: 1; transform: scale(1.1); }

/* ---- Verifikasi + pembayaran ---- */
.rp-wrap { display: flex; align-items: center; border: 1px solid rgba(232,255,0,.4); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.04); }
.rp-wrap span { padding: 0 4px 0 14px; font-weight: 700; color: var(--gold); }
.rp-wrap input { flex: 1; border: 0; background: transparent; color: #fff; font-size: 1rem; padding: 12px 14px 12px 6px; min-width: 0; }
.rp-wrap input:focus { outline: none; }
.total-big { font-size: 1.5rem; font-weight: 900; color: var(--gold); }
.badge.pay-belum { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid var(--red); }
.badge.pay-dp { background: rgba(232,255,0,.15); color: var(--gold); border: 1px solid var(--gold); }
.badge.pay-lunas { background: rgba(34,197,94,.15); color: #7ee2a8; border: 1px solid var(--green); }
.tab.small { padding: 6px 14px; font-size: .78rem; min-height: 44px; }
#bk-pay-tabs { align-items: center; margin-bottom: 0; }

/* ===== Ronde 19: transisi halus form verifikasi ===== */
@keyframes vfIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
#bkd-verify-view.vf-enter { animation: vfIn .25s ease; }
@media (prefers-reduced-motion: reduce) {
  #bkd-verify-view.vf-enter { animation: none; }
}

/* ===== Detail transaksi: kelengkapan seperti baris tabel, tanpa kotak ===== */
.kd-unit { margin: 2px 0 10px; }
.kd-unit:last-child { margin-bottom: 2px; }
.kd-unit-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 2px; }
.kd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 2px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .92rem; }
.kd-row:last-child { border-bottom: none; }
.kd-qty { flex: none; color: var(--gold); font-weight: 700; }
