/* KOPIGO Customer App (prototipe). Palet & komponen mengikuti Brand Guidelines 3 Des 2026. */
:root {
    --red: #DD0000;
    --red-dark: #B50000;
    --red-soft: #F8DCDC;
    --yellow: #FEDE31;
    --cream: #F9F2E6;
    --cream-2: #F3ECDC;
    --brown: #683F32;
    --ink: #2F100E;
    --muted: #8A6F64;
    --line: #EADFCB;
    --white: #fff;
    --green: #1E8E3E;
    --r: 14px;
    --tab-h: 68px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
    font: 500 15px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink); background: #EFE4D0; overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.app {
    position: relative; max-width: 430px; height: 100dvh; margin: 0 auto;
    background: var(--cream); overflow: hidden; display: flex; flex-direction: column;
}
.view { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 16px); }
.view::-webkit-scrollbar, .hs::-webkit-scrollbar { display: none; }
.view.no-tab { padding-bottom: calc(110px + var(--safe-b)); }
.view.has-bar { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 84px); }
.screen { animation: in .22s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 28px; height: 28px; }

/* ---------- type ---------- */
.display { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sub { font-size: 13px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top red ---------- */
.hero {
    background: var(--red); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 64px;
    border-radius: 0 0 28px 28px; position: relative; overflow: hidden;
}
.hero::after { /* kisi halus seperti spanduk */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 26px 26px;
}
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-top img { height: 26px; width: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; position: relative; }
.icon-btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--red); }
.hero h1 { font-size: 26px; margin-top: 18px; }
.hero .hi { font-size: 13px; font-weight: 600; opacity: .9; margin-top: 18px; }
.hero .hi + h1 { margin-top: 2px; }

