:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --ink: #182129;
  --muted: #5f6b7d;
  --line: #e4dfd2;
  --brand: #1d63b8;
  --brand-ink: #12408a;
  --gold: #b8860b;
  --shadow: 0 10px 30px rgba(24, 33, 41, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 560px; margin: 0 auto; position: relative; }

.hidden { display: none !important; }

button { font: inherit; cursor: pointer; }

/* ---------- Screens ---------- */
.screen { display: none; padding-bottom: 48px; }
.screen.active { display: block; }
#screenGender { padding-bottom: 0; }

/* screen transition: slide kiri-kanan */
.screen-anim { position: absolute; top: 0; left: 0; right: 0; }
#screenGender.screen-anim,
#screenSearch.screen-anim,
#screenTicket.screen-anim { position: fixed; }
.screen-in-f, .screen-in-b { z-index: 2; }
.screen-out-f, .screen-out-b { z-index: 1; }

@keyframes slide-in-f  { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-out-f { from { opacity: 1; transform: translateX(0); }    to { opacity: 0; transform: translateX(-80px); } }
@keyframes slide-in-b  { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-out-b { from { opacity: 1; transform: translateX(0); }    to { opacity: 0; transform: translateX(80px); } }

.screen-in-f  { animation: slide-in-f  .36s cubic-bezier(.22, .7, .3, 1) both; }
.screen-out-f { animation: slide-out-f .36s cubic-bezier(.4, 0, .6, 1) both; }
.screen-in-b  { animation: slide-in-b  .36s cubic-bezier(.22, .7, .3, 1) both; }
.screen-out-b { animation: slide-out-b .36s cubic-bezier(.4, 0, .6, 1) both; }

/* ---------- Gender / splash (hero full-bleed) ---------- */
#screenGender.active {
  position: fixed; inset: 0; z-index: 22; overflow-y: auto;
}
#screenGender.active .showground {
  min-height: 100%;
}
.showground {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  background:
    radial-gradient(60vmax 45vmax at 50% -12%, rgba(45, 110, 220, 0.34), transparent 62%),
    linear-gradient(160deg, #0a1c33 0%, #132d52 55%, #06131f 100%);
}

.hero {
  position: relative;
  width: 100%; max-width: 1240px;
  min-height: calc(100vh - clamp(40px, 8vw, 120px));
  display: flex; align-items: center; justify-content: center;
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  width: 100%;
}

.hero-copy { text-align: center; }
.hk {
  margin: 0 0 clamp(14px, 2.2vw, 22px);
  font-size: clamp(11px, 1.4vw, 14px); font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: #9fb4de;
}
.ht {
  margin: 0;
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.ht span {
  color: transparent;
  background: linear-gradient(120deg, #ffdf8a, #d29b2f);
  -webkit-background-clip: text;
  background-clip: text;
}
.hd {
  margin: clamp(18px, 3vw, 28px) auto 0;
  max-width: 560px;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.hmeta {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin: clamp(18px, 3vw, 28px) 0 0;
}
.hchip {
  font-size: clamp(11px, 1.2vw, 13px); font-weight: 600;
  letter-spacing: 0.08em; color: #ffd77a;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 215, 122, 0.35);
  background: rgba(255, 215, 122, 0.08);
}
.hcta {
  display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 16px);
  max-width: 560px; margin: clamp(24px, 4vw, 40px) auto 0;
}

.hbtn {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 16px);
  width: 100%; padding: clamp(14px, 2vw, 18px);
  border-radius: 16px; text-align: left; font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.hbtn:hover { transform: translateY(-2px); }
.hbtn:active { transform: translateY(0) scale(0.99); }
.hb-ico {
  width: clamp(42px, 4.5vw, 50px); height: clamp(42px, 4.5vw, 50px);
  flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 14px;
}
.hb-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hb-label { font-weight: 800; font-size: clamp(15px, 1.6vw, 17px); }
.hb-desc { font-size: clamp(11.5px, 1.2vw, 13px); opacity: 0.72; }
.hb-arrow { font-size: 22px; opacity: 0.85; }

.hbtn-primary {
  background: linear-gradient(135deg, #e8c05c, #d29b2f);
  color: #08131f;
  border: 1px solid rgba(255, 221, 138, 0.55);
  box-shadow: 0 18px 44px rgba(210, 155, 47, 0.3);
}
.hbtn-primary:hover { box-shadow: 0 24px 54px rgba(210, 155, 47, 0.4); }
.hbtn-primary .hb-ico { background: rgba(8, 19, 31, 0.12); }
.hbtn-primary .hb-arrow { color: #08131f; }

.hbtn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 221, 138, 0.35);
  color: #ffd77a;
}
.hbtn-ghost:hover { box-shadow: 0 14px 34px rgba(255, 215, 122, 0.18); }
.hbtn-ghost .hb-ico { background: rgba(255, 215, 122, 0.12); }

.hero-side { display: none; }

.seatcard {
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 26px;
  border: 1px solid rgba(255, 221, 138, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 70px rgba(0, 8, 20, 0.45);
  transform: rotate(-2deg);
}
.seatcard-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.seatcard-title {
  font-weight: 800; font-size: clamp(15px, 1.6vw, 18px);
  color: #fff; letter-spacing: 0.02em;
}
.seatcard-badge {
  font-size: clamp(10px, 1.1vw, 12px); font-weight: 700;
  letter-spacing: 0.12em; color: #ffd77a;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 215, 122, 0.4);
}
.stage-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: clamp(9.5px, 1vw, 11px); font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: #9fb4de;
}
.stage-bar span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 122, 0.6));
}
.seatgrid {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: clamp(8px, 1vw, 12px);
}
.s {
  aspect-ratio: 1; border-radius: clamp(4px, 0.5vw, 6px);
}
.s-open  { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.18); }
.s-taken { background: rgba(255, 215, 122, 0.25); border: 1px solid rgba(255, 215, 122, 0.35); }
.s-me    { background: #ffd77a; box-shadow: 0 0 0 2px rgba(255, 215, 122, 0.3); }
.seatcard-legend {
  display: flex; gap: 18px; margin-top: 18px;
  font-size: clamp(10.5px, 1.1vw, 12px); color: rgba(255, 255, 255, 0.7);
}
.seatcard-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ls { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.ls-open  { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.18); }
.ls-taken { background: rgba(255, 215, 122, 0.25); border: 1px solid rgba(255, 215, 122, 0.35); }
.ls-me    { background: #ffd77a; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero-copy { text-align: left; }
  .hmeta, .hcta { justify-content: flex-start; margin-left: 0; margin-right: 0; }
  .hd { margin-left: 0; margin-right: 0; }
  .hero-side { display: block; justify-self: end; width: min(100%, 500px); }
}

@media (min-width: 1920px) {
  .hero-inner { gap: 72px; }
  .ht { font-size: 110px; }
  .hero-side { width: 540px; }
}

.showground .admin-banner {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

/* ---------- Steps + inline controls (no bar) ---------- */
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 18px 20px 8px;
}
.step {
  display: inline-flex; align-items: center; gap: 7px;
  color: #a8adba; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
}
.step .sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.step.done { color: var(--muted); }
.step.done .sdot { background: var(--brand); }
.step.now { color: var(--ink); }
.step.now .sdot { background: var(--brand); box-shadow: 0 0 0 3px rgba(29, 99, 184, 0.16); }
.step-line { flex: 0 0 26px; height: 1.5px; background: var(--line); }

.page-title { margin: 0; font-size: 26px; }
.back-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--brand); font-size: 13.5px; font-weight: 700;
}
.back-link svg { transition: transform .15s ease; }
.back-link:hover svg { transform: translateX(-2px); }
.text-link {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--muted); font-size: 13px; font-weight: 700;
}
.text-link:hover { color: var(--brand); }
.ticket-strip .strip-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}

