/* GriyaPro - aplikasi mobile (pelanggan & mitra). Motif: gambar kerja (blueprint) + oranye keselamatan. */
:root { --star: #e8a200; --tab-h: 66px; }

/* ---------------------------------------------------------------- kerangka */
#shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
#phone { position: relative; width: 100%; max-width: 480px; margin: 0 auto; min-height: 100dvh; min-width: 0; background: var(--bg); }
#side { display: none; }
@media (min-width: 1000px) {
  #shell { grid-template-columns: minmax(0, 1fr) 480px minmax(0, 1fr); background: #15173f; }
  #phone { grid-column: 2; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.45); }
  #side { display: block; grid-column: 1; grid-row: 1; position: sticky; top: 0; height: 100dvh; color: #dbe6ff;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.07), transparent 40%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 36px 36px, #15173f; }
  .side-inner { max-width: 420px; margin-left: auto; padding: 64px 48px; display: flex; flex-direction: column; gap: 22px; height: 100%; justify-content: center; }
  .side-logo { display: flex; align-items: center; gap: 10px; font: 700 22px var(--font-display); color: #fff; }
  #side h2 { font-size: 34px; line-height: 1.12; color: #fff; font-weight: 800; }
  #side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
  #side li { padding-left: 26px; position: relative; font-size: 15.5px; }
  #side li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
  .side-hint { font-size: 13.5px; opacity: .7; line-height: 1.5; }
  .side-admin { align-self: flex-start; color: #fff; border: 1.5px solid rgba(255,255,255,.3); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; }
  .side-admin:hover { background: rgba(255,255,255,.1); }
}

.page { padding: 16px 16px 28px; }
body.has-tabs .page { padding-bottom: calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
body.has-sticky .page { padding-bottom: 120px; }
.stack { display: grid; gap: 10px; }
.stack.tight { gap: 8px; }
.card.pad { padding: 16px; }
.card.list-card { overflow: hidden; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.appbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 8px 0 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.appbar h1 { flex: 1; font-size: 18px; font-weight: 700; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar h1:first-child { margin-left: 8px; }
.appbar-actions { display: flex; }
.dot { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 10.5px/18px var(--font); font-style: normal; text-align: center; border: 2px solid var(--surface); box-sizing: content-box; }
.dot[hidden] { display: none; }

#tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); z-index: 50; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(18, 20, 58,.25); }
#tabbar[hidden] { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; position: relative; transition: color .15s; }
.tab.on { color: var(--brand); }
.tab.on::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }

.sticky-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(18, 20, 58,.35); }
.sticky-total { display: grid; line-height: 1.15; min-width: 96px; }
.sticky-total small { color: var(--muted); font-size: 12px; }
.sticky-total b { font: 800 18px var(--font-display); }

/* ----------------------------------------------------------------- beranda */
.home { padding: 0 0 28px; }
body.has-tabs .home { padding-bottom: calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
.home > .block, .home > .banners, .home > .site-foot { margin-left: 16px; margin-right: 16px; }
.hero { position: relative; padding: calc(14px + env(safe-area-inset-top)) 18px 30px; color: #fff; border-radius: 0 0 28px 28px; overflow: hidden;
  background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(165deg, var(--brand-900) 0%, var(--brand) 100%); }
.hero::after { content: ''; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(242,106,27,.55), transparent 65%); pointer-events: none; }
.hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font: 800 19px var(--font-display); letter-spacing: -.01em; }
.hero .icon-btn { color: #fff; } .hero .dot { border-color: var(--brand-700); }
.hero-actions { display: flex; }
.hero h1 { font-size: 27px; line-height: 1.15; font-weight: 800; position: relative; z-index: 1; }
.searchbar { position: relative; z-index: 1; margin-top: 18px; display: flex; align-items: center; gap: 10px; background: #fff; color: #6b7a92; padding: 0 16px; min-height: 52px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); font-size: 14.5px; }
.searchbar .ic { color: var(--brand); }
.hero.mitra { padding-bottom: 22px; }

.block { margin-top: 24px; }
.block.flat { margin-top: 20px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block h2 { font-size: 18px; font-weight: 700; }
.block-head a, .link-btn { font-size: 13.5px; font-weight: 650; color: var(--brand); background: none; border: 0; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; background: var(--accent); color: #fff; border-radius: 11px; font: 700 12px/20px var(--font); text-align: center; vertical-align: 2px; }

.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 18px !important; padding-bottom: 4px; scrollbar-width: none; margin-inline: 0 !important; padding-inline: 16px; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 86%; scroll-snap-align: center; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 128px; padding: 18px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, var(--from), var(--to)); position: relative; overflow: hidden; box-shadow: 0 14px 28px -16px var(--from); }
.banner::before { content: ''; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); }
.banner-ic { order: 2; opacity: .92; z-index: 1; }
.banner-text { display: grid; gap: 5px; z-index: 1; }
.banner-text b { font: 700 18px/1.2 var(--font-display); }
.banner-text span { font-size: 13px; opacity: .92; line-height: 1.35; }
.banner-text i { font-style: normal; justify-self: start; margin-top: 4px; background: #fff; color: #12143a; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.cat-ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); transition: transform .15s; }
.cat:active .cat-ic { transform: scale(.94); }

.survey-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--accent-50); border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); color: var(--ink); }
.survey-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.survey-text { display: grid; gap: 4px; flex: 1; }
.survey-text b { font: 700 16px/1.25 var(--font-display); }
.survey-text span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.survey-card > .ic { color: var(--accent-700); }

.svc { display: flex; align-items: center; gap: 13px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .1s; }
.svc:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.svc:active { transform: scale(.995); }
.svc-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.svc-ic.sm { width: 42px; height: 42px; border-radius: 13px; }
.svc-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.svc-name { font-weight: 650; font-size: 15px; line-height: 1.25; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.svc-price { font-size: 13px; color: var(--muted); }
.svc-price b { font: 800 15.5px var(--font-display); color: var(--brand); }
.svc-price small { font-size: 12px; }
.chev { color: var(--muted); }
.rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); font-size: 13px; }
.rate .ic { color: var(--star); } .rate small { font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 12px; }
.stars { display: inline-flex; gap: 1px; } .stars span { color: var(--line); display: inline-flex; } .stars span.on { color: var(--star); }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--brand-900); color: #fff; border-radius: 20px; padding: 18px 8px; text-align: center; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; }
.trust > div { display: grid; gap: 2px; } .trust > div + div { border-left: 1px solid rgba(255,255,255,.15); }
.trust b { font: 800 24px var(--font-display); } .trust span { font-size: 11.5px; opacity: .8; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mitra-card { flex: 0 0 148px; scroll-snap-align: start; display: grid; gap: 6px; justify-items: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.mitra-card b { font-size: 14.5px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; } .avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.guarantee ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.guarantee li { display: flex; gap: 12px; } .guarantee li > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.guarantee b { display: block; } .guarantee p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.site-foot { margin-top: 26px; text-align: center; display: grid; gap: 6px; font-size: 13.5px; }

/* ---------------------------------------------------------------- kategori */
.cat-banner { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; margin-bottom: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.cat-banner p { color: var(--ink-2); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; align-items: center; }
.chips::-webkit-scrollbar { display: none; } .chips.wrap { flex-wrap: wrap; overflow: visible; } .chips.scroll { margin-top: 12px; padding-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; transition: .15s; }
.chip:hover:not(:disabled) { border-color: var(--muted); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chip.on-hero { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); min-height: 30px; font-size: 12.5px; }
.chips-sep { width: 1px; height: 20px; background: var(--line); flex: none; margin: 0 2px; }
.search-top { position: sticky; top: 0; margin: -16px -16px 12px; padding: 12px 16px; background: var(--bg); z-index: 5; }
.search-top .input { border-radius: 14px; min-height: 50px; }

/* ----------------------------------------------------------------- detail */
.detail { padding-top: 0; }
.detail-hero { margin: 0 -16px; height: 150px; display: grid; place-items: center; position: relative; color: #fff; background: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #12143a)); }
.detail-hero > span { width: 76px; height: 76px; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: 24px; backdrop-filter: blur(6px); }
.detail-hero .chip { position: absolute; left: 16px; bottom: 14px; }
.detail-title { font-size: 24px; font-weight: 800; margin-top: 18px; }
.detail-meta { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.price-box { margin-top: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 3px; }
.price-box small { color: var(--muted); font-size: 12.5px; }
.price-box b { font: 800 28px var(--font-display); color: var(--brand); letter-spacing: -.02em; } .price-box b em { font: 500 15px var(--font); color: var(--muted); }
.price-box span { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.facts > div { display: flex; gap: 8px; align-items: center; padding: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--brand); }
.facts span { display: grid; font-size: 11.5px; color: var(--muted); line-height: 1.25; } .facts b { color: var(--ink); font-size: 13px; }
.prose { line-height: 1.6; color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; } .checklist .ic { color: var(--ok); margin-top: 1px; }
.review { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 6px; font-size: 14px; }
.review-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .review-top span.muted { margin-left: auto; }

.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.stepper button:active { transform: scale(.92); }
.stepper output { min-width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- keranjang */
.cart-line { display: flex; gap: 12px; align-items: center; padding: 14px; } .cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line .grow { display: grid; gap: 3px; } .cart-line b { font-size: 14.5px; line-height: 1.3; }
.cart-line-r { display: grid; justify-items: end; gap: 8px; } .line-sub { font-weight: 700; font-size: 14px; }
.add-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--brand); font-weight: 650; font-size: 14px; }
.voucher-form { display: flex; gap: 8px; margin-top: 10px; } .voucher-form .input-icon { flex: 1; } .voucher-form .input { text-transform: uppercase; }
.ok-note { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ok); } .ok-note a { margin-left: auto; color: var(--bad); font-weight: 600; }
.bad-note { color: var(--bad); }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14px; } .sum-row span { color: var(--ink-2); } .sum-row b { font-variant-numeric: tabular-nums; text-align: right; }
.sum-row.disc b, .sum-row.disc span { color: var(--ok); }
.sum-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 16px; } .sum-row.total span { color: var(--ink); font-weight: 700; } .sum-row.total b { font: 800 19px var(--font-display); color: var(--brand); }
.small-empty { padding: 18px 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }

/* ----------------------------------------------------------------- checkout */
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 44px 13px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: .15s; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt::after { content: ''; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--line); border-radius: 50%; transition: .15s; }
.opt.on { border-color: var(--brand); background: var(--brand-50); }
.opt.on::after { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 45%, transparent 50%); }
.opt:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.opt-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.opt-body { display: grid; gap: 2px; font-size: 13px; color: var(--muted); } .opt-body b { color: var(--ink); font-size: 14.5px; } .opt-body b small { font-weight: 500; color: var(--muted); font-size: 12.5px; display: block; margin-top: 1px; }
.days { margin-top: 10px; }
.day { flex: 0 0 62px; display: grid; justify-items: center; gap: 1px; padding: 10px 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; scroll-snap-align: start; }
.day small { font-size: 11.5px; color: var(--muted); } .day b { font: 800 20px var(--font-display); }
.day.on { background: var(--brand); border-color: var(--brand); color: #fff; } .day.on small { color: rgba(255,255,255,.8); }
.day:disabled { opacity: .35; cursor: not-allowed; }
.sub-h { font: 650 13.5px var(--font); margin: 14px 0 8px; color: var(--ink-2); }
.bank-box { display: grid; gap: 4px; margin-top: 12px; padding: 14px; background: var(--brand-50); border-radius: 14px; font-size: 13.5px; } .bank-box b { font: 800 18px var(--font-display); color: var(--brand); } .bank-box small { color: var(--muted); }
.sandbox-note { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--warn-50); color: var(--warn); border-radius: 12px; font-size: 13px; font-weight: 550; }

