/* Arah desain: satu layar yang tenang. Judul kecil di tengah, katalog geser ke samping,
   nampan kayu besar sebagai panggung tempat roti jatuh, tombol "Lihat pesanan" menempel di tepi nampan.
   Garis tipis dan bayangan lembut, tanpa kotak tebal. */
:root {
  --bg: #F6F3EC;
  --paper: #FFFFFF;
  --ink: #1E1B18;
  --muted: #8B857C;
  --line: #E7E2D9;
  --accent: #C9733A;
  --ok: #2F8F5B;
  --warn: #B3261E;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 12px 32px rgba(48, 34, 20, .09);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background-attachment: fixed;
  background-color: var(--bg);
  background-image: var(--bg-img, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150' fill='none' stroke='%23E8E1D4' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M18 34c8-11 20-11 28 0M22 38l15-9'/%3E%3Ccircle cx='104' cy='30' r='7'/%3E%3Cpath d='M70 96c10-6 22-6 32 0M74 102c8 4 17 4 25 0'/%3E%3Cellipse cx='28' cy='112' rx='13' ry='6' transform='rotate(-25 28 112)'/%3E%3Cpath d='M122 74l8 8M130 74l-8 8'/%3E%3Cpath d='M62 22l4 10M72 20l-2 11'/%3E%3C/svg%3E"));
  color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  padding-bottom: 28px;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .back { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; margin-right: 2px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-family: var(--font-body); font-size: 22px; font-weight: 500; line-height: 1; padding-bottom: 3px; transition: transform .12s; }
.brand:active .back { transform: scale(.92); }
.brand img { width: 30px; height: 22px; object-fit: contain; }
.brand span { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; font-size: 19px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 12px; font-weight: 600; color: var(--muted);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.chip.is-open i { background: var(--ok); }
.chip.is-open { color: var(--ink); }

main { max-width: 940px; margin: 0 auto; padding: 0 16px; }

/* ---------- pembuka ---------- */
.intro { text-align: center; padding: 26px 0 14px; }
.intro h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(28px, 6.6vw, 44px); line-height: 1.1; }
.intro p { margin: 10px auto 0; max-width: 44ch; color: var(--muted); font-size: 14.5px; }
.intro > * { animation: rise .55s both cubic-bezier(.2,.7,.2,1); }
.intro p { animation-delay: .07s; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- tab kategori ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 6px 15px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); transition: .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--paper); border-color: var(--line); color: var(--ink); box-shadow: 0 2px 8px rgba(48,34,20,.05); }

.banner { margin: 0 0 10px; padding: 6px 4px; border-radius: 0; background: none; color: var(--accent); font-size: 13.5px; font-weight: 600; text-align: center; }

/* ---------- katalog geser ---------- */
.rail-wrap { position: relative; border-bottom: 1px solid var(--line); }
.rail {
  display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 8px;
  padding: 6px 8px 14px; margin: 0 -8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { min-width: 0; }
.item {
  flex: 0 0 112px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
}
.item-img { position: relative; width: 100px; height: 82px; display: grid; place-items: center; }
.item-img img { max-width: 100%; max-height: 100%; transition: transform .25s; filter: drop-shadow(0 6px 5px rgba(60,35,10,.16)); -webkit-user-drag: none; }
.item:hover .item-img img { transform: translateY(-3px) rotate(-2deg); }
.item h3 { font-size: 13px; font-weight: 600; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.item .price { margin: 0; font-size: 12px; color: var(--muted); font-weight: 500; }
.item.is-out .item-img img { filter: grayscale(1); opacity: .5; }
.tag-out { position: absolute; bottom: 0; padding: 1px 9px; border-radius: 999px; background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); font-size: 11px; font-weight: 600; }
.in-cart {
  position: absolute; top: -2px; right: 2px; min-width: 22px; padding: 0 6px; text-align: center;
  background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 20px;
}
.ctl { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.add, .sub {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper);
  font-size: 18px; font-weight: 500; line-height: 1; color: var(--ink);
  box-shadow: 0 2px 6px rgba(48,34,20,.06); transition: .15s;
}
.add:hover:not([disabled]) { background: var(--btn-bg, var(--ink)); border-color: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); }
.add:active, .sub:active { transform: scale(.92); }
.add[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none; }
.empty { padding: 30px 12px; text-align: center; color: var(--muted); width: 100%; }

.nav {
  display: none; position: absolute; top: 40%; z-index: 4; width: 34px; height: 34px; padding: 0;
  place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper);
  font-size: 22px; line-height: 1; box-shadow: var(--shadow);
}
.nav-l { left: -12px; } .nav-r { right: -12px; }
@media (min-width: 700px) {
  .nav { display: grid; }
  .item { flex-basis: 132px; }
  .item-img { width: 116px; height: 92px; }
}

/* ---------- nampan ---------- */
.stage-wrap { padding: 10px 0 8px; }
.stage { position: relative; width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 640 / 340; }
.tray-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.units { position: absolute; inset: 0; }
.unit {
  position: absolute; width: var(--uw, 25%); aspect-ratio: 1; padding: 0; border: 0; background: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)); transition: transform .18s; touch-action: none; cursor: grab;
}
.unit img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(60,35,10,.3)); pointer-events: none; }
.unit:hover, .unit.is-pick { transform: translate(-50%, -54%) rotate(var(--r, 0deg)) scale(1.06); }
.unit.pending { opacity: 0; }
.unit.pop { animation: drop .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes drop { from { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.3); } }
.stage.bump { animation: bump .28s; }
@keyframes bump { 40% { transform: translateY(3px); } }
.stage-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; max-width: 58%; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); }
.more { position: absolute; right: 9%; bottom: 14%; z-index: 30; padding: 2px 10px; border-radius: 999px; background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); font-size: 12px; font-weight: 700; }
.popover {
  position: absolute; z-index: 40; transform: translate(-50%, calc(-100% - 30px));
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border-radius: 12px;
  background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); font-size: 12px; white-space: nowrap; box-shadow: var(--shadow);
}
.popover::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.popover span { display: flex; flex-direction: column; line-height: 1.3; }
.popover b { font-weight: 700; }
.popover button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 16px; line-height: 1; }

