:root {
  --green: #1f3a33;
  --green-2: #2b4c43;
  --green-soft: #dfe8e2;
  --leaf: #2f8a57;
  --cream: #f3efe6;
  --cream-2: #faf8f3;
  --yellow: #f2d13d;
  --yellow-soft: #fbf0b8;
  --ink: #1b2421;
  --muted: #6c7570;
  --line: #e4ded1;
  --red: #c4472f;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(31, 58, 51, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: 'Archivo Black', 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #e7e2d6;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.ic { flex: none; }

.shell {
  max-width: 480px;
  min-height: 100vh; min-height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  padding-bottom: calc(84px + var(--safe-b));
  box-shadow: 0 0 60px rgba(0, 0, 0, .08);
  overflow-x: hidden;
}
.shell.has-cart { padding-bottom: calc(160px + var(--safe-b)); }
.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: var(--green); }
.splash img { width: 120px; animation: pop 1s ease infinite alternate; }
@keyframes pop { from { transform: scale(.94); } to { transform: scale(1.02); } }

/* ---------- Header ---------- */
.hero {
  background: var(--green);
  color: #fff;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 26px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-conic-gradient(#fff 0 25%, var(--green) 0 50%) 0 0 / 10px 10px;
  opacity: .9;
}
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-logo { width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.hero h1 { margin: 0; font-size: 19px; font-weight: 700; }
.hero p { margin: 2px 0 0; color: rgba(255,255,255,.75); font-size: 14px; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  color: #fff; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.pill .ic { width: 15px; height: 15px; color: var(--yellow); }
.pill.open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6bd58f; }
.pill.closed::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #e8826d; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.topbar h2 { margin: 0; font-size: 17px; font-weight: 800; flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--green);
}

/* Pilihan bahasa ID / EN */
.lang-toggle { display: inline-flex; flex: none; border-radius: 999px; padding: 3px; background: var(--green-soft); }
.lang-toggle button { border: 0; background: none; padding: 5px 9px; border-radius: 999px; font-weight: 800; font-size: 12px; color: var(--green); }
.lang-toggle button.on { background: var(--green); color: var(--yellow); }
.lang-toggle.dark { background: rgba(255,255,255,.12); }
.lang-toggle.dark button { color: rgba(255,255,255,.8); }
.lang-toggle.dark button.on { background: var(--yellow); color: var(--green); }

/* ---------- Konten ---------- */
.pad { padding: 18px 16px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.section-title h3 { margin: 0; font-size: 16px; font-weight: 800; }
.section-title small { color: var(--muted); font-size: 12.5px; }

.promo {
  margin: -14px 16px 0; position: relative; z-index: 2;
  background: var(--yellow); color: var(--green);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  font-weight: 800; font-size: 14.5px;
}
.promo .ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: rgba(31,58,51,.12); }
.promo small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }

