/* ================= SANZA STAY — desain v2 (simpel, bisa digeser) ================= */
:root {
  --bg: #F4F6F3; --card: #FFFFFF; --ink: #17201A; --muted: #6F7D74; --line: #E7EBE6;
  --green: #2F5A42; --green-2: #3E7356; --green-soft: #E3EEE6; --green-ink: #1F3B2B;
  --cream: #F3E6CF; --cream-ink: #6A4F22;
  --orange: #E08A2E; --orange-soft: #FCEEDC; --orange-ink: #87500F;
  --red: #C0473F; --red-soft: #FBE7E5; --blue-soft: #E1ECF7; --blue-ink: #24507E;
  --wa: #1FA855;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(20,40,28,.05), 0 6px 18px rgba(20,40,28,.06);
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overscroll-behavior-y: contain; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--green-2); }
svg.i { width: 22px; height: 22px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

#app { max-width: 600px; margin: 0 auto; min-height: 100vh; position: relative; overflow-x: hidden; }
#view { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 30px); will-change: transform; }
#view.no-nav { padding-bottom: 40px; }

/* ---------- animasi pindah layar ---------- */
@keyframes inR { from { transform: translateX(28%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inL { from { transform: translateX(-28%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
#view.anim-r { animation: inR .26s cubic-bezier(.2,.8,.2,1); }
#view.anim-l { animation: inL .26s cubic-bezier(.2,.8,.2,1); }
#view.anim-up { animation: inUp .22s ease-out; }

/* tarik untuk muat ulang */
#ptr { position: fixed; top: calc(var(--safe-t) + 8px); left: 50%; transform: translate(-50%, -70px); z-index: 30; width: 42px; height: 42px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--green); transition: transform .2s; }
#ptr.go svg { animation: sp .8s linear infinite; }

/* ---------- navigasi bawah ---------- */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px calc(var(--safe-b) + 10px); pointer-events: none; }
#nav .in { max-width: 576px; margin: 0 auto; display: flex; height: var(--nav-h) ; background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-radius: 26px; box-shadow: 0 6px 24px rgba(20,40,28,.14); padding: 8px; pointer-events: auto; }
#nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px;
  text-decoration: none; color: #8C998F; font-size: 12.5px; font-weight: 700; transition: background .2s, color .2s; }
#nav a.on { background: var(--green-soft); color: var(--green); }
#nav a.on svg.i { stroke-width: 2.4; }
#nav a.nav-add { color: var(--green); }
#nav a.nav-add .plus { width: 46px; height: 34px; border-radius: 14px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(47,90,66,.35); }
#nav a.nav-add .plus svg.i { width: 24px; height: 24px; stroke-width: 2.8; }

.fab { position: fixed; z-index: 21; right: max(16px, calc(50% - 284px)); bottom: calc(var(--nav-h) + var(--safe-b) + 24px);
  height: 60px; padding: 0 22px 0 18px; border-radius: 30px; background: var(--green); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 22px rgba(47,90,66,.38); }
.fab svg.i { width: 26px; height: 26px; stroke-width: 2.6; }

/* ---------- kepala halaman ---------- */
.head { padding: calc(var(--safe-t) + 20px) 18px 10px; display: flex; align-items: flex-start; gap: 12px; }
.head .t { flex: 1; min-width: 0; }
.head h1 { font-size: 28px; line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.4px; }
.head .s { color: var(--muted); font-size: 15px; margin-top: 3px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.topbar { display: flex; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 10px) 10px 8px; position: sticky; top: 0; z-index: 10; background: rgba(244,246,243,.94); backdrop-filter: blur(10px); }
.topbar h1 { font-size: 20px; margin: 0; flex: 1; font-weight: 800; }
.iconbtn { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); box-shadow: var(--shadow); flex: 0 0 auto; }

/* ---------- dasar ---------- */
.page { padding: 4px 16px 0; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section { margin-top: 22px; }
.sec-title { display: flex; align-items: center; gap: 8px; margin: 22px 4px 10px; }
.sec-title h2 { font-size: 18px; margin: 0; flex: 1; font-weight: 800; }
.badge { background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.empty { text-align: center; color: var(--muted); padding: 26px 16px; font-size: 15px; }
.empty svg.i { width: 34px; height: 34px; display: block; margin: 0 auto 6px; color: #B5C2B9; }
.err { background: var(--red-soft); color: var(--red); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin: 10px 0; }
.ok { background: var(--green-soft); color: var(--green-ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin: 10px 0; }
.warn { background: var(--orange-soft); color: var(--orange-ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin: 10px 0; }
.spin { display: flex; justify-content: center; padding: 34px; }
.spin::after { content: ''; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--green-soft); border-top-color: var(--green); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, #ECEFEB, #F5F7F4, #ECEFEB); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); height: 84px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 20px;
  border-radius: 18px; font-weight: 800; font-size: 17px; background: var(--green); color: #fff; width: 100%; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn.sec { background: var(--green-soft); color: var(--green-ink); }
.btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn.wa { background: var(--wa); }
.btn.warnb { background: var(--orange); }
.btn.danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px #EEC5C1; }
.btn.sm { min-height: 44px; font-size: 15px; padding: 0 16px; width: auto; border-radius: 14px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; min-width: 0; }
.btn-row .btn { font-size: 16px; padding: 0 10px; gap: 6px; white-space: nowrap; }
.pill-btn { padding: 10px 16px; border-radius: 14px; font-weight: 800; font-size: 15px; color: #fff; white-space: nowrap; flex: 0 0 auto; }

/* ---------- formulir ---------- */
label.lb { display: block; font-weight: 700; font-size: 15px; margin: 16px 2px 6px; }
.inp { width: 100%; min-height: 56px; padding: 12px 16px; border: 0; border-radius: 16px; background: #fff; font-size: 18px; box-shadow: inset 0 0 0 1.5px var(--line); }
.inp:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-2); }
textarea.inp { min-height: 80px; resize: vertical; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 11px 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--line); scroll-snap-align: start; }
.chip.on { background: var(--green); color: #fff; box-shadow: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.two { display: flex; gap: 10px; }
.two > * { flex: 1; min-width: 0; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 14px; padding: 4px; }
.stepper button { width: 42px; height: 42px; border-radius: 11px; background: #fff; font-size: 22px; font-weight: 800; color: var(--green); box-shadow: var(--shadow); }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 18px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.toggle input { width: 26px; height: 26px; accent-color: var(--green); flex: 0 0 auto; }

/* ---------- beranda ---------- */
.tonight { background: linear-gradient(140deg, var(--green) 0%, #24452F 100%); color: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 10px 26px rgba(47,90,66,.25); }
.tonight .lbl { font-size: 14px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .8px; }
.tonight .big { font-size: 46px; font-weight: 800; line-height: 1.05; margin: 6px 0 2px; }
.tonight .big small { font-size: 20px; font-weight: 700; opacity: .75; }
.bar10 { display: flex; gap: 4px; margin: 14px 0 14px; }
.bar10 i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.22); }
.bar10 i.on { background: var(--cream); }
.tonight .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tonight .meta span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); padding: 7px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.tonight .meta span.full { background: #F7D6D2; color: #7C2A24; }
.tonight .meta svg.i { width: 18px; height: 18px; }

.seg { display: flex; background: #E6EAE5; border-radius: 16px; padding: 4px; margin: 20px 0 12px; }
.seg button { flex: 1; padding: 11px 2px; border-radius: 12px; font-weight: 800; font-size: 14.5px; color: var(--muted); transition: all .2s; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg button b { display: inline-block; min-width: 20px; margin-left: 3px; font-size: 13px; padding: 1px 6px; border-radius: 10px; background: rgba(0,0,0,.07); }
.seg button.on b { background: var(--green-soft); color: var(--green); }
.seg button.alert b { background: var(--orange-soft); color: var(--orange-ink); }
.hscroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; scroll-behavior: smooth; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > .panel { flex: 0 0 100%; min-width: 0; max-width: 100%; scroll-snap-align: start; padding: 0 16px; }

/* ---------- baris tamu ---------- */
.grow-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.grow-row.tap, .gcard { cursor: pointer; transition: transform .1s; }
.grow-row.tap:active, .gcard:active { transform: scale(.985); }
.rbadge { min-width: 52px; height: 52px; padding: 0 6px; border-radius: 16px; background: var(--green-soft); color: var(--green-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; line-height: 1.05; flex: 0 0 auto; }
.rbadge small { font-size: 12px; font-weight: 800; opacity: .75; }
.gname { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsub { font-size: 14px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { font-size: 14px; font-weight: 800; color: var(--orange-ink); }
.timer.late { color: var(--red); }

/* ---------- status ---------- */
.st { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st-pending { background: var(--orange-soft); color: var(--orange-ink); }
.st-paid { background: var(--green-soft); color: var(--green-ink); }
.st-checked_in { background: var(--blue-soft); color: var(--blue-ink); }
.st-dp { background: #E6E0F5; color: #4B3A84; }
.due { font-size: 14px; font-weight: 800; color: #4B3A84; }
.due.late { color: var(--red); }
.st-checked_out { background: #ECEFEB; color: var(--muted); }
.st-cancelled, .st-expired { background: var(--red-soft); color: #8D332C; }

/* ---------- daftar tamu ---------- */
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 0 16px; min-height: 56px; box-shadow: var(--shadow); color: var(--muted); }
.search input { border: 0; background: none; flex: 1; font-size: 18px; outline: none; min-width: 0; color: var(--ink); }
.gcard { background: var(--card); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.gcard .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.gcard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.gcard .meta svg.i { width: 16px; height: 16px; }
.month-sep { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin: 14px 6px 2px; }

/* ---------- tabel kamar ---------- */
.gridnav { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.gridnav .mid { flex: 1; text-align: center; background: #fff; box-shadow: var(--shadow); font-weight: 800; border-radius: 16px; padding: 13px; font-size: 16px; }
.legend { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.gwrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
table.grid { border-collapse: separate; border-spacing: 3px; padding: 3px; }
table.grid th { font-size: 12.5px; color: var(--muted); font-weight: 700; height: 52px; min-width: 64px; text-align: center; line-height: 1.15; border-radius: 10px; }
table.grid th b { display: block; font-size: 18px; color: var(--ink); }
table.grid th.today { background: var(--green); color: #fff; }
table.grid th.today b { color: #fff; }
table.grid th.we b { color: var(--orange-ink); }
table.grid .rc { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 60px; text-align: left; padding: 4px 8px; }
table.grid .rc b { font-size: 18px; display: block; }
table.grid .rc small { color: var(--muted); font-size: 12px; }
table.grid td.c { height: 52px; min-width: 64px; max-width: 64px; text-align: center; font-size: 12.5px; font-weight: 800; cursor: pointer; border-radius: 10px;
  background: #F1F5F1; color: #B2C0B6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
table.grid td.c.paid, table.grid td.c.checked_in { background: var(--cream); color: var(--cream-ink); }
table.grid td.c.pending { background: repeating-linear-gradient(135deg, #FBE6CB, #FBE6CB 5px, #FDF3E4 5px, #FDF3E4 10px); color: var(--orange-ink); }

/* ---------- laporan ---------- */
.mbig { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.kpi { border-radius: var(--r); padding: 16px; background: var(--card); box-shadow: var(--shadow); }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; line-height: 1.1; }
.kpi .l, .kpi .s { font-size: 14px; font-weight: 700; color: var(--muted); }
.kpi.k1 { background: var(--green); color: #fff; }
.kpi.k1 .l { color: rgba(255,255,255,.8); }
.kpi.k2 { background: var(--cream); color: var(--cream-ink); }
.kpi.k2 .l { color: var(--cream-ink); opacity: .8; }
.m3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.m3 .kpi { padding: 12px; }
.m3 .kpi .v { font-size: 22px; }
.bar { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; }
.bar .n { width: 34px; font-weight: 800; }
.bar .t { flex: 1; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.bar .t i { display: block; height: 100%; background: var(--green-2); border-radius: 5px; }
.bar .a { min-width: 108px; text-align: right; font-weight: 700; }

/* ---------- booking ---------- */
.steps { display: flex; gap: 6px; margin: 0 0 16px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: #DDE3DC; }
.steps i.on { background: var(--green); }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rtile { position: relative; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); cursor: pointer; transition: transform .1s, box-shadow .15s; min-height: 108px; }
.rtile:active { transform: scale(.97); }
.rtile .id { font-size: 26px; font-weight: 800; line-height: 1; }
.rtile .ty { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.rtile .pr { font-size: 15px; font-weight: 800; margin-top: 10px; color: var(--green-ink); }
.rtile .ck { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: flex; align-items: center; justify-content: center; }
.rtile.on { box-shadow: inset 0 0 0 2.5px var(--green), var(--shadow); background: #F3F8F4; }
.rtile.on .ck { background: var(--green); color: #fff; box-shadow: none; }
.rtile .ck svg.i { width: 17px; height: 17px; stroke-width: 3; }
.rtile.off { background: #EEF1ED; box-shadow: none; cursor: not-allowed; }
.rtile.off .id, .rtile.off .pr { color: #A7B3AB; }
.rtile.off .pr { font-weight: 700; font-size: 13px; }
.sumbox { background: var(--green); color: #fff; border-radius: var(--r); padding: 16px 18px; margin-top: 18px; }
.sumbox .ln { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 15px; opacity: .92; }
.sumbox .tot { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.25); margin-top: 8px; padding-top: 10px; font-size: 22px; font-weight: 800; }
.sticky-bottom { position: sticky; bottom: 0; background: linear-gradient(rgba(244,246,243,0), var(--bg) 30%); padding: 24px 0 calc(var(--safe-b) + 14px); margin-top: 6px; z-index: 5; }
.ebrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ebrow:last-child { border-bottom: 0; }

/* ---------- detail pesanan ---------- */
.dhead { background: var(--card); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.dhead .nm { font-size: 25px; font-weight: 800; line-height: 1.15; }
.dhead .rooms { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.dhead .rooms span { background: var(--green-soft); color: var(--green-ink); font-weight: 800; padding: 6px 12px; border-radius: 12px; font-size: 15px; }
.dates { display: flex; align-items: center; gap: 10px; margin-top: 14px; background: var(--bg); border-radius: 18px; padding: 12px 14px; }
.dates .d { flex: 1; }
.dates .d small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.dates .d b { font-size: 16px; }
.dates .n { background: #fff; border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 14px; text-align: center; }
.codebox { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: var(--green); color: #fff; border-radius: 18px; padding: 12px 16px; }
.codebox b { font-size: 28px; letter-spacing: 3px; }
.dl { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.dl:last-child { border-bottom: 0; }
.dl span:first-child { color: var(--muted); }
.dl b { text-align: right; }
.acts { display: grid; gap: 10px; margin-top: 14px; }
details.fold { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-top: 12px; overflow: hidden; }
details.fold summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 800; font-size: 17px; cursor: pointer; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
details.fold[open] summary .chev { transform: rotate(90deg); }
details.fold .body { padding: 0 18px 16px; animation: inUp .2s ease-out; }
.hist { font-size: 14px; color: var(--muted); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.invimg { width: 100%; border-radius: 14px; display: block; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- jendela bawah (sheet) ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,25,19,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
.modal { background: var(--bg); width: 100%; max-width: 600px; border-radius: 28px 28px 0 0; padding: 10px 16px calc(var(--safe-b) + 18px); max-height: 90vh; overflow-y: auto; animation: sheetUp .26s cubic-bezier(.2,.8,.2,1); touch-action: pan-y; }
.modal .grab { width: 44px; height: 5px; border-radius: 3px; background: #CDD5CF; margin: 0 auto 14px; }
.modal h3 { margin: 0 0 6px; font-size: 21px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 28px); transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 16px; font-size: 15px; font-weight: 700; z-index: 60; max-width: 90vw; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: inUp .2s; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 22px; }
.login img { width: 140px; height: 140px; margin: 0 auto 8px; display: block; border-radius: 32px; box-shadow: var(--shadow); }
.login h1 { text-align: center; font-size: 26px; margin: 8px 0 2px; }
.login p.c { text-align: center; color: var(--muted); margin: 0 0 18px; }

/* ---------- menu pengaturan ---------- */
.menu { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.menu button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 18px; font-weight: 700; font-size: 17px; text-align: left; border-bottom: 1px solid var(--line); }
.menu button:last-child { border-bottom: 0; }
.menu button .chev { margin-left: auto; color: #B5C2B9; }
.menu .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.menu button.red { color: var(--red); }
.menu button.red .ic { background: var(--red-soft); color: var(--red); }
