/* ng.my — one stylesheet for every page. Phone first. */
:root {
  --bg: #fbf6ee;
  --card: #fffdf9;
  --ink: #231c16;
  --muted: #74685c;
  --line: #e9dfd0;
  --brand: #b8321f;
  --gold: #f1b434;
  --green: #1c6e47;
  --wa: #128c4b;
  --radius: 14px;
  --font: ui-rounded, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Nirmala UI", "Noto Sans Tamil", "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }

/* ---------- buttons & form bits ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 52px; padding: 12px 18px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-danger { background: var(--card); border-color: #b3261e; color: #b3261e; }
.btn-small { min-height: 42px; width: auto; padding: 8px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-link { background: none; border: 0; padding: 12px; color: var(--muted); text-decoration: underline; display: block; margin: 0 auto; }
label { display: block; font-size: .86rem; font-weight: 650; color: var(--muted); }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=email], input[type=datetime-local], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 12px 13px; min-height: 48px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 11px; color: var(--ink); font-size: 1rem; font-weight: 400;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; }
.hint, .fine { color: var(--muted); font-size: .86rem; }

/* ---------- customer menu ---------- */
.menu-page { max-width: 640px; margin: 0 auto; padding-bottom: 40px; }
.menu-page.has-bar { padding-bottom: 110px; }
.stall-head { padding: 14px 16px 16px; position: relative; }
.lang { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.lang button {
  border: 1.5px solid var(--line); background: transparent; border-radius: 99px; padding: 5px 11px;
  font-size: .8rem; font-weight: 700; color: var(--muted); min-height: 34px;
}
.lang button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.head-main { display: flex; gap: 14px; align-items: center; }
.logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: none; }
.logo-letter {
  display: grid; place-items: center; background: var(--brand); color: #fff;
  font-size: 2rem; font-weight: 800; text-transform: uppercase; transform: rotate(-4deg);
}
.stall-head h1 { font-size: 1.65rem; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.tagline { color: var(--muted); margin-top: 3px; }
.bio { margin-top: 12px; white-space: pre-line; overflow-wrap: anywhere; font-size: .97rem; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--card); font-weight: 700; font-size: .88rem; text-decoration: none; }
.links a.is-map { background: var(--ink); color: var(--bg); }
.links a.is-wa { border-color: var(--wa); color: var(--wa); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill { background: var(--ink); color: var(--bg); border-radius: 99px; padding: 4px 12px; font-size: .84rem; font-weight: 700; }
.pill-closed { background: #b3261e; color: #fff; }
.meta { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.meta svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice {
  margin-top: 14px; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  background: color-mix(in srgb, var(--gold) 30%, var(--bg)); border-left: 5px solid var(--gold);
}

.cat-nav {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 8px 14px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: .92rem;
  background: var(--card); border: 1.5px solid var(--line); white-space: nowrap;
}
.cat-nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.menu { padding: 0 16px; }
.menu section { padding-top: 22px; }
.menu h2 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--brand);
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.item { display: flex; gap: 12px; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.item-body { min-width: 0; flex: 1; }
.item h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.desc { color: var(--muted); font-size: .9rem; margin-top: 3px; overflow-wrap: anywhere; }
.price { font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag { font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; background: #eee4d6; }
.tag-pedas { background: #fbdcd5; color: #99200f; }
.tag-vege { background: #d9eedd; color: #14532d; }
.tag-signature { background: #fbe8b6; color: #6b4300; }
.tag-baru { background: #d8e8f6; color: #0b4a75; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; flex: none; }
.item-side img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--line); }
.item.is-sold h3, .item.is-sold .price, .item.is-sold .desc { opacity: .45; }
.item.is-sold img { filter: grayscale(1); opacity: .6; }
.sold { font-size: .8rem; font-weight: 800; text-transform: uppercase; padding: 6px 10px; border: 2px solid currentColor; border-radius: 8px; color: #b3261e; transform: rotate(-3deg); display: inline-block; }
.add {
  min-height: 42px; padding: 6px 14px; border-radius: 99px; background: var(--card);
  border: 2px solid var(--brand); color: var(--brand); font-weight: 800; white-space: nowrap;
}
.stepper { display: inline-flex; align-items: center; background: var(--brand); border-radius: 99px; color: #fff; flex: none; }
.stepper button { width: 42px; height: 42px; border: 0; background: none; color: inherit; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.menu-foot { text-align: center; padding: 34px 16px 10px; font-size: .84rem; color: var(--muted); }
.menu-foot a { text-decoration: none; }

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.cartbar .btn { max-width: 608px; margin: 0 auto; box-shadow: 0 6px 20px rgb(35 28 22 / .22); }
.cartbar .btn-brand { justify-content: space-between; }

.sheet {
  border: 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); margin: auto auto 0; width: 100%; max-width: 640px;
  max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--ink);
}
.sheet::backdrop { background: rgb(35 28 22 / .55); }
.sheet > * + * { margin-top: 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h2 { font-size: 1.25rem; font-weight: 800; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--line); font-size: 1.5rem; line-height: 1; flex: none; }
.lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ln-name { flex: 1; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.ln-name small { display: block; color: var(--muted); font-weight: 400; }
.ln-total { width: 82px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.fields { display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 2px; font-size: 1.05rem; }
.total b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.pay-total { padding: 12px 16px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); }
.qr-frame { background: #fff; border-radius: 18px; padding: 10px; max-width: 300px; margin-left: auto; margin-right: auto; border: 1px solid var(--line); }
.qr-frame svg, .qr-frame img { width: 100%; height: auto; display: block; }
.payee { text-align: center; }
.steps { counter-reset: s; display: grid; gap: 8px; font-size: .93rem; }
.steps li { counter-increment: s; display: flex; gap: 10px; }
.steps li::before {
  content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: .8rem; display: grid; place-items: center;
}

/* ---------- vendor admin ---------- */
.admin { max-width: 640px; margin: 0 auto; padding: 0 16px 110px; }
.auth { max-width: 440px; margin: 0 auto; padding: 28px 18px 60px; }
.wordmark { font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; text-decoration: none; }
.wordmark i { font-style: normal; color: var(--brand); }
.auth h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 26px 0 6px; line-height: 1.15; }
.auth form, .stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.auth form { margin-top: 20px; }
.slug-row { display: flex; align-items: center; margin-top: 5px; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding-left: 13px; }
.slug-row span { color: var(--muted); font-weight: 500; }
.slug-row input { border: 0; margin: 0; padding-left: 2px; background: none; font-weight: 700; }
/* social icons, bank box, ads, enquiries, admin extras */
.soc { display: inline-flex; gap: 6px; align-items: center; }
.links .soc a { display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); flex: none; }
.soc svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bankbox { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.bankbox h3 { font-size: 1.05rem; font-weight: 800; }
.bankbox dl { display: grid; gap: 2px; margin: 0; }
.bankbox dt { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.bankbox dt:first-child { margin-top: 0; }
.bankbox dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.bankbox .acct { white-space: nowrap; }
.bankbox .acct { font: 800 1.15rem ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.bankbox .btn { justify-self: start; }
.poster .bank-box { margin-top: 8mm; max-width: none; }
.poster .bank-box p { font-size: 14pt; line-height: 1.5; }
.diag { display: grid; gap: 8px; margin-top: 12px; font-size: .92rem; }
.diag li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.diag li > b:first-child { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: #fff; background: var(--green); }
.diag li.warn > b:first-child { background: #b3261e; }
.diag code { font: 600 .84rem ui-monospace, Consolas, monospace; }
/* admin tabs wrap onto extra rows so every section is visible */
.cat-nav.admin-tabs { position: static; flex-wrap: wrap; overflow: visible; padding: 8px 0; border: 0; background: none; backdrop-filter: none; }
.cat-nav.admin-tabs a { padding: 7px 13px; font-size: .88rem; }
/* VIP */
.swatches button { display: grid; place-items: center; }
.swatches button.locked { opacity: .5; }
.swatches button.locked span { color: #fff; font-weight: 900; font-size: .95rem; text-shadow: 0 1px 2px rgb(0 0 0 / .45); }
select[disabled] { opacity: .6; cursor: not-allowed; }
.vip-badge { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 900; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px;
  background: linear-gradient(135deg, #f1b434, #e08b1b); color: #3a2400; box-shadow: 0 1px 0 rgb(0 0 0 / .08); white-space: nowrap; position: relative; top: -2px; }
.vip-card { border: 2px solid #e5b54a; background: linear-gradient(180deg, #fff8e6, var(--card)); }
.vip-card .code { font-size: 1.35rem; margin: 6px 0 2px; }
.vip-steps { counter-reset: s; display: grid; gap: 6px; margin: 10px 0 4px; font-size: .93rem; }
.vip-steps li { counter-increment: s; display: flex; gap: 10px; }
.vip-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; font-size: .78rem; display: grid; place-items: center; }
.vip-perks { list-style: disc; padding-left: 1.2em; display: grid; gap: 3px; color: var(--muted); font-size: .92rem; margin: 8px 0; }
.limit-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.limit-note.full { color: #b3261e; font-weight: 650; }
.limits-grid { display: grid; grid-template-columns: minmax(64px, 1fr) repeat(3, minmax(0, 84px)); gap: 6px 8px; align-items: center; margin-top: 6px; }
.limits-grid b { font-size: .8rem; color: var(--muted); text-align: center; }
.limits-grid input { margin-top: 0; text-align: center; padding: 8px 4px; min-height: 42px; width: 100%; min-width: 0; }
.limits-grid span { font-size: .88rem; font-weight: 650; }
.ad-wrap:empty { display: none; }
.ad-wrap { max-width: 640px; margin: 22px auto 0; padding: 0 16px; }
.prose-ad { max-width: 720px; padding: 0 20px 30px; }
.ad-slot { display: block; border-top: 1px dashed var(--line); padding-top: 8px; overflow: hidden; }
.ad-slot > span { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-slot iframe { width: 100%; border: 0; display: block; }
.admin .ad-wrap { padding: 0; margin-top: 26px; }
.contact-form { margin: 18px 0 26px; }
.contact-form .card { margin-top: 0; }
.enq { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.enq.is-done { opacity: .6; }
.enq-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; }
.enq .actions { margin-top: 8px; }
details.names { border-top: 1px solid var(--line); padding: 10px 0; }
details.names summary { cursor: pointer; font-weight: 700; }
details.names p { margin-top: 8px; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.colorpick { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.colorpick input[type=color] { width: 54px; height: 44px; padding: 2px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.colorpick code { font: 600 .9rem ui-monospace, Consolas, monospace; color: var(--ink); }
.del-list { list-style: disc; padding-left: 1.3em; display: grid; gap: 4px; color: var(--muted); }
.ts:empty { display: none; }
.ts { min-height: 65px; }
.code {
  font: 800 1.7rem ui-monospace, Consolas, monospace; letter-spacing: .08em; text-align: center; user-select: all;
  padding: 18px 10px; background: #fff; border: 2px dashed var(--ink); border-radius: var(--radius);
}
.code-in { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 52dvh; overflow-y: auto; margin-top: 14px; padding: 4px 2px; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: color-mix(in srgb, var(--brand) 10%, white); border-color: color-mix(in srgb, var(--brand) 30%, white); border-radius: 16px; border-bottom-right-radius: 5px; }
.bubble.guest { align-self: flex-end; background: #fff6d8; border-color: #e6c766; border-radius: 16px; border-bottom-right-radius: 5px; }
.bubble b { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bubble span { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble small { display: block; font-size: .72rem; color: var(--muted); margin-top: 3px; }
.tabs button { position: relative; }
.dot { position: absolute; top: 5px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #b3261e; color: #fff; font: 800 .68rem/18px var(--font); font-style: normal; text-align: center; }
.badge { display: inline-block; vertical-align: middle; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: #eee4d6; color: var(--ink); }
.badge-admin { background: var(--ink); color: var(--bg); }
.badge-moderator { background: #d8e8f6; color: #0b4a75; }
.badge-bad { background: #b3261e; color: #fff; }
.card.is-suspended { border-color: #e7a99d; background: #fdf1ee; }
.card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card p a { font-weight: 700; }
.suspended-note { margin-top: 10px; padding: 12px 14px; border-radius: var(--radius); background: #b3261e; color: #fff; font-weight: 650; }
.msg { font-size: .88rem; font-weight: 650; min-height: 1.2em; }
.msg.ok { color: var(--green); }
.msg.bad { color: #b3261e; }
.switch-auth { margin-top: 22px; text-align: center; color: var(--muted); }
.switch-auth button { background: none; border: 0; font-weight: 700; text-decoration: underline; padding: 8px; }
.tpl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.tpl label { display: block; }
.tpl input { position: absolute; opacity: 0; }
.tpl span { display: block; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 650; }
.tpl input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); }
.tpl input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 10px; }
.top h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }
.statbar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.stat b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: .74rem; color: var(--muted); font-weight: 650; }
.shopswitch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 1rem;
}
.shopswitch.is-closed { background: #fbdcd5; border-color: #e7a99d; }
.toggle { appearance: none; -webkit-appearance: none; width: 54px; height: 32px; border-radius: 99px; background: #c9bfb2; position: relative; flex: none; margin: 0; border: 0; cursor: pointer; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.toggle:checked { background: var(--green); }
.toggle:checked::after { transform: translateX(22px); }

.cat { margin-top: 22px; }
.cat-head { display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.cat-head input { flex: 1; min-width: 0; margin: 0; border-color: transparent; background: transparent; font-weight: 800; font-size: 1.05rem; padding: 6px 8px; min-height: 42px; }
.cat-head input:focus { background: #fff; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); flex: none; font-size: 1rem; font-weight: 700; display: grid; place-items: center; }
.icon-btn[disabled] { opacity: .3; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 4px 0; min-height: 48px; }
.row-main img, .row-main .ph { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; background: var(--line); }
.row-name { font-weight: 650; overflow-wrap: anywhere; line-height: 1.25; }
.row-name small { display: block; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.row.is-sold .row-name, .row.is-hidden .row-name { opacity: .5; }
.row-sw { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--muted); flex: none; width: 58px; }
.add-row { margin-top: 10px; background: none; border: 2px dashed var(--line); border-radius: 12px; width: 100%; min-height: 48px; font-weight: 700; color: var(--brand); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.card h2 { font-size: 1.08rem; font-weight: 800; margin-bottom: 4px; }
.card > p { color: var(--muted); font-size: .92rem; }
.card .stack { margin-top: 14px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--line); }
.swatches button[aria-pressed=true] { box-shadow: 0 0 0 3px var(--ink); }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 1rem; }
.check small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--line); }
.photo-row { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.file { position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.tagpick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tagpick label { color: var(--ink); }
.tagpick input { position: absolute; opacity: 0; }
.tagpick span { display: block; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; }
.tagpick input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tagpick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.linkbox { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.linkbox code { flex: 1; min-width: 0; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .92rem ui-monospace, Consolas, monospace; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabs button { flex: 1; max-width: 160px; border: 0; background: none; padding: 9px 4px 10px; font-size: .78rem; font-weight: 700; color: var(--muted); display: grid; justify-items: center; gap: 3px; min-height: 58px; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-selected=true] { color: var(--brand); }
.saved { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 30; background: var(--ink); color: var(--bg); border-radius: 99px; padding: 6px 14px; font-size: .82rem; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.saved.show { opacity: 1; }
.saved.bad { background: #b3261e; color: #fff; }

/* ---------- landing ---------- */
.land { overflow-x: hidden; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.land-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.land-nav .btn { width: auto; }
.hero { display: grid; gap: 36px; padding: 28px 0 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 8.5vw, 4.3rem); line-height: 1; font-weight: 900; letter-spacing: -.04em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: 1.15rem; color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta .btn { width: auto; flex: 1 1 200px; max-width: 280px; }
.hero small { display: block; margin-top: 14px; color: var(--muted); }
.phone {
  width: min(300px, 78vw); margin: 0 auto; background: var(--card); border: 3px solid var(--ink); border-radius: 34px;
  padding: 22px 16px 16px; box-shadow: 12px 12px 0 var(--gold); transform: rotate(2deg);
}
.phone .ph-head { display: flex; gap: 10px; align-items: center; }
.phone .logo-letter { width: 44px; height: 44px; border-radius: 13px; font-size: 1.4rem; }
.phone b.n { font-size: 1.05rem; line-height: 1.1; display: block; }
.phone .ph-cat { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); border-bottom: 2px solid var(--ink); padding: 14px 0 5px; }
.phone .ph-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; font-weight: 650; }
.phone .ph-item small { display: block; font-weight: 800; }
.phone .add { min-height: 32px; font-size: .78rem; padding: 3px 10px; pointer-events: none; }
.phone .ph-bar { margin-top: 14px; background: var(--brand); color: #fff; border-radius: 12px; padding: 11px 14px; display: flex; justify-content: space-between; font-weight: 800; font-size: .88rem; }
.band { background: var(--ink); color: var(--bg); padding: 56px 0; }
.band h2, .sec h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.how { display: grid; gap: 26px; margin-top: 32px; counter-reset: h; }
.how li { counter-increment: h; padding-left: 62px; position: relative; }
.how li::before { content: counter(h); position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 1.4rem; display: grid; place-items: center; transform: rotate(-4deg); }
.how h3 { font-size: 1.15rem; font-weight: 800; }
.how p { color: #cfc4b6; margin-top: 4px; }
.sec { padding: 56px 0; }
.feats { display: grid; gap: 14px; margin-top: 30px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feat h3 { font-size: 1.05rem; font-weight: 800; }
.feat p { color: var(--muted); margin-top: 5px; font-size: .95rem; }
.final { text-align: center; padding: 20px 0 70px; }
.final .cta { justify-content: center; }
.land-foot { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--muted); font-size: .88rem; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.25fr 1fr; padding: 48px 0 84px; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .feats { grid-template-columns: repeat(3, 1fr); }
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
.foot-links a { font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 0; }
.foot-links a:hover { text-decoration: underline; }
.prose { max-width: 720px; margin: 0 auto; padding: 18px 20px 56px; font-size: 1.04rem; line-height: 1.62; }
.prose h1 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 22px; text-wrap: balance; }
.prose h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 34px 0 10px; }
.prose h3 { font-size: 1.08rem; font-weight: 800; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; padding-left: 3px; }
.prose li::marker { color: var(--brand); font-weight: 800; }
.prose a { color: var(--brand); font-weight: 650; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 2px solid var(--ink); margin: 44px 0 0; }
.prose-date { color: var(--muted); font-size: .86rem; margin-top: 36px !important; }
.editor { font: 400 .93rem/1.5 ui-monospace, Consolas, monospace; min-height: 46dvh; }
.notfound { min-height: 80dvh; display: grid; place-content: center; text-align: center; padding: 20px; gap: 14px; }
.notfound h1 { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; }
.notfound .btn { width: auto; margin: 6px auto 0; }

/* ---------- printable stickers ---------- */
.print-page { background: #e9e3d9; }
.print-ui { max-width: 760px; margin: 0 auto; padding: 16px; display: grid; gap: 12px; }
.print-ui h1 { font-size: 1.35rem; font-weight: 800; }
.print-ui .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sheets { display: grid; gap: 16px; justify-content: center; padding: 0 8px 40px; }
.a4 { width: 210mm; min-height: 297mm; padding: 9mm; background: #fff; color: #000; box-shadow: 0 2px 14px rgb(0 0 0 / .18); display: grid; align-content: start; gap: 0; }
.a4.g3 { grid-template-columns: repeat(3, 1fr); }
.a4.g2 { grid-template-columns: repeat(2, 1fr); }
.a4.g1 { grid-template-columns: 1fr; }
.stk { border: .3mm dashed #999; padding: 5mm 4mm 4mm; text-align: center; display: grid; gap: 2mm; justify-items: center; align-content: center; break-inside: avoid; overflow: hidden; }
.g3 .stk { height: 93mm; }
.g2 .stk { height: 139.5mm; padding: 8mm; gap: 3.5mm; }
.stk-name { font-weight: 800; font-size: 11pt; line-height: 1.1; max-height: 2.3em; overflow: hidden; overflow-wrap: anywhere; }
.g2 .stk-name { font-size: 16pt; }
.stk-qr { width: 40mm; }
.g2 .stk-qr { width: 66mm; }
.stk-qr svg { width: 100%; height: auto; display: block; }
.stk-scan { font-weight: 900; font-size: 9.5pt; letter-spacing: .02em; line-height: 1.25; text-transform: uppercase; }
.g2 .stk-scan { font-size: 14pt; }
.stk-scan small { display: block; font-weight: 600; font-size: .78em; text-transform: none; }
.stk-table { background: #000; color: #fff; border-radius: 2mm; padding: .8mm 4mm; font-weight: 900; font-size: 12pt; }
.g2 .stk-table { font-size: 18pt; }
.stk-url { font: 600 7.5pt ui-monospace, Consolas, monospace; color: #444; }
.g2 .stk-url { font-size: 10pt; }
.poster { display: grid; gap: 8mm; text-align: center; align-content: start; justify-items: center; padding-top: 8mm; }
.poster h2 { font-size: 34pt; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.poster .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; width: 100%; margin-top: 6mm; }
.poster .cols.one { grid-template-columns: 1fr; justify-items: center; }
.poster .box { border: 1.2mm solid #000; border-radius: 6mm; padding: 7mm; display: grid; gap: 4mm; justify-items: center; align-content: start; max-width: 110mm; width: 100%; }
.poster .box h3 { font-size: 19pt; font-weight: 900; line-height: 1.1; }
.poster .box p { font-size: 11pt; }
.poster .box .q { width: 100%; }
.poster .box .q svg, .poster .box .q img { width: 100%; height: auto; display: block; }
.poster .url { font: 700 13pt ui-monospace, Consolas, monospace; }
@media screen and (max-width: 820px) {
  .sheets { justify-content: start; overflow-x: auto; }
  .a4 { zoom: .44; }
}
@media print {
  @page { size: A4; margin: 0; }
  .print-page { background: #fff; }
  .print-ui { display: none; }
  .sheets { display: block; padding: 0; }
  .a4 { box-shadow: none; zoom: 1; break-after: page; height: 297mm; }
  .a4:last-child { break-after: auto; }
}

/* VIP: promo banner and item of the day (menu) */
.promo { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.promo-star { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1b434; color: #3a2400; font-weight: 900; font-size: 1.05rem; }
.promo-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.promo-body b { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.promo-body span { font-size: .9rem; opacity: .95; }
.promo-body small { font-size: .78rem; opacity: .8; }
.promo-go { flex: none; background: #fff; color: var(--brand); font-weight: 800; font-size: .86rem; padding: 7px 13px; border-radius: 99px; text-decoration: none; }
.item.is-today { outline: 2px solid #e5b54a; outline-offset: -2px; border-radius: 12px; padding-inline: 12px; margin-inline: -12px; background: linear-gradient(180deg, #fff8e6, var(--card)); scroll-margin-top: 70px; }
.today-tag { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; color: #8a5a00; margin-bottom: 2px; }

/* VIP: statistics + promo editor (dashboard) */
.stat-more { display: block; margin: 6px 0 0 auto; padding: 2px 0; font-size: .86rem; }
.sx-totals { margin: 4px 0 6px; }
.sx-h { font-size: 1rem; font-weight: 800; margin-top: 16px; }
.sx-top { display: grid; gap: 8px; margin-top: 8px; }
.sx-top li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sx-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.sx-top li:first-child .sx-rank { background: #e5a51f; color: #3a2400; }
.sx-name { display: grid; gap: 3px; font-weight: 700; font-size: .93rem; min-width: 0; }
.sx-name small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.sx-name small:empty { display: none; }
.sx-bar { display: block; height: 6px; border-radius: 99px; background: var(--brand); }
.sx-top b { font-variant-numeric: tabular-nums; }
.sx-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 110px; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.sx-hours i { display: block; background: color-mix(in srgb, var(--brand) 45%, var(--card)); border-radius: 3px 3px 0 0; min-height: 2px; }
.sx-hours i.peak { background: var(--brand); }
.sx-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: 3px; }
.sx-peak { font-weight: 700; margin-top: 8px; }
.sx-demo { filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; margin: 6px 0 12px; max-height: 330px; overflow: hidden; }
.empty-s { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.promo-card { border: 2px solid #e5b54a; }
.promo-card.locked { border-style: dashed; background: none; }
.promo-state { display: inline-block; font-size: .78rem; font-weight: 800; color: #1c6e47; background: #dff3e7; border-radius: 99px; padding: 2px 10px; margin-bottom: 6px; }
.promo-state.ended { color: #8a2a1a; background: #fbe2dc; }
input[type=datetime-local] { width: 100%; }

/* VIP: sticker designs */
.print-ui .vip-badge { font-size: .62rem; padding: 2px 6px; top: -1px; }
.vip-note { margin-top: 8px; }
[data-design=warna] .stk { border-color: var(--stk); }
[data-design=warna] .stk-name { background: var(--stk); color: #fff; padding: 1.5mm 4mm; border-radius: 2mm; max-width: 100%; }
[data-design=warna] .stk-scan { color: var(--stk); }
[data-design=warna] .stk-table { background: var(--stk); }
[data-design=warna] .poster h2 { color: var(--stk); }
[data-design=warna] .poster .box { border-color: var(--stk); }
[data-design=warna] .poster .box h3 { color: var(--stk); }
[data-design=bingkai] .stk { border: none; padding: 3mm; }
[data-design=bingkai] .stk > * { position: relative; }
[data-design=bingkai] .stk { position: relative; }
[data-design=bingkai] .stk::before { content: ''; position: absolute; inset: 2.5mm; border: 1.6mm solid var(--stk); border-radius: 6mm; pointer-events: none; }
[data-design=bingkai] .stk-qr { background: #fff; padding: 1.5mm; border-radius: 2mm; box-shadow: 0 0 0 .5mm var(--stk); }
[data-design=bingkai] .stk-table { background: var(--stk); border-radius: 99px; padding: .8mm 6mm; }
[data-design=bingkai] .stk-scan { color: var(--stk); }
[data-design=bingkai] .poster .box { border-color: var(--stk); border-radius: 10mm; background: color-mix(in srgb, var(--stk) 7%, #fff); }
[data-design=bingkai] .poster h2 { color: var(--stk); }
@media print { [data-design] .stk, [data-design] .poster, [data-design] .stk-name, [data-design] .stk-table { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
