/* =========================================================
   WM Bike Wash — Aplikasi (tampilan APK Android premium)
   Dark charcoal + amber, kartu lembut, gerak halus.
   ========================================================= */

.app-body {
  background: #090B0E;
  display: flex; justify-content: center;
  min-height: 100dvh;
}

.phone {
  position: relative;
  width: 100%; max-width: 430px;
  min-height: 100dvh;
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: clip;
}
@media (min-width: 500px) {
  .phone {
    margin: 18px 0 28px;
    min-height: calc(100dvh - 46px);
    max-height: 920px;
    border-radius: 34px;
    border: 1px solid #1E2630;
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 8px #12161b;
    height: calc(100dvh - 46px);
  }
}

/* di desktop, tampilkan catatan samping */
.desktop-side { display: none; }
@media (min-width: 980px) {
  .desktop-side {
    display: block; position: fixed; right: 6vw; top: 50%; transform: translateY(-50%);
    width: 250px; color: var(--muted); z-index: 5;
  }
  .ds-logo { display: block; width: 44px; color: var(--amber); margin-bottom: 14px; }
  .ds-inner strong { display: block; color: var(--text); font-family: var(--font-disp); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
  .ds-inner p { font-size: 13px; margin-bottom: 14px; }
  .ds-inner a { color: var(--amber); font-size: 13px; font-weight: 600; }
}

/* ---------------- Status bar ---------------- */
.statusbar {
  height: 34px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--text); background: var(--bg);
  position: relative; z-index: 30;
}
.sb-title { font-size: 9.5px; letter-spacing: .28em; color: var(--faint); font-weight: 700; }
.sb-icons { display: flex; gap: 6px; }
.sb-icons svg { width: 15px; height: 15px; }
.statusbar.is-hidden { display: none; }

/* ---------------- Layar & view ---------------- */
.screen { flex: 1; position: relative; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }

.view {
  position: absolute; inset: 0;
  padding: 18px 18px calc(96px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none;
  opacity: 0; transform: translateX(26px);
  pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.view::-webkit-scrollbar { display: none; }
.view.is-active { opacity: 1; transform: none; pointer-events: auto; }
.view.slide-back { transform: translateX(-26px); }

/* ---------------- Header dalam app ---------------- */
.app-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-top: 6px;
}
.ah-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ah-logo { width: 42px; height: 42px; color: var(--amber); flex: none; }
.ah-logo .wmlogo { width: 100%; height: 100%; }
.ah-greet span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.ah-greet strong { display: block; font-family: var(--font-disp); font-weight: 700; font-size: 24px; letter-spacing: .02em; color: var(--text); line-height: 1.15; text-transform: uppercase; }
.ah-center { text-align: center; flex: 1; }
.ah-actions { display: flex; gap: 10px; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text);
  transition: transform .15s var(--ease), border-color .2s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.notif-dot {
  position: absolute; top: 9px; right: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--amber); border: 2px solid var(--surface);
  opacity: 0; transition: opacity .2s;
}
.notif-dot.on { opacity: 1; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------------- Kartu umum ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 18px;
}