/* ------------------------------------------------------------------ pesanan */
.tabs { display: flex; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 9px 0; border-radius: 11px; font-weight: 650; font-size: 14px; color: var(--muted); }
.tabs a.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.order-card { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: var(--shadow-sm); align-items: flex-start; }
.order-card .grow { display: grid; gap: 5px; min-width: 0; }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .oc-top b { font-size: 15px; }
.oc-sum { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; } .oc-foot > span { display: inline-flex; align-items: center; gap: 5px; } .oc-foot b { color: var(--ink); font-size: 14px; }
.oc-alert { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--warn); } .oc-alert.ok { color: var(--ok); }

.status-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; color: var(--ink); background: var(--info-50); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); }
.status-card .grow { display: grid; gap: 3px; } .status-card small { color: var(--muted); font-size: 12px; } .status-card b { font: 800 19px var(--font-display); } .status-card span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.status-card.s-pending { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.status-card.s-in_progress { background: var(--accent-50); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.status-card.s-completed { background: var(--ok-50); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.status-card.s-cancelled { background: var(--bad-50); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.pay-cta { margin-top: 12px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent); } }
.timeline { list-style: none; margin: 18px 4px 26px; padding: 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--ok); }
.timeline .dot { position: static; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; padding: 0; min-width: 0; box-sizing: border-box; font: inherit; }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); }
.timeline li.now .dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.timeline li > div { display: grid; gap: 1px; padding-top: 1px; } .timeline li:not(.done):not(.now) b { color: var(--muted); font-weight: 550; } .timeline small { color: var(--muted); font-size: 12px; }
.mitra-box { display: flex; align-items: center; gap: 12px; margin-top: 16px; } .mitra-box .grow { display: grid; gap: 2px; }
.icon-btn.solid { background: var(--ok); color: #fff; width: 46px; height: 46px; } .icon-btn.solid:hover { background: var(--ok); filter: brightness(1.1); }
.info-list { display: grid; gap: 14px; } .info-list > div { display: flex; gap: 12px; align-items: flex-start; } .info-list > div > .ic { color: var(--brand); margin-top: 2px; }
.info-list span { display: grid; gap: 2px; font-size: 14px; } .info-list small { color: var(--muted); font-size: 13px; line-height: 1.4; } .info-list a { font-weight: 650; font-size: 13px; }
.earn-box { margin-top: 12px; padding: 14px 16px; background: var(--ok-50); border-radius: 16px; display: grid; gap: 2px; } .earn-box small { color: var(--muted); } .earn-box b { font: 800 24px var(--font-display); color: var(--ok); } .earn-box span { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.star-input { display: flex; gap: 6px; justify-content: center; } .star-input button { background: none; border: 0; color: var(--line); padding: 2px; transition: transform .1s, color .1s; } .star-input button.on { color: var(--star); } .star-input button:active { transform: scale(.9); }
.quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); } .quote-line div { display: grid; gap: 2px; } .quote-line b { font-size: 14px; } .quote-line small { font-size: 12.5px; }
.info-banner { display: flex; gap: 10px; padding: 13px 14px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); font-size: 13.5px; line-height: 1.45; margin-bottom: 16px; } .info-banner.warn { background: var(--warn-50); color: var(--warn); } .info-banner .ic { margin-top: 1px; }

