/* riwariwi — hijau daun, lime, aksen kuning, latar doodle */
:root {
  /* nama lama dipertahankan agar komponen lama ikut berganti warna */
  --indigo: #2F6B3B;        /* hijau daun (utama) */
  --indigo-2: #3B7D47;
  --indigo-soft: #EAF4DF;
  --kunyit: #FFC857;        /* kuning aksen / tombol utama */
  --kunyit-soft: #FFF3D6;
  --besek: #C9E7A6;
  --besek-dark: #8DB86A;
  --besek-light: #EAF4DF;
  --daun: #2F7D45;
  --daun-soft: #E2EFE5;
  --lime: #9ACD5B;
  --red: #D9472F;
  --danger: #B3261E;
  --danger-soft: #FBE9E7;
  --bg: #EEF2EA;
  --surface: #FFFFFF;
  --ink: #131A13;
  --muted: #6B7468;
  --line: #DDE4D6;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --tabbar: 64px;
  --doodle: url("/bg/doodle.svg");
  --doodle-head: url("/bg/doodle-head.svg");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--doodle) 0 0 / 240px 240px repeat, var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--kunyit); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.boot { min-height: 100vh; background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo); }

.shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 16px);
}

.page { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.page.has-bottom-bar { padding-bottom: 96px; }
.page-head { display: flex; align-items: flex-start; gap: 8px; padding-top: 4px; }
.page-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.page-sub { color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.icon-btn {
  border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line);
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 0.8125rem; }
.error { color: var(--danger); font-size: 0.875rem; }
.notice { background: var(--kunyit-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 0.9rem; }
.loading { color: var(--muted); padding: 24px 0; text-align: center; }
.empty { text-align: center; padding: 32px 8px; display: grid; gap: 10px; justify-items: center; }

.card { background: var(--surface); border-radius: var(--radius-lg); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.error-box { display: grid; gap: 10px; background: var(--danger-soft); box-shadow: none; }

/* Tombol */
.btn {
  border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--kunyit); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: #F5B93C; }
.btn-ghost { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-small { min-height: 36px; padding: 6px 16px; background: var(--indigo-soft); color: var(--indigo); font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #E9B7B2; }
.link { background: none; border: 0; padding: 0; color: var(--indigo-2); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span, .field-label { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.field em { font-style: normal; font-weight: 500; }
input, select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: #FAFBF8; border-radius: var(--radius-sm);
  padding: 11px 12px; min-height: 46px; outline: none;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo-2); background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .row { grid-template-columns: 1fr; } }

/* Masuk */
.login { min-height: 100vh; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.login-hero { margin: 12px auto 4px; width: 180px; }
.woven { display: block; width: 100%; height: auto; }
.login-title { text-align: center; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--indigo); }
.login-lead { text-align: center; color: var(--muted); margin-bottom: 8px; }
.otp { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; font-weight: 700; }
.dev-note { background: var(--kunyit-soft); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.875rem; }

/* Beranda: header hijau ber-doodle memanjang sampai di bawah kotak makanan */
.home { padding-top: 0; }
.home-head {
  margin: 0 -16px; padding: 18px 20px 214px; color: #fff; position: relative;
  background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo);
  border-radius: 0 0 32px 32px; display: grid; gap: 14px;
}
.zone-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.14);
  color: #fff; padding: 8px 12px; border-radius: 999px; font-size: 0.8125rem;
}
.zone-chip svg { color: var(--kunyit); }
.zone-chip.is-empty { background: var(--kunyit); color: var(--ink); font-weight: 700; }
.zone-chip.is-empty svg { color: var(--ink); }
.greet { color: var(--besek); font-weight: 500; }
.home-title { font-size: 1.875rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; margin-top: 4px; }
.home-top { margin-top: -194px; position: relative; display: grid; gap: 10px; }

.sos { background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: 12px; display: grid; gap: 10px; box-shadow: 0 8px 20px rgba(217, 71, 47, 0.25); }
.sos-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font-weight: 600; }
.sos-tag { font-size: 0.6875rem; font-weight: 700; background: var(--kunyit); color: var(--ink); border-radius: 999px; padding: 4px 10px; }
.sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sos-btn { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 10px; display: flex; align-items: center; gap: 8px; }
.sos-btn b { display: block; font-size: 0.875rem; font-weight: 600; }
.sos-btn small { display: block; font-size: 0.6875rem; color: var(--muted); }
.sos-emoji { font-size: 1.5rem; line-height: 1; }

.fnb-card { display: flex; align-items: center; gap: 12px; background: var(--lime); border-radius: var(--radius-lg); padding: 14px; color: var(--ink); }
.fnb-card .service-icon { background: var(--indigo); color: #fff; margin: 0; width: 44px; height: 44px; }
.fnb-card strong { display: block; font-size: 1.0625rem; font-weight: 600; }
.fnb-card small { color: #2F4F2A; }

.active-strip { display: grid; gap: 8px; }
.active-card {
  display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line);
}
.active-card strong { display: block; font-size: 0.95rem; }
.active-card small { color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--daun); flex: none; box-shadow: 0 0 0 0 rgba(47, 125, 69, 0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 125, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 125, 69, 0); } }

