/* ============================================================
   SportBooking - aplikasi pelanggan
   Arah: klub olahraga privat. Midnight navy, emas champagne, serif Didone
   untuk angka dan judul. Emas hanya dipakai untuk pilihan, aksi utama, dan status aktif.
   ============================================================ */
:root {
  --bg: #070c1a;
  --raise: #0f1a3a;
  --raise-2: #132250;
  --ink: #f3eee3;
  --muted: #a9b1c7;
  --faint: #6f7a96;
  --line: rgba(243, 238, 227, .13);
  --line-2: rgba(243, 238, 227, .22);
  --gold: #d6b56a;
  --gold-hi: #f0d898;
  --gold-lo: #9c7a2c;
  --gold-ink: #1a1405;
  --ok: #5fd3a0;
  --warn: #f2c45a;
  --bad: #ff8f72;
  --blue: #86a8ff;
  --ff-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --ff-body: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 var(--ff-body); background: var(--bg);
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px);
  font-variant-numeric: tabular-nums;
}
body::before {   /* cahaya lembut di sudut, tidak ikut scroll */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 90% -8%, rgba(214, 181, 106, .13), transparent 62%),
    radial-gradient(800px 520px at -12% 6%, rgba(70, 96, 220, .16), transparent 58%);
}
::selection { background: var(--gold); color: var(--gold-ink); }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(1.9rem, 7.4vw, 2.7rem); font-weight: 700; }
h2 { font-size: 1.3rem; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; padding: calc(.65rem + env(safe-area-inset-top, 0px)) 1rem .65rem;
  background: rgba(7, 12, 26, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; min-width: 0; font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.brand #brandName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand #brandMark { display: flex; align-items: center; }
.brand i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); }
.brand .logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.chip-user { background: transparent; border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: .38rem .95rem; font-weight: 600; font-size: .9rem; }

.wrap { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 0; }

/* ---------- Hero ---------- */
.hero { padding: 1.4rem 0 1.1rem; }
.greet { margin: 0 0 .45rem; color: var(--gold); font-weight: 600; font-size: .95rem; }
.sub { margin: .7rem 0 0; color: var(--muted); max-width: 46ch; }

/* ---------- Blok langkah (urutan 1 sampai 4) ---------- */
.blk { border-top: 1px solid var(--line); padding: 1.15rem 0 1.25rem; }
.bh { display: flex; align-items: center; gap: .65rem; font-size: 1.2rem; margin-bottom: .85rem; }
.bh.plain { margin-bottom: .75rem; }
.bh .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: inline-grid; place-items: center;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 700; flex: 0 0 auto; }
.bhrow { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.bhrow .bh { margin-bottom: .6rem; }
.monthline { font-family: var(--ff-body); font-weight: 500; font-size: .85rem; color: var(--muted); margin-left: auto; }
.linkbtn { background: none; border: 0; color: var(--gold); font-weight: 600; font-size: .88rem; padding: .35rem 0; text-decoration: underline; text-underline-offset: 3px; }
.hint { margin: 0 0 .8rem; color: var(--muted); font-size: .88rem; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .8rem 1.3rem; border: 0; border-radius: 12px;
  font-weight: 700; letter-spacing: .01em; text-decoration: none; color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c4a156);
  box-shadow: 0 8px 22px rgba(214, 181, 106, .22), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(255, 143, 114, .45); box-shadow: none; }
.btn.small { min-height: 38px; padding: .4rem .95rem; font-size: .86rem; border-radius: 10px; }
.btn.ball { }   /* nama lama dari JS: tampil sama seperti tombol utama */

/* ---------- Chip olahraga, tile lapangan, tanggal ---------- */
.scroller { display: flex; gap: .55rem; overflow-x: auto; padding: .15rem .15rem .5rem; margin: 0 -.15rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem .55rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: .95rem; scroll-snap-align: start; }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold); color: var(--gold-ink); }

.court { flex: 0 0 auto; width: 214px; text-align: left; padding: .85rem .95rem; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); scroll-snap-align: start; display: flex; flex-direction: column; gap: .2rem; }
.court .ic { width: 1.6rem; height: 1.6rem; color: var(--gold); margin-bottom: .35rem; }
.court b { font-family: var(--ff-display); font-size: 1.12rem; font-weight: 600; line-height: 1.15; }
.court small { color: var(--muted); font-size: .83rem; }
.court .from { margin-top: .45rem; font-size: .86rem; color: var(--muted); }
.court .from em { font-style: normal; color: var(--ink); font-weight: 700; }
.court[aria-pressed="true"] { border-color: var(--gold); background: rgba(214, 181, 106, .09); box-shadow: inset 0 0 0 1px var(--gold); }