/* -------------------------------------------------------------- promo & akun */
.voucher { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.v-main { display: flex; gap: 12px; padding: 14px; } .v-main > div { display: grid; gap: 3px; } .v-main span { font-size: 13px; color: var(--ink-2); } .v-main small { color: var(--muted); font-size: 12px; }
.v-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-50); color: var(--accent-700); display: grid; place-items: center; flex: none; }
.v-code { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--surface-2); border-top: 2px dashed var(--line); }
.v-code code { font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--brand); }
.profile-card { display: flex; gap: 14px; align-items: center; padding: 18px; margin-bottom: 14px; border-radius: 20px; color: #fff; background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(150deg, var(--brand-900), var(--brand)); }
.profile-card > div { display: grid; gap: 2px; font-size: 13.5px; opacity: .95; min-width: 0; } .profile-card b { font: 800 19px var(--font-display); } .profile-card .avatar { border: 3px solid rgba(255,255,255,.35); }
.menu { margin-bottom: 14px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ink); } .menu-row + .menu-row { border-top: 1px solid var(--line); } .menu-row:active { background: var(--surface-2); }
.menu-row .grow { display: grid; gap: 1px; } .menu-row b { font-size: 14.5px; font-weight: 600; } .menu-row small { color: var(--muted); font-size: 12.5px; }
.m-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.guest-card { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 36px 8px; } .guest-card h2 { font-size: 22px; margin-top: 6px; } .guest-card p { margin-bottom: 10px; }
.link-center { color: var(--brand); font-weight: 650; font-size: 14px; margin-top: 4px; }
.addr p { margin-top: 4px; font-size: 14px; } .addr-top { display: flex; justify-content: space-between; align-items: center; }
.notif { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); } .notif .grow { display: grid; gap: 3px; } .notif span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; } .notif small { color: var(--muted); font-size: 12px; }
.n-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; } .notif.unread { background: var(--brand-50); border-color: color-mix(in srgb, var(--brand) 20%, transparent); } .notif.unread .n-dot { background: var(--accent); }