.review {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(100%, 340px); height: 50px; margin: -22px auto 0; padding: 0 22px;
  border: 0; border-radius: var(--r, 999px); background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff);
  font-weight: 600; font-size: 15px; box-shadow: 0 12px 26px rgba(30,27,24,.3); transition: transform .12s;
}
.review b { font-weight: 500; font-size: 12.5px; opacity: .8; }
.review:active:not([disabled]) { transform: scale(.98); }
.review[disabled] { background: #CFC9BF; color: #fff; box-shadow: none; justify-content: center; cursor: default; }

/* ---------- tombol umum ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink);
  transition: .15s;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--btn-bg, var(--ink)); border-color: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); }
.btn-primary:hover { background: #3a342e; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(30,27,24,.06); border-color: transparent; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn-sm { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.btn-danger { background: var(--warn); border-color: var(--warn); color: #fff; }

/* ---------- detail produk ---------- */
.item-img { cursor: pointer; }
.item h3 .name { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: center; cursor: pointer; }
.item h3 .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail { position: fixed; inset: 0; z-index: 55; display: flex; align-items: flex-end; justify-content: center; }
.detail-panel {
  position: relative; width: 100%; max-width: 440px; max-height: 92%; overflow-y: auto; padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(30,27,24,.18); animation: up .28s cubic-bezier(.2,.8,.2,1); text-align: center;
}
@media (min-width: 640px) { .detail { align-items: center; } .detail-panel { border-radius: 26px; } }
.detail-x { position: absolute; top: 14px; right: 14px; }
.detail-img { display: grid; place-items: center; height: 190px; margin: 6px 0 4px; background: radial-gradient(closest-side, #F6EBDA, transparent); }
.detail-img img { height: 190px; width: auto; max-width: 78%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(60,35,10,.22)); }
.detail h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 26px; line-height: 1.15; }
.detail-price { margin: 4px 0 0; font-weight: 700; font-size: 17px; }
.detail-price span { font-weight: 500; color: var(--muted); font-size: 14px; }
.detail-desc { margin: 12px 0 0; color: #4A443D; font-size: 15px; line-height: 1.55; }
.detail-info { display: grid; gap: 0; margin: 16px 0 0; text-align: left; border-top: 1px solid var(--line); }
.detail-info div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-info dt { color: var(--muted); font-weight: 500; }
.detail-info dd { margin: 0; font-weight: 600; text-align: right; }
.detail-add { width: 100%; margin-top: 18px; }

/* ---------- jadwal ambil / antar ---------- */
.dchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.dchips::-webkit-scrollbar { display: none; }
.dchip { flex: 0 0 auto; min-width: 66px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 14px; background: #FDFCFA; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center; color: var(--muted); transition: .15s; }
.dchip b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.dchip.is-on { background: var(--btn-bg, var(--ink)); border-color: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); }
.dchip.is-on b { color: #fff; }
.dchip[disabled] { opacity: .35; cursor: not-allowed; }
.tchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 158px; overflow-y: auto; padding: 2px; -webkit-overflow-scrolling: touch; }
.tchip { padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: #FDFCFA; font-size: 13px; font-weight: 600; transition: .15s; }
.tchip.is-on { background: var(--btn-bg, var(--ink)); border-color: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); }
.tchip[disabled] { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot a { color: var(--muted); font-weight: 600; }

/* ---------- lembar pesanan ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(30,27,24,.42); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel {
  position: relative; width: 100%; max-width: 540px; max-height: 92%; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(30,27,24,.18);
  animation: up .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border-radius: 26px; max-height: 88%; box-shadow: var(--shadow); } }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 20px 10px; }
.sheet-head h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 24px; line-height: 1.15; }
.icon-btn { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 22px; line-height: 1; flex-shrink: 0; color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.steps { display: flex; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ''; width: 14px; height: 1px; background: var(--line); }
.steps li span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 10.5px; }
.steps li.is-now { color: var(--ink); }
.steps li.is-now span { background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); border-color: var(--ink); }
.steps li.is-done span { background: var(--ok); color: #fff; border-color: var(--ok); }
.sheet-body { overflow-y: auto; padding: 4px 20px 16px; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-total { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; font-weight: 500; color: var(--muted); }
.foot-total strong { font-size: 20px; color: var(--ink); font-weight: 700; }
.foot-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }

.lines { list-style: none; padding: 0; margin: 0 0 16px; }
.line { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line img { width: 50px; height: 42px; object-fit: contain; }
.line .n { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.line .s { font-size: 12.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; font-size: 18px; font-weight: 500; border-radius: 50%; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #FDFCFA; font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 66px; resize: vertical; }
.field .err { color: var(--warn); font-size: 12.5px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.choice { display: flex; gap: 8px; }
.choice label {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: #FDFCFA; font-weight: 600; font-size: 14px; color: var(--ink);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { background: var(--btn-bg, var(--ink)); border-color: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.pay { display: grid; justify-items: center; gap: 10px; text-align: center; }
.pay .amount { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 38px; line-height: 1; }
.pay .no { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.qris-box { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.qris-box img { width: min(62vw, 260px); height: auto; }
.qris-nama { display: grid; gap: 3px; text-align: center; margin: 2px 0 12px; }
.qris-nama span { font-size: 12.5px; color: var(--muted); }
.qris-nama strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.qris-nama small { font-size: 12.5px; color: #A8391F; font-weight: 600; }
.note { margin: 0; padding: 10px 14px; border-radius: 12px; background: #F8F2E4; font-size: 13px; text-align: left; color: #5E4A2E; }

.todo { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; counter-reset: t; }
.todo li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13.5px; font-weight: 500; counter-increment: t; }
.todo li::before { content: counter(t); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); font-weight: 700; font-size: 12px; }
.invoice-pic { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.invoice-pic img { width: 100%; height: auto; }
p.sub-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px);
  padding: 9px 18px; border-radius: var(--r, 999px); background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff);
  font-weight: 600; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- admin ---------- */
.adm { max-width: 720px; margin: 0 auto; padding: 22px 0 50px; }
.adm h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; }
.adm .sub2 { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.adm-card { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(48,34,20,.05); margin-bottom: 16px; }
.adm-bar { position: sticky; top: 52px; z-index: 15; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; background: var(--bg); }
.adm-tabs { display: flex; gap: 6px; margin: 4px 0 16px; flex-wrap: wrap; }
.dirty { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.switch strong { display: block; }
.switch small { color: var(--muted); }
.toggle { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #D9D3C8; transition: .2s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.days { display: grid; }
.day { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day .times { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.day .times input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #FDFCFA; }
.day.is-off .times { opacity: .4; pointer-events: none; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prow { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.prow img { width: 56px; height: 46px; object-fit: contain; }
.prow .info { min-width: 0; }
.prow .info b { display: block; line-height: 1.25; }
.prow .info span { font-size: 13px; color: var(--muted); }
.prow .acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prow .habis { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 13px; font-weight: 600; }
.thumb-up { display: flex; align-items: center; gap: 12px; }
.thumb-up img { width: 72px; height: 60px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qris-prev { width: 170px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; margin: 4px 0 8px; }
.demo-note { padding: 10px 14px; border-radius: 12px; background: #F8F2E4; font-size: 13px; font-weight: 500; color: #5E4A2E; margin: 0 0 14px; }


/* ---------- builder bertahap (nasi box, dll.) ---------- */
body.is-steps { padding-bottom: 150px; }
.intro-s { padding: 18px 0 8px; }
.intro-s h1 { font-size: clamp(25px, 6vw, 38px); }
.intro-s p { font-size: 13.5px; margin-top: 6px; }

.bstage { position: sticky; top: 51px; z-index: 12; padding: 6px 0 10px; background: linear-gradient(var(--bg) 82%, transparent); }
.boxwrap { position: relative; width: min(100%, 520px); margin: 0 auto; transition: transform .3s cubic-bezier(.4,.1,.2,1), opacity .3s; }
.box-img { display: block; width: 100%; height: auto; user-select: none; filter: drop-shadow(0 14px 18px rgba(48,34,20,.14)); pointer-events: none; }
.slots { position: absolute; inset: 0; }
.slot { position: absolute; display: flex; align-items: center; justify-content: center; }
.pick { flex: 1 1 0; min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; user-select: none; filter: drop-shadow(0 6px 5px rgba(60,35,10,.22)); }
.pick[data-n="2"] { max-width: 56%; }
.pick[data-n="2"] + .pick { margin-left: -10%; }
.pick[data-n="3"] { max-width: 40%; }
.pick[data-n="3"] + .pick { margin-left: -6%; }
.pick.pending { opacity: 0; }
.pick.land { animation: land .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes land { 0% { transform: translateY(-10px) scale(1.18); } 55% { transform: translateY(2px) scale(.94, .9); } 100% { transform: none; } }
.boxwrap.bump { animation: bump .28s; }
.boxwrap.out { transform: translateX(-34px) scale(.96); opacity: 0; }
.boxwrap.in { animation: boxin .42s cubic-bezier(.2,.8,.2,1); }
@keyframes boxin { from { transform: translateX(34px) scale(.96); opacity: 0; } }

.bpanel { max-width: 560px; margin: 0 auto; padding-top: 4px; }
.bhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.bhead h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 21px; line-height: 1.15; }
.bhead span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.tiles {
  --fl: 0px; --fr: 0px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 10px 14px 12px; margin: 0 -14px; scroll-padding: 0 14px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.tiles::-webkit-scrollbar { display: none; }
.tiles > .tile { flex: 0 0 100px; scroll-snap-align: start; }
.tiles > .empty { flex: 1; }
.tiles.swap { animation: slidein .32s cubic-bezier(.2,.8,.2,1); }
@keyframes slidein { from { transform: translateX(18px); opacity: 0; } }
@media (min-width: 560px) { .bpanel { max-width: 640px; } .tiles > .tile { flex-basis: 116px; } }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px;
  border: 0; border-radius: 14px; background: transparent; text-align: center; box-shadow: none; transition: transform .15s;
}
.tile:active:not([disabled]) { transform: scale(.96); }
.tile-img { position: relative; display: grid; place-items: center; width: 100%; height: 84px; }
.tile-img img { width: auto; height: 84px; max-width: 92%; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(60,35,10,.18)); -webkit-user-drag: none; }
.tile b { font-size: 12.5px; font-weight: 600; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.pill { padding: 0; border-radius: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.tile .ck { position: absolute; top: -5px; right: -4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); font-size: 12px; font-style: normal; font-weight: 700; transform: scale(0); transition: transform .22s cubic-bezier(.3,1.6,.5,1); }
.tile.is-on b { font-weight: 700; }
.tile.is-on::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 1px; height: 3px; border-radius: 3px; background: var(--ink); }
.tile.is-on .tile-img img { transform: translateY(-3px) scale(1.05); }
.tile-img img { transition: transform .22s cubic-bezier(.3,1.5,.5,1); }
.tile.is-on .ck { transform: scale(1); }
.tile.is-on .pill { color: var(--ink); }
.tile.is-out { opacity: .5; }
.tile.is-out .tile-img img { filter: grayscale(1); }
.tile.is-out .tag-out { position: absolute; bottom: -2px; font-style: normal; }
.tile.nope { animation: nope .34s; }
@keyframes nope { 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

.bbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; gap: 9px;
  padding: 10px max(14px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(48,34,20,.07);
}
.bchips, .brow { width: 100%; max-width: 560px; margin: 0 auto; }
.bchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bchips::-webkit-scrollbar { display: none; }
.bchip { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 11px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: .18s; }
.bchip .n { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 10.5px; transition: .2s; }
.bchip.is-done { color: var(--ink); }
.bchip.is-done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.bchip.is-now { background: var(--btn-bg, var(--ink)); border-color: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); }
.bchip.is-now .n { border-color: rgba(255,255,255,.5); color: #fff; }
.bchip.is-now.is-done .n { background: var(--ok); border-color: var(--ok); }
.brow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bprice { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bprice small { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bprice strong { font-family: var(--font-display); font-weight: 800; font-size: 23px; }
.bact { display: flex; gap: 8px; flex-shrink: 0; }
.bact .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 400px) { .bact .btn { padding: 8px 12px; font-size: 13px; } }

@media (prefers-reduced-motion: reduce) { .tile .ck { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- halaman pembuka ---------- */
body.has-cover { overflow: hidden; }
.cover {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow: hidden;
  background: var(--accent); color: #fff;
  transition: transform .7s cubic-bezier(.75, 0, .2, 1), visibility 0s linear 0s;
}
.cover.is-off { transform: translateY(-100%); visibility: hidden; transition: transform .7s cubic-bezier(.75, 0, .2, 1), visibility 0s linear .7s; }
.cv-top { width: 100%; max-width: 804px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 20px 0; }
.cv-brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: -.01em; }
.cv-brand img { width: 30px; height: 22px; object-fit: contain; flex-shrink: 0; }
.cv-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-chip { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; }
.cv-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.cv-chip.is-open { color: var(--ink); }
.cv-chip.is-open i { background: var(--ok); }
.cv-main { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; width: 100%; max-width: 760px; margin: 0 auto; padding: 26px 22px 12px; }
.cv-main h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 11.5vw, 76px); line-height: 1.04; letter-spacing: -.035em;
  animation: cvrise .8s .1s both cubic-bezier(.2, .8, .2, 1);
}
.cv-art { position: relative; flex: 1 1 auto; min-height: 150px; max-height: 330px; }
.cv-item { translate: calc(var(--px, 0) * var(--d, 1) * -16px) calc(var(--py, 0) * var(--d, 1) * -11px); transition: translate .7s cubic-bezier(.2, .7, .2, 1); position: absolute; width: var(--w); transform: translate(-50%, -50%) rotate(var(--r)); animation: cvdrop .75s calc(.45s + var(--i) * .1s) both cubic-bezier(.3, 1.45, .5, 1); }
.cv-item img { width: 100%; height: auto; filter: drop-shadow(0 12px 8px rgba(0, 0, 0, .25)); -webkit-user-drag: none; animation: cvdrift calc(8s + var(--i) * 1.3s) calc(var(--i) * -2.1s) ease-in-out infinite; will-change: transform; }
@keyframes cvdrop { from { transform: translate(-50%, -150%) rotate(calc(var(--r) - 18deg)) scale(.8); opacity: 0; } to { transform: translate(-50%, -50%) rotate(var(--r)); opacity: 1; } }
@keyframes cvdrift { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 33% { transform: translate3d(6px, -10px, 0) rotate(1.8deg); } 66% { transform: translate3d(-6px, -5px, 0) rotate(-1.4deg); } }
@keyframes cvrise { from { transform: translateY(16px); opacity: 0; } }
.cv-panel {
  background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0;
  padding: 20px 22px max(18px, env(safe-area-inset-bottom)); display: grid; gap: 14px;
  animation: cvup .7s .2s both cubic-bezier(.2, .8, .2, 1);
}
@keyframes cvup { from { transform: translateY(40px); opacity: 0; } }
.cv-sub { margin: 0; font-size: 15px; color: var(--muted); }
.cv-info { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.cv-info > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
.cv-info dt { font-size: 13px; font-weight: 500; color: var(--muted); }
.cv-info dd { margin: 0; font-weight: 600; line-height: 1.35; }
.cv-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.cv-links a { color: var(--ink); text-underline-offset: 4px; }
.cv-cta { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 22px 14px; animation: cvup .7s .2s both cubic-bezier(.2, .8, .2, 1); }
.cv-go {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; border: 0; border-radius: var(--r, 999px);
  background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); font-size: 17px; font-weight: 600; transition: transform .12s;
}
.cv-go span { font-size: 24px; line-height: 1; transform: translateY(-1px); }
.cv-go:active { transform: scale(.98); }
@media (min-width: 760px) {
  .cv-panel { width: calc(100% - 44px); max-width: 640px; margin: 0 auto 28px; border-radius: 28px; }
  .st-end .cv-cta { padding-bottom: 14px; }
}
@media (max-height: 640px) { .cv-art { min-height: 110px; } .cv-panel { gap: 10px; padding-top: 16px; } .cv-go { min-height: 50px; } }
@media (prefers-reduced-motion: reduce) {
  .cover, .cover.is-off { transition: none; }
  .cv-main h1, .cv-item, .cv-item img, .cv-panel { animation: none; }
}

.cv-info dd a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 430px) { .brand img { display: none; } }
@media (max-width: 430px) { .top { gap: 8px; padding-left: 12px; padding-right: 12px; } .brand span#brand { font-size: 18px; } .top .chip { padding: 4px 10px; font-size: 11.5px; gap: 6px; } .brand .back { width: 30px; height: 30px; } }

.cv-top, .cv-main, .cv-panel { position: relative; z-index: 2; }
.cv-bg, .cv-shade, .cv-glow { position: absolute; pointer-events: none; }
.cv-bg {
  inset: -5%; z-index: 0; background: var(--bg-img) center / cover no-repeat;
  translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -7px); transition: translate .9s cubic-bezier(.2, .7, .2, 1);
  animation: cvkb 28s ease-in-out infinite alternate; will-change: transform;
}
@keyframes cvkb { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0); } }
@media (min-width: 760px) { .cv-bg.has-wide { background-image: var(--bg-wide); } }
.cv-shade { inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(10, 6, 2, calc(var(--shade) + .12)) 0%, rgba(10, 6, 2, calc(var(--shade) * .35)) 48%, rgba(10, 6, 2, calc(var(--shade) + .1)) 100%); }
.cv-glow { z-index: 1; width: 150%; aspect-ratio: 1; left: -25%; top: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0)); animation: cvglow1 19s ease-in-out infinite alternate; will-change: transform; }
.cv-glow.g2 { width: 120%; left: auto; right: -40%; top: 25%; background: radial-gradient(closest-side, rgba(255, 236, 210, .2), rgba(255, 236, 210, 0)); animation: cvglow2 24s ease-in-out infinite alternate; }
.cover.is-photo .cv-glow { mix-blend-mode: soft-light; opacity: .9; }
@keyframes cvglow1 { from { transform: translate3d(-8%, -4%, 0) scale(.9); } to { transform: translate3d(22%, 18%, 0) scale(1.12); } }
@keyframes cvglow2 { from { transform: translate3d(10%, 10%, 0) scale(1); } to { transform: translate3d(-26%, -16%, 0) scale(.85); } }
.cover.is-photo .cv-main h1 { text-shadow: 0 2px 28px rgba(0, 0, 0, .28); }
@media (prefers-reduced-motion: reduce) { .cv-bg, .cv-glow { animation: none; } .cv-item, .cv-bg { translate: none; transition: none; } }

.min-note { margin: 0 0 10px; padding: 6px 2px; border-radius: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; }
@media (max-width: 430px) { .cv-top { gap: 8px; padding-left: 16px; padding-right: 16px; } .cv-brand { font-size: 18px; } .cv-chip { padding: 4px 10px; font-size: 11.5px; gap: 6px; } }
@media (max-width: 430px) { .bchips { gap: 5px; } .bchip { padding: 5px 9px 5px 5px; gap: 5px; font-size: 12px; } }

/* langkah yang boleh memilih jajan yang sama lebih dari sekali (ulang: true) */
.slot.grid { flex-wrap: wrap; align-content: center; }
.slot.grid .pick { flex: 0 0 auto; max-width: none; max-height: none; margin: 0 !important; }
.slot.grid .pick[data-n="1"] { width: 62%; }
.slot.grid .pick[data-n="2"] { width: 48%; }
.slot.grid .pick[data-n="3"], .slot.grid .pick[data-n="4"] { width: 45%; }
.slot.grid .pick[data-n="5"], .slot.grid .pick[data-n="6"] { width: 31%; }
.tile .tile-minus { position: absolute; top: -5px; left: -4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1; padding-bottom: 2px; box-shadow: 0 2px 6px rgba(48,34,20,.15); }
.tile .tile-minus:active { transform: scale(.9); }
.bhead .btn { white-space: nowrap; flex-shrink: 0; }

.box-sum { margin: 10px auto 0; max-width: 340px; text-align: center; font-size: 12.5px; color: var(--muted); }
.qty .qty-in { width: 52px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); text-align: center; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty .qty-in::-webkit-outer-spin-button, .qty .qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.unit.is-drag { cursor: grabbing; transition: none; transform: translate(-50%, -56%) rotate(var(--r, 0deg)) scale(1.1); }
.unit.is-drag img { filter: drop-shadow(0 14px 9px rgba(60,35,10,.35)); }

/* efek mendarat per langkah (config: efek) */
.boxwrap { overflow: visible; }
.spark { position: absolute; z-index: 20; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.pick.land-tuang { animation: tuang .85s cubic-bezier(.3,.7,.3,1); transform-origin: 50% 100%; }
@keyframes tuang {
  0% { clip-path: inset(100% 0 0 0); transform: translateY(14px) scaleY(.96); }
  60% { clip-path: inset(0 0 0 0); transform: none; }
  74% { transform: rotate(-2.5deg); }
  88% { transform: rotate(1.6deg); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
.pick.land-jatuh { animation: jatuh .7s cubic-bezier(.35,0,.5,1); }
@keyframes jatuh {
  0% { transform: translateY(-150%) scale(.8); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translateY(0) scale(1.1, .86); }
  72% { transform: translateY(-14%) scale(.94, 1.08); }
  88% { transform: translateY(0) scale(1.04, .96); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .pick.land-tuang, .pick.land-jatuh { animation: none; } .spark { display: none; } }

/* gelas hidup */
.gelas-host { position: absolute; left: 30%; top: 3.2%; width: 40%; height: 87%; }
#gelasSvg { width: 100%; height: 100%; overflow: visible; display: block; }
#gelasSvg #gG, #gelasSvg #gW { transform-box: view-box; transform-origin: 100px 284px; }
#gelasSvg #gLiq { transform-box: view-box; transform-origin: 100px 284px; transition: transform 1s cubic-bezier(.3,.8,.3,1); }
#gelasSvg #gKeju { transform-box: view-box; transform-origin: 100px 96px; transform: scaleY(0); transition: transform .7s cubic-bezier(.3,1.4,.5,1); }
#gelasSvg #gKrim { transform-box: view-box; transform-origin: 100px 80px; transform: scale(0); transition: transform .7s cubic-bezier(.3,1.8,.5,1); }
#gelasSvg #gStraw { transition: transform .7s cubic-bezier(.3,1.5,.5,1) .15s, opacity .3s; }
#gelasSvg #gIce { transition: opacity .4s; }
#gelasSvg stop { transition: stop-color .6s; }
#gelasSvg .gp { transform-box: fill-box; transform-origin: 50% 100%; }
#gelasSvg .gdrop { animation: gdrop .65s cubic-bezier(.35,0,.5,1) both; }
@keyframes gdrop {
  0% { transform: translateY(-200px); opacity: 0; }
  14% { opacity: 1; }
  58% { transform: translateY(0) scale(1.1, .86); }
  76% { transform: translateY(-7px) scale(.96, 1.06); }
  100% { transform: none; }
}
#gelasSvg .gbob { animation: gbob 2.6s ease-in-out infinite alternate; }
@keyframes gbob { from { transform: translateY(0) rotate(0); } to { transform: translateY(-4px) rotate(3deg); } }
#gelasSvg.static *, #gelasSvg.static { transition: none !important; animation: none !important; }

.tile .tile-info { position: absolute; right: 2px; bottom: -2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; font-style: italic; font-family: Georgia, serif; line-height: 1; box-shadow: 0 1px 4px rgba(48,34,20,.12); }
.tile .tile-info:hover { color: var(--ink); }

/* rating Google di halaman pembuka */
.cv-rate { display: flex; align-items: center; gap: 10px; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.cv-stars { display: inline-flex; gap: 1px; flex-shrink: 0; }
.cv-rate-t { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.cv-rate-go { flex-shrink: 0; margin-left: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 430px) { .cv-rate { gap: 8px; font-size: 12.5px; } .cv-rate-go { font-size: 12.5px; } .cv-stars svg { width: 15px; height: 15px; } }

#tasSvg { width: 100%; height: 100%; overflow: visible; display: block; }
#tasSvg #tG, #tasSvg #tW { transform-box: view-box; transform-origin: 100px 250px; }
#tasSvg #tBody { transition: fill .55s ease; }
#tasSvg #tStrap { transition: stroke .55s ease; }
#tasSvg #tMotifIn { transform-box: fill-box; transform-origin: center; }
#tasSvg #tMotifIn * { transition: fill .55s ease; }
#tasSvg.static *, #tasSvg.static { transition: none !important; animation: none !important; }

/* cerita scroll di halaman pembuka */
.cover.is-story { display: block; background: var(--bg); color: var(--ink); --st-ink: #E0304A; --st-font: 'Anton'; }
.cv-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.st-track { position: relative; }
.st-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.st-stage #stSvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; }
.cover.is-story .cv-brand, .cover.is-story .cv-brand span { color: var(--st-ink); font-weight: 800; letter-spacing: -.01em; }
.cover.is-story .cv-chip { background: rgba(255,255,255,.55); color: #2A1B1B; }
.st-cap { position: absolute; left: 0; right: 0; top: max(70px, calc(env(safe-area-inset-top) + 58px)); z-index: 3; padding: 0 20px; text-align: left; pointer-events: none; }
.st-cap h1 { margin: 0; font-family: var(--st-font), Impact, 'Arial Narrow', sans-serif; font-weight: 400; text-transform: uppercase; font-size: calc(clamp(60px, 21vw, 112px) * var(--k, 1)); line-height: .9; letter-spacing: -.005em; color: var(--st-ink); text-wrap: balance; max-width: 100%; overflow-wrap: break-word; transform-origin: 0 0; }
.st-cap h1.swap { animation: stcap .55s cubic-bezier(.2,.9,.2,1.15); }
@keyframes stcap { from { transform: translateY(26px) scale(.86) rotate(-2deg); opacity: 0; } }
.st-cap p { margin: 12px 0 0; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--st-ink); opacity: .85; min-height: 1.4em; max-width: 56%; }
.st-dots { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity .4s; pointer-events: none; color: var(--st-ink); }
.st-dots i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.st-dots i.on { transform: scale(1.4); box-shadow: 0 0 0 2px var(--st-ink); }
.st-dots span { margin-left: 8px; font-size: 15px; font-weight: 800; min-width: 92px; }
.st-hint { position: absolute; right: 14px; bottom: 26px; z-index: 3; width: 92px; height: 92px; color: var(--st-ink); transition: opacity .3s; pointer-events: none; will-change: transform; }
.st-hint svg { width: 100%; height: 100%; overflow: visible; }
.st-hint text { font-size: 11.6px; font-weight: 800; letter-spacing: .14em; fill: currentColor; }
.st-spin { transform-origin: 60px 60px; animation: stspin 16s linear infinite; }
@keyframes stspin { to { transform: rotate(360deg); } }
.st-arrow-bg { fill: var(--st-ink); }
.st-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 4; background: rgba(40,30,30,.08); }
.st-bar i { display: block; height: 100%; background: var(--st-ink); transform: scaleX(0); transform-origin: left; }
.st-end { position: relative; z-index: 2; padding: 26px 0 0; }
.st-panel { animation: none; border-radius: 28px 28px 0 0; width: 100%; max-width: 640px; margin: 0 auto; }
@media (min-width: 760px) { .st-panel { border-radius: 28px; margin-bottom: 28px; } .st-cap { padding: 0 48px; } }
@media (prefers-reduced-motion: reduce) { .st-spin { animation: none; } .st-cap h1.swap { animation: none; } }
.konfig-host { left: 6%; width: 88%; top: 4%; height: 86%; }
#kfSvg { width: 100%; height: 100%; overflow: visible; display: block; }
#kfSvg #kfG { transform-box: view-box; transform-origin: 180px 250px; }
#kfSvg .kf, #kfSvg .kl { stroke: rgba(40,30,30,.42); stroke-width: 2; stroke-linejoin: round; transition: fill .55s ease; }
#kfSvg #kfC3, #kfSvg #kfC2 { transition: opacity .35s; }
#kfSvg .kpil { transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
#kfSvg .kpr { transition: fill .5s; }
#kfSvg .gp { transform-box: fill-box; transform-origin: 50% 100%; }
#kfSvg .gdrop { animation: gdrop .65s cubic-bezier(.35,0,.5,1) both; }
#kfSvg.static *, #kfSvg.static { transition: none !important; animation: none !important; }

.kuota-sisa { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.kuota-list { margin: 6px 0 8px; font-size: 12.5px; color: var(--muted); }

/* cerita dengan tata letak samping: tokoh di kiri, teks di kanan */
.st-poin { list-style: none; margin: 14px 0 0; padding: 0; }
.st-poin:empty { display: none; }
.st-poin li { position: relative; padding-left: 22px; margin: 0 0 9px; font-size: 14.5px; line-height: 1.3; font-weight: 600; color: var(--st-ink); }
.st-poin li::before { content: ''; position: absolute; left: 3px; top: .38em; width: 6px; height: 11px; border: solid var(--st-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.st-side .st-stage #stSvg { inset: auto; left: -9%; bottom: 0; width: 64%; height: 80%; }
.st-side .st-cap { left: 52%; right: 0; top: 42%; transform: translateY(-50%); padding: 0 16px 0 4px; }
.st-side .st-cap h1 { font-size: calc(clamp(34px, 11vw, 62px) * var(--k, 1)); }
.st-side .st-cap p { max-width: none; font-size: 14px; }
@media (min-width: 760px) { .st-side .st-stage #stSvg { left: 6%; width: 42%; height: 82%; } .st-side .st-cap { left: 52%; padding: 0 48px 0 8px; } .st-side .st-cap h1 { font-size: calc(72px * var(--k, 1)); } .st-poin li { font-size: 17px; } }

/* tombol utama menempel di bawah layar dari awal sampai akhir cerita */
.cover.is-story .cv-cta.st-fix { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 20px calc(14px + env(safe-area-inset-bottom)); max-width: none; pointer-events: none; animation: none; }
.cover.is-story .cv-cta.st-fix .cv-go { pointer-events: auto; max-width: 600px; margin: 0 auto; background: var(--st-ink); color: var(--st-bg, #fff); box-shadow: 0 8px 22px rgba(30, 20, 20, .26); transition: transform .12s, background .3s, color .3s; }
.cover.is-story .st-bar { bottom: 0; }
.cover.is-story .st-end { padding-bottom: 96px; }
.cover.is-story .st-hint { bottom: 92px; }
.cover.is-story .st-dots { bottom: 96px; }
.cover.is-story .st-stage #stSvg { bottom: 78px; height: calc(100% - 78px); }
.st-side .st-stage #stSvg { bottom: 78px; height: 74%; }

/* tombol WhatsApp melayang */
.wa-fab { position: fixed; right: 14px; bottom: 96px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 12px; border-radius: 999px; background: #1FAF5A; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 8px 22px rgba(20, 90, 50, .35); transition: transform .15s; }
.wa-fab[hidden] { display: none; }
.wa-fab:active { transform: scale(.96); }
.wa-fab svg { width: 26px; height: 26px; flex-shrink: 0; }
body:not(:has(.cover:not(.is-off))) .wa-fab { display: none; }
body:has(.detail) .wa-fab, body:has(#sheet:not([hidden])) .wa-fab { display: none; }
.cover.is-story .st-hint { bottom: 156px; }
@media (min-width: 760px) { .wa-fab { right: 24px; bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } }

/* halaman pembuka satu layar: tombol WhatsApp di samping tombol utama, tidak menutupi teks */
.cv-cta.has-wa { display: flex; gap: 10px; align-items: center; }
.cv-cta.has-wa .cv-go { flex: 1; width: auto; }
.cv-wa { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #1FAF5A; box-shadow: 0 6px 16px rgba(20, 90, 50, .3); }
.cv-wa svg { width: 30px; height: 30px; }
.cv-wa:active { transform: scale(.95); }
body:has(.cover:not(.is-off):not(.is-story)) .wa-fab { display: none; }

/* mode foto asli: bingkai dokter utuh di kiri */
.st-side.st-foto .st-stage #stSvg { left: 0; width: 52%; height: 78%; }
.st-side.st-foto .st-cap { left: 52%; }
@media (min-width: 760px) { .st-side.st-foto .st-stage #stSvg { left: 8%; width: 38%; height: 82%; } .st-side.st-foto .st-cap { left: 52%; } }

/* klinik (mode foto): gradasi biru gelap ke hitam */
/* klinik (mode foto): terang dan bersih */
.st-foto .st-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 20% 92%, rgba(255, 255, 255, .20), transparent 70%), radial-gradient(60% 40% at 92% 6%, rgba(160, 215, 235, .18), transparent 72%); }

/* gelas dari foto */
.gf { position: absolute; inset: 0; }
.gf-cup { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); transition: height .55s cubic-bezier(.3,1.5,.5,1); filter: drop-shadow(0 10px 10px rgba(40,30,20,.16)); }
.gf-base { display: block; height: 100%; width: auto; max-width: none; user-select: none; pointer-events: none; }
.gf-lay { position: absolute; inset: 0; pointer-events: none; }
.gf-t { position: absolute; height: auto; user-select: none; }
.gf-in { animation: gfdrop .5s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes gfdrop { from { opacity: 0; transform: translateY(-26px) scale(.9); } to { opacity: 1; transform: none; } }
.gf-sugar { position: absolute; left: 4%; bottom: 14%; width: 24%; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .3s; }
.gf-sugar img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(40,30,20,.18)); }

.gf-sub { clip-path: polygon(11% 26%, 89% 26%, 83% 95%, 17% 95%); }

/* tulisan cerita: naik per kata, melayang pelan mengikuti scroll, poin masuk bergiliran */
.st-idx { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--st-ink); opacity: .7; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; min-height: 1em; }
.st-idx:not(:empty)::after { content: ''; width: 34px; height: 2px; background: var(--st-ink); opacity: .6; transform-origin: left; }
.st-cap.go .st-idx:not(:empty)::after { animation: stline .7s cubic-bezier(.2,.9,.2,1) both; }
@keyframes stline { from { transform: scaleX(0); } }
.st-cap h1 { transform: translateY(calc((.5 - var(--t, .5)) * 26px)); letter-spacing: .012em; line-height: .94; }
.st-cap h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .08em; margin: -.04em -.02em -.08em; }
.st-cap h1 .w > span { display: inline-block; transform: translateY(112%); }
.st-cap.go h1 .w > span { animation: stw .78s cubic-bezier(.16,.92,.2,1) both; animation-delay: calc(var(--i) * 85ms); }
@keyframes stw { from { transform: translateY(112%) rotate(5deg); filter: blur(5px); } to { transform: none; filter: blur(0); } }
.st-cap h1.st-ghost { position: absolute; width: calc(100% - 40px); transform: none; pointer-events: none; }
.st-side .st-cap h1.st-ghost { width: calc(100% - 20px); }
@media (min-width: 760px) { .st-cap h1.st-ghost { width: calc(100% - 96px); } .st-side .st-cap h1.st-ghost { width: calc(100% - 56px); } }
.st-cap h1.st-ghost .w > span { transform: none; animation: stwo .5s cubic-bezier(.5,0,.8,.4) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes stwo { to { transform: translateY(-112%) rotate(-4deg); opacity: 0; filter: blur(4px); } }
.st-cap.go p { animation: stfade .7s .35s both; }
@keyframes stfade { from { opacity: 0; transform: translateY(10px); } }
.st-poin li { opacity: 0; transform: translateX(-18px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.2,1); }
.st-poin li::before { transform: rotate(40deg) scale(0); transition: transform .4s .12s cubic-bezier(.3,1.6,.5,1); }
.st-poin li.on { opacity: 1; transform: none; }
.st-poin li.on::before { transform: rotate(40deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .st-cap h1 .w > span { transform: none !important; animation: none !important; } .st-cap.go p { animation: none; } .st-poin li, .st-poin li::before { transition: none; } .st-cap h1 { transform: none; } }

/* nama tokoh di dekat foto */
.st-docname { position: absolute; left: 52%; bottom: 33%; z-index: 3; padding: 0 16px 0 4px; color: var(--st-ink); pointer-events: none; }
.st-docname b { display: block; font-family: var(--st-font), Impact, 'Arial Narrow', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: .02em; }
.st-docname span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.st-docname.in { animation: stdoc .6s cubic-bezier(.2,.9,.2,1) both; }
@keyframes stdoc { from { opacity: 0; transform: translateX(-14px); } }
@media (min-width: 760px) { .st-docname { left: 52%; bottom: 14%; padding-left: 8px; } .st-docname b { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { .st-docname.in { animation: none; } }

/* nama dokter kecil, sejajar tombol WhatsApp, sisi kiri */
.st-docname { position: fixed; left: 16px; right: auto; bottom: 96px; height: 48px; display: flex; flex-direction: column; justify-content: center; padding: 0; z-index: 69; max-width: 52vw; }
.st-docname b { font-size: 15px; letter-spacing: .04em; }
.st-docname span { margin-top: 3px; font-size: 9px; letter-spacing: .16em; line-height: 1.3; }
body:not(:has(.cover:not(.is-off))) .st-docname, body:has(.detail) .st-docname, body:has(#sheet:not([hidden])) .st-docname { display: none; }
@media (min-width: 760px) { .st-docname { left: 24px; bottom: 28px; padding: 0; } .st-docname b { font-size: 16px; } }
.st-docname { color: #fff; text-shadow: 0 1px 8px rgba(2, 6, 16, .95), 0 0 2px rgba(2, 6, 16, .8); }
.st-docname::before { content: ''; position: absolute; inset: -10px -24px -10px -16px; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(3, 8, 20, .72), rgba(3, 8, 20, 0) 72%); }
.st-docname span { opacity: .9; white-space: nowrap; }

/* ===== Rapikan tampilan: tanpa pill/kotak berbingkai untuk label, tombol ikut lengkung tema ===== */
.chip, .cv-chip, .bchip, .tab { border: 0; border-radius: 0; background: transparent; padding-left: 0; padding-right: 0; }
.chip { gap: 6px; }
.cv-chip { background: transparent; }
.tab { padding: 6px 10px; position: relative; }
.tab.is-on, .tab[aria-selected="true"], .tab.on { background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.bchip .n { border: 0; width: auto; height: auto; border-radius: 0; font-variant-numeric: tabular-nums; }
.bchip { gap: 4px; padding: 5px 8px; }
.tag-out { position: static; display: block; padding: 0; background: none; color: var(--warn); border-radius: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.in-cart, .more { background: none; color: var(--ink); border-radius: 0; padding: 0 2px; min-width: 0; font-weight: 800; text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
.in-cart::before { content: '×'; font-weight: 600; margin-right: 1px; }
.qty { border: 0; background: transparent; }
.btn { border: 0; background: transparent; border-radius: var(--r, 999px); box-shadow: inset 0 0 0 0 transparent; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; padding-left: 8px; padding-right: 8px; }
.btn.btn-primary { text-decoration: none; background: var(--btn-bg, var(--ink)); color: var(--btn-fg, #fff); padding-left: 20px; padding-right: 20px; }
.toast { border-radius: var(--r, 999px); }
.wa-fab { border-radius: var(--r, 999px); }
.bar-btn, .cart-bar, .nextbar { border-radius: var(--r, 999px); }

/* poin cerita: garis pendek, bukan centang */
.st-poin li { padding-left: 26px; }
.st-poin li::before { content: ''; left: 0; top: .72em; width: 16px; height: 0; border: 0; border-top: 1.5px solid var(--st-ink); border-width: 1.5px 0 0; transform: scaleX(0); transform-origin: left; opacity: .8; transition: transform .45s .1s cubic-bezier(.2,.9,.2,1); }
.st-poin li.on::before { transform: scaleX(1); }
.cover.is-story .cv-chip, .cover .cv-chip { background: transparent; color: var(--st-ink, #fff); padding: 0; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.cover.is-story .cv-chip.is-open { color: var(--st-ink, #fff); }

/* cerita foto: dunia kecil yang kameranya mendekat dan menjauh */
.fs-world { position: absolute; left: 50%; top: 60%; width: min(100vw, 76vh); aspect-ratio: 1 / 1; transform-origin: 50% 50%; will-change: transform; }
.fs-it { position: absolute; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 14px 18px rgba(30, 20, 10, .22)); will-change: transform, opacity; }
.cover.is-story .st-stage #stSvg.fs-world { inset: auto; bottom: auto; left: 50%; top: 60%; width: min(100vw, 76vh); height: auto; overflow: visible; }
.st-nu .st-cap h1 { text-transform: none; font-weight: 700; letter-spacing: -.02em; line-height: 1.02; font-size: calc(clamp(38px, 12.4vw, 76px) * var(--k, 1)); }
@media (min-width: 760px) { .cover.is-story .st-stage #stSvg.fs-world { top: 56%; width: min(70vw, 84vh); } }
.st-nu .st-cap::before { content: ''; position: absolute; left: 0; right: 0; top: -80px; bottom: -34px; z-index: -1; background: linear-gradient(to bottom, var(--st-bg) 62%, transparent); pointer-events: none; }

.st-docname { color: var(--st-ink, #0E2A47); text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .8); }
.st-docname::before { background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 72%); }

.st-docname { color: var(--st-ink, #F4F9FC); text-shadow: 0 1px 8px rgba(8, 28, 48, .65); }
.st-docname::before { background: radial-gradient(ellipse at 30% 50%, rgba(8, 28, 48, .45), rgba(8, 28, 48, 0) 72%); }
.stage:has(.konfig-host) .tray-img { display: none; }
.bstage { background: none; }

/* klinik: huruf biasa di tata samping, ukuran pas setengah layar */
.st-side.st-nu .st-cap h1 { font-size: calc(clamp(24px, 7.4vw, 46px) * var(--k, 1)); line-height: 1.08; }
.st-side.st-nu .st-cap::before { top: -40px; bottom: -20px; }
.st-side.st-nu .st-cap::before { display: none; }
.qris-oto { margin: 10px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); }
