/* NAQL UTAIRI — sistem desain.
   Navy #101B2D · Dark navy #0A1220 · Gold #C6A15B · Cream #F6F3EC · White · Gray #64748B
   Motif: garis rute (●┈┈○) dari Al-Jami'ah ke Lapangan Utair, boarding pass berlubang, denah kursi tampak atas.
   Readex Pro (Latin + Arab, variabel) untuk seluruh UI; Amiri hanya untuk nama Arab. Properti logis → RTL otomatis. */

@font-face { font-family: 'Readex Pro'; font-display: swap; font-weight: 160 700; src: url(/fonts/readex-pro-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: 'Readex Pro'; font-display: swap; font-weight: 160 700; src: url(/fonts/readex-pro-arabic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: 'Plus Jakarta Sans'; font-display: swap; font-weight: 200 800; src: url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Amiri'; font-display: swap; font-weight: 700; src: url(/fonts/amiri-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --navy: #101B2D;
  --navy-deep: #0A1220;
  --navy-2: #1E2C44;
  --gold: #C6A15B;
  --gold-soft: #F0E6CF;
  --gold-ink: #7A5E26;
  --cream: #F6F3EC;
  --cream-2: #EEE8DC;
  --white: #FFFFFF;
  --slate: #64748B;
  --ink: #101B2D;
  --muted: #5B6779;
  --line: #E2DCCF;
  --line-2: #D3CBBB;
  --ok: #276B4E; --ok-soft: #E1F0E8;
  --warn: #8C5A0E; --warn-soft: #FBEFD8;
  --bad: #A93A33; --bad-soft: #F8E3E0;
  --info: #285E8E; --info-soft: #E2ECF6;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 27, 45, .06), 0 8px 24px -12px rgba(16, 27, 45, .18);
  --font: 'Readex Pro', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --seat: 46px;
  --nav-h: 66px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir='rtl'] .icon.flip { transform: scaleX(-1); }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--slate); letter-spacing: .3em; }
.boot-error { display: grid; gap: 12px; place-items: center; min-height: 80vh; padding: 24px; text-align: center; }

/* ---------- Teks utilitas ---------- */
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.bad-text { color: var(--bad); }
.grow { flex: 1; min-width: 0; }
.prose { white-space: pre-line; max-width: 68ch; }
.quote { border-inline-start: 3px solid var(--gold); padding-inline-start: 10px; margin: 8px 0; }
code, .pre { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.pre { white-space: pre-wrap; word-break: break-word; background: var(--cream); padding: 8px; border-radius: 8px; max-height: 240px; overflow: auto; }
.stack { display: grid; gap: 14px; }
.stack-s { display: grid; gap: 8px; }
.stack-xs { display: grid; gap: 4px; justify-items: start; }
.stack-l { display: grid; gap: 22px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scroll-x { overflow-x: auto; margin-inline: -4px; padding: 2px 4px; scrollbar-width: none; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .08s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn[aria-busy='true'] { cursor: progress; opacity: .75; }
.btn[aria-busy='true']::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover:not(:disabled) { background: var(--navy-2); }
.btn.gold { background: var(--gold); color: var(--navy-deep); }
.btn.ghost { background: var(--white); border-color: var(--line-2); color: var(--navy); }
.btn.ghost:hover:not(:disabled) { border-color: var(--navy); }
.btn.danger { background: var(--bad); color: var(--white); }
.btn.danger-ghost { background: transparent; border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); }
.btn.link { background: none; border: 0; min-height: 32px; padding: 0 4px; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; font-weight: 500; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: rgba(16, 27, 45, .06); }
.linkish { background: none; border: 0; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); cursor: pointer; padding: 4px; }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.back-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; justify-self: start; }