/* ------------------------------------------------------------------- masuk */
.auth { padding: 0 0 32px; }
.auth-hero { padding: calc(28px + env(safe-area-inset-top)) 22px 64px; color: #fff; border-radius: 0 0 30px 30px; display: grid; gap: 8px; background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(165deg, var(--brand-900), var(--brand)); }
.auth-hero .brand { margin-bottom: 20px; } .auth-hero h1 { font-size: 28px; font-weight: 800; } .auth-hero p { opacity: .85; font-size: 14.5px; line-height: 1.45; max-width: 320px; }
.auth-card { margin: -34px 16px 0; padding: 20px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); } .auth-alt a { font-weight: 700; }
.demo-box { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; font-size: 13px; flex-wrap: wrap; } .demo-box .chip { min-height: 30px; font-size: 12.5px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; } .chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--surface); transition: .15s; }
.chip-check input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.chip-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* -------------------------------------------------------------------- mitra */
.online-toggle { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; cursor: pointer; backdrop-filter: blur(8px); }
.online-toggle span { display: grid; } .online-toggle small { opacity: .85; font-size: 12.5px; }
.online-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.3); transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.online-toggle input:checked ~ .switch { background: #2ecf8f; } .online-toggle input:checked ~ .switch::after { transform: translateX(22px); }
.online-toggle input:focus-visible ~ .switch { outline: 3px solid #fff; outline-offset: 2px; }
.kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; } .kpis.two { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.kpis > div { display: grid; gap: 4px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; align-content: start; } .kpis small { font-size: 12px; color: var(--muted); line-height: 1.25; } .kpis b { font: 800 17px var(--font-display); } .kpis b em { display: block; font: 500 11.5px var(--font); color: var(--muted); }
.earn-hero { display: grid; gap: 4px; padding: 20px; border-radius: 20px; color: #fff; background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(150deg, #0b6b45, #129d68); }
.earn-hero small { opacity: .85; } .earn-hero b { font: 800 32px var(--font-display); letter-spacing: -.02em; } .earn-hero span { font-size: 13.5px; opacity: .92; } .earn-hero em { font-style: normal; font-weight: 700; } .earn-hero em.down { color: #ffd0c8; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 170px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; justify-items: center; align-items: end; }
.bar-col i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), var(--brand-700)); align-self: end; }
.bar-col:last-child i { background: linear-gradient(180deg, var(--accent), var(--accent-700)); }
.bar-val { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; } .bar-lbl { font-size: 12px; color: var(--ink-2); font-weight: 600; }

/* ---- foto pekerjaan ---- */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-cell { position: relative; }
.photo-thumb { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-kind { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(18, 20, 58, .72); backdrop-filter: blur(4px); }
.photo-kind.k-after { background: rgba(22, 128, 78, .88); }
.photo-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(18, 20, 58, .72); cursor: pointer; }
.photo-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.photo-add label { cursor: pointer; }
.photo-add label.is-busy { opacity: .55; pointer-events: none; }
.lightbox { display: block; width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 12px; background: var(--surface-2); }

/* ---- peta pelacakan ---- */
.track-card { padding: 0 0 14px; overflow: hidden; }
.track-card > :not(.map) { margin-left: 16px; margin-right: 16px; }
.map { position: relative; width: 100%; overflow: hidden; background: #e8eaf6; touch-action: none; }
.map.blueprint { background-color: #e9ebf7; background-image: linear-gradient(#d3d6ee 1px, transparent 1px), linear-gradient(90deg, #d3d6ee 1px, transparent 1px); background-size: 28px 28px; }
.map .tile { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.map .route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map .route line { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; opacity: .85; }
.pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(18, 20, 58, .35); }
.pin-dest { background: var(--brand); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 22px; height: 22px; margin: -22px 0 0 -11px; }
.pin-mitra { background: var(--accent); }
.pin-mitra::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pin-pulse 2.2s ease-out infinite; }
@keyframes pin-pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.pin-label { position: absolute; transform: translate(-50%, 8px); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(18, 20, 58, .25); }
.pin-label-dest { transform: translate(-50%, 6px); }
.pin-label-mitra { transform: translate(-50%, 14px); }
.map-credit { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: #444; background: rgba(255, 255, 255, .8); padding: 0 5px; border-radius: 4px; }
.empty-map { display: grid; place-items: center; color: var(--muted); font-weight: 600; text-align: center; padding: 20px; }
.empty-map span { display: grid; gap: 8px; justify-items: center; }
.track-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.track-info b { display: block; font-size: 18px; font-family: var(--font-display); }
.track-info small { color: var(--muted); }
.track-age { margin: 8px 16px 0; font-size: 12px; color: var(--muted); }
.track-age.is-stale { color: var(--bad); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .pin-mitra::after { animation: none; } }

/* ---- berbagi lokasi (mitra) ---- */
.share-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.share-box small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.share-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.share-box.on { border-color: var(--ok); background: var(--ok-50); }
.share-box.on .share-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 128, 78, .2); }
.track-note { margin-top: 6px; margin-bottom: 0; }

/* ---- perbaikan mobile ---- */
.stack { grid-template-columns: minmax(0, 1fr); }
/* area sentuh tautan teks minimal ~44px tanpa mengubah tata letak */
.page a:not([class]), .block-head a, .auth-alt a, .site-foot a { position: relative; }
.page a:not([class])::after, .block-head a::after, .auth-alt a::after, .site-foot a::after { content: ''; position: absolute; inset: -14px -10px; }
.tab { min-width: 0; padding: 0 2px; font-size: 11px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 340px) { .tab { font-size: 10.5px; } .hero h1, .hero h2 { font-size: 24px; } }
.bar-val, .map-credit { font-size: 11px; }
.brand { position: relative; } .brand::after { content: ""; position: absolute; inset: -6px; }
/* ---- layar sempit (320px) ---- */
.hero-top { gap: 10px; } .brand { min-width: 0; white-space: nowrap; }
.kpis { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); } .kpis.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.kpis b { white-space: nowrap; font-size: clamp(15px, 5.2vw, 20px); }
.block-head { flex-wrap: wrap; gap: 4px 12px; }
.oc-top { flex-wrap: wrap; } .oc-top b { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .brand { font-size: 17px; } .kpis > div { padding: 11px; } }

