:root {
  --bg: #faf7f7;
  --card: #ffffff;
  --ink: #1d1819;
  --muted: #675e5f;
  --line: #ebdfe0;
  --brand: #c1272d;
  --brand-ink: #ffffff;
  --brand-soft: #fdecec;
  --ok: #15803d;
  --warn: #a16207;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(60, 30, 10, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161213;
    --card: #211b1c;
    --ink: #f6eeee;
    --muted: #b6a9aa;
    --line: #3b2f31;
    --brand: #ef5b60;
    --brand-ink: #1a0607;
    --brand-soft: #3a1c1e;
    --ok: #4ade80;
    --warn: #facc15;
    --shadow: 0 2px 10px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #161213;
    --card: #211b1c;
    --ink: #f6eeee;
    --muted: #b6a9aa;
    --line: #3b2f31;
    --brand: #ef5b60;
    --brand-ink: #1a0607;
    --brand-soft: #3a1c1e;
    --ok: #4ade80;
    --warn: #facc15;
    --shadow: 0 2px 10px rgba(0, 0, 0, .4);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  max-width: 640px;
  margin: 0 auto;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.proto-banner {
  background: #fde68a; color: #422006;
  font-size: 12px; text-align: center; padding: 4px 16px;
}

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.points-chip {
  border: 0; background: var(--brand-soft); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px;
}

main { padding: 16px; outline: none; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 20px 0 10px; }
p.muted, .muted { color: var(--muted); }
.small { font-size: 13px; }

.hero {
  background: linear-gradient(135deg, #c1272d, #8f1b20);
  color: #fff; border-radius: var(--radius); padding: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.hero h1 { color: #fff; }
.hero p { margin: 0; opacity: .95; font-size: 14px; }
.hero .big { font-size: 44px; }

.search {
  width: 100%; margin: 14px 0 8px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card);
  padding: 7px 14px; border-radius: 999px; font-size: 14px;
}
.chip.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
}
.card .pic {
  font-size: 54px; text-align: center; padding: 14px 0;
  background: var(--brand-soft); position: relative;
}
.tag {
  position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700;
  background: var(--brand); color: var(--brand-ink); padding: 2px 8px; border-radius: 999px;
}
.card .body { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 600; font-size: 15px; }
.card .desc { color: var(--muted); font-size: 12px; flex: 1; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.price { font-weight: 700; }

.btn {
  border: 0; background: var(--brand); color: var(--brand-ink);
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
  min-height: 44px;
}
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.add {
  border: 0; background: var(--brand); color: var(--brand-ink);
  width: 36px; height: 36px; border-radius: 10px; font-size: 20px; font-weight: 700;
}

.list { display: flex; flex-direction: column; gap: 10px; }
.line {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
}
.line .emo { font-size: 32px; width: 48px; text-align: center; }
.line .info { flex: 1; min-width: 0; }
.line .info .name { font-weight: 600; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
  font-size: 18px; font-weight: 700;
}
.qty span { min-width: 22px; text-align: center; font-weight: 600; }

.summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 14px;
}
.summary .r { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .r.total { font-weight: 700; font-size: 18px; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.summary .r.disc { color: var(--ok); }

form { display: flex; flex-direction: column; gap: 12px; }
label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
input, select, textarea {
  padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-weight: 400;
}
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0; }
legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.opt { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; padding: 6px 0; }
.opt input { margin-top: 3px; }
.opt small { display: block; color: var(--muted); }
.assume {
  background: #fef3c7; color: #422006; border-radius: 10px; padding: 8px 10px; font-size: 12px;
}

.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty .big { font-size: 56px; }

.pointsCard {
  background: linear-gradient(135deg, #8f1b20, #c1272d); color: #fff;
  border-radius: var(--radius); padding: 16px;
}
.pointsCard .n { font-size: 36px; font-weight: 800; }
.bar { height: 8px; background: rgba(255,255,255,.3); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: #fde68a; }

.reward {
  display: flex; gap: 12px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.reward .emo { font-size: 30px; }
.reward .info { flex: 1; }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-around;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto;
}
.tabbar button {
  flex: 1; border: 0; background: none; font-size: 12px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding: 4px 0;
}
.tabbar button span { font-size: 22px; }
.tabbar button.active { color: var(--brand); font-weight: 700; }
.badge {
  position: absolute; top: 0; left: 55%; background: var(--brand); color: var(--brand-ink);
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 99px; padding: 0 5px; line-height: 18px;
}

#toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

dialog#sheet {
  border: 0; padding: 0; width: 100%; max-width: 640px; margin: auto auto 0;
  border-radius: 20px 20px 0 0; background: var(--card); color: var(--ink);
}
dialog#sheet::backdrop { background: rgba(0,0,0,.45); }
.sheet-in { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-in .pic { font-size: 80px; text-align: center; }

/* ===== SMP tambahan ===== */
.logo { border-radius: 8px; background: #fff; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.perks div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; font-size: 12px; text-align: center; font-weight: 600; }
.perks b { display: block; font-size: 20px; }
.card .pic { border: 0; width: 100%; background: #fff; padding: 10px 0; display: flex; justify-content: center; align-items: center; height: 120px; }
.card .pic img { height: 100px; width: 100px; object-fit: contain; }
.card .pic span[aria-hidden] { font-size: 54px; }
.cetakTag { color: var(--brand); font-weight: 600; }
.line.col { flex-direction: column; align-items: stretch; gap: 8px; }
.line .top { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.line .emo .thumb, .line .emo img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.line .emo span.thumb { font-size: 32px; background: none; }
.x { border: 0; background: none; color: var(--muted); font-size: 18px; width: 32px; height: 32px; }
.nudge { margin: 0; color: var(--ok); }
.chips.wrap { flex-wrap: wrap; }
.sheet-in h1 { font-size: 20px; }
.sheet-head { display: flex; gap: 12px; align-items: center; }
.sheet-head .pic { flex: none; width: 88px; height: 88px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 48px; border: 1px solid var(--line); }
.sheet-head .pic img { width: 80px; height: 80px; object-fit: contain; }
.sheet-head p { margin: 4px 0 0; }
.field-t { font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
.tiers { width: 100%; border-collapse: collapse; font-size: 14px; }
.tiers td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.tiers td:last-child { text-align: right; font-weight: 600; }
.tiers tr.on { background: var(--brand-soft); }
.tiers tr.on td:first-child { font-weight: 700; }
.qty.big { margin-bottom: 8px; }
.qty.big button { width: 44px; height: 44px; }
.qty.big input { width: 110px; text-align: center; font-weight: 700; padding: 10px; }
.toggle { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--brand); }
dialog#sheet { max-height: 92vh; overflow-y: auto; }

/* ===== Rewards gaya app loyalty ===== */
.pointsCard { margin-bottom: 14px; position: relative; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.strong { font-weight: 700; font-size: 15px; }
.pointsCard .n { font-size: 44px; line-height: 1.1; margin-top: 6px; }
.pointsCard .n span { font-size: 16px; font-weight: 600; opacity: .9; }
.qrBtn { border: 0; background: #fff; color: #1d1819; border-radius: 12px; padding: 6px; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; }
.qrBtn svg { width: 60px; height: 60px; display: block; }
.pc-act { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pc-act button { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 10px; padding: 10px 4px; font-weight: 700; font-size: 13px; }
.joinCard { width: 100%; border: 2px dashed var(--brand); background: var(--brand-soft); border-radius: var(--radius); padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; margin-bottom: 14px; }
.joinCard span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.joinCard b { color: var(--brand); white-space: nowrap; }
.dealStrip { display: flex; align-items: center; gap: 8px; background: #fde68a; color: #422006; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.dealStrip span { flex: 1; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 16px; }
.howto div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 12px; font-weight: 600; }
.howto b { display: inline-flex; width: 24px; height: 24px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); align-items: center; justify-content: center; margin-bottom: 4px; }
.howto small { color: var(--muted); font-weight: 400; }
.segs { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.segs button { flex: 1; border: 0; background: none; padding: 9px 2px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.segs button.on { background: var(--brand); color: var(--brand-ink); }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.rcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.rcard .remo { font-size: 40px; text-align: center; background: var(--brand-soft); border-radius: 10px; padding: 8px 0; }
.rcard .rname { font-weight: 700; font-size: 14px; }
.rcard .rcost { font-weight: 800; color: var(--brand); }
.rcard .btn { padding: 8px; min-height: 38px; font-size: 13px; margin-top: auto; }
.rcard.locked .remo { filter: grayscale(.7); opacity: .7; }
.deal, .ticket { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.deal { border-left: 5px solid var(--brand); }
.ticket { border-style: dashed; border-width: 2px; border-color: var(--brand); }
.deal .info, .ticket .info { flex: 1; }
.deal .btn, .ticket .btn { padding: 8px 12px; min-height: 38px; font-size: 13px; }
.demo { font-size: 30px; }
.plus { color: var(--ok); } .minus { color: var(--brand); }
.center { text-align: center; }
.bigQR { background: #fff; padding: 12px; border-radius: 16px; width: 240px; margin: 10px auto; border: 1px solid var(--line); }
.bigQR svg { width: 100%; height: auto; display: block; }
.kod { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: 2px; font-weight: 700; margin: 4px 0; }

/* ===== v4: Bungkusan Nasi & Paper Wrap ===== */
.pblock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; box-shadow: var(--shadow); }
.phead { display: flex; gap: 12px; align-items: flex-start; }
.phead img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; background: #fff; }
.phead h2 { margin: 0 0 4px; font-size: 19px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phead p { margin: 0 0 4px; }
.tag.static { position: static; font-size: 11px; }
.sizes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sizeCard { display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.sizeCard img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: #fff; }
.sizeCard .sbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sizeCard .sname { font-weight: 700; }
.sizeCard .chev { font-size: 24px; color: var(--muted); }
.promo { color: #a16207; font-weight: 700; margin: 0; }

.sizePick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sizePick button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.sizePick button span { font-size: 11px; color: var(--muted); }
.sizePick button.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.pakejList { display: flex; flex-direction: column; gap: 6px; }
.pakejList button { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "q t" "q u"; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 12px; text-align: left; }
.pakejList .pq { grid-area: q; font-weight: 700; font-size: 16px; }
.pakejList .pq small { font-weight: 400; color: var(--muted); }
.pakejList .pt { grid-area: t; text-align: right; font-weight: 700; }
.pakejList .pt s { color: var(--muted); font-weight: 400; font-size: 13px; }
.pakejList .pu { grid-area: u; text-align: right; font-size: 12px; color: var(--muted); }
.pakejList button.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); padding: 3px; background: var(--card); }
.swatches button i { display: block; width: 100%; height: 100%; border-radius: 6px; }
.swatches button.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--brand-soft); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.upload { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; font-weight: 600; cursor: pointer; display: block; }
.upload input, .artRow input { display: block; margin: 8px auto 0; font-size: 13px; max-width: 100%; }
.artRow { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.artRow:last-of-type { border-bottom: 0; }
.artRow label { font-weight: 400; }
.artRow input { margin: 4px 0 0; }
.summary .r.depo { font-weight: 700; color: var(--brand); }
.warnTxt { color: var(--warn); }
.qty button:disabled { opacity: .35; }
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.steps b { flex: none; width: 26px; height: 26px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* ===== v6: Kad cop Apron Percuma ===== */
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.stamp.on { background: #fff; color: #c1272d; border: 2px solid #fff; font-size: 22px; }
.stamp.prize { border-style: solid; border-color: #fde68a; font-size: 26px; }
.stamp.prize.on { background: #fde68a; }
.pend { margin-top: 4px; opacity: .95; }
.claimBtn { margin-top: 12px; width: 100%; border: 0; background: #fde68a; color: #422006; font-weight: 800; padding: 12px; border-radius: 12px; }
.pc-act.one { grid-template-columns: 1fr; }
.apronNote { background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; }
.apronHero { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.apronHero .big { font-size: 64px; }
.syarat { padding-left: 18px; color: var(--muted); }
.syarat li { margin-bottom: 4px; }
.memberRow { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.qrBtn.dark { border: 1px solid var(--line); }
.center-row { justify-content: center; }
.demoBtn { border-style: dashed; }

/* ===== v7: Ulang order dengan kod artwork ===== */
.repeatCard { background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.repeatCard h2 { margin: 0; font-size: 16px; }
.repeatCard p { margin: 0; }
.kodRow { flex-direction: row; gap: 8px; }
.kodRow input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.kodRow .btn { flex: none; }

/* ===== v8: WhatsApp team sales selepas order ===== */
.waCard { background: var(--card); border: 2px solid var(--ok); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.waCard h2 { margin: 0; font-size: 17px; }
.waCard p { margin: 0; }
.waBtn { background: #1a7f45; color: #fff; text-align: center; text-decoration: none; display: block; }
.sel { user-select: all; font-weight: 700; }

/* ===== v9: Peringkat pesanan & design PDF ===== */
.stepper { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.stepper li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.stepper b { flex: none; width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper li.done { color: var(--ink); }
.stepper li.done b { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.now { color: var(--ink); font-weight: 700; }
.stepper li.now b { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.okTxt { color: var(--ok); font-weight: 600; }
.waLink { text-align: center; text-decoration: none; display: block; color: #1a7f45; border-color: #1a7f45; }
.pdfRow { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pdfIco { flex: none; width: 38px; height: 46px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }

/* v10: syarat deposit & kiraan ubah */
.syarat { background: var(--brand-soft); color: var(--ink); border: 1px dashed var(--brand); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.syarat ul { margin: 6px 0 0; padding-left: 18px; }
.ubahKira { display: inline-block; background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 4px 12px; margin: 8px 0; }
details summary { cursor: pointer; margin: 8px 0; }

/* v11: laman utama berjenama (banner, kepercayaan, galeri, kaki laman) */
.karusel { position: relative; margin: -4px 0 14px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; scrollbar-width: none; box-shadow: var(--shadow); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: 300px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #e2363d 0%, #c1272d 45%, #8f1b20 100%); color: #fff;
  display: flex; align-items: center; }
.slide .sIn { position: relative; z-index: 1; padding: 22px 20px 34px; max-width: 62%; }
.sBrand .sIn { max-width: 100%; text-align: center; margin: 0 auto; }
.sBrand .sBg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.brandLogo { width: 150px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.sH { font-size: 22px; line-height: 1.2; font-weight: 800; margin: 6px 0; text-wrap: balance; letter-spacing: -.01em; }
.sH em { font-style: normal; color: #ffd84d; }
.sSub { font-size: 13.5px; opacity: .95; margin: 0 0 14px; }
.sSub s { opacity: .7; }
.sTag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; background: #fff; color: #c1272d; padding: 4px 10px; border-radius: 999px; }
.sSide { position: absolute; right: -6%; bottom: 0; width: 48%; height: 100%; object-fit: cover; border-radius: 18px 0 0 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28%); mask-image: linear-gradient(to right, transparent, #000 28%); }
.sApron .sSide, .sPromo .sSide { -webkit-mask-image: none; mask-image: none; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); width: 38%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn.light { background: #fff; color: #c1272d; border: 0; display: inline-flex; text-decoration: none; }
.btn.outlineLight { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.8); text-decoration: none; }
.dots { position: absolute; z-index: 2; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.5); transition: width .2s; }
.dots button[aria-selected="true"] { width: 22px; background: #fff; }

.trust { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trust li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.trust b { display: block; color: var(--brand); font-size: 17px; }
.trust span { font-size: 12px; color: var(--muted); }

.secH { margin-top: 26px; padding-left: 10px; border-left: 4px solid var(--brand); }
.galeri { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.galeri img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.galeri .g1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.kaki { margin: 28px -16px -16px; padding: 22px 16px 24px; background: #1d1213; color: #f1e6e6; }
.kBrand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kBrand strong { display: block; font-size: 17px; letter-spacing: .02em; }
.kBrand span { font-size: 12px; opacity: .8; }
.kGrid { display: grid; gap: 14px; }
.kaki h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #ff8a8e; margin: 0 0 6px; }
.kaki p { font-size: 13px; margin: 0 0 4px; }
.kaki .muted { color: #b9a9aa; }
.kaki .ph { background: rgba(255,216,77,.15); color: #ffd84d; padding: 0 4px; border-radius: 4px; }
.kCopy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 16px !important; padding-top: 12px; font-size: 12px !important; opacity: .75; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(4, 1fr); } .galeri { grid-template-columns: repeat(4, 1fr); } .kGrid { grid-template-columns: repeat(3, 1fr); } .sH { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }

/* v12: nilai, ulasan, sampel, FAQ, tarikh siap */
.nilaiGrid { display: grid; gap: 8px; }
.nilaiGrid div { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 10px 12px; }
.nilaiGrid b { display: block; font-size: 15px; }
.nilaiGrid span { font-size: 13px; color: var(--muted); }
.ph { color: var(--warn); }
.ulasan { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.ulasan figure { flex: 0 0 82%; scroll-snap-align: start; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ulasan blockquote { margin: 6px 0 8px; font-size: 14px; }
.ulasan figcaption { font-size: 12px; color: var(--muted); }
.bintang { color: #e0a100; letter-spacing: 2px; }
.sampelCard { margin-top: 22px; background: var(--brand-soft); border-radius: var(--radius); padding: 14px; }
.sampelCard h2 { margin-top: 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin-bottom: 6px; }
.faq summary { font-weight: 600; padding: 8px 0; }
.faq details div { padding: 0 0 10px; color: var(--muted); }
.siapTarikh { background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; }
@media (min-width: 640px) { .nilaiGrid { grid-template-columns: 1fr 1fr; } .ulasan figure { flex-basis: 32%; } }

/* v13: laman utama lebih berjenama & mudah (gaya FB SMP: tajuk tebal condong, kuning #E9BA39, tanda hijau) */
:root { --kuning: #e9ba39; --hijau: #22c55e; }
.heroX { position: relative; overflow: hidden; margin: -4px 0 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #e2363d 0%, #c1272d 45%, #8f1b20 100%); box-shadow: var(--shadow); }
.heroBg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; mix-blend-mode: luminosity; }
.heroIn { position: relative; padding: 20px 18px 16px; text-align: center; }
.heroLogo { width: 120px; height: auto; display: block; margin: 0 auto 8px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.heroEyebrow { display: inline-block; margin: 0 0 8px; background: var(--kuning); color: #3a1d00; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; padding: 4px 12px; border-radius: 6px; transform: skewX(-6deg); }
.heroH { color: #fff; font-size: 30px; line-height: 1.05; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.heroH span { color: var(--kuning); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-weight: 700; font-size: 14px; }
.ticks li::before { content: "✔"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; background: var(--hijau); color: #fff; font-size: 11px; }
.btn.cta { display: flex; width: 100%; justify-content: center; background: var(--kuning); color: #3a1d00; border: 0; font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; min-height: 54px; border-radius: 14px; box-shadow: 0 4px 0 #b8891c; text-decoration: none; }
.heroLink { display: inline-block; margin-top: 12px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.heroStats { position: relative; list-style: none; margin: 0; padding: 10px 8px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(0,0,0,.22); text-align: center; font-size: 11px; }
.heroStats b { display: block; font-size: 18px; font-weight: 900; font-style: italic; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.tileName { font-size: 17px; font-weight: 800; padding: 10px 12px 0; }
.tileSub { font-size: 12.5px; color: var(--muted); padding: 2px 12px 0; }
.tileSub strong { color: var(--brand); }
.tileGo { margin: 10px 12px 12px; font-weight: 700; color: var(--brand); font-size: 14px; }

.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.promo { position: relative; overflow: hidden; text-align: left; border: 0; border-radius: 16px; padding: 12px 12px 0; min-height: 190px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(160deg, #c1272d, #8f1b20); }
.pWrap { background: linear-gradient(160deg, #2b2b2b, #111); }
.pTag { align-self: flex-start; background: var(--kuning); color: #3a1d00; font-size: 10px; font-weight: 900; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }
.pH { font-size: 15px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; margin: 6px 0 2px; }
.pH em { color: var(--kuning); font-style: italic; }
.pSub { font-size: 11.5px; opacity: .9; }
.pSub s { opacity: .7; }
.promo img { margin: auto -12px 0; width: calc(100% + 24px); height: 84px; object-fit: cover; object-position: top; }

.langkah4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; counter-reset: none; }
.langkah4 li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.langkah4 b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-style: italic; }
@media (min-width: 640px) { .heroH { font-size: 40px; } .langkah4 { grid-template-columns: repeat(4, 1fr); } }

/* v14: menu utama di atas (bawah logo), bukan di bawah skrin */
body { padding-bottom: env(safe-area-inset-bottom); }
.atas { position: sticky; top: 0; z-index: 10; background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.atas .topbar { position: static; border-bottom: 0; padding-bottom: 6px; }
.tabbar { position: static; padding: 0 8px; border-top: 0; border-bottom: 1px solid var(--line); background: var(--bg); gap: 4px; }
.tabbar button { flex-direction: row; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 10px 0 9px; border-bottom: 3px solid transparent; }
.tabbar button span { font-size: 18px; }
.tabbar button.active { border-bottom-color: var(--brand); }
.badge { top: 2px; left: auto; right: 4px; }
#toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.kaki { margin-bottom: -16px; }
@media (max-width: 360px) { .tabbar button { flex-direction: column; gap: 0; font-size: 12px; } }
#produk, #pilihProduk, #ulangH, #faqH { scroll-margin-top: 130px; }

/* v15: halaman Rewards */
.rwHero { border-radius: 18px; padding: 16px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #e2363d 0%, #c1272d 45%, #8f1b20 100%); margin-bottom: 10px; }
.rwHero h1 { color: #fff; font-size: 30px; font-weight: 900; font-style: italic; text-transform: uppercase; margin: 6px 0 4px; }
.rwHero p { margin: 0; font-size: 14px; opacity: .95; }
.rwTabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 6px; }
.rwChip { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--muted); }
.rwChip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.rwH { margin-top: 16px; }
.apronImg { width: 100%; max-width: 320px; border-radius: 12px; display: block; margin: 0 auto 10px; }

/* v16: halaman khas produk */
.backBtn { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 0 0 10px; font-size: 15px; }
.pHero { border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pHero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; display: block; }
.pHeroIn { padding: 14px 16px 16px; background: linear-gradient(160deg, #c1272d, #8f1b20); color: #fff; }
.pHeroIn h1 { color: #fff; font-size: 30px; font-weight: 900; font-style: italic; text-transform: uppercase; margin: 6px 0 4px; }
.pHeroIn p { margin: 0 0 6px; font-size: 14px; opacity: .95; }
.pHarga { font-size: 16px !important; }
.pHarga strong { color: var(--kuning); font-size: 22px; font-style: italic; }
.fakta { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fakta li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.fakta b { display: block; color: var(--ink); font-size: 16px; }
.rwLink { width: 100%; text-align: left; border: 0; cursor: pointer; color: var(--ink); }
@media (min-width: 640px) { .fakta { grid-template-columns: repeat(4, 1fr); } }

/* v17: menu lungsur Produk */
.menuProduk { border-bottom: 1px solid var(--line); background: var(--bg); padding: 8px 12px 12px; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
.mpIn { display: grid; gap: 8px; }
.mpItem { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 8px 8px; }
.mpItem.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.mpItem img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.mpItem > span:nth-child(2) { flex: 1; min-width: 0; }
.mpItem strong { display: block; font-size: 16px; }
.mpItem small { display: block; color: var(--muted); font-size: 12.5px; }
.mpItem b { color: var(--brand); font-size: 20px; }
.mpKod > span:first-child { width: 56px; height: 56px; display: grid; place-items: center; font-size: 26px; background: var(--brand-soft); border-radius: 10px; flex: none; }

/* v18: tipografi profesional (Plus Jakarta Sans), tiada gaya condong/huruf besar, ikon garis */
body, button, input, select, textarea { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: 24px; } h2 { font-size: 19px; }
.ik { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.tabbar button span { display: inline-flex; font-size: 20px; }
.tabbar .chevD { width: 14px; height: 14px; margin-left: -2px; opacity: .7; }
.points-chip .ik { color: var(--brand); }
.big .ik { width: 56px; height: 56px; color: var(--brand); stroke-width: 1.4; }
.emo .ik { width: 22px; height: 22px; color: var(--brand); }
.stamp.prize span .ik { width: 26px; height: 26px; }
.mpKod > span:first-child .ik { width: 26px; height: 26px; color: var(--brand); }

/* buang gaya "poster": condong, huruf besar, condong-skew */
.heroEyebrow { transform: none; font-style: normal; text-transform: none; font-weight: 600; font-size: 12.5px; letter-spacing: 0; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 12px; }
.heroH { font-style: normal; text-transform: none; font-weight: 800; font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; text-shadow: none; }
.heroH span { color: #ffd779; }
.ticks { font-weight: 600; font-size: 13.5px; }
.ticks li::before { background: rgba(255,255,255,.2); }
.btn.cta { font-style: normal; text-transform: none; font-weight: 700; font-size: 17px; background: #fff; color: var(--brand); box-shadow: none; min-height: 52px; letter-spacing: -0.01em; }
.heroStats b { font-style: normal; font-weight: 700; }
.pTag, .sTag { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pH { font-style: normal; text-transform: none; font-weight: 700; font-size: 16px; line-height: 1.2; }
.pH em { font-style: normal; color: #ffd779; }
.rwHero h1, .pHeroIn h1 { font-style: normal; text-transform: none; font-weight: 800; letter-spacing: -0.03em; font-size: 28px; }
.pHarga strong { font-style: normal; color: #ffd779; }
.langkah4 b { font-style: normal; font-weight: 700; }
.secH { border-left-width: 3px; font-weight: 700; }
.tileName { font-weight: 700; letter-spacing: -0.01em; }
.tabbar button { font-weight: 600; }

/* ===== v19: SMP Points ===== */
button.rwChip { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; }
.rwChip .ik { width: 16px; height: 16px; }
.ptCard .n { font-variant-numeric: tabular-nums; }
.ptIntro { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.cabaran { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 6px; }
.dots3 { display: flex; gap: 6px; flex: none; }
.dots3 i { width: 28px; height: 28px; border-radius: 99px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.dots3 i.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.rcard .remo { display: flex; justify-content: center; align-items: center; color: var(--brand); min-height: 56px; }
.rcard .remo .ik { width: 30px; height: 30px; }
.rcard .btn[disabled] { opacity: .6; cursor: not-allowed; }
.remo.big { display: flex; justify-content: center; color: var(--brand); margin: 8px 0; }
.remo.big .ik { width: 44px; height: 44px; }
.ticket .demo .ik { width: 28px; height: 28px; color: var(--brand); }


/* ===== v23: gambar ganjaran ===== */
.rimg { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.rimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rimg.besar { max-width: 280px; margin: 8px auto 12px; }
.lencana { position: absolute; left: 6px; bottom: 6px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.rcard.locked .rimg img { filter: grayscale(.6); opacity: .75; }
.ptBanner { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 10px 0 14px; }
.ptBanner img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; }
.ptBanner strong { display: block; font-size: 16px; color: var(--brand); }
.ptBanner span { font-size: 13px; color: var(--muted); }
.rimg > .ik { width: 44px; height: 44px; }

/* ===== v33: menu Produk teks sahaja ===== */
.mpIn.mpTeks { gap: 0; }
.mpLink { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 6px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.mpLink:last-child { border-bottom: 0; }
.mpLink.on { color: var(--brand); }
.ptIntroH { margin: 0 0 8px; font-size: 18px; }
.ptFakta { list-style: none; margin: 0 0 8px; padding: 0; }
.ptFakta li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ptFakta li:last-child { border-bottom: 0; }
.ptFakta b { color: var(--brand); font-size: 17px; min-width: 64px; flex: none; }
.ptFakta span { font-size: 14px; }
.kreditAkaun { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.kreditAkaun small { display: block; color: var(--muted); font-size: 12.5px; }
.kreditAkaun b { font-size: 18px; color: var(--brand); flex: none; }
.zonPilih { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.zonPilih button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 10px 6px; font: inherit; cursor: pointer; }
.zonPilih button strong { display: block; font-size: 14px; }
.zonPilih button span { font-size: 13px; color: var(--muted); }
.zonPilih button.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.zonPilih button.on span { color: var(--brand); font-weight: 700; }