/* ---------- Formulir ---------- */
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font-weight: 600; font-size: 14px; }
.req { color: var(--bad); }
input:not([type='checkbox']):not([type='radio']), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); transition: border-color .15s;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
input:disabled { background: var(--cream); color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--bad); min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.check.big { padding: 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--white); }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 0; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.phone-row { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters > input, .filters > select { flex: 1 1 180px; width: auto; }
.filters label.inline { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.filters label.inline input { width: auto; }

/* ---------- Lencana, kontrol segmen ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--cream-2); color: var(--navy); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: #ECEEF1; color: var(--slate); }
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--cream-2); border-radius: 12px; }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; }
.segmented button.on { background: var(--white); color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 27, 45, .12); }

/* ---------- Toast & dialog ---------- */
.toasts { position: fixed; inset-inline: 12px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); display: grid; gap: 8px; z-index: 90; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; max-width: 520px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--navy-deep); color: var(--white); box-shadow: var(--shadow); animation: rise .2s ease-out; font-size: 15px; }
.toast .icon { color: var(--gold); }
.toast.bad .icon { color: #F2A39C; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
.toast .btn { margin-inline-start: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 60px rgba(10, 18, 32, .35); background: var(--white); color: var(--ink); }
dialog.modal.wide { width: min(860px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(10, 18, 32, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 0 20px; }
.modal-head h2 { font-size: 19px; }
.modal-body { padding: 14px 20px 20px; overflow: auto; }

/* ---------- Kepala halaman, panel, kosong ---------- */
.page-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 600; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section { display: grid; gap: 10px; }
.section-title { font-size: 17px; font-weight: 600; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 12px; align-content: start; }
.panel-title { font-size: 16px; font-weight: 600; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: rgba(255, 255, 255, .5); }
.empty-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); }
.empty-title { font-weight: 600; font-size: 17px; }
.error-state { display: grid; justify-items: center; gap: 10px; padding: 28px; text-align: center; color: var(--bad); }
.skel { height: 72px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--cream-2), #F8F5EF, var(--cream-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-soft); color: var(--info); font-size: 15px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.meter { height: 6px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.pager { display: flex; justify-content: center; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Tabel (kartu di HP) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: start; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #FBF9F4; }
@media (max-width: 719px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; padding: 6px 4px; }
  .table td { border: 0; padding: 6px 12px; display: grid; grid-template-columns: 40% 1fr; gap: 10px; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .table td[data-label='']::before { content: none; }
}

/* ---------- Portal penumpang ---------- */
.p-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top-actions { display: flex; gap: 2px; }
.bell-dot { position: absolute; top: 9px; inset-inline-end: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid var(--cream); }
.p-main { max-width: 640px; margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); outline: none; }
.p-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--navy-deep); padding-bottom: env(safe-area-inset-bottom); }
.p-nav a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 10px; color: #9AA6B8; text-decoration: none; font-size: 12px; font-weight: 500; position: relative; }
.p-nav a .icon { width: 22px; height: 22px; }
.p-nav a.on { color: var(--white); }
.p-nav a.on::before { content: ''; position: absolute; top: 0; inset-inline: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
@media (min-width: 900px) { .p-nav { inset-inline: calc(50% - 320px); bottom: 14px; border-radius: 18px; box-shadow: var(--shadow); } }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.wordmark .mark { width: 36px; height: 36px; border-radius: 11px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.wordmark .mark svg { width: 24px; height: 24px; }
.wordmark .logo-img { height: 36px; width: auto; border-radius: 8px; }
.wm-text { display: grid; line-height: 1.15; gap: 1px; }
.wm-latin { font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.wm-arabic { font-family: 'Amiri', var(--font); font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--gold-ink); }
.wordmark.small .wm-latin { font-size: 13.5px; }

.greet { font-size: 24px; font-weight: 600; margin: 6px 0 16px; }

/* Garis rute — motif utama */
.route-line { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 0 8px; }
.route-line .stop { display: grid; justify-items: start; gap: 6px; max-width: 130px; }
.route-line .stop.to { justify-items: end; text-align: end; }
.route-line .dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.route-line .dot.hollow { background: transparent; border: 3px solid currentColor; }
.route-line .stop-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.route-line .track { position: relative; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 12px); opacity: .9; align-self: start; margin-top: 7px; }
.route-line .bus-chip { position: absolute; top: 50%; inset-inline-start: 50%; translate: -50% -50%; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; animation: drive 3.6s ease-in-out 1 both; }
[dir='rtl'] .route-line .bus-chip { translate: 50% -50%; }
.route-line .bus-chip .icon { width: 18px; height: 18px; }
.route-line .pp { position: absolute; top: 44px; inset-inline-start: 50%; translate: -50% 0; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; opacity: .75; white-space: nowrap; }
[dir='rtl'] .route-line .pp { translate: 50% 0; }
@keyframes drive { from { inset-inline-start: 0%; } to { inset-inline-start: 50%; } }
.route-line.compact { padding-top: 16px; }
.route-banner { color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 16px 12px; margin-bottom: 18px; }

/* Kartu hero beranda */
.hero-card { display: grid; gap: 4px; padding: 20px; border-radius: var(--r-lg); background: var(--navy); color: var(--white); text-decoration: none; position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(198, 161, 91, .14); }
.hero-card .route-line { color: var(--gold); }
.hero-card .route-line .stop-name { color: var(--white); }
.hc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #B9C3D3; font-size: 14px; }
.hc-seats { color: var(--gold); font-weight: 600; }
.hc-date { font-size: 24px; font-weight: 600; margin-top: 6px; }
.hc-hijri { color: #C9D1DD; font-size: 15px; }
.hc-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .22); font-weight: 600; color: var(--gold); }
.hc-price { color: var(--white); }
.hero-card.mine { background: var(--navy-deep); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-item { display: grid; gap: 4px; align-content: start; justify-items: start; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.q-num { font-size: 30px; font-weight: 600; line-height: 1; color: var(--navy); }
.q-label { font-size: 14px; color: var(--muted); }

/* Kartu perjalanan */
.trip-list { display: grid; gap: 12px; }
.trip-card { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.trip-card:hover { border-color: var(--gold); }
.trip-card.is-closed { opacity: .72; }
.date-block { display: grid; justify-items: center; align-content: center; padding: 8px 4px; border-radius: 12px; background: var(--navy); color: var(--white); text-align: center; line-height: 1.1; }
.db-day { font-size: 11.5px; color: var(--gold); font-weight: 600; }
.db-num { font-size: 30px; font-weight: 600; }
.db-month { font-size: 12px; color: #C9D1DD; }
.tc-body { display: grid; gap: 4px; min-width: 0; }
.tc-hijri { font-weight: 600; }
.tc-time, .tc-meet { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.tc-time .icon, .tc-meet .icon { width: 16px; height: 16px; }
.tc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.tc-price { font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.alt-price { font-size: 13px; color: var(--muted); font-weight: 500; }
.avail { font-size: 13px; font-weight: 600; color: var(--ok); }
.avail.low { color: var(--warn); }
.avail.full, .avail.closed { color: var(--bad); }

/* Detail perjalanan */
.trip-hero { border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: var(--white); }
.trip-photo { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.trip-hero-panel { display: flex; gap: 14px; padding: 14px; align-items: center; }
.trip-hero-panel .date-block { background: var(--gold); color: var(--navy-deep); }
.trip-hero-panel .db-day, .trip-hero-panel .db-month { color: var(--navy); }
.th-date { font-weight: 600; }
.th-hijri, .th-time { color: #C9D1DD; font-size: 14px; }
.price-panel { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.big-price { font-size: 24px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 10; }
.bus-info { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.bus-info img, .bus-ph { width: 92px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; color: var(--slate); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0 0; }
.chips li { font-size: 12.5px; padding: 2px 9px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- Pemesanan ---------- */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 0 0 16px; counter-reset: s; }
.stepper li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); padding-bottom: 8px; border-bottom: 3px solid var(--line); }
.stepper li .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); font-size: 12px; font-weight: 600; flex: none; }
.stepper li.on { color: var(--navy); font-weight: 600; border-color: var(--gold); }
.stepper li.on .n { background: var(--navy); color: var(--white); }
.stepper li.done { border-color: var(--navy); }
.stepper li.done .n { background: var(--gold); color: var(--navy-deep); }
.bus-tabs { display: flex; gap: 8px; overflow-x: auto; }
.bus-tabs button { display: grid; gap: 2px; text-align: start; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; font-size: 13px; color: var(--muted); }
.bus-tabs button strong { color: var(--navy); font-size: 15px; }
.bus-tabs button.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.seat-stage { display: grid; justify-content: center; overflow-x: auto; padding: 4px; transition: opacity .15s; }
.seat-stage.is-pending { opacity: .7; }

/* Denah bus */
.bus-body { position: relative; padding: 48px 14px 18px; background: var(--white); border: 2px solid var(--line-2); border-radius: 44px 44px 18px 18px; box-shadow: var(--shadow); }
.bus-front { position: absolute; top: 10px; inset-inline: 24px; height: 22px; border-radius: 16px 16px 4px 4px; background: linear-gradient(var(--cream-2), var(--white)); border: 1px solid var(--line); font-size: 11px; color: var(--slate); display: grid; place-items: center; }
.seat-grid { display: grid; gap: 7px; }
.seat, .cell { width: var(--seat); height: var(--seat); }
.cell { display: grid; place-items: center; color: var(--slate); border-radius: 10px; background: repeating-linear-gradient(45deg, var(--cream) 0 6px, var(--cream-2) 6px 12px); }
.cell .icon { width: 18px; height: 18px; }
.seat { position: relative; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; border-radius: 12px 12px 8px 8px; font-weight: 600; font-size: 13px; transition: transform .1s, background .15s; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--line-2), inset 0 -6px 0 var(--cream-2); }
.seat:disabled { cursor: default; }
.seat:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--navy), inset 0 -6px 0 var(--cream-2); }
.seat:not(:disabled):active { transform: scale(.94); }
.seat-sym { position: absolute; top: 2px; inset-inline-end: 5px; font-size: 11px; line-height: 1; }
.seat-name { position: absolute; bottom: -2px; inset-inline: 0; font-size: 9px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.s-selected { background: var(--gold); color: var(--navy-deep); box-shadow: inset 0 0 0 2px var(--gold-ink), inset 0 -6px 0 #B38E4A; animation: pop .18s ease-out; }
@keyframes pop { 50% { transform: scale(1.08); } }
.s-held { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 2px #E6CB98; }
.s-booked { background: var(--navy); color: #8C99AD; box-shadow: none; }
.s-booked_mine { background: var(--navy-2); color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.s-blocked { background: repeating-linear-gradient(-45deg, #ECEEF1 0 5px, #DDE1E7 5px 10px); color: var(--slate); box-shadow: none; }
.bus-body.with-names { --seat: 54px; }
.with-names .seat-label { margin-bottom: 8px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; gap: 6px; align-items: center; }
.swatch { width: 20px; height: 20px; border-radius: 6px 6px 4px 4px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--white); box-shadow: inset 0 0 0 2px var(--line-2); }

.book-tray { position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 12; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; background: var(--navy-deep); color: var(--white); border-radius: var(--r-md); box-shadow: 0 10px 30px -10px rgba(10, 18, 32, .6); }
.tray-info { display: grid; gap: 1px; min-width: 0; }
.tray-seats { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-total { color: var(--gold); font-weight: 600; }
.tray-hold { display: flex; gap: 4px; align-items: center; font-size: 12.5px; color: #B9C3D3; }
.tray-hold .icon { width: 14px; height: 14px; }
.hold-timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--white); }
.hold-timer.urgent { color: #F2A39C; }
.book-tray .btn.primary { background: var(--gold); color: var(--navy-deep); }
.book-tray .btn.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; display: grid; gap: 4px; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); }
.choice.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice .icon { color: var(--gold-ink); }
.choice-label { font-weight: 600; }
.choice-hint { font-size: 13px; color: var(--muted); }
.summary-ticket { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.st-head { display: grid; gap: 2px; padding: 16px; background: var(--navy); color: var(--white); }
.st-head .muted { color: #B9C3D3; }
.st-rows { display: grid; padding: 8px 16px; }
.st-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.st-total { display: flex; justify-content: space-between; padding: 14px 16px; background: var(--gold-soft); font-size: 17px; }
.summary-ticket .fine { padding: 0 16px 12px; background: var(--gold-soft); }
.seat-pill { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 6px; border-radius: 8px 8px 6px 6px; background: var(--navy); color: var(--gold); font-weight: 600; font-size: 13px; }
.seat-pill.big { min-width: 58px; height: 46px; font-size: 18px; }
.terms-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.terms-box summary { cursor: pointer; font-weight: 600; }
.terms-box .prose { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- Pesanan ---------- */
.booking-row { display: flex; gap: 12px; justify-content: space-between; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.booking-row:hover { border-color: var(--gold); }
.br-main { display: grid; gap: 3px; min-width: 0; }
.br-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.br-side { display: grid; justify-items: end; align-content: start; gap: 4px; text-align: end; }
.success-flash { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ok); animation: rise .35s ease-out; }
.success-flash .icon { width: 28px; height: 28px; }
.status-hero { display: grid; gap: 14px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); justify-items: start; }
.progress { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.progress li { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); text-align: center; position: relative; }
.progress li::before { content: ''; position: absolute; top: 6px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.progress li:first-child::before { display: none; }
.progress .pdot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); position: relative; z-index: 1; }
.progress li.done .pdot, .progress li.done::before, .progress li.on::before { background: var(--navy); }
.progress li.on .pdot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.progress li.on { color: var(--navy); font-weight: 600; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.due { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 14.5px; }
.due.over { background: var(--bad-soft); color: var(--bad); }
.bank-list { display: grid; gap: 8px; }
.bank-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--white); cursor: pointer; }
.bank-card input { margin-top: 4px; accent-color: var(--navy); }
.bank-card.on { border-color: var(--navy); }
.acct { font-size: 19px; font-weight: 600; letter-spacing: .04em; }
.proofs summary { cursor: pointer; color: var(--muted); }
.pax-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pax-list li { display: flex; gap: 10px; align-items: center; }
.pax-list li.released { opacity: .5; text-decoration: line-through; }

/* ---------- Boarding pass ---------- */
.ticket-list { display: grid; gap: 18px; }
.ticket { --hole: 13px; background: var(--white); border-radius: var(--r-lg); filter: drop-shadow(0 6px 14px rgba(16, 27, 45, .12)); overflow: hidden; }
.ticket.is-past { opacity: .6; }
.tk-top { background: var(--navy); color: var(--white); padding: 16px 18px 18px; display: grid; gap: 14px; }
.tk-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .14em; font-size: 12.5px; }
.tk-brand .mark { width: 24px; height: 24px; color: var(--gold); }
.tk-brand .mark svg { width: 24px; height: 24px; }
.tk-ar { margin-inline-start: auto; font-family: 'Amiri', var(--font); color: var(--gold); letter-spacing: 0; font-size: 15px; }
.tk-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.tk-route strong { font-size: 17px; display: block; }
.tk-route .end { text-align: end; }
.tk-arrow { color: var(--gold); }
.tk-k { display: block; font-size: 11.5px; color: #9AA6B8; }
.tk-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.tk-meta strong { font-size: 17px; display: block; }
.tk-seat { color: var(--gold); font-size: 26px !important; }
.tk-sub { display: block; font-size: 12px; color: #B9C3D3; }
.tk-perf { height: calc(var(--hole) * 2); margin: calc(var(--hole) * -1) 0; position: relative; z-index: 1; background: radial-gradient(circle at 0 50%, var(--cream) var(--hole), transparent calc(var(--hole) + .5px)) left / 50% 100% no-repeat, radial-gradient(circle at 100% 50%, var(--cream) var(--hole), transparent calc(var(--hole) + .5px)) right / 50% 100% no-repeat; }
.tk-perf::after { content: ''; position: absolute; top: 50%; inset-inline: calc(var(--hole) + 8px); border-top: 2px dashed var(--line-2); }
.tk-bottom { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 18px; align-items: center; }
.tk-qr { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.tk-qr svg { width: 132px; height: 132px; display: block; }
.tk-who { display: grid; gap: 1px; justify-items: start; min-width: 0; }
.tk-who .tk-k { color: var(--muted); margin-top: 6px; }
.tk-name { font-size: 18px; overflow-wrap: anywhere; }
.tk-who .tk-sub { color: var(--muted); }
.tk-who .row-wrap { margin-top: 8px; }
.tk-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 16px; }
.qr-full { display: grid; justify-items: center; gap: 6px; text-align: center; }
.qr-big svg { width: min(78vw, 340px); height: auto; }
.qr-name { font-size: 20px; font-weight: 600; }
.qr-seat { color: var(--muted); }
details.past > summary { cursor: pointer; color: var(--muted); margin-bottom: 12px; }

/* Notifikasi */
.notif-list { display: grid; gap: 8px; }
.notif { display: flex; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.n-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; flex: none; background: transparent; }
.notif.unread .n-dot { background: var(--gold); }
.n-body { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Halaman masuk ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--cream); }
.auth-hero { background: var(--navy-deep); color: var(--white); padding: 16px 20px 64px; padding-top: calc(16px + env(safe-area-inset-top)); }
.auth-hero.short { padding-bottom: 56px; }
.auth-hero .wordmark { color: var(--white); }
.auth-hero .wordmark .mark { background: var(--gold); color: var(--navy-deep); }
.auth-hero .wm-arabic { color: var(--gold); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; }
.lang-switch { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; }
.auth-hero-body { max-width: 520px; margin: 34px auto 0; display: grid; gap: 10px; }
.hero-kicker { color: var(--gold); font-size: 14px; font-weight: 500; }
.hero-title { font-size: clamp(30px, 8vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 16ch; }
.hero-sub { color: #C9D1DD; }
.auth-hero .route-line { color: var(--gold); margin-top: 18px; }
.auth-hero .route-line .stop-name { color: var(--white); }
.auth-card { width: min(520px, calc(100% - 24px)); margin: -36px auto 32px; background: var(--white); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--shadow); align-self: start; }
.auth-card h2 { font-size: 22px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-digit { text-align: center; font-size: 24px !important; font-weight: 600; padding: 0 !important; height: 58px; }
.steps-mini { display: flex; gap: 6px; margin-bottom: 14px; }
.steps-mini span { height: 4px; flex: 1; border-radius: 4px; background: var(--cream-2); }
.steps-mini span.on { background: var(--gold); }
.ts-box:empty { display: none; }

/* ---------- Portal pengelola ---------- */
.a-layout { display: grid; min-height: 100dvh; }
.a-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 264px; background: var(--navy-deep); color: #C9D1DD; display: flex; flex-direction: column; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
[dir='rtl'] .a-side { transform: translateX(100%); }
body.drawer-open .a-side { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(10, 18, 32, .5); z-index: 40; display: none; }
body.drawer-open .scrim { display: block; }
.a-brand { padding: 18px 18px 14px; }
.a-brand .wordmark { color: var(--white); }
.a-brand .wordmark .mark { background: var(--gold); color: var(--navy-deep); }
.a-brand .wm-arabic { color: var(--gold); }
.a-nav { display: grid; gap: 2px; padding: 6px 10px; overflow-y: auto; flex: 1; }
.a-nav a, .a-foot a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: #C9D1DD; text-decoration: none; font-size: 15px; }
.a-nav a:hover, .a-foot a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.a-nav a.on { background: rgba(198, 161, 91, .16); color: var(--white); font-weight: 600; }
.a-nav a.on .icon { color: var(--gold); }
.a-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 2px; }
.a-foot a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-col { min-width: 0; }
.a-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.a-top-title { font-weight: 600; flex: 1; }
.a-main { padding: 20px 16px 60px; max-width: 1180px; outline: none; }
@media (min-width: 1024px) {
  .a-side, [dir='rtl'] .a-side { transform: none; }
  .a-col { margin-inline-start: 264px; }
  .a-burger, .scrim { display: none !important; }
  .a-top { display: none; }
  .a-main { padding: 28px 32px 60px; }
}
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.stat { display: grid; gap: 2px; align-content: start; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.stat-value { font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.stat-value.small { font-size: 18px; }
.stat-label { font-size: 13.5px; color: var(--muted); }
.stat.attn { background: var(--navy); border-color: var(--navy); }
.stat.attn .stat-value { color: var(--gold); }
.stat.attn .stat-label { color: #C9D1DD; }
.revenue { display: flex; gap: 24px; flex-wrap: wrap; }
.revenue strong { font-size: 24px; display: block; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-track { height: 10px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--navy); border-radius: inherit; }
.bar-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 140px; align-items: end; }
.col { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; }
.col-bar { background: var(--gold); border-radius: 3px 3px 0 0; min-height: 2px; }
.col-label { font-size: 10px; color: var(--muted); text-align: center; height: 14px; }
.export-bar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bus-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bus-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); }
.bus-tile.off { opacity: .6; }
.bus-tile img, .bus-tile .bus-ph { width: 100%; height: 130px; object-fit: cover; border-radius: 0; }
.bt-body { display: grid; gap: 4px; padding: 12px; }
.bus-photo { border-radius: 10px; max-height: 220px; object-fit: cover; }
.layout-grid { display: grid; gap: 6px; }
.lc { width: 44px; height: 44px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; display: grid; place-items: center; color: var(--navy); }
.lc-seat { border: 0; background: var(--white); box-shadow: inset 0 0 0 2px var(--navy); }
.lc-driver, .lc-door, .lc-toilet { border: 0; background: var(--cream-2); color: var(--slate); }
.lc-blocked { background: repeating-linear-gradient(-45deg, #ECEEF1 0 5px, #DDE1E7 5px 10px); box-shadow: inset 0 0 0 2px var(--slate); }
.bus-body.editor { padding-top: 44px; }
.seat-boards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.seat-board { display: grid; gap: 8px; justify-items: center; }
.seat-board h3 { font-size: 15px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; gap: 2px; padding-inline-start: 16px; border-inline-start: 2px solid var(--gold-soft); position: relative; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.pay-list { display: grid; gap: 12px; }
.pay-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.proof-thumb { width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--cream-2); display: grid; place-items: center; text-align: center; color: var(--slate); font-size: 12px; text-decoration: none; gap: 4px; align-content: center; }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { display: grid; gap: 4px; min-width: 0; }
.pc-amount { font-size: 22px; font-weight: 600; }
.tpl-list li { display: flex; gap: 8px; align-items: center; }
.perm-group { display: grid; gap: 6px; margin-top: 8px; }
.role-panel summary { cursor: pointer; }
.logo-preview { height: 56px; width: auto; border-radius: 8px; border: 1px solid var(--line); }
.banner-preview { height: 90px; width: auto; border-radius: 8px; }

/* Manifest & pemindai */
.mf-summary { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--navy); color: var(--white); border-radius: var(--r-md); }
.mf-summary .muted { color: #B9C3D3; }
.mf-big { font-size: 44px; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.mf-big small { font-size: 18px; color: #B9C3D3; }
.scan-panel { display: grid; gap: 10px; }
.scanner { display: grid; gap: 8px; }
.scan-frame { position: relative; border-radius: var(--r-md); overflow: hidden; background: #000; aspect-ratio: 4/3; max-height: 50vh; }
.scan-video { width: 100%; height: 100%; object-fit: cover; }
.scan-box { position: absolute; inset: 18%; border: 3px solid var(--gold); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.banner { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.verdict { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-md); border: 2px solid; animation: rise .2s; }
.verdict.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.verdict.warn { border-color: #E6CB98; background: var(--warn-soft); color: var(--warn); }
.verdict.bad { border-color: #E9ADA6; background: var(--bad-soft); color: var(--bad); }
.v-head { display: flex; gap: 8px; align-items: center; font-size: 17px; }
.v-body { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.manifest { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mf-row { display: grid; grid-template-columns: 26px auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.mf-row.done { background: #F4F8F5; border-color: #CFE3D7; }
.mf-row.unpaid { border-inline-start: 4px solid var(--warn); }
.mf-no { font-size: 12px; color: var(--muted); text-align: center; }
.mf-who { display: grid; gap: 1px; min-width: 0; }
.mf-who strong { overflow-wrap: anywhere; }
.mf-act { display: grid; justify-items: end; gap: 2px; }
.boarded-at { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); font-weight: 600; font-size: 14px; }
.print-only { display: none; }

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

/* ---------- Cetak (tiket, manifest, laporan) ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .p-top, .p-nav, .a-side, .a-top, .scrim, .no-print, .export-bar, .scan-panel, .filters, .segmented, .page-head .back, .head-actions, .toasts, .action-row, .btn { display: none !important; }
  .a-col { margin: 0 !important; }
  .p-main, .a-main { padding: 0 !important; max-width: none; }
  .ticket { filter: none; border: 1px solid #ccc; break-inside: avoid; }
  .tk-top, .date-block, .mf-summary, .seat-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-only { display: block; }
  .mf-row { break-inside: avoid; }
}

/* Elemen yang difokus/di-scroll tidak tertutup bilah bawah & baki pemesanan yang menempel. */
.p-main :is(input, button, a, label, select, textarea, details) { scroll-margin-bottom: 190px; }
.stack > *, .stack-l > *, .stack-s > * { min-width: 0; }
html, body { overflow-x: clip; }
.book-tray { flex-wrap: wrap; }
.book-tray > .row { flex: 1 1 auto; justify-content: flex-end; }
.tray-hold { white-space: nowrap; }
@media (max-width: 420px) { .book-tray > .row .btn { padding: 0 14px; } }

/* ---------- v1.1: tamu, Google, absensi ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ok-text { color: var(--ok); font-weight: 600; } .warn-text { color: var(--warn); font-weight: 600; }
.narrow { max-width: 460px; }
.p-main.guest { padding-bottom: 40px; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.google { background: var(--white); border-color: var(--line-2); color: #1F1F1F; font-weight: 500; }
.btn.google:hover { border-color: var(--navy); }
.g-logo { width: 20px; height: 20px; flex: none; }
.guest-entry { display: grid; gap: 10px; justify-items: center; padding-top: 6px; border-top: 1px dashed var(--line); }
.guest-links { display: grid; gap: 10px; margin-bottom: 14px; }
.guest-link-card { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--gold-soft); color: var(--gold-ink); border: 1px solid rgba(198, 161, 91, .45); }
.guest-link-card .glc-head { display: flex; gap: 8px; align-items: center; }
.guest-link-card p { margin: 0; }
.booking-row.is-open { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
[dir=rtl] .booking-row.is-open { box-shadow: inset -3px 0 0 var(--ok); }
.att-card { display: grid; gap: 12px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.att-card.all-done { border-color: var(--ok); }
.att-head { display: flex; gap: 10px; align-items: flex-start; }
.att-head .grow { display: grid; gap: 2px; min-width: 0; }
.att-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.att-names li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--cream); }
.att-names li.done { background: var(--ok-soft); }
.att-names .check { margin: 0; }
.att-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--ok); color: var(--white); }
.att-check .icon { width: 16px; height: 16px; }
.att-actions { display: grid; gap: 10px; }
.att-actions .fine { margin: 0; }
.code-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.code-row .small { width: 100%; text-align: center; }
.code-input { width: 9.5ch; text-align: center; font-size: 22px; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.att-sum { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.att-stats { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--navy); color: var(--white); border-radius: var(--r-md); }
.att-stats .muted { color: #B9C3D3; }
.att-stats .ok-text { color: #8FD3B0; } .att-stats .warn-text { color: #F1C77A; } .att-stats .bad-text { color: #F2A29B; }
.att-screen { display: grid; gap: 10px; justify-items: center; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; }
.att-screen:fullscreen { align-content: center; background: var(--white); }
.att-screen-title { margin: 0; font-weight: 600; font-size: 18px; }
.att-qr { width: min(78vw, 360px); aspect-ratio: 1; }
.att-screen:fullscreen .att-qr { width: min(70vh, 80vw); }
.att-qr svg { width: 100%; height: 100%; }
.att-code { font-size: 40px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--navy); }
.att-bar { width: min(78vw, 360px); height: 6px; border-radius: 3px; background: var(--cream-2); overflow: hidden; }
.att-bar span { display: block; height: 100%; width: 100%; background: var(--gold); }
.att-mark { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mute-btn[aria-pressed=true] { color: var(--bad); }
.att-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--ok); color: var(--white); text-decoration: none; animation: rise .25s; }
.att-banner .grow { display: grid; gap: 2px; min-width: 0; }
.att-banner span { font-size: 14px; opacity: .9; }
.att-banner .icon { width: 24px; height: 24px; flex: none; }
.p-main.guest .book-tray { bottom: calc(10px + env(safe-area-inset-bottom)); }
.code-row .code-input { width: 10ch; flex: none; }