/* ===== Pemilih lokasi Google Maps ===== */
.btn-quiet { background: transparent; color: var(--muted); padding: 0; width: 40px; min-width: 40px; }
.locfield { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-2, #c9cbe6); border-radius: 14px; background: var(--surface-2, #f6f7fd); }
.locfield.has { border-style: solid; border-color: #bfe3cf; background: #f1faf5; }
.locfield-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(18, 20, 58, .12); }
.locfield b { display: block; font-size: 14px; }
.locfield small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.locfield .btn { flex: none; min-height: 40px; padding: 0 14px; }
.geo-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.gp { display: grid; gap: 12px; padding-top: 4px; }
.gp-search { position: relative; }
.gp-search .input { padding-left: 42px; }
.gp-ic { position: absolute; left: 14px; top: 13px; color: var(--muted); z-index: 1; display: flex; }
.gp-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line, #e3e5f3); }
.gp-sugg button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line, #eceef8); }
.gp-sugg button:last-child { border-bottom: 0; }
.gp-sugg button svg { flex: none; margin-top: 2px; color: var(--brand); }
.gp-map { position: relative; height: min(46dvh, 360px); min-height: 240px; border-radius: 16px; overflow: hidden; background: #e8eaf6; }
.gp-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.gp-me { justify-self: start; min-height: 42px; }
.gp-info { display: grid; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; min-height: 38px; }
.gp-info b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.layer-geo .layer-panel { max-height: 96dvh; }

/* ===== OTP pendaftaran ===== */
.otp-row { display: flex; gap: 10px; align-items: stretch; }
.otp-row .input { flex: 1; min-width: 0; letter-spacing: .35em; font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; }
.otp-row .btn { flex: none; min-height: 48px; padding: 0 14px; white-space: nowrap; }
.otp-row .input::placeholder { letter-spacing: 0; font-weight: 500; }