.section-title-row { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.section-title-row h2 { font-family: var(--font-disp); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.see-all { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--amber); }
.see-all svg { width: 14px; height: 14px; }

.lead-note { font-size: 13px; color: var(--muted); margin: -6px 0 16px; }

/* ---------------- Live hero (beranda) ---------------- */
.live-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1B2430 0%, #141A21 55%, #10151B 100%);
}
.lh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lh-clock { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lh-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.lh-num em { display: block; font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.lh-num strong {
  font-family: var(--font-disp); font-weight: 800; font-size: 74px; line-height: .95;
  color: var(--amber); font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 30px rgba(255,179,36,.25);
}
.lh-side { display: grid; gap: 10px; text-align: right; }
.lh-side em { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.lh-side span { font-family: var(--font-disp); font-weight: 700; font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.lh-eta { margin-top: 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lh-eta b { color: var(--green); }
.lh-wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 22px; }

/* ---------------- Quick actions ---------------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 13px 4px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  transition: transform .15s var(--ease), border-color .2s;
}
.quick:active { transform: scale(.93); border-color: var(--line-hard); }
.q-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.q-ic svg { width: 19px; height: 19px; }
.q-amber { background: var(--amber-soft); color: var(--amber); }
.q-green { background: var(--green-soft); color: var(--green); }
.q-blue { background: rgba(78,154,241,.14); color: var(--blue); }
.q-dark { background: rgba(255,255,255,.08); color: var(--text); }

/* ---------------- Promo ---------------- */
#home-promo { margin-top: 16px; position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(255,179,36,.14), rgba(255,179,36,.05) 60%, var(--surface)); }
#home-promo::before { content: ""; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border: 1.5px dashed rgba(255,179,36,.3); border-radius: 50%; }
.promo-badge {
  display: inline-block; background: var(--amber); color: var(--amber-ink);
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 5px; margin-bottom: 10px;
}
#home-promo strong { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }
#home-promo p { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
#home-promo p b { color: var(--amber); }
.promo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--amber-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 13px;
  transition: transform .15s var(--ease);
}
.promo-btn:active { transform: scale(.95); }
.promo-btn svg { width: 15px; height: 15px; }

/* ---------------- Kartu layanan (scroll horizontal beranda) ---------------- */
.svc-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 4px 18px 8px; }
.svc-scroll::-webkit-scrollbar { display: none; }
.svc-mini {
  flex: 0 0 220px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 16px;
  transition: transform .15s var(--ease), border-color .2s;
}
.svc-mini:active { transform: scale(.97); border-color: var(--line-hard); }
.svc-mini .sm-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; margin-bottom: 12px; }
.svc-mini .sm-ic svg { width: 20px; height: 20px; }
.svc-mini strong { display: block; font-size: 15px; color: var(--text); }
.svc-mini p { font-size: 11.5px; color: var(--faint); margin: 4px 0 12px; }
.svc-mini .sm-price { display: flex; align-items: baseline; justify-content: space-between; }
.svc-mini .sm-price b { font-family: var(--font-disp); font-weight: 700; font-size: 20px; color: var(--amber); }
.svc-mini .sm-price span { font-size: 11px; color: var(--faint); }

/* ---------------- Feed ---------------- */
.feed-card { padding: 8px 16px; }
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); animation: slide-in-r .4s var(--ease); }
.feed-item:last-child { border-bottom: 0; }
.feed-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-top: 2px; }
.feed-ic svg { width: 16px; height: 16px; }
.feed-ic.k-stage { background: var(--amber-soft); color: var(--amber); }
.feed-ic.k-done { background: var(--green-soft); color: var(--green); }
.feed-ic.k-book { background: rgba(78,154,241,.14); color: var(--blue); }
.feed-ic.k-info { background: rgba(255,255,255,.07); color: var(--muted); }
.feed-main p { font-size: 13px; color: var(--text); }
.feed-main time { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------------- Jam ---------------- */
.hours-card { margin-top: 16px; }
.hours-card h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 12px; }
.hc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 5px 0; font-variant-numeric: tabular-nums; }
.hc-row.today { color: var(--amber); font-weight: 600; }
.hc-row.today span:last-child { color: var(--amber); }

/* ---------------- Layanan (full) ---------------- */
.svc-full { display: grid; gap: 12px; }
.svc-full .card { cursor: pointer; transition: transform .15s var(--ease), border-color .2s; }
.svc-full .card:active { transform: scale(.97); border-color: var(--line-hard); }
.sf-top { display: flex; gap: 14px; align-items: flex-start; }
.sf-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; }
.sf-ic svg { width: 22px; height: 22px; }
.sf-main { flex: 1; min-width: 0; }
.sf-main strong { display: block; font-size: 16px; color: var(--text); }
.sf-main p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sf-meta { display: flex; gap: 12px; margin-top: 12px; align-items: center; }
.sf-price { font-family: var(--font-disp); font-weight: 700; font-size: 22px; color: var(--amber); }
.sf-time { font-size: 11.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 5px; }
.sf-time svg { width: 13px; height: 13px; }
.sf-arrow { margin-left: auto; color: var(--faint); }
.sf-arrow svg { width: 16px; height: 16px; }