.day { flex: 0 0 auto; width: 58px; padding: .5rem 0 .55rem; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: transparent; scroll-snap-align: start; }
.day span { display: block; font-size: .74rem; color: var(--muted); }
.day b { display: block; font-family: var(--ff-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.day.we span { color: var(--bad); }
.day[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold); color: var(--gold-ink); }
.day[aria-pressed="true"] span { color: rgba(26, 20, 5, .72); }

/* ---------- Papan jadwal (elemen utama) ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .02); }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.gh { grid-column: 1 / -1; margin: 0; padding: .5rem .9rem; font-family: var(--ff-body); font-weight: 600; font-size: .82rem; color: var(--gold);
  background: rgba(214, 181, 106, .07); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.gh small { color: var(--muted); font-weight: 500; }
.cell { margin: 0 -1px -1px 0; padding: .7rem .1rem .65rem; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; text-align: center; line-height: 1.2; position: relative; }
.cell b { display: block; font-family: var(--ff-display); font-size: 1.12rem; font-weight: 600; }
.cell small { display: block; margin-top: .12rem; font-size: .72rem; color: var(--muted); }
.cell:hover:not(:disabled):not(.sel) { background: rgba(214, 181, 106, .1); }
.cell.sel { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); }
.cell.sel small { color: rgba(26, 20, 5, .78); font-weight: 700; }
.cell:disabled { cursor: not-allowed; color: var(--faint); background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, .035) 7px 14px); }
.cell:disabled b { font-weight: 500; }
.cell:disabled small { color: var(--faint); }
.cell.booked small { color: var(--bad); font-weight: 600; opacity: .85; }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; border: 1px solid var(--line-2); }
.legend i.s { background: var(--gold); border-color: var(--gold); }
.legend i.b { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, .12) 3px 6px); }

/* ---------- Ringkasan pilihan (muncul saat jam dipilih) ---------- */
.sheet { position: fixed; z-index: 40; left: 50%; width: min(700px, calc(100% - 1rem)); bottom: calc(var(--tab-h) + var(--safe-b) + .5rem);
  transform: translateX(-50%); border-radius: 22px; border: 1px solid rgba(214, 181, 106, .4);
  background: rgba(15, 26, 58, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .2);
  animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sheet .in { padding: .9rem 1rem 1rem; }
.sheet .row1 { display: flex; align-items: flex-start; gap: .75rem; }
.sheet .info { flex: 1; min-width: 0; }
.sheet .info b { display: block; font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; }
.sheet .info small { display: block; color: var(--muted); font-size: .84rem; margin-top: .1rem; }
.sheet .tot { font-family: var(--ff-display); font-weight: 700; font-size: 1.5rem; white-space: nowrap; color: var(--gold-hi); }
.stepper { display: inline-flex; align-items: center; margin-top: .55rem; border: 1px solid var(--line-2); border-radius: 10px; }
.stepper button { width: 40px; height: 36px; background: none; border: 0; color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.stepper button:disabled { opacity: .3; }
.stepper span { min-width: 5.6rem; text-align: center; font-weight: 600; font-size: .92rem; }
.modes { display: flex; gap: .45rem; margin: .8rem 0 .75rem; flex-wrap: wrap; }
.modes:empty { display: none; }
.modes label { flex: 1 1 auto; }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.modes span { display: block; text-align: center; padding: .52rem .6rem; border-radius: 10px; border: 1px solid var(--line-2); font-size: .86rem; font-weight: 600; }
.modes input:checked + span { background: rgba(214, 181, 106, .16); border-color: var(--gold); color: var(--gold-hi); }
.modes input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sheet .btn { margin-top: .1rem; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding-bottom: var(--safe-b);
  background: rgba(7, 12, 26, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar .in { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar button { position: relative; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: var(--faint); font-size: .72rem; font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: var(--gold); }
.tabbar button[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--gold); border-radius: 0 0 2px 2px; }

/* ---------- Daftar booking, paket ---------- */
.list { display: grid; gap: .8rem; }
.item { position: relative; padding: 1rem 1.05rem 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); overflow: hidden; }
.item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line-2); }
.item.st-paid::before, .item.st-active::before { background: var(--ok); }
.item.st-dp::before { background: var(--blue); }
.item.st-pending::before { background: var(--warn); }
.item.st-cancelled::before, .item.st-expired::before { background: var(--bad); }
.item .top1 { display: flex; justify-content: space-between; gap: .7rem; align-items: flex-start; }
.item b.nm { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; }
.item .when { margin-top: .15rem; color: var(--muted); font-size: .92rem; }
.item .when strong { color: var(--ink); font-family: var(--ff-display); font-size: 1.08rem; font-weight: 600; }
.item .amt { margin-top: .5rem; font-weight: 700; }
.item .code { margin-top: .25rem; font-size: .78rem; color: var(--faint); letter-spacing: .04em; }
.item .acts { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.item .left { margin-top: .45rem; font-size: .86rem; color: var(--warn); font-weight: 600; }
.badge { display: inline-block; padding: .14rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap; }
.badge.paid { background: rgba(95, 211, 160, .14); color: var(--ok); }
.badge.dp { background: rgba(134, 168, 255, .15); color: var(--blue); }
.badge.pending { background: rgba(242, 196, 90, .15); color: var(--warn); }
.badge.cancelled, .badge.expired { background: rgba(255, 143, 114, .14); color: var(--bad); }
.meter { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; margin-top: .55rem; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; grid-column: 1 / -1; }
.empty .btn { margin-top: 1rem; }
.plangrid { display: grid; gap: .8rem; }
.plan { position: relative; padding: 1.05rem 1.1rem; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(214, 181, 106, .1), rgba(255, 255, 255, .02) 55%); }
.plan b { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; }
.plan .price { font-family: var(--ff-display); font-weight: 700; font-size: 1.6rem; color: var(--gold-hi); margin: .45rem 0 .7rem; }
.plan .price small { font-family: var(--ff-body); font-weight: 500; font-size: .82rem; color: var(--muted); }
.card { padding: 1rem 1.05rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); margin-bottom: .9rem; }

/* ---------- Skeleton ---------- */
.sk { border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); background-size: 220% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sk.court-sk { flex: 0 0 214px; height: 118px; }
.sk.cell-sk { height: 62px; border-radius: 0; margin: 0 -1px -1px 0; }

/* ---------- Modal masuk/daftar & konfirmasi ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(3, 6, 15, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.modal .box { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 1.3rem 1.25rem calc(1.3rem + var(--safe-b));
  background: var(--raise); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .55); animation: sheet-up .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 560px) { .modal { align-items: center; } .modal .box { border-radius: 22px; border-bottom: 1px solid var(--line-2); } }
.dsnap { z-index: 120; }
.tabs { display: flex; margin: .9rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: .65rem; background: none; border: 0; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--gold); border-color: var(--gold); }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .3rem; color: var(--muted); }
.field input { width: 100%; padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-size: 1rem; color: var(--ink); }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 181, 106, .22); }
.field small { display: block; margin-top: .3rem; color: var(--faint); font-size: .8rem; }
.pw { position: relative; }
.pw button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--gold); font-weight: 700; font-size: .82rem; padding: .45rem; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.3em; margin: 0 0 .6rem; }

/* ---------- Layar konfirmasi: tiket + centang emas ---------- */
.done { text-align: center; }
.done h2 { font-size: 1.55rem; margin-top: .35rem; }
.tickwrap { position: relative; width: 84px; height: 84px; margin: .3rem auto .5rem; }
.tickmark { width: 84px; height: 84px; }
.tickmark circle { fill: rgba(214, 181, 106, .1); stroke: var(--gold); stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .6s ease-out .05s forwards; }
.tickmark path { fill: none; stroke: var(--gold-hi); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s ease-out .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--gold-hi); opacity: 0;
  animation: burst .9s cubic-bezier(.1, .7, .3, 1) .55s forwards; }