/* ---------- Search: sticky head card + flowing results ---------- */
.search-headbar {
  position: sticky; top: 10px; z-index: 5;
  width: calc(100% - 40px); max-width: 760px;
  margin: 20px auto 12px;
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.search-headbar .search-box { margin: 14px 0 0; }

.s-results-info .spin { animation: svg-spin .8s linear infinite; }
@keyframes svg-spin { to { transform: rotate(360deg); } }

#screenSearch .list {
  width: 100%; max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink);
}

.pill {
  background: #e6effc; color: var(--brand-ink);
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

.ghost-btn {
  background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 12px;
}

.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; color: var(--muted);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 99, 184, 0.12);
}
.search-box input {
  flex: 1; border: 0; outline: none; background: none;
  font: inherit; font-size: 15px; color: var(--ink);
}
.search-box svg { flex: 0 0 auto; }

/* ---------- Search list ---------- */
.list { padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.list .s-empty {
  color: var(--muted); text-align: center; padding: 46px 0;
  font-size: 14px; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.list .s-empty svg { color: #cfc9b8; }

.item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; text-align: left;
  box-shadow: var(--shadow); width: 100%;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.item:hover { border-color: var(--brand); }
.item:active { transform: scale(.985); }
.item-avatar {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #e6effc; color: var(--brand-ink);
  font-size: 15px; font-weight: 800;
  border-radius: 12px;
}
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.item-seat {
  flex: 0 0 auto; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--brand-ink); border-radius: 999px; padding: 7px 12px;
}
.item-arrow { color: var(--brand); font-size: 18px; }

/* ---------- Ticket ---------- */
.ticket-zone { padding: 28px 20px 0; }

.ticket-strip { margin-bottom: 12px; }
.strip-name { font-size: 20px; font-weight: 800; }
.strip-sub { color: var(--muted); font-size: 13.5px; }

.ticket {
  background: var(--surface); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.ticket-top { padding: 22px 22px 16px; }
.ticket-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-ink); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  padding: 5px 12px; border-radius: 999px;
}
.ticket-title { font-size: 24px; margin: 12px 0 2px; line-height: 1.2; }
.ticket-role { color: var(--muted); font-size: 14px; }
.ticket-event { margin-top: 14px; font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; }

.notch { display: flex; align-items: center; gap: 8px; padding: 0; }
.notch .cut {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg);
  flex: 0 0 auto;
}
.notch .cut:first-child { margin-left: -17px; }
.notch .cut:last-child { margin-right: -17px; }
.notch .line { flex: 1; border-top: 2px dashed var(--line); }