/* ---------------- Booking wizard ---------------- */
.bk-progress { height: 4px; background: var(--raised); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.bk-progress i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); border-radius: 99px; transition: width .4s var(--ease); }

.bk-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 20px 0 10px; }
.bk-sub:first-child { margin-top: 0; }

.svc-pick { display: grid; gap: 10px; }
.pick {
  display: flex; gap: 13px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-m); padding: 14px;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.pick:active { transform: scale(.98); }
.pick.is-on { border-color: var(--amber); background: rgba(255,179,36,.07); }
.pick-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; }
.pick-ic svg { width: 20px; height: 20px; }
.pick-main { flex: 1; min-width: 0; }
.pick-main strong { display: block; font-size: 14.5px; color: var(--text); }
.pick-main span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.pick-price { font-family: var(--font-disp); font-weight: 700; font-size: 19px; color: var(--amber); }
.pick-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-hard); display: grid; place-items: center; color: var(--amber-ink); }
.pick-check svg { width: 13px; height: 13px; opacity: 0; }
.pick.is-on .pick-check { background: var(--amber); border-color: var(--amber); }
.pick.is-on .pick-check svg { opacity: 1; }

.addon-list { display: grid; gap: 10px; }
.addon { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; transition: border-color .2s, background .2s; }
.addon.is-on { border-color: var(--amber); background: rgba(255,179,36,.07); }
.addon strong { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.addon b { font-size: 13px; color: var(--amber); font-weight: 700; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600;
  transition: all .18s var(--ease);
}
.seg-btn.is-on { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-s); padding: 13px 14px; font-size: 14.5px; color: var(--text);
  transition: border-color .2s; resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); }