.loc {
    margin-top: 14px; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: #fff; color: var(--ink); border-radius: var(--r); padding: 10px 12px;
}
.loc .pin { width: 38px; height: 38px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.loc small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.loc b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc .grow { min-width: 0; flex: 1; }
.open { font-size: 11px; font-weight: 800; color: var(--green); background: #E3F4E7; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.open.off { color: var(--muted); background: var(--cream-2); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(0,0,0,.18); border-radius: 12px; padding: 3px; margin-top: 10px; }
.seg button { height: 36px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--red); }
.seg.light { background: var(--cream-2); }
.seg.light button { color: var(--brown); }
.seg.light button.on { background: var(--ink); color: #fff; }

/* ---------- plain top bar ---------- */
.bar {
    position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; background: var(--cream);
}
.bar h1 { flex: 1; font-size: 18px; font-weight: 800; }
.bar.red { background: var(--red); color: #fff; }
.bar.center h1 { text-align: center; margin-right: 50px; }

.pad { padding: 0 16px; }
.sec { margin-top: 22px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px; margin-bottom: 10px; }
.sec-h a, .link { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }
.card { background: #fff; border-radius: var(--r); border: 1px solid var(--line); }

/* ---------- member card ---------- */
.member { margin: -48px 16px 0; position: relative; z-index: 2; padding: 14px; box-shadow: 0 6px 18px rgba(104,63,50,.10); }
.member-top { display: flex; align-items: center; gap: 10px; }
.member-top .grow { flex: 1; }
.member-top b { font-size: 15px; font-weight: 800; }
.qr-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 12px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #D9C7AB; display: grid; place-items: center; color: #CDB894; font-size: 10px; font-weight: 800; }
.stamp .ic { width: 60%; height: 60%; }
.stamp.on { background: var(--red); border: 0; color: #fff; }
.stamp.gift { background: var(--yellow); border: 0; color: var(--ink); }
.member-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--brown); font-weight: 600; }

/* ---------- quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; margin-top: 16px; }
.quick button { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brown); }
.quick .q { width: 56px; height: 56px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); position: relative; }
.quick .q .ic { width: 26px; height: 26px; }
.quick .q i { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yellow); color: var(--ink); font: 800 11px/18px Inter; }

/* ---------- horizontal scrollers ---------- */
.hs { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hs > * { scroll-snap-align: start; flex: none; }

.promo { width: 300px; height: 150px; border-radius: 18px; background: var(--red); color: #fff; position: relative; overflow: hidden; padding: 16px; text-align: left; }
.promo.cream { background: var(--ink); }
.promo.yellow { background: var(--yellow); color: var(--ink); }
.promo small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.promo .display { font-size: 30px; margin-top: 6px; max-width: 170px; }
.promo p { font-size: 12px; font-weight: 600; margin-top: 6px; max-width: 160px; opacity: .92; }
.promo img.cup { position: absolute; right: -14px; bottom: -22px; width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); }
.promo .burst { position: absolute; right: 100px; top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill.red { background: var(--red); color: #fff; }
.pill.soft { background: var(--red-soft); color: var(--red); }
.pill.dark { background: var(--ink); color: #fff; }
.dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #D9C7AB; }
.dots i.on { width: 18px; background: var(--red); }

.cats { display: flex; gap: 14px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.cats button { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brown); flex: none; width: 68px; }
.cats img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* product tile (grid & scroller) */
.tile { width: 148px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; position: relative; display: block; }
.tile .ph { aspect-ratio: 1; background: var(--cream-2); position: relative; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .bd { padding: 9px 10px 11px; }
.tile .nm { font-size: 14px; font-weight: 800; color: var(--brown); line-height: 1.2; min-height: 34px; }
.tile .ft { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tile .pr { font-size: 15px; font-weight: 800; }
.add { width: 32px; height: 32px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; }
.add .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.rank { position: absolute; left: 8px; top: 8px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.grid .tile { width: auto; }

.sig { width: 168px; height: 236px; border-radius: 18px; overflow: hidden; position: relative; color: #fff; text-align: left; }
.sig img { width: 100%; height: 100%; object-fit: cover; }
.sig .cap { position: absolute; left: 0; right: 0; top: 0; padding: 12px; font-size: 16px; }
.sig .add { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--red); }

/* gerobak map card */
.mapcard { margin: 0 16px; overflow: hidden; }
.map { height: 150px; position: relative; background: #EFE6D2; }
.map svg { width: 100%; height: 100%; display: block; }
.map.tall { height: 300px; }
.mapcard .row { display: flex; align-items: center; gap: 10px; padding: 12px; }
.thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.thumb.y { background: #FFF6C7; color: var(--ink); }
.thumb.k { background: var(--cream-2); color: var(--brown); }
.row .grow { flex: 1; min-width: 0; }
.row b { font-size: 14px; font-weight: 800; display: block; }
.row small { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- menu ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--muted); margin: 0 16px; }
.search input { border: 0; outline: 0; flex: 1; background: none; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; position: sticky; top: 58px; z-index: 4; background: var(--cream); }
.chip { flex: none; height: 38px; padding: 0 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--brown); display: flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-h { display: flex; align-items: center; gap: 8px; padding: 0 16px; margin: 18px 0 10px; }
.cat-h .display { font-size: 18px; color: var(--ink); }
.cat-h i { flex: 1; height: 2px; background: var(--line); }

.item { display: flex; gap: 12px; padding: 10px; margin: 0 16px 10px; text-align: left; width: calc(100% - 32px); align-items: stretch; }
.item .ph { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; flex: none; background: var(--cream-2); }
.item .ph img { width: 100%; height: 100%; object-fit: cover; }
.item .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item .nm { font-size: 15px; font-weight: 800; color: var(--brown); }
.item .ds { font-size: 12px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .ft { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.item .pr { font-size: 16px; font-weight: 800; }
.btn-add { height: 34px; padding: 0 14px; border-radius: 10px; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.btn-add .ic { width: 15px; height: 15px; stroke-width: 2.8; }

/* ---------- product detail ---------- */
.pd-photo { height: 340px; position: relative; background: var(--cream-2); }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-photo .back { position: absolute; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px); }
.pd-photo .fav { position: absolute; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px); }
.pd-body { background: var(--cream); border-radius: 24px 24px 0 0; margin-top: -24px; position: relative; padding: 20px 16px 0; }
.pd-head { display: flex; gap: 12px; align-items: flex-start; }
.pd-head .grow { flex: 1; }
.pd-head h1 { font-size: 24px; color: var(--brown); }
.price-ball { width: 66px; height: 66px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; align-content: center; flex: none; position: relative; font-weight: 900; font-size: 28px; line-height: 1; }
.price-ball small { position: absolute; top: -4px; right: -10px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 800; padding: 3px 6px; border-radius: 99px; letter-spacing: .04em; }
.price-ball.y { background: var(--yellow); color: var(--ink); }
.facts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fact { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--brown); background: #fff; border: 1px solid var(--line); padding: 5px 10px; border-radius: 99px; }
.opt { margin-top: 14px; border: 1.5px solid var(--red); border-radius: var(--r); background: #fff; padding: 12px; }
.opt-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.opt-h b { font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.opt-h span { font-size: 11px; font-weight: 700; color: var(--muted); }
.choices { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.choice { height: 64px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; align-content: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--brown); }
.choice.on { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.addon { display: flex; align-items: center; gap: 10px; padding: 8px 0; width: 100%; text-align: left; }
.addon + .addon { border-top: 1px solid var(--line); }
.addon img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.addon b { flex: 1; font-size: 14px; font-weight: 700; }
.addon em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--red); }
.check { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid #D9C7AB; display: grid; place-items: center; color: transparent; }
.addon.on .check { background: var(--red); border-color: var(--red); color: #fff; }
.check .ic { width: 15px; height: 15px; stroke-width: 3; }
.note { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; margin-top: 14px; outline: 0; resize: none; }

/* sticky bottom action */
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + var(--safe-b)); display: flex; gap: 12px; align-items: center; border-radius: 20px 20px 0 0; box-shadow: 0 -6px 20px rgba(104,63,50,.08); }
.qty { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 12px; padding: 4px; }
.qty button { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--red); border: 1px solid var(--line); }
.qty b { min-width: 28px; text-align: center; font-weight: 800; font-size: 16px; }
.qty.sm button { width: 30px; height: 30px; border-radius: 8px; }
.qty.sm .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.qty.sm b { min-width: 22px; font-size: 14px; }
.btn { flex: 1; height: 52px; border-radius: 14px; background: var(--red); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.btn.split { justify-content: space-between; }
.btn.ghost { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn.dark { background: var(--ink); }
.btn.sm { height: 40px; font-size: 13px; border-radius: 12px; flex: none; }
.btn.block { width: 100%; flex: none; }

/* cart bar */
.cartbar { position: absolute; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 7; height: 56px; border-radius: 16px; background: var(--red); color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; box-shadow: 0 8px 20px rgba(221,0,0,.28); text-align: left; width: calc(100% - 24px); }
.cartbar .n { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.cartbar .grow { flex: 1; line-height: 1.15; }
.cartbar small { font-size: 11px; opacity: .9; display: block; }
.cartbar b { font-size: 16px; font-weight: 800; }
.cartbar .go { height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; color: var(--red); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 4px; }

/* tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.tab { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #B39C8C; position: relative; }
.tab.on { color: var(--red); }
.tab.on .ic { stroke-width: 2.3; }
.tab.mid { align-self: start; }
.tab.mid span { width: 60px; height: 60px; margin-top: -20px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; border: 5px solid var(--cream); box-shadow: 0 6px 14px rgba(221,0,0,.3); }
.tab.mid b { font-weight: 700; color: var(--brown); margin-top: -1px; }
.tab i { position: absolute; top: -4px; left: 55%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font: 800 10px/17px Inter; padding: 0 4px; text-align: center; }

/* ---------- checkout ---------- */
.block { margin: 12px 16px 0; padding: 14px; }
.block-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.block-h b { font-size: 15px; font-weight: 800; }
.line { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; }
.line .grow { flex: 1; min-width: 0; }
.line b { font-size: 14px; font-weight: 800; color: var(--brown); display: block; }
.line small { font-size: 12px; color: var(--muted); display: block; }
.line .pr { font-weight: 800; font-size: 14px; margin-top: 3px; display: block; }
.route { display: grid; gap: 0; }
.route .row { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.route .via { margin-left: 21px; height: 14px; border-left: 2px dotted #D9C7AB; }
.pay { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); width: 100%; text-align: left; margin-top: 8px; }
.pay.on { border-color: var(--red); background: #FFF7F7; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D9C7AB; flex: none; }
.on > .radio { border: 6px solid var(--red); }
.sum { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--brown); }
.sum.tot { font-size: 17px; font-weight: 800; color: var(--ink); border-top: 1px dashed #D9C7AB; margin-top: 8px; padding-top: 12px; }
.sum .neg { color: var(--green); font-weight: 700; }
.voucher { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; border: 1.5px dashed var(--red); border-radius: 12px; background: #FFF7F7; color: var(--red); font-weight: 700; font-size: 14px; }
.voucher .grow { flex: 1; }
.dock.col { flex-direction: row; }
.dock .tot small { display: block; font-size: 12px; color: var(--muted); }
.dock .tot b { font-size: 19px; font-weight: 800; }

/* ---------- payment / tracking ---------- */
.center { text-align: center; }
.qrbox { width: 230px; margin: 16px auto 0; padding: 14px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.qrbox svg { width: 100%; height: auto; display: block; }
.timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--red); background: var(--red-soft); padding: 6px 12px; border-radius: 99px; font-size: 13px; }
.code { font-size: 44px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.track-hero { background: var(--red); color: #fff; padding: 8px 16px 54px; border-radius: 0 0 28px 28px; text-align: center; }
.track-hero p { font-size: 14px; font-weight: 600; opacity: .95; margin-top: 8px; }
.ticket { margin: -40px 16px 0; padding: 16px; position: relative; text-align: center; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 96px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket .cut { border-top: 2px dashed var(--line); margin: 16px 0 12px; }
.steps { display: grid; gap: 0; text-align: left; }
.step { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .b { width: 36px; height: 36px; border-radius: 50%; background: var(--cream-2); color: #B39C8C; display: grid; place-items: center; flex: none; z-index: 1; }
.step .b .ic { width: 18px; height: 18px; }
.step.done .b { background: var(--ink); color: #fff; }
.step.done::before { background: var(--ink); }
.step.now .b { background: var(--red); color: #fff; box-shadow: 0 0 0 5px var(--red-soft); }
.step b { display: block; font-size: 14px; font-weight: 800; color: #B39C8C; }
.step.done b, .step.now b { color: var(--ink); }
.step small { font-size: 12px; color: var(--muted); }
.step time { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---------- lists ---------- */
.order { margin: 0 16px 12px; padding: 12px; display: block; width: calc(100% - 32px); text-align: left; }
.order-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.order .imgs { display: flex; margin: 10px 0; align-items: center; gap: 10px; }
.order .imgs img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; margin-right: -18px; box-shadow: 0 0 0 1px var(--line); }
.order .imgs .grow { margin-left: 22px; flex: 1; min-width: 0; }
.order-f { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.status { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--cream-2); color: var(--brown); }
.status.live { background: var(--red); color: #fff; }
.status.ok { background: #E3F4E7; color: var(--green); }

.vcard { display: flex; margin: 0 16px 12px; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); min-height: 96px; }
.vcard .l { width: 96px; background: var(--red); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; padding: 8px; position: relative; flex: none; }
.vcard .l::after { content: ""; position: absolute; right: -7px; top: 0; bottom: 0; width: 14px; background: radial-gradient(circle at 7px 7px, #fff 5px, transparent 6px) 0 0/14px 16px; }
.vcard .l .display { font-size: 24px; }
.vcard .l small { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.vcard.y .l { background: var(--yellow); color: var(--ink); }
.vcard .r { flex: 1; padding: 12px 12px 12px 18px; display: flex; flex-direction: column; }
.vcard .r b { font-size: 14px; font-weight: 800; }
.vcard .r small { font-size: 12px; color: var(--muted); }
.vcard .r .ft { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }

.stampcard { margin: 0 16px; padding: 18px; background: var(--red); color: #fff; border-radius: 20px; position: relative; overflow: hidden; }
.stampcard .big { font-size: 46px; }
.stampgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.stampgrid .stamp { border-color: rgba(255,255,255,.55); color: rgba(255,255,255,.7); font-size: 14px; }
.stampgrid .stamp.on { background: #fff; color: var(--red); }
.stampgrid .stamp.gift { background: var(--yellow); color: var(--ink); }

.menu-list { margin: 0 16px; }
.menu-list .row { display: flex; align-items: center; gap: 12px; padding: 12px; width: 100%; text-align: left; }
.menu-list .row + .row { border-top: 1px solid var(--line); }
.menu-list .ic.ch { color: #C9B49A; }
.avatar { width: 54px; height: 54px; border-radius: 18px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 22px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 16px; padding: 12px 0; }
.stats div { text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.stats b { font-size: 17px; font-weight: 800; }

/* ---------- sheet ---------- */
.backdrop { position: absolute; inset: 0; background: rgba(47,16,14,.5); z-index: 20; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--cream); border-radius: 24px 24px 0 0; max-height: 88%; overflow-y: auto; padding: 8px 0 calc(16px + var(--safe-b)); animation: up .25s cubic-bezier(.2,.8,.2,1); scrollbar-width: none; }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: #D9C7AB; margin: 0 auto 8px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 12px; }
.place { margin: 0 16px 10px; padding: 12px; display: block; width: calc(100% - 32px); text-align: left; }
.place.on { border: 1.5px solid var(--red); }
.place .row { display: flex; gap: 10px; align-items: center; }
.place .meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; }
.place .meta span { display: flex; gap: 4px; align-items: center; }

.toast { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); transform: translateX(-50%); z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; white-space: nowrap; animation: in .2s; }

/* ---------- splash & login ---------- */
.splash { height: 100%; background: var(--red); color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.splash::after { content: ""; position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 26px 26px; }
.splash > * { position: relative; z-index: 1; }
.splash .top { padding: calc(env(safe-area-inset-top, 0px) + 56px) 28px 0; }
.splash .top img { height: 54px; }
.splash .top .display { font-size: 44px; margin-top: 36px; }
.splash .top p { margin-top: 12px; font-weight: 600; font-size: 15px; opacity: .95; max-width: 280px; }
.splash .cups { flex: 1; position: relative; min-height: 220px; }
.splash .cups img { position: absolute; border-radius: 50%; object-fit: cover; border: 5px solid #fff; }
.splash .cups img:nth-child(1) { width: 190px; height: 190px; left: 50%; margin-left: -95px; bottom: 6px; z-index: 2; }
.splash .cups img:nth-child(2) { width: 130px; height: 130px; left: 14px; bottom: 40px; }
.splash .cups img:nth-child(3) { width: 130px; height: 130px; right: 14px; bottom: 40px; }
.splash .cta { background: var(--cream); color: var(--ink); border-radius: 28px 28px 0 0; padding: 20px 20px calc(20px + var(--safe-b)); display: grid; gap: 10px; }
.field { display: flex; align-items: center; gap: 10px; height: 54px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); padding: 0 14px; font-weight: 700; }
.field input { border: 0; outline: 0; flex: 1; background: none; font-weight: 700; font-size: 16px; min-width: 0; }
.field .cc { padding-right: 10px; border-right: 1px solid var(--line); }
.otp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.otp div { height: 60px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.otp div.on { border-color: var(--red); }
.empty { text-align: center; padding: 60px 32px; color: var(--muted); }
.empty .thumb { margin: 0 auto 14px; width: 72px; height: 72px; border-radius: 24px; }
.empty .thumb .ic { width: 34px; height: 34px; }
.empty b { display: block; color: var(--ink); font-size: 17px; font-weight: 800; margin-bottom: 4px; }

/* ---------- foto cup transparan (aset Canva) ---------- */
.tile .ph, .item .ph, .pd-photo { background: var(--cream-2); background-image: radial-gradient(circle at 50% 58%, #fff 0, rgba(255,255,255,0) 62%); }
.tile .ph img { object-fit: contain; padding: 12px 12px 8px; }
.item .ph img { object-fit: contain; padding: 7px; }
.pd-photo img { object-fit: contain; padding: calc(env(safe-area-inset-top, 0px) + 26px) 0 38px; }
.cats img { object-fit: contain; background: #fff; padding: 6px; }
.line img, .order .imgs img { object-fit: contain; background: var(--cream-2); padding: 4px; }
.addon img { object-fit: contain; border-radius: 0; }
.promo img.cup { width: auto; height: 158px; right: 6px; bottom: -26px; border: 0; border-radius: 0; object-fit: contain; transform: rotate(8deg); }
.promo img.cup.c2 { right: 82px; height: 124px; bottom: -30px; transform: rotate(-8deg); }
.sig { background: var(--red); }
.sig .cap { font-size: 16px; line-height: 1.08; }
.sig img { position: absolute; left: 50%; bottom: -12px; width: auto; height: 172px; transform: translateX(-50%); object-fit: contain; }
.sig .price-ball { position: absolute; left: 10px; bottom: 10px; }
.price-ball.sm { width: 44px; height: 44px; font-size: 18px; }
.price-ball.sm small { font-size: 7px; padding: 2px 4px; right: -8px; }
.splash .cups img { border: 0; border-radius: 0; object-fit: contain; }
.splash .cups img:nth-child(1) { width: auto; height: 250px; margin-left: 0; transform: translateX(-50%); bottom: -34px; }
.splash .cups img:nth-child(2) { width: auto; height: 190px; left: 4px; bottom: -40px; transform: rotate(-9deg); }
.splash .cups img:nth-child(3) { width: auto; height: 190px; right: 4px; bottom: -40px; transform: rotate(9deg); }

/* ---------- status data nyata ---------- */
button[disabled], .btn[disabled] { opacity: .5; pointer-events: none; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #C9B49A; background: var(--cream-2); }
.noimg .ic { width: 38%; height: 38%; max-width: 64px; }
.cats .noimg { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.addon .noimg, .line .noimg { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.line .noimg { width: 58px; height: 58px; }
.tile.off .ph img, .item.off .ph img { filter: grayscale(1); opacity: .55; }
.tile.off .nm, .item.off .nm { color: var(--muted); }
.spin { display: block; width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--red-soft); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { display: flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--red); font-weight: 700; font-size: 13px; }
.pin { display: block; width: 100%; height: 60px; margin-top: 22px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); outline: 0; text-align: center; font-size: 28px; font-weight: 900; letter-spacing: .5em; padding-left: .5em; color: var(--ink); }
.pin:focus, .field:focus-within { border-color: var(--red); }
.field .ic { color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: #FFF6C7; color: var(--ink); font-size: 13px; font-weight: 600; }
.notice span { flex: 1; }
.notice .ic { flex: none; }
.notice.soft { background: var(--red-soft); color: var(--brown); }
.livecard { display: flex; gap: 12px; align-items: center; padding: 12px; width: 100%; text-align: left; border: 1.5px solid var(--red); }
.livecard .grow { flex: 1; min-width: 0; }
.livecard b { display: block; font-weight: 800; font-size: 14px; }
.livecard small { font-size: 12px; color: var(--muted); }
.toast.bad { background: var(--red); white-space: normal; max-width: 86%; text-align: left; border-radius: 16px; }
.qrisimg { width: 240px; max-width: 100%; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); }
.bar .chip { height: 36px; }
.mapcard .row + .row { border-top: 1px solid var(--line); }
a.btn { text-decoration: none; box-sizing: border-box; }
.btn.block { margin: 0; padding: 0 16px; }