.inapp { margin: 12px 16px 0; display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 14px; padding: 12px; font-size: 13px; color: var(--green); }
.inapp > div { flex: 1; }
.inapp small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.inapp .icon-btn { width: 30px; height: 30px; flex: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.step { background: #fff; border-radius: 14px; padding: 12px 10px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.step b .ic { width: 18px; height: 18px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; scroll-snap-align: start;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
}
.chip .ic { width: 17px; height: 17px; color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.on .ic { color: var(--yellow); }

.svc-list { display: grid; gap: 10px; }
.svc {
  background: #fff; border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center;
  border: 1.5px solid transparent; box-shadow: 0 1px 0 var(--line); transition: border-color .15s, transform .15s;
}
.svc.in { border-color: var(--green); background: var(--cream-2); }
.svc-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.svc-ic .ic { width: 24px; height: 24px; }
.svc-body { flex: 1; min-width: 0; }
.svc-name { font-weight: 700; font-size: 15px; }
.svc-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.svc-price { font-weight: 800; color: var(--green); margin-top: 4px; font-size: 14px; }
.svc-price small { font-weight: 600; color: var(--muted); font-size: 11.5px; }

.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button {
  width: 34px; height: 34px; border-radius: 11px; border: 0; display: grid; place-items: center;
  background: var(--green); color: var(--yellow);
}
.stepper button.ghost { background: var(--green-soft); color: var(--green); }
.stepper span { min-width: 20px; text-align: center; font-weight: 800; }
.add-btn { border: 0; background: var(--green); color: var(--yellow); border-radius: 12px; padding: 9px 14px; font-weight: 800; font-size: 13.5px; display: inline-flex; gap: 4px; align-items: center; }
.add-btn .ic { width: 16px; height: 16px; }

.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--safe-b));
  width: min(456px, calc(100% - 24px)); z-index: 30;
  background: var(--green); color: #fff; border-radius: 18px; padding: 12px 12px 12px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(31,58,51,.35);
  animation: rise .25s ease;
}
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }
.cartbar .info { flex: 1; line-height: 1.25; }
.cartbar .info small { color: rgba(255,255,255,.7); font-size: 12px; }
.cartbar .info b { display: block; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 800; font-size: 15px;
  background: var(--green); color: var(--yellow); text-decoration: none; width: 100%;
}
.btn.yellow { background: var(--yellow); color: var(--green); width: auto; padding: 12px 16px; }
.btn.outline { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn.soft { background: var(--green-soft); color: var(--green); }
.btn.wa { background: #25d366; color: #fff; }
.btn:disabled { opacity: .5; }
.btn .ic { width: 19px; height: 19px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* ---------- Form ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 0 var(--line); margin-bottom: 12px; }
.card h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card h4 .num { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--yellow); display: grid; place-items: center; font-size: 12px; }
.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--green); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; background: var(--cream-2);
  outline: none; font-size: 16px; transition: border-color .15s;
}
.input:focus { border-color: var(--green); background: #fff; }
textarea.input { resize: vertical; min-height: 70px; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button {
  border: 1.5px solid var(--line); background: var(--cream-2); border-radius: 14px; padding: 12px; text-align: left;
  display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px;
}
.seg button small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.seg button .ic { color: var(--green); }
.seg button.on { border-color: var(--green); background: var(--green); color: #fff; }
.seg button.on small { color: rgba(255,255,255,.75); }
.seg button.on .ic { color: var(--yellow); }

.dates { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: none; width: 58px; border: 1.5px solid var(--line); background: var(--cream-2); border-radius: 14px; padding: 8px 0; text-align: center;
}
.date small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.date b { display: block; font-size: 19px; }
.date.on { background: var(--green); border-color: var(--green); color: #fff; }
.date.on small { color: var(--yellow); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.slot { border: 1.5px solid var(--green); background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; color: var(--green); }
.slot.on { background: var(--green); color: var(--yellow); }
.slot:disabled { border-color: var(--line); color: var(--muted); text-decoration: line-through; }

.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; background: var(--cream-2); text-align: left; }
.pay-opt .ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--green-soft); color: var(--green); }
.pay-opt div { flex: 1; font-weight: 700; }
.pay-opt small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.pay-opt.on { border-color: var(--green); background: #fff; }
.pay-opt.on .radio { border: 6px solid var(--green); }

.line-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.line-item:last-child { border-bottom: 0; }
.line-item .name { flex: 1; font-weight: 600; }
.line-item .name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.line-item .price { font-weight: 800; white-space: nowrap; }
.line-item input { margin-top: 6px; font-size: 14px; padding: 8px 10px; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 14px; }
.sum-row b { color: var(--ink); }
.sum-row.total { border-top: 2px solid var(--green); margin-top: 8px; padding-top: 12px; color: var(--green); font-size: 17px; font-weight: 800; }
.sum-row.total b { color: var(--green); }
.free { color: var(--leaf); font-weight: 800; }
.note-box { background: var(--yellow-soft); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #5a4b07; margin-top: 10px; display: flex; gap: 8px; }
.note-box .ic { width: 18px; height: 18px; color: #8a7000; }
.err { color: var(--red); font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.ok-text { color: var(--leaf); font-size: 12.5px; margin-top: 4px; font-weight: 700; }

.sticky-cta {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: min(480px, 100%); padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(243,239,230,.96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
}
.sticky-cta .tot { flex: none; line-height: 1.2; }
.sticky-cta .tot small { color: var(--muted); font-size: 12px; }
.sticky-cta .tot b { display: block; font-size: 17px; color: var(--green); }
.sticky-cta .btn { flex: 1; }

/* ---------- Tracking ---------- */
.order-hero { background: var(--green); color: #fff; padding: 20px 18px 22px; border-radius: 0 0 26px 26px; }
.order-hero .code { font-family: var(--display); font-size: 26px; letter-spacing: .5px; }
.order-hero .status-now { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; background: var(--yellow); color: var(--green); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.order-hero .status-now.batal { background: #f4c6bb; color: #7a1f0d; }
.order-hero .eta { margin-top: 12px; display: flex; gap: 16px; font-size: 13px; color: rgba(255,255,255,.8); flex-wrap: wrap; }
.order-hero .eta b { color: #fff; display: block; font-size: 14px; }
.progress { height: 8px; background: rgba(255,255,255,.15); border-radius: 99px; margin-top: 16px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; transition: width .6s ease; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--leaf); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.timeline .dot .ic { width: 16px; height: 16px; }
.timeline li.done .dot { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.timeline li.now .dot { background: var(--yellow); border-color: #c9a514; color: var(--green); box-shadow: 0 0 0 6px rgba(242,209,61,.25); }
.timeline .t { padding-top: 5px; }
.timeline .t b { display: block; font-size: 14.5px; }
.timeline li.todo .t b { color: var(--muted); font-weight: 600; }
.timeline .t small { color: var(--muted); font-size: 12px; }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-col h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.photo-col .ph { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--cream); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 6px; margin-bottom: 6px; }
.photo-col.before .ph { background: #e5dccb; }
.photo-col.after .ph { background: #e1ebe5; }
.photo-col img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.qris-box { text-align: center; }
.qris-box img { width: 220px; margin: 6px auto 10px; border-radius: 12px; border: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.lunas { background: #d7efdf; color: #1d6b3f; }
.badge.belum { background: #f8dcd4; color: #8a2a14; }
.badge.menunggu_verifikasi { background: var(--yellow-soft); color: #6b5800; }

.stars { display: flex; gap: 6px; justify-content: center; margin: 6px 0 12px; }
.stars button { border: 0; background: none; color: #d6cfbf; padding: 2px; }
.stars button.on { color: #e7b416; }
.stars .ic { width: 34px; height: 34px; fill: currentColor; }

/* ---------- Daftar pesanan ---------- */
.order-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 10px; text-decoration: none; box-shadow: 0 1px 0 var(--line); }
.order-card .oc-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.order-card .oc-body { flex: 1; min-width: 0; }
.order-card .oc-body b { display: block; }
.order-card .oc-body small { color: var(--muted); font-size: 12.5px; }
.order-card .oc-right { text-align: right; font-weight: 800; color: var(--green); font-size: 14px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty img { width: 110px; margin: 0 auto 14px; opacity: .9; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- Info ---------- */
.price-cat { margin-bottom: 12px; }
.price-cat h5 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--green); }
.price-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.price-row:last-child { border-bottom: 0; }
.price-row b { white-space: nowrap; }
.info-list { display: grid; gap: 10px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.info-item .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.info-item small { display: block; color: var(--muted); font-size: 12px; }
.brand-foot { text-align: center; padding: 26px 0 8px; font-family: var(--display); color: var(--green); letter-spacing: 1px; font-size: 13px; }
.checker-strip { height: 12px; background: repeating-conic-gradient(var(--green) 0 25%, var(--cream) 0 50%) 0 0 / 12px 12px; border-radius: 4px; margin: 6px 0 4px; }
.install-steps { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.install-steps li { margin-bottom: 4px; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 35;
  width: min(480px, 100%); background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + var(--safe-b));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; border-radius: 12px; position: relative; }
.tabbar a .ic { width: 23px; height: 23px; }
.tabbar a.on { color: var(--green); }
.tabbar a.on .ic { background: var(--yellow); border-radius: 10px; padding: 2px 10px; width: 44px; box-sizing: content-box; height: 21px; }
.tabbar .dotc { position: absolute; top: 2px; right: calc(50% - 22px); background: var(--red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Lain-lain ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 100;
  transition: all .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 200; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 90vh; max-height: 90dvh; border-radius: 10px; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #ebe6da 25%, #f5f1e8 50%, #ebe6da 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 14px; height: 74px; margin-bottom: 10px; }
@keyframes sh { to { background-position: -200% 0; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 12px; }
.success-burst { text-align: center; padding: 8px 0 4px; }
.success-burst .ic { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: var(--leaf); color: #fff; margin: 0 auto 8px; display: block; }
.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
[hidden] { display: none !important; }
.qr-auto { width: min(260px, 100%); margin: 0 auto 10px; background: #fff; border-radius: 14px; padding: 6px; border: 1px solid var(--line); }
.qr-auto svg, .qr-auto img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; }