.date-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 6px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 auto; min-width: 62px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 13px;
  padding: 10px 8px; color: var(--muted);
  transition: all .18s var(--ease);
}
.date-chip.is-on { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.date-chip em { display: block; font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.date-chip strong { display: block; font-family: var(--font-disp); font-size: 22px; font-weight: 700; color: inherit; }

.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 11px 4px; text-align: center; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: all .15s var(--ease);
}
.slot.is-on { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.slot:disabled { opacity: .35; text-decoration: line-through; pointer-events: none; }

.summary { margin-top: 20px; }
.summary h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-row b { color: var(--text); font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 6px; border-top: 1.5px solid var(--line-hard); }
.sum-total em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.sum-total strong { font-family: var(--font-disp); font-weight: 800; font-size: 30px; color: var(--amber); }

.bk-footer {
  position: sticky; bottom: 0; margin: 22px -18px calc(-96px - env(safe-area-inset-bottom));
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  display: flex; align-items: center; gap: 16px; z-index: 5;
}
.bk-total { flex: 1; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.bk-total strong { display: block; font-family: var(--font-disp); font-size: 24px; color: var(--amber); font-weight: 700; letter-spacing: 0; }

/* ---------------- Sukses booking ---------------- */
.bk-success { text-align: center; padding-top: 30px; animation: fade-up .5s var(--ease); }
.success-mark {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
  animation: pop .5s var(--ease);
}
.success-mark svg { width: 38px; height: 38px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.bk-success h2 { font-size: 30px; color: var(--text); margin-bottom: 8px; }
.bk-success > p { font-size: 13.5px; color: var(--muted); max-width: 300px; margin: 0 auto; }

.code-card {
  margin: 24px auto; width: 240px; padding: 22px 18px 18px;
  border-radius: var(--r-l);
  background: linear-gradient(150deg, #1C242F, #131920);
  border: 1px solid var(--line-hard);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.code-card em { font-style: normal; font-size: 10px; letter-spacing: .3em; color: var(--faint); font-weight: 700; }
.code-card strong { display: block; font-family: var(--font-disp); font-weight: 800; font-size: 56px; color: var(--amber); line-height: 1.05; font-variant-numeric: tabular-nums; }
.code-pattern {
  margin-top: 14px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 2.5px;
  width: 132px; height: 132px; margin-inline: auto;
}
.code-pattern i { background: #2A333E; border-radius: 1.5px; }
.code-pattern i.on { background: var(--amber); }

.success-actions { display: grid; gap: 10px; margin: 22px 0; }
.success-detail { text-align: left; margin-top: 6px; }

/* ---------------- Pantau: tabs ---------------- */
.seg-tabs { margin-bottom: 16px; }
.track-pane { animation: fade-in .3s var(--ease); }

.my-booking {
  position: relative; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-l); padding: 16px; margin-bottom: 12px; overflow: hidden;
  transition: border-color .2s;
}
.my-booking.is-work { border-color: rgba(51,176,111,.45); }
.my-booking.is-wait { border-color: var(--line); }
.mb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mb-code { font-family: var(--font-disp); font-weight: 800; font-size: 26px; color: var(--text); }
.mb-status { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; }
.mb-status.st-work { background: var(--green-soft); color: var(--green); }
.mb-status.st-wait { background: var(--amber-soft); color: var(--amber); }
.mb-status.st-done { background: rgba(255,255,255,.08); color: var(--muted); }
.mb-mid { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.mb-mid b { color: var(--text); font-weight: 600; }
.mb-stage { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.mb-stage-ic { width: 34px; height: 34px; border-radius: 11px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; flex: none; }
.mb-stage-ic svg { width: 17px; height: 17px; }
.mb-stage-txt em { display: block; font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.mb-stage-txt strong { font-size: 13.5px; color: var(--text); }
.mb-eta { margin-left: auto; text-align: right; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.mb-eta b { display: block; font-family: var(--font-disp); font-size: 20px; color: var(--green); }
.mb-bar { height: 4px; border-radius: 99px; background: var(--raised); margin-top: 14px; overflow: hidden; }
.mb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); transition: width .8s var(--ease); }

.empty {
  text-align: center; padding: 40px 20px; color: var(--faint);
}
.empty svg { width: 44px; height: 44px; margin-bottom: 12px; opacity: .5; }
.empty p { font-size: 13px; max-width: 240px; margin: 0 auto; }

.code-entry { margin-top: 6px; }
.code-entry h3 { font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 12px; }
.ce-row { display: flex; gap: 10px; }
.ce-row input {
  flex: 1; background: var(--raised); border: 1.5px solid var(--line); border-radius: var(--r-s);
  padding: 12px 14px; font-size: 16px; font-family: var(--font-disp); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.ce-row input:focus { outline: none; border-color: var(--amber); }

/* Papan antrian */
.board-now { display: grid; gap: 10px; margin-bottom: 16px; }
.board-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m);
  padding: 14px 16px;
}
.board-card.is-work { border-color: rgba(51,176,111,.4); }
.board-code { font-family: var(--font-disp); font-weight: 800; font-size: 24px; color: var(--text); min-width: 64px; }
.board-main { flex: 1; min-width: 0; }
.board-main strong { display: block; font-size: 13.5px; color: var(--text); }
.board-main span { font-size: 11.5px; color: var(--faint); }
.board-stage { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); padding: 5px 10px; border-radius: 99px; flex: none; }
.board-wait { margin-bottom: 16px; }
.board-wait .card { padding: 14px 16px; }
.bw-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.bw-row:last-child { border-bottom: 0; }
.bw-code { font-family: var(--font-disp); font-weight: 700; font-size: 18px; color: var(--text); min-width: 58px; }
.bw-main { flex: 1; font-size: 12.5px; color: var(--muted); }
.bw-main b { color: var(--text); }
.bw-time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------------- Detail lacak ---------------- */
.detail-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1B2430, #12171E); text-align: center; padding: 24px 18px 20px; }
.dh-code { font-family: var(--font-disp); font-weight: 800; font-size: 44px; color: var(--text); line-height: 1; }
.dh-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.dh-sub b { color: var(--text); }
.ring-wrap { position: relative; width: 148px; height: 148px; margin: 18px auto 6px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--raised); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--amber); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); filter: drop-shadow(0 0 8px rgba(255,179,36,.35)); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; }
.ring-center strong { font-family: var(--font-disp); font-weight: 800; font-size: 34px; color: var(--text); font-variant-numeric: tabular-nums; }
.ring-center em { font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.dh-eta { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dh-eta b { color: var(--green); }

.timeline { margin-top: 20px; position: relative; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-dot {
  flex: none; width: 40px; height: 40px; border-radius: 13px; z-index: 2;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--faint);
  display: grid; place-items: center; transition: all .3s var(--ease);
}
.tl-dot svg { width: 19px; height: 19px; }
.tl-item.is-done .tl-dot { background: var(--green-soft); border-color: transparent; color: var(--green); }
.tl-item.is-now .tl-dot { background: var(--amber); border-color: transparent; color: var(--amber-ink); animation: glow 2s infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,179,36,.35); } 50% { box-shadow: 0 0 0 9px rgba(255,179,36,0); } }
.tl-line { position: absolute; left: 20px; top: 40px; bottom: 4px; width: 2px; background: var(--raised); z-index: 1; }
.tl-item.is-done .tl-line { background: rgba(51,176,111,.5); }
.tl-main { flex: 1; padding-top: 3px; }
.tl-main strong { display: block; font-size: 14.5px; color: var(--faint); font-weight: 600; }
.tl-item.is-done strong, .tl-item.is-now strong { color: var(--text); }
.tl-item.is-now strong { color: var(--amber); }
.tl-main span { font-size: 12px; color: var(--faint); }
.tl-main .tl-time { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* ---------------- Riwayat ---------------- */
.hist-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 14px; margin-bottom: 10px;
}
.hi-date { flex: none; width: 46px; text-align: center; background: var(--raised); border-radius: 10px; padding: 7px 4px; }
.hi-date em { display: block; font-style: normal; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.hi-date strong { font-family: var(--font-disp); font-size: 20px; color: var(--text); }
.hi-main { flex: 1; min-width: 0; }
.hi-main strong { display: block; font-size: 13.5px; color: var(--text); }
.hi-main span { font-size: 11.5px; color: var(--faint); }
.hi-rate {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--amber);
  border: 1.5px solid rgba(255,179,36,.4); padding: 7px 12px; border-radius: 9px;
}
.hi-rate svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------------- Profil ---------------- */
.member-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(130deg, #20292F, #12181F 70%);
  border: 1px solid var(--line-hard); border-radius: var(--r-l);
  padding: 20px; position: relative; overflow: hidden;
}
.member-card::after {
  content: ""; position: absolute; top: -40%; right: -10%; width: 160px; height: 160px;
  border: 1.5px dashed rgba(255,179,36,.25); border-radius: 50%;
}
.mc-logo { width: 52px; height: 52px; color: var(--amber); flex: none; }
.mc-logo .wmlogo { width: 100%; height: 100%; }
.mc-info { flex: 1; min-width: 0; }
.mc-info em { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.mc-info strong { display: block; font-family: var(--font-disp); font-size: 21px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
.mc-points { text-align: right; }
.mc-points strong { display: block; font-family: var(--font-disp); font-weight: 800; font-size: 34px; color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums; }
.mc-points span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.member-note { font-size: 12px; color: var(--faint); margin: 10px 2px 22px; }

.set-group { display: grid; gap: 10px; }
.set-row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 14px 16px; transition: border-color .2s;
}
.set-row:active { border-color: var(--line-hard); }
.sr-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.07); color: var(--text); display: grid; place-items: center; }
.sr-ic svg { width: 18px; height: 18px; }
.sr-amber { background: var(--amber-soft); color: var(--amber); }
.sr-main { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.sr-main strong { display: block; font-size: 11.5px; font-weight: 500; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
svg.sr-arrow { width: 16px; height: 16px; color: var(--faint); }

.toggle {
  flex: none; width: 46px; height: 27px; border-radius: 99px;
  background: var(--raised); border: 1px solid var(--line-hard);
  position: relative; transition: background .2s;
}
.toggle i {
  position: absolute; top: 2.5px; left: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: #5A6470; transition: transform .22s var(--ease), background .2s;
}
.toggle.is-on { background: var(--amber); border-color: var(--amber); }
.toggle.is-on i { transform: translateX(20px); background: var(--amber-ink); }

.app-version { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 30px; letter-spacing: .06em; }

/* ---------------- Tab bar ---------------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(13,17,21,.92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; color: var(--faint);
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  transition: color .2s;
}
.tab svg { width: 21px; height: 21px; transition: transform .18s var(--ease); }
.tab.is-on { color: var(--amber); }
.tab.is-on svg { transform: translateY(-1px) scale(1.06); }
.tab:active svg { transform: scale(.88); }
.tab-center { position: relative; }
.tab-center-ic {
  width: 46px; height: 46px; margin-top: -26px; border-radius: 50%;
  background: linear-gradient(140deg, var(--amber), var(--amber-deep));
  color: var(--amber-ink); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(255,179,36,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .18s var(--ease);
}
.tab-center-ic svg { width: 22px; height: 22px; color: var(--amber-ink); }
.tab.is-on .tab-center-ic { transform: translateY(-2px); }
.tab-center span { color: var(--text); }
.tab.is-on span { color: var(--amber); }

/* ---------------- Sheet & backdrop ---------------- */
.sheet-backdrop {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(5,7,9,.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.sheet-backdrop.is-on { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--raised); border: 1px solid var(--line-hard); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  max-height: 86%;
  transform: translateY(105%);
  transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
}
.sheet.is-on { transform: translateY(0); }
.sheet-grip { flex: none; width: 44px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.22); margin: 10px auto 0; }
.sheet-body { padding: 16px 20px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-title { font-family: var(--font-disp); font-weight: 700; font-size: 21px; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
.sheet-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0 16px; }

/* Sheet layanan */
.ssh-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.ssh-ic { flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; }
.ssh-ic svg { width: 25px; height: 25px; }
.ssh-head strong { display: block; font-size: 19px; color: var(--text); }
.ssh-head p { font-size: 12px; color: var(--faint); margin-top: 2px; }
.ssh-price { font-family: var(--font-disp); font-weight: 800; font-size: 34px; color: var(--amber); }
.ssh-price span { font-size: 13px; color: var(--faint); font-family: var(--font-body); font-weight: 500; }
.ssh-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.ssh-list { margin-bottom: 18px; }
.ssh-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 13px; color: var(--muted); }
.ssh-list li svg { flex: none; width: 16px; height: 16px; color: var(--green); margin-top: 2px; }

/* Rate & notif */
.rate-row { display: flex; justify-content: center; gap: 10px; margin: 6px 0 18px; }
.rate { color: var(--faint); transition: transform .15s var(--ease), color .15s; }
.rate svg { width: 34px; height: 34px; }
.rate.is-on { color: var(--amber); }
.rate.is-on svg { fill: currentColor; transform: scale(1.12); }

.notif-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.notif-list time { flex: none; font-size: 11px; color: var(--faint); padding-top: 2px; font-variant-numeric: tabular-nums; }
.notif-list p { font-size: 13px; color: var(--text); }

/* ---------------- Toast ---------------- */
.toast {
  position: absolute; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 20px);
  background: #F1F4F8; color: #14181D;
  font-size: 13px; font-weight: 600;
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: 82%; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Admin ---------------- */
.adm-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 10px; }
.adm-code { font-family: var(--font-disp); font-weight: 800; font-size: 20px; color: var(--text); min-width: 56px; }
.adm-main { flex: 1; min-width: 0; }
.adm-main strong { display: block; font-size: 13px; color: var(--text); }
.adm-main span { font-size: 11px; color: var(--faint); }
.adm-stage { text-align: right; }
.adm-stage em { display: block; font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); font-weight: 800; margin-bottom: 4px; }
.adm-btns { display: flex; gap: 6px; }
.adm-btns button {
  width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line-hard);
  display: grid; place-items: center; color: var(--text); transition: all .15s;
}
.adm-btns button:active { transform: scale(.9); border-color: var(--amber); color: var(--amber); }
.adm-btns svg { width: 15px; height: 15px; }
.adm-openbar { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; margin-bottom: 16px; }
.adm-openbar .sr-main { flex: 1; }
.adm-openbar strong { display: block; font-size: 14px; color: var(--text); }
.adm-openbar span { font-size: 11.5px; color: var(--faint); }

/* kunci body scroll ketika sheet terbuka */
body.locked .screen { overflow: hidden; }