.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service {
  display: grid; gap: 4px; align-content: start; height: 100%; min-height: 128px; padding: 14px; position: relative;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line);
}
.service:hover { box-shadow: inset 0 0 0 2px var(--indigo-2); }
.service-icon { color: var(--indigo); background: var(--indigo-soft); border-radius: 12px; padding: 7px; width: 42px; height: 42px; margin-bottom: 6px; }
.service-name { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.service-blurb { color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.service-soon { position: absolute; top: 12px; right: 12px; font-size: 0.6875rem; font-weight: 700; background: var(--kunyit-soft); color: #7A5308; padding: 3px 8px; border-radius: 999px; }
.services li.wide { grid-column: span 2; }
.service-wide { min-height: 0; grid-template-columns: auto 1fr; column-gap: 12px; background: var(--kunyit-soft); box-shadow: none; }
.service-wide .service-icon { grid-row: span 2; background: var(--kunyit); margin: 0; }
.service-wide .service-name { align-self: end; }

/* Header hijau halaman layanan */
.green-head {
  margin: 0 -16px; padding: 16px 16px 20px; color: #fff; display: grid; gap: 14px;
  background: var(--doodle-head) 0 0 / 240px 240px repeat, var(--indigo); border-radius: 0 0 24px 24px;
}
.green-head .page-head { padding-top: 0; }
.green-head .icon-btn { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.green-head .page-sub { color: var(--besek); }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius); padding: 0 14px; height: 48px; color: var(--muted); }
.search input { border: 0; background: transparent; padding: 0; min-height: 0; flex: 1; color: var(--ink); }
.search input:focus { background: transparent; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-title { font-size: 1.125rem; font-weight: 700; }
.section-link { font-size: 0.875rem; font-weight: 600; color: var(--indigo-2); }

/* Kartu warung geser */
.scroller { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.wcard { flex: none; width: 168px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; display: flex; flex-direction: column; }
.wcard.is-closed { opacity: 0.6; }
.wcard-photo { height: 104px; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; background-size: cover; background-position: center; }
.wcard-initial { font-size: 2.125rem; font-weight: 800; color: rgba(19, 26, 19, 0.28); line-height: 1; }
.wcard-body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.wcard-body strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--muted); }
.rating b { color: var(--ink); }
.rating svg { color: var(--kunyit); }
.tint-0 { background-color: #C9E7A6; } .tint-1 { background-color: #FFE8A8; } .tint-2 { background-color: #D5E7D9; }
.tint-3 { background-color: #F2C9B8; } .tint-4 { background-color: #E1EAD3; }

/* Banner */
.banners { display: grid; gap: 8px; }
.banner { position: relative; min-height: 120px; border-radius: var(--radius-lg); overflow: hidden; background: var(--kunyit); color: var(--ink); display: flex; align-items: center; padding: 18px 20px; background-size: cover; background-position: center; }
.banner::after { content: ""; position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.banner > * { position: relative; z-index: 1; max-width: 230px; }
.banner small { display: block; font-size: 0.75rem; font-weight: 700; }
.banner strong { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.banner.has-image { color: #fff; }
.banner.has-image::after { inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(90deg, rgba(19, 26, 19, 0.65), rgba(19, 26, 19, 0)); }

/* Baris menu / produk */
.mrow { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.mrow.is-out { opacity: 0.55; }
.mthumb { width: 68px; height: 68px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.375rem; font-weight: 800; color: rgba(19, 26, 19, 0.3); background-size: cover; background-position: center; }
.mbody { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mbody strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.mbody small { color: var(--muted); font-size: 0.75rem; }
.mprice { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.mprice b { color: var(--indigo); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; min-height: 38px; padding: 0 16px; font-weight: 600; font-size: 0.875rem; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--indigo); color: #fff; box-shadow: none; }

/* Halaman warung */
.vhead { display: flex; gap: 12px; align-items: center; }
.vphoto { width: 60px; height: 60px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: rgba(19, 26, 19, 0.3); background-size: cover; background-position: center; }
.vmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8125rem; color: var(--muted); }
.line-opts { display: block; color: var(--muted); font-size: 0.75rem; }

/* Detail menu */
.gallery { margin: 0 -16px; position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: none; width: 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; background-size: cover; background-position: center; display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: rgba(19, 26, 19, 0.25); }
.gallery .icon-btn { position: absolute; left: 16px; top: 16px; }
.gallery-count { position: absolute; right: 16px; bottom: 14px; background: rgba(19, 26, 19, 0.6); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.dish-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.opt-group { display: grid; gap: 2px; }
.opt-group legend { float: left; font-weight: 700; padding: 0; margin-bottom: 6px; display: flex; justify-content: space-between; width: 100%; }
.opt-group legend small { font-weight: 500; color: var(--muted); font-size: 0.8125rem; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--indigo); flex: none; }
.opt span { flex: 1; }
.opt small { color: var(--muted); font-size: 0.875rem; }
.opt.is-disabled { opacity: 0.45; cursor: not-allowed; }
.req-tag { font-size: 0.6875rem; font-weight: 700; color: #7A5308; background: var(--kunyit-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

/* Pilih wilayah */
.zone-group { display: grid; gap: 2px; }
.zone-group h2 { font-size: 0.875rem; font-weight: 700; color: var(--muted); margin: 6px 0 4px; }
.zone-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; margin-bottom: 6px; }
.zone-opt input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--indigo); flex: none; }
.zone-opt span { flex: 1; font-weight: 600; }
.zone-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); }

/* Vendor & menu */
.vendor-list, .menu, .order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vendor { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.vendor.is-closed { opacity: 0.6; }
.vendor-initial { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo); color: var(--besek); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; flex: none; }
.vendor-body { flex: 1; min-width: 0; }
.vendor-body small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--muted); }
.badge-open { background: var(--daun-soft); color: var(--daun); }
.menu-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.menu-item strong { display: block; }
.price { display: block; margin-top: 2px; font-weight: 700; color: var(--indigo); }

.stepper { display: inline-flex; align-items: center; background: var(--indigo-soft); border-radius: 999px; flex: none; }
.stepper button { border: 0; background: none; width: 36px; height: 36px; font-size: 1.25rem; font-weight: 700; color: var(--indigo); cursor: pointer; }
.stepper button:disabled { opacity: 0.35; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -8px 20px rgba(47, 107, 59, 0.06); z-index: 5;
}
.bottom-bar strong { display: block; font-size: 1.125rem; }
.bottom-bar small { color: var(--muted); }

/* Form pesanan */
.stop { border: 0; margin: 0; display: grid; gap: 12px; position: relative; min-width: 0; }
.stop legend { float: left; width: 100%; padding: 0; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.stop-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.stop-dot.pickup { background: var(--kunyit); }
.stop-dot.dropoff { background: var(--indigo); }
.remove { position: absolute; right: 16px; top: 16px; color: var(--danger); font-size: 0.875rem; }
.add-stop { border-style: dashed; }
.loc-btn {
  display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--besek-dark); background: var(--besek-light);
  color: var(--ink); border-radius: var(--radius-sm); padding: 11px 12px; font-weight: 600; cursor: pointer; text-align: left;
}
.loc-btn.is-set { border-style: solid; border-color: var(--daun); background: var(--daun-soft); color: var(--daun); }
.items { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 1fr 96px auto; gap: 6px; align-items: center; }
.cart-lines { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 0.9rem; }
.cart-lines li { display: flex; justify-content: space-between; gap: 12px; }
.pay-method { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 6px; }
.summary dd { padding-left: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { color: var(--ink); font-weight: 800; font-size: 1.125rem; padding-top: 8px; border-top: 1px solid var(--line); }

/* Peta */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(19, 26, 19, 0.5); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 16px; display: grid; gap: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 1.125rem; font-weight: 800; }
.map-wrap { position: relative; height: min(60vh, 440px); border-radius: var(--radius); overflow: hidden; background: var(--indigo-soft); }
.map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Daftar pesanan */
.order-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.order-row .service-icon { margin: 0; width: 38px; height: 38px; }
.order-row-body { flex: 1; min-width: 0; }
.order-row-body small, .order-row-end small { display: block; color: var(--muted); font-size: 0.8125rem; }
.order-row-end { text-align: right; flex: none; }
.order-row-body .status-chip { display: inline-block; margin-top: 4px; }
.status-chip { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); white-space: nowrap; }
.status-completed .status-chip { background: var(--daun-soft); color: var(--daun); }
.status-cancelled .status-chip, .status-failed .status-chip { background: var(--line); color: var(--muted); }

/* Detail pesanan */
.status-hero { background: var(--indigo); color: #fff; border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 6px; }
.status-hero.status-completed { background: var(--daun); }
.status-hero.status-cancelled, .status-hero.status-failed { background: #4A5447; }
.status-now { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.status-sub { color: rgba(255, 255, 255, 0.75); font-size: 0.875rem; }
.tracker { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.tracker li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.55); font-size: 0.9375rem; }
.tracker li.done { color: #fff; font-weight: 600; }
.tracker-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.tracker li.done .tracker-dot { background: var(--kunyit); border-color: var(--kunyit); }

.route { list-style: none; padding: 0; margin: 0; display: grid; }
.route-stop { display: grid; grid-template-columns: 20px 1fr; gap: 10px; position: relative; padding-bottom: 16px; }
.route-stop:last-child { padding-bottom: 0; }
.route-stop:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; border-left: 2px dotted var(--line); }
.route-dot { width: 14px; height: 14px; border-radius: 50%; margin: 4px 0 0 3px; background: var(--indigo); }
.route-stop.pickup .route-dot { background: var(--kunyit); }
.route-stop.st-done .route-dot { box-shadow: 0 0 0 3px var(--daun-soft); background: var(--daun); }
.route-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.stop-status { font-size: 0.8125rem; font-weight: 700; margin-top: 4px; color: var(--indigo-2); }
.stop-status.done { color: var(--daun); }
.stop-status.failed { color: var(--danger); }

.history summary { font-weight: 700; cursor: pointer; }
.history ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 0.9rem; }
.history time { display: inline-block; width: 52px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cancel-zone { display: grid; gap: 8px; }
.confirm { display: grid; gap: 12px; }
.confirm .row { grid-template-columns: 1fr 1fr; }

/* Akun */
.account { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--besek); color: var(--indigo); display: grid; place-items: center; font-weight: 800; font-size: 1.375rem; }

/* Bilah tab */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); box-shadow: 0 -1px 0 var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px; margin: 0 auto;
}
.tab { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.tab[aria-current="page"] { color: var(--indigo); }
.tab[aria-current="page"] svg { color: var(--kunyit); stroke-width: 2.2; }
.opt-group legend + .opt { clear: both; }