.spark:nth-child(3n) { background: var(--gold); width: 4px; height: 4px; }
.spark:nth-child(3n+1) { background: #fff6dc; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(var(--d)) scale(.3); } }
.tickstate { width: 72px; height: 72px; border-radius: 50%; margin: .3rem auto .6rem; display: grid; place-items: center; font-family: var(--ff-display); font-size: 2rem; font-weight: 700; border: 2px solid; }
.tickstate.wait { color: var(--warn); border-color: rgba(242, 196, 90, .5); background: rgba(242, 196, 90, .08); }
.tickstate.bad { color: var(--bad); border-color: rgba(255, 143, 114, .5); background: rgba(255, 143, 114, .08); }

.ticket { position: relative; text-align: left; margin: 1.1rem 0 1.2rem; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); }
.ticket .head { padding: 1rem 1.1rem .85rem; text-align: center; }
.ticket .lbl { display: block; color: var(--muted); font-size: .78rem; }
.ticket .code { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; color: var(--gold-hi); margin-top: .1rem; }
.ticket .perf { position: relative; border-top: 1.5px dashed var(--line-2); margin: 0 .9rem; }
.ticket .perf::before, .ticket .perf::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--raise); border: 1px solid var(--line-2); }
.ticket .perf::before { left: -1.55rem; clip-path: inset(0 0 0 50%); }
.ticket .perf::after { right: -1.55rem; clip-path: inset(0 50% 0 0); }
.ticket .rows { padding: .75rem 1.1rem 1rem; }
.ticket .r { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; font-size: .95rem; }
.ticket .r span:first-child { color: var(--muted); }
.ticket .r b { text-align: right; font-weight: 600; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 130; top: calc(env(safe-area-inset-top, 0px) + .9rem); left: 50%; transform: translateX(-50%); max-width: min(92vw, 460px);
  padding: .75rem 1.15rem .75rem 1.3rem; border-radius: 12px; background: var(--raise-2); border: 1px solid var(--line-2); color: var(--ink); font-weight: 500; font-size: .94rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55); overflow: hidden; }
.toast::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold); }
.toast.bad::before { background: var(--bad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .sk { animation: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .top, .tabbar { background: #070c1a; }
  .sheet { background: #0f1a3a; }
  .modal { background: rgba(3, 6, 15, .9); }
}

/* ruang di bawah agar papan jadwal tidak tertutup panel ringkasan */
body.has-sheet { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 310px); }