.ticket-body {
  display: grid; gap: 16px;
  padding: 18px 22px 22px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lbl { font-size: 12px; color: var(--muted); }
.val { font-size: 16px; font-weight: 700; }
.val.accent { color: var(--brand); font-size: 20px; }

/* ---------- Denah ---------- */
.denah-section { padding: 28px 20px 0; }
.section-title { font-size: 12px; letter-spacing: 0.18em; color: var(--muted); margin: 0 0 14px; }

.denah {
  background: var(--surface); border-radius: 20px;
  padding: 16px 14px; box-shadow: var(--shadow);
}
.stage {
  text-align: center; font-size: 11px; font-weight: 800;
  letter-spacing: 0.3em; color: #fff;
  background: var(--brand-ink); border-radius: 10px;
  padding: 7px; margin-bottom: 16px;
}

.denah-scroll { overflow-x: auto; }
.denah-scroll::-webkit-scrollbar { height: 6px; }
.denah-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.cinema { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.seat-row { display: flex; align-items: center; gap: 8px; }
.row-lbl {
  width: 20px; text-align: center;
  font-size: 11px; font-weight: 800; color: var(--muted);
  flex: 0 0 auto;
}
.seats-grp { display: flex; gap: 6px; flex: 1 1 0; }
.aisle { width: 16px; flex: 0 0 auto; }

.seat {
  flex: 0 1 auto;
  min-width: 16px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  border-radius: 8px;
  background: #eef0ea; color: #8a94a6;
  border: 1px solid transparent;
  position: relative;
}
.seat.empty { background: transparent; color: transparent; }
.seat.taken { background: var(--line); color: #8a94a6; }
.seat.is-hit { box-shadow: inset 0 0 0 2px var(--gold); background: #f4ead1; color: #7a5c00; }
.seat.is-focus { box-shadow: inset 0 0 0 2px var(--gold); background: var(--gold); color: #fff; transform: scale(1.08); }
.seat.is-focus.me { background: var(--ink); }

body.admin-mode .seat { cursor: pointer; }
body.admin-mode .seat:hover { transform: scale(1.12); }

body.admin-mode .ticket-zone { display: none; }
body.admin-mode #btnUbahNama,
body.admin-mode #tHeaderName,
body.admin-mode #tHeaderRoom { display: none; }
body.admin-mode .denah-section { padding-top: 10px; }

.seat.me { background: var(--gold); color: #fff; }

.seat.p-hadir   { background: var(--brand); color: #fff; }
.seat.p-souvenir::after,
.seat.p-stiker::before {
  content: ""; position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
}
.seat.p-souvenir::after { right: 2px; bottom: 2px; background: var(--gold); }
.seat.p-stiker::before  { left: 2px; top: 2px; background: #6db7f2; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-open { background: #eef0ea; }
.dot-taken { background: var(--line); }
.dot-me { background: var(--gold); }
.dot-hadir { background: var(--brand); }
.dot-souvenir { background: var(--gold); }
.dot-stiker { background: #6db7f2; }

body.admin-mode .leg.not-admin { display: none; }

.list.admin { padding: 12px 20px 0; }
.admin-result-top { display: flex; justify-content: space-between; align-items: center; }
.admin-result-pill { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold); }
.admin-result-seat { font-weight: 800; color: var(--brand); }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: none; align-items: flex-end; justify-content: center;
  background: rgba(8, 14, 26, 0.5);
}
.overlay.show { display: flex; }

.sheet {
  width: 100%; max-width: 480px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.sheet-title { font-size: 20px; font-weight: 800; }
.sheet-sub { color: var(--muted); font-size: 14px; margin: -4px 0 6px; }
.sheet input[type="password"] {
  font: inherit; font-size: 15px;
  padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg);
}

.btn-primary {
  font-weight: 700; font-size: 15px; color: #fff;
  background: var(--brand); border: 0;
  padding: 14px; border-radius: 12px;
}
.btn-ghost {
  font-weight: 600; font-size: 15px;
  background: none; border: 0; color: var(--muted);
  padding: 12px;
}

.error { color: #c0392b; font-size: 13px; }

.cl-list { display: grid; gap: 10px; }
.cl-item { display: flex; align-items: center; gap: 12px; }
.cl-box {
  width: 26px; height: 26px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 8px;
  color: #fff;
}
.cl-item.on .cl-box { background: var(--brand); border-color: var(--brand); }
.cl-label { font-weight: 600; font-size: 15px; }

/* ---------- Admin banner ---------- */
.admin-banner {
  position: fixed; right: 14px; bottom: 14px; z-index: 30;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--brand-ink); border: 0;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ---------- Large screens: search & ticket ---------- */
#screenTicket.active {
  position: fixed; inset: 0; z-index: 21; overflow-y: auto;
}
#screenSearch.active {
  position: fixed;
  inset: 0;
  z-index: 21;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  #screenTicket .steps,
  .ticket-grid {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }
  .search-headbar,
  #screenSearch .list { max-width: 820px; }

  .ticket-grid {
    display: grid;
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 28px 40px 40px;
  }
  .ticket-zone { position: sticky; top: 18px; padding: 0; }
  .denah-section { padding: 8px 0 0; }
  body.admin-mode .ticket-grid { display: block; }

  .seat { width: 36px; height: 36px; font-size: 11px; border-radius: 9px; }
  .row-lbl { width: 26px; font-size: 12px; }
  .aisle { width: 22px; }
}

@media (min-width: 1200px) {
  .search-headbar { padding: 24px 26px 24px; }
  .item { padding: 16px 18px; }
}

/* ---------- Showcase (desktop only) ---------- */
.showcase { display: none; }
.sc-search { display: none; }

/* ---------- Search desktop: 2 kolom gagah ---------- */
@media (min-width: 1280px) {
  .search-layout {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: auto minmax(340px, 1fr);
    gap: 28px;
    align-items: start;
  }
  .search-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .search-main .search-headbar {
    position: static;
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .search-main .search-headbar { display: none; }

  .showcase {
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(70vmax 42vmax at 15% -12%, rgba(45, 110, 220, 0.32), transparent 55%),
      linear-gradient(160deg, #0a1c33 0%, #132d52 55%, #071626 100%);
    border-radius: 28px;
    padding: 32px 34px 28px;
    color: #fff;
    box-shadow: var(--shadow);
  }
  .sc-label {
    margin: 0 0 8px;
    color: #ffd77a; text-transform: uppercase;
    font-size: 12px; font-weight: 800; letter-spacing: 0.3em;
  }
  .sc-title {
    margin: 0;
    font-size: clamp(34px, 3.4vw, 54px);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.01em;
  }
  .sc-stats { display: flex; gap: 34px; margin: 20px 0; }
  .sc-stats b { display: block; font-size: 30px; font-weight: 800; color: #ffd77a; }
  .sc-stats span { font-size: 12.5px; color: #9fb4de; letter-spacing: 0.05em; }

  .showcase .stage {
    background: rgba(255, 215, 122, 0.14); color: #ffd77a;
    border-radius: 10px; padding: 8px; margin-bottom: 16px;
  }
  .showcase .denah-scroll {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 12px;
  }
  .showcase .cinema { flex: 0 0 auto; transform-origin: center center; }
  .showcase .panel-top { margin-bottom: 16px; }
  .showcase .back-link { color: #cfe0ff; }
  .showcase .pill {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd77a;
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 12px;
  }
  .showcase .seat {
    flex: 0 1 46px;
    min-width: 20px;
    height: auto; aspect-ratio: 1 / 1;
    font-size: 12px; border-radius: 9px;
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4);
  }
  .sc-search {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 13px 16px;
    margin: 0 0 16px;
    color: #9fb4de;
  }
  .sc-search:focus-within { border-color: #ffd77a; box-shadow: 0 0 0 3px rgba(255, 215, 122, 0.15); }
  .sc-search input { color: #fff; font-size: 16px; }
  .sc-search input::placeholder { color: #9fb4de; }
  .showcase .seat.empty { background: transparent; }
  .showcase .seat.taken {
    background: rgba(255, 215, 122, 0.16);
    color: #ffd77a; border-color: rgba(255, 215, 122, 0.3);
  }
  .sc-load-error {
    color: #ffd77a; font-size: 13px; text-align: center; padding: 24px 8px;
  }
  .showcase .seat.is-hit {
    background: rgba(255, 215, 122, 0.35);
    box-shadow: inset 0 0 0 2px #ffd77a; color: #ffd77a;
  }
  .showcase .seat.is-focus { background: #ffd77a; color: #071626; transform: scale(1.1); }
  .showcase .row-lbl { width: 26px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
  .showcase .legend { margin-top: 18px; flex-wrap: nowrap; }
  .showcase .leg { color: #9fb4de; font-size: 13px; }
  .showcase .dot-open { background: rgba(255, 255, 255, 0.06); }
  .showcase .dot-taken { background: rgba(255, 215, 122, 0.4); }
  .showcase .dot-hit {
    background: rgba(255, 215, 122, 0.35);
    box-shadow: inset 0 0 0 2px #ffd77a;
  }

  .s-results {
    position: relative;
    height: auto;
    padding-right: 4px;
  }
  .s-results .s-results-info {
    /*margin: 0 4px 12px 0;*/
    margin: 10px;
  }
  #screenSearch .list {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    padding: 4px 6px 40px 2px;
  }
  #screenSearch .list .s-empty { grid-column: 1 / -1; }
  #screenSearch .list .s-empty svg { color: #cfc9b8; }
}

@media (min-width: 1920px) {
  #screenTicket .steps,
  .ticket-grid { max-width: 1600px; }
  .ticket-grid { grid-template-columns: minmax(460px, 560px) minmax(0, 1fr); gap: 48px; }
  .ticket-zone { top: 24px; }
  .search-layout { max-width: 1720px; grid-template-columns: auto minmax(420px, 1fr); gap: 48px; }
  #screenSearch .list { max-width: 1720px; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 18px; padding: 36px 48px 56px; }
.search-main .search-headbar { padding: 30px 34px; }
  .sc-title { font-size: clamp(48px, 4.5vw, 76px); }
  .sc-stats b { font-size: 42px; }
  .showcase .seat { flex: 0 1 52px; min-width: 22px; font-size: 13px; border-radius: 11px; }
  .steps { gap: 14px; }
  .step { font-size: 14px; }
  .step-line { flex-basis: 40px; }
  .item { padding: 20px 24px; border-radius: 20px; }
  .item-avatar { width: 54px; height: 54px; border-radius: 16px; font-size: 20px; }
  .item-name { font-size: 18px; }
  .item-seat { font-size: 16px; padding: 10px 16px; }

  .seat { width: 44px; height: 44px; font-size: 13px; border-radius: 11px; }
  .row-lbl { width: 32px; font-size: 13px; }
  .stage { padding: 12px; font-size: 13px; }
  .legend { font-size: 14px; gap: 20px; }
  .dot { width: 14px; height: 14px; }
}

/* ============================================================
   SEARCH — RETHEME GELAP SENADA HERO + RESPONSIVE LEBAR
   ============================================================ */

#screenSearch {
  --bg: #07172b;
  --surface: rgba(255, 255, 255, 0.045);
  --ink: #eef3fb;
  --muted: #93a8d0;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #6ea8ff;
  --brand-ink: #143a6d;
  --gold: #ffd77a;
  --shadow: 0 18px 48px rgba(1, 9, 22, 0.5);
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(70vmax 52vmax at 85% -10%, rgba(45, 110, 220, 0.3), transparent 60%),
    linear-gradient(165deg, #0a1c33 0%, #132d52 52%, #06131f 100%);
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
#screenSearch ::-webkit-scrollbar { width: 10px; height: 8px; }
#screenSearch ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 6px; }
#screenSearch ::-webkit-scrollbar-track { background: transparent; }

/* Brand mark (mobile/tablet) */
.search-brand {
  max-width: 760px; margin: 26px auto 2px; padding: 0 20px;
  display: flex; flex-direction: column; gap: 3px;
}
.search-brand .b-mark {
  font-weight: 800; font-size: 24px; letter-spacing: 0.02em; line-height: 1.1;
  color: transparent;
  background: linear-gradient(120deg, #ffdf8a, #d29b2f);
  -webkit-background-clip: text; background-clip: text;
}
.search-brand .b-sub {
  font-size: 12.5px; color: #9fb4de; letter-spacing: 0.09em; font-weight: 600;
}

/* Frame gelap komponen pencarian */
#screenSearch .search-headbar {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#screenSearch .search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 122, 0.14);
}
#screenSearch .search-box input::placeholder { color: #7c92bd; }
#screenSearch .pill { background: rgba(255, 215, 122, 0.12); color: #ffd77a; }
#screenSearch .item:hover {
  border-color: var(--gold);
  background: rgba(255, 215, 122, 0.05);
  box-shadow: 0 16px 40px rgba(1, 9, 22, 0.45);
}
#screenSearch .item-avatar { background: rgba(45, 110, 220, 0.2); color: #9cc3ff; }
#screenSearch .item-seat {
  background: rgba(255, 215, 122, 0.14);
  border: 1px solid rgba(255, 215, 122, 0.3);
  color: #ffd77a;
}
#screenSearch .s-results-info.err { color: #ffc98a; border-color: rgba(255, 201, 138, 0.25); }
#screenSearch .s-results-info.err .kw { color: #ffddac; }
#screenSearch .s-results-info .kw { color: #ffd77a; }

/* FAB denah (mobile/tablet): kecil, melayang di tengah bawah */
.denah-fab {
  position: fixed; left: 50%; bottom: 18px; z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; max-width: none; margin: 0;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 215, 122, 0.35);
  background: rgba(10, 25, 45, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffd77a; font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
  box-shadow: 0 14px 36px rgba(1, 9, 22, 0.5);
  transition: transform .15s ease, background .15s ease;
}
.denah-fab:hover { background: rgba(20, 40, 70, 0.9); }
.denah-fab:active { transform: translateX(-50%) scale(.97); }

/* Backdrop + sheet denah (mobile/tablet) */
.denah-backdrop {
  position: fixed; inset: 0; z-index: 37;
  background: rgba(5, 10, 22, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.denah-backdrop.show { opacity: 1; pointer-events: auto; }

/* ===== Showcase base: denah + stats (di-share desktop & sheet) ===== */
.showcase .back-link { color: #cfe0ff; }
.showcase .pill {
  background: rgba(255, 255, 255, 0.1); color: #ffd77a;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.showcase .panel-top { margin-bottom: 16px; }
.showcase .sc-stats { display: flex; gap: clamp(20px, 2.2vw, 36px); margin: 4px 0 18px; }
.showcase .sc-stats b { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: #ffd77a; line-height: 1; }
.showcase .sc-stats span { font-size: 12.5px; color: #9fb4de; letter-spacing: 0.05em; }
.showcase .stage {
  background: rgba(255, 215, 122, 0.14); color: #ffd77a;
  border-radius: 10px; padding: 8px; margin-bottom: 16px;
}
.showcase .denah-scroll {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px; padding: 14px 12px;
}
.showcase .cinema { width: 100%; max-width: 660px; }
.showcase .seats-grp {
  display: grid; grid-template-columns: repeat(var(--gcols, 7), minmax(20px, 1fr));
  gap: clamp(4px, 0.5vw, 8px); flex: 1 1 0;
}
.showcase .seat {
  flex: 0 0 auto;
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  min-width: 0; max-width: 64px;
  justify-self: center; align-self: center;
  font-size: clamp(10px, 1vw, 13px);
  border-radius: clamp(6px, 0.7vw, 10px);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4);
}
.showcase .seat.empty { background: transparent; }
.showcase .seat.taken { background: rgba(255, 215, 122, 0.16); color: #ffd77a; border-color: rgba(255, 215, 122, 0.3); }
.showcase .seat.is-hit { background: rgba(255, 215, 122, 0.35); box-shadow: inset 0 0 0 2px #ffd77a; color: #ffd77a; }
.showcase .seat.is-focus { background: #ffd77a; color: #071626; transform: scale(1.1); }
.showcase .row-lbl { width: 24px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.showcase .legend { margin-top: 18px; flex-wrap: nowrap; }
.showcase .leg { color: #9fb4de; font-size: 13px; }
.showcase .dot-open { background: rgba(255, 255, 255, 0.06); }
.showcase .dot-taken { background: rgba(255, 215, 122, 0.4); }
.showcase .dot-hit { background: rgba(255, 215, 122, 0.35); box-shadow: inset 0 0 0 2px #ffd77a; }
.sc-load-error { color: #ffd77a; font-size: 13px; text-align: center; padding: 24px 8px; }

/* ===== Tablet: denah jadi bottom-sheet < 1280 ===== */
@media (max-width: 1279.98px) {
  .showcase {
    display: flex; flex-direction: column;
    position: fixed; inset: auto 0 0 0; z-index: 38;
    max-height: 84vh; overflow-y: auto;
    touch-action: pan-y;
    border-radius: 26px 26px 0 0;
    border: 1px solid var(--line); border-bottom: 0;
    background:
      radial-gradient(70vmax 42vmax at 15% -12%, rgba(45, 110, 220, 0.3), transparent 55%),
      linear-gradient(165deg, #0a1c33 0%, #132d52 55%, #071626 100%);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.5);
    padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(106%);
    transition: transform .38s cubic-bezier(.22, .7, .3, 1);
  }
  .showcase::before {
    content: ""; display: block; flex: 0 0 auto;
    width: 46px; height: 5px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.25); margin: 6px auto 14px;
  }
  .showcase.open { transform: translateY(0); }
}
body.denah-open { overflow: hidden; }
body.denah-open #screenSearch { overflow: hidden; }

/* ===== 768+: hasil pencarian 2 kolom (tablet/landscape) ===== */
@media (min-width: 768px) and (max-width: 1279.98px) {
  #screenSearch .list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px; max-width: 920px;
  }
}

/* ===== 1280+: dua kolom, showcase sebagai panel kiri ===== */
@media (min-width: 1280px) {
  .search-brand { display: none; }
  .denah-fab { display: none; }
  .denah-backdrop { display: none; }
  .search-layout {
    width: 100%; max-width: 1560px; margin: 0 auto;
    padding: 36px 48px;
    display: grid;
    grid-template-columns: clamp(360px, 30vw, 520px) minmax(0, 1fr);
    gap: 32px; align-items: start;
  }
}

/* ===== 2K (1920+) ===== */
@media (min-width: 1920px) {
  .search-layout { max-width: 1760px; grid-template-columns: clamp(460px, 26vw, 640px) minmax(0, 1fr); gap: 44px; padding: 42px 56px; }
  #screenSearch .list { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 18px; }
}

/* ===== 4K (2560+) ===== */
@media (min-width: 2560px) {
  .search-layout {
    max-width: 2200px;
    grid-template-columns: minmax(560px, 0.8fr) minmax(0, 1.6fr);
    gap: 56px; padding: 52px 76px;
  }
  .sc-stats b { font-size: 56px; }
  .sc-stats span { font-size: 15px; }
  .search-brand .b-mark { font-size: 30px; }
  #screenSearch .item { padding: 24px 28px; border-radius: 20px; gap: 18px; }
  #screenSearch .item-avatar { width: 58px; height: 58px; border-radius: 16px; font-size: 22px; }
  #screenSearch .item-name { font-size: 19px; }
  #screenSearch .item-seat { font-size: 16px; padding: 12px 18px; }
  #screenSearch .list { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 22px; }
  .back-link { font-size: 16px; }
  .pill { font-size: 15px; }
}

/* ============================================================
   HASIL PENCARIAN — PANEL TERANG (lebih terang, senada awal)
   ============================================================ */
.s-results {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --ink: #182129;
  --muted: #5f6b7d;
  --line: #e4dfd2;
  --brand: #1d63b8;
  --brand-ink: #12408a;
  --gold: #b8860b;
  --shadow: 0 10px 30px rgba(24, 33, 41, 0.08);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(1, 9, 22, 0.35);
  scrollbar-color: #d9d2be transparent;
  margin: 0 20px 30px;
}
.s-results ::-webkit-scrollbar-thumb { background: #d9d2be; }
.s-results ::-webkit-scrollbar { width: 10px; }

@media (max-width: 1279.98px) {
  .s-results { overflow: hidden; border-radius: 5px; }
}

@media (min-width: 1280px) {
  .s-results { margin: 0; }
}

#screenSearch .s-results .s-results-info.err { color: #9a5b23; border-color: #ead2ae; }
#screenSearch .s-results .s-results-info.err .kw { color: #7c4716; }
#screenSearch .s-results .s-results-info .kw { color: var(--brand-ink); }
#screenSearch .s-results .item:hover {
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
#screenSearch .s-results .item-avatar { background: #e6effc; color: var(--brand-ink); }
#screenSearch .s-results .item-seat {
  background: var(--brand-ink);
  border: 0;
  color: #fff;
}

/* ============================================================
   STATUS BAR PENCARIAN (sResultsInfo) — desain penuh
   ============================================================ */
.s-results-info {
  display: flex; align-items: center; gap: 10px;
  margin: 10px;
  padding: 11px 12px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--muted);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(24, 33, 41, 0.05);
  cursor: default; user-select: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.s-results-info > * { animation: sri-pop .25s ease; }
@keyframes sri-pop {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

.s-results-info .sri-ic { display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); }
.s-results-info .sri-tx { min-width: 0; }
.s-results-info .sri-tx b { color: var(--brand-ink); }
.s-results-info .sri-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.s-results-info .sri-sub { font-size: 11.5px; font-weight: 600; opacity: .85; }

.s-results-info .sri-badge {
  display: inline-grid; place-items: center;
  flex: 0 0 auto;
  min-width: 28px; height: 26px; padding: 0 9px;
  background: linear-gradient(135deg, #1d63b8, #12408a);
  color: #fff;
  font-size: 14px; font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(29, 99, 184, 0.35);
}

.s-results-info .kw,
#screenSearch .s-results .s-results-info .kw {
  display: inline-block; padding: 2px 9px; margin: 0 2px;
  border-radius: 999px;
  background: rgba(210, 155, 47, 0.16);
  border: 1px solid rgba(210, 155, 47, 0.4);
  color: #7a5c00;
  font-weight: 800;
}
#screenSearch .s-results .s-results-info.err .kw { color: #8a5a1e; }

.s-results-info .sri-meta {
  margin-left: auto; flex: 0 0 auto;
  font-size: 11.5px; font-weight: 700;
  color: var(--muted); opacity: .75;
  white-space: nowrap;
}

.s-results-info .sri-clear {
  display: grid; place-items: center;
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid #e6c9a8;
  background: #fff; color: #9a5b23;
  font-size: 15px; line-height: 1; padding: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.s-results-info .sri-clear:hover { background: #fff3e0; transform: scale(1.06); }

/* State-coloured accent */
.s-results-info[data-state="loading"],
.s-results-info[data-state="count"] {
  border-left-color: var(--brand);
  color: var(--brand-ink);
  background: #f0f6ff;
}
.s-results-info[data-state="loading"] .sri-ic { color: var(--brand); }
.s-results-info[data-state="min"] { border-left-color: var(--gold); }
#screenSearch .s-results .s-results-info[data-state="err"] {
  border-left-color: #d99a3d;
  border-color: #e9c9a0;
  background: #fdf6ec;
  color: #9a5b23;
}
#screenSearch .s-results .s-results-info[data-state="err"] .sri-ic { color: #d99a3d; }
