/* ─────────────────────────────────────────────────────────────
   Matera · design tokens & komponen
   Referensi: Genesis (abu terang, tick sudut, panel membulat),
   Idle (headline sans tebal & rapat, tombol hitam, nav melayang),
   V&V (grid garis tipis, kartu gelap, aksen kecil).
   Aksen = ungu tinta stempel kantor.
   ───────────────────────────────────────────────────────────── */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f2f2f0;
  --surface: #ffffff;
  --surface-2: #f8f8f6;
  --ink: #141416;
  --ink-2: #3a3a3e;
  --muted: #6c6c72;
  --line: #e0e0dc;
  --line-2: #cfcfca;
  --card: #1b1b1e;
  --card-2: #26262a;
  --card-line: rgba(255, 255, 255, .12);
  /* Warna merek: kuning + hitam. Di halaman pelanggan diganti warna toko (applyShopColor). */
  --brand: #fcd872;           /* isi tombol/aksen; teks di atasnya pakai --on-brand */
  --brand-hover: #f6c94b;
  --on-brand: #303030;
  --brand-strong: #303030;    /* tanda tegas: badge, grafik, slot terpilih */
  --on-brand-strong: #fcd872;
  --brand-text: #8a6100;      /* teks/ikon/garis aksen di permukaan terang (kontras >= 4.9) */
  --brand-soft: #fef6dc;      /* latar lembut */
  --brand-line: #f1dc95;      /* garis kotak lembut */
  --brand-deep: #5c4400;      /* teks di atas --brand-soft */
  --brand-ink: #fcd872;       /* tinta di kartu/permukaan gelap */
  --good: #1f7a4d;
  --danger: #b4322a;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 0 rgba(20, 20, 22, .04), 0 12px 32px -18px rgba(20, 20, 22, .28);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
body.has-sheet { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: normal; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Tombol ─────────────────────────────────────────────────── */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #2b2b30; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-2); background: var(--surface-2); }
.btn-ghost.danger { color: var(--danger); }
.btn-accent { background: var(--brand); color: var(--on-brand); }
.btn-accent:hover:not(:disabled) { background: var(--brand-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { --h: 48px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-accent.is-loading::after { border-color: rgba(48,48,48,.3); border-top-color: var(--on-brand); }
.btn-ghost.is-loading::after { border-color: var(--line); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }

/* ── Form ───────────────────────────────────────────────────── */
.input, .money input, select.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .money:focus-within { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,22,.06); }
.field-label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-label:first-child { margin-top: 0; }
.hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.money { display: flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding-left: 14px; }
.money span { font-family: var(--mono); color: var(--muted); font-size: 15px; }
.money input { border: 0; height: 100%; font: 500 22px/1 var(--mono); letter-spacing: -.02em; padding-left: 10px; background: transparent; }
.money input:focus { outline: none; box-shadow: none; }
.stack > * + * { margin-top: 12px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.err-text { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 1em; }

/* ── Tick sudut (Genesis) ───────────────────────────────────── */
.tick { position: absolute; width: 12px; height: 1px; background: currentColor; opacity: .45; pointer-events: none; }
.tick.tl { top: 14px; left: 14px; } .tick.tr { top: 14px; right: 14px; }
.tick.bl { bottom: 14px; left: 14px; } .tick.br { bottom: 14px; right: 14px; }

/* ─────────────────────────────────────────────────────────────
   LANDING
   ───────────────────────────────────────────────────────────── */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.nav {
  position: sticky; top: 12px; z-index: 30;
  width: min(100% - 2 * var(--gutter), 860px); margin: 12px auto 0;
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 18px;
  background: rgba(248,248,246,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.03em; text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

.hero { padding: clamp(56px, 10vw, 112px) 0 0; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 84px); font-weight: 650; letter-spacing: -.055em; line-height: .98;
  max-width: 15ch; margin: 0 auto; text-wrap: balance;
}
.hero .lead { max-width: 52ch; margin: 24px auto 0; font-size: clamp(15.5px, 1.6vw, 17.5px); color: var(--ink-2); line-height: 1.6; }
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

.stage {
  position: relative; margin-top: clamp(40px, 7vw, 72px);
  border-radius: var(--r-lg); background: linear-gradient(180deg, #e7e7e4, #dededa);
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(36px, 6vw, 72px);
  color: var(--ink-2); overflow: hidden;
}
.stage .tick { opacity: .5; }
.stage-meta { position: absolute; top: 28px; left: 32px; right: 32px; display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); }
.stage-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px) minmax(0, 1fr); gap: 32px; align-items: center; }
.stage-card { grid-column: 2; }
.stage-side { font-size: 13.5px; color: var(--ink-2); max-width: 220px; }
.stage-side.left { justify-self: end; text-align: right; }
.stage-side b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.stage-controls { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.stage-caption { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); min-height: 1.5em; }

.section { padding: clamp(72px, 11vw, 128px) 0 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.045em; line-height: 1.02; font-weight: 650; max-width: 16ch; }
.section-head p { color: var(--ink-2); max-width: 46ch; justify-self: end; }

/* Grid garis tipis (V&V) */
.lined { display: grid; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.lined > * { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 28px clamp(20px, 2.6vw, 32px) 32px; min-height: 230px; display: flex; flex-direction: column; }
.feature h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 14.5px; max-width: 36ch; }
.feature .fig { margin-top: auto; padding-top: 24px; }
.feature.wide { grid-column: span 2; }
.fig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fig-chips span { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); }
.fig-chips span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fig-levels { display: grid; gap: 8px; }
.fig-levels div { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.fig-levels div span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fig-levels div.up { background: var(--card); color: #fff; border-color: var(--card); }
.fig-levels div.up span:last-child { color: var(--brand-ink); }
.fig-name { display: flex; gap: 8px; }
.fig-name .input { height: 40px; pointer-events: none; }

.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: s; }
.step { padding: 28px clamp(20px, 2.6vw, 32px) 34px; }
.step-n { font: 500 12px/1 var(--mono); color: var(--muted); display: block; margin-bottom: 44px; }
.step h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

.insight-preview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; }
.ip-copy { padding: clamp(24px, 3vw, 40px); }
.ip-copy ul { list-style: none; padding: 0; margin: 20px 0 0; }
.ip-copy li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.ip-copy li b { color: var(--ink); font-weight: 600; }
.ip-shot { padding: clamp(20px, 2.6vw, 32px); background: var(--surface); }

.for { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.for > div { padding: 24px clamp(20px, 2.6vw, 32px) 28px; }
.for h3 { font-size: 17px; margin-bottom: 8px; }
.for p { font-size: 14px; color: var(--ink-2); }

.cta-band { margin: clamp(72px, 11vw, 128px) 0 0; border-radius: var(--r-lg); background: var(--card); color: #f3f3f1; padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.05em; line-height: 1; font-weight: 650; }
.cta-band p { color: rgba(255,255,255,.7); margin-top: 16px; max-width: 40ch; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.06); }
.cta-band .btn-light { background: #fff; color: var(--ink); }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 40px 0 48px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer a { text-decoration: none; }

/* ─────────────────────────────────────────────────────────────
   APP (dashboard pemilik)
   ───────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; padding: 20px 14px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; background: var(--paper);
}
.side .brand { padding: 4px 10px 18px; }
.side-shop { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 0 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.side-shop > div { min-width: 0; }
.side-shop b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.side-shop span { font: 500 11px/1.5 var(--mono); color: var(--muted); }
.tabs { display: flex; flex-direction: column; gap: 2px; }
.tab {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; border: 0;
  background: transparent; text-align: left; font-size: 14px; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.tab:hover { background: rgba(20,20,22,.04); color: var(--ink); }
.tab[aria-current="page"] { background: var(--brand-strong); color: #fff; font-weight: 500; }
.tab[aria-current="page"] .ic { color: var(--on-brand-strong); }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.main { padding: 28px clamp(16px, 3.4vw, 44px) 80px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.045em; font-weight: 650; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.local-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 22px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13.5px; }
.local-bar button { margin-left: auto; }

.search { position: relative; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { height: 56px; padding-left: 46px; font-size: 17px; border-radius: 14px; box-shadow: var(--shadow); border-color: var(--line); }
.cashier { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cust-list { list-style: none; padding: 0; margin: 14px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cust-list li + li { border-top: 1px solid var(--line); }
.cust {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; padding: 12px 14px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.cust:hover { background: var(--surface-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.cust-name { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-sub { display: block; font-size: 12.5px; color: var(--muted); }
.cust-sub .mono { font-size: 11.5px; }
.mini-dots { display: flex; gap: 3px; justify-content: flex-end; flex-wrap: wrap; max-width: 120px; }
.mini-dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.mini-dots i.on { background: var(--brand-strong); box-shadow: none; }
.cust-right { text-align: right; }
.cust-right .small { margin-top: 4px; }
.flag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 500; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; font-weight: 600; }
.today { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.today h2 { font-size: 15px; letter-spacing: -.01em; display: flex; justify-content: space-between; }
.today-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.today-stats div { padding: 12px 0; }
.today-stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.today-stats b { display: block; font: 500 22px/1.2 var(--mono); letter-spacing: -.03em; }
.today-stats span { font-size: 12px; color: var(--muted); }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.feed li + li { border-top: 1px dashed var(--line); }
.feed .mono { font-size: 12px; color: var(--muted); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 260px; }
.toolbar .search input { height: 44px; font-size: 15px; box-shadow: none; padding-left: 42px; border-radius: 10px; }
.toolbar .search .ic { left: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(20,20,22,.05); }
.seg button { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 500; }

table.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.data th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data tr:last-child td { border-bottom: 0; }
.data tbody tr { cursor: pointer; }
.data tbody tr:hover td { background: var(--surface-2); }
.data .num { text-align: right; font-family: var(--mono); font-size: 13px; }
.table-wrap { border-radius: 14px; overflow-x: auto; }

/* ── Insight ────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kpi { padding: 16px 18px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi-l { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.kpi b { font: 500 clamp(20px, 2vw, 26px)/1.1 var(--mono); letter-spacing: -.04em; white-space: nowrap; }
.kpi b i { font-style: normal; color: var(--line-2); }
.delta { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.delta.up { color: var(--good); }
.delta.down { color: var(--danger); }
.kpi-note { margin: 8px 2px 18px; }
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; min-width: 0; }
.panel.span-2 { grid-column: span 2; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h3 { font-size: 15px; letter-spacing: -.015em; }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #ececea; stroke-width: 1; }
.chart .yl, .chart .xl { font: 500 10.5px var(--mono); fill: var(--muted); }
.chart .val { font: 500 11px var(--mono); fill: var(--ink); }
.chart .bar path { fill: var(--brand-strong); transition: opacity .12s; }
.chart .bar.is-muted path { fill: #e5dfc8; }
.chart .bar .hit { fill: transparent; }
.chart .bar:focus { outline: none; }
.chart:has(.bar.is-hover) .bar:not(.is-hover) path { opacity: .35; }
.chart .every-2 g.bar:nth-of-type(2n+1) .xl { display: none; }
.chart .every-3 g.bar:not(:nth-of-type(3n)) .xl { display: none; }
.chart .tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; z-index: 2;
  background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap;
}
.chart-empty { padding: 30px 0; text-align: center; }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) 70px; grid-template-areas: "n v" "t v"; column-gap: 12px; row-gap: 5px; align-items: center; }
.hb-name { grid-area: n; font-size: 13.5px; }
.hb-track { grid-area: t; height: 8px; border-radius: 4px; background: #f0f0ee; overflow: hidden; }
.hb-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--brand-strong); }
.hb-val { grid-area: v; text-align: right; font: 500 14px/1.2 var(--mono); }
.hb-val small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.rank, .risk { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li, .risk li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.rank li:first-child, .risk li:first-child { border-top: 0; }
.rank li::before { counter-increment: r; content: counter(r); font: 500 11px var(--mono); color: var(--muted); width: 14px; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rank-v, .risk-v { font: 500 13px var(--mono); text-align: right; }
.rank-v small { color: var(--muted); margin-left: 6px; }
.risk li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
.risk-v { color: var(--danger); min-width: 64px; }
.rank li:hover .rank-name, .risk li:hover .rank-name { text-decoration: underline; text-underline-offset: 3px; }

/* ── Pengaturan ─────────────────────────────────────────────── */
.settings { display: grid; gap: 14px; max-width: 860px; }
.set-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.set-sec > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.set-sec h2 { font-size: 17px; letter-spacing: -.02em; }
.set-sec header p { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 56ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 12px; }
.tier-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-head h3 { font-size: 15px; flex: 1; }
.tier-head label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.stepper output { width: 40px; text-align: center; font: 500 14px var(--mono); }
.slot-picker { display: grid; grid-template-columns: repeat(var(--cols), 34px); gap: 8px; margin: 16px 0 6px; }
.slot-picker button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px dashed var(--line-2); background: var(--surface);
  font: 500 11.5px var(--mono); color: var(--muted); cursor: pointer; position: relative;
}
.slot-picker button.has { border: 1.5px solid var(--brand-text); color: var(--brand-deep); background: var(--brand-soft); }
.slot-picker button[aria-pressed="true"] { background: var(--brand-strong); color: var(--on-brand-strong); border-color: var(--brand-strong); }
.reward-rows { display: grid; gap: 8px; margin-top: 10px; }
.reward-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.reward-row .tag { font: 500 12px var(--mono); color: var(--brand-deep); background: var(--brand-soft); border-radius: 8px; height: 40px; display: grid; place-items: center; }
.reward-row .input { height: 40px; }
.items-list { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 36px; gap: 8px; }
.item-row .input { height: 40px; }
.poster { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; }
.poster .qr-box { width: 180px; margin: 0; }

/* ── Sheet / dialog ─────────────────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(18,18,20,.36); opacity: 0; transition: opacity .2s; }
.sheet {
  position: relative; width: min(100%, 520px); max-height: min(88dvh, 860px); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
  transform: translateY(12px) scale(.985); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.sheet.is-wide { width: min(100%, 640px); }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; opacity: 1; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 10px 22px; }
.sheet-head h2 { font-size: 17px; letter-spacing: -.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { padding: 4px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.lead-sm { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.note { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .12s, background .12s; }
.chip-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border: 0; background: transparent; cursor: pointer; text-align: left; border-radius: 12px; }
.chip-name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.chip-price { font: 400 11.5px var(--mono); color: var(--muted); }
.chip-minus { display: none; width: 30px; border: 0; border-left: 1px solid rgba(255,255,255,.18); background: transparent; color: inherit; cursor: pointer; place-items: center; border-radius: 0 12px 12px 0; }
.chip-qty { position: absolute; top: -7px; right: -7px; font: 600 11px/1 var(--mono); background: var(--brand); color: var(--on-brand); border-radius: 99px; padding: 3px 5px; }
.chip-qty:empty { display: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .chip-price { color: rgba(255,255,255,.6); }
.chip.on .chip-minus { display: grid; }
.sheet .btn-lg { margin-top: 20px; }

.stamped-hero { margin: 4px 0 16px; }
.unlock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--brand-text); margin-top: 12px; color: var(--brand-deep); }
.unlock b { display: block; color: var(--ink); font-size: 15px; }
.unlock span { font-size: 12.5px; color: var(--muted); }
.unlock + .btn, .stamped-hero ~ .btn-ghost { margin-top: 16px; }
.pill-done, .pill-accent { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; padding: 4px 9px; border-radius: 99px; }
.pill-done { color: var(--good); background: #e5f3ec; }
.pill-accent { color: var(--on-brand); background: var(--brand); }

.qr-box { width: min(240px, 70%); margin: 4px auto 14px; padding: 12px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: auto; }
.linkbox { display: flex; gap: 8px; margin: 14px 0 10px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; font-size: 12.5px; color: var(--muted); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wa-form { margin-bottom: 18px; }
.wa-form .field-label { margin-top: 12px; }
.wa-form .err-text { margin: 6px 0 4px; }
.wa-form .hint { margin-top: 8px; }
.phone-field { display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.phone-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,22,.06); }
.phone-field span { align-self: stretch; display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--line); background: var(--surface-2); font: 500 14px var(--mono); color: var(--ink-2); }
.phone-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 12px; background: transparent; font: 16px var(--mono); letter-spacing: .02em; color: var(--ink); }
/* WhatsApp: ikut gaya tombol utama (hitam + ikon kuning), bukan hijau terang */
.btn-wa { background: var(--brand-strong); color: #fff; }
.btn-wa .ic { color: var(--on-brand-strong); }
.btn-wa:hover:not(:disabled) { background: #1f1f22; }
.btn-wa.btn-sm { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-wa.btn-sm .ic { color: var(--brand-text); }
.btn-wa.btn-sm:hover { background: var(--brand-soft); border-color: var(--brand-line); }
.linkbox input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 12px var(--mono); color: var(--muted); }

/* ── Panel pelanggan (dipakai di app & halaman kartu) ───────── */
.solo #panel { display: flex; flex-direction: column; }
.cp-line { margin: 14px 2px 0; font-size: 14px; color: var(--ink-2); }
.cp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cp-actions .btn-lg { grid-column: 1 / -1; }
.cp-sec { margin-top: 26px; }
.cp-sec h3 { font-size: 14px; letter-spacing: -.01em; margin-bottom: 10px; display: flex; gap: 8px; }
.cp-admin { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--line); }
.rewards { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.reward { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; min-height: 52px; }
.reward + .reward { border-top: 1px solid var(--line); }
.reward-slot { font: 500 12px var(--mono); color: var(--muted); }
.reward-label { font-size: 14px; font-weight: 500; }
.reward-state { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.reward.r-available .reward-slot { color: var(--brand-text); }
.reward.r-redeemed .reward-label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.reward.r-redeemed .reward-state { color: var(--good); }
.history { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.history li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; align-items: start; font-size: 13.5px; }
.history li + li { border-top: 1px solid var(--line); }
.h-date b { display: block; font-weight: 500; font-size: 13px; }
.h-date span, .h-card { font: 11px var(--mono); color: var(--muted); }
.h-card { display: block; margin-top: 2px; }
.h-amt { font: 500 13px var(--mono); }

/* ── Halaman kartu & join (fokus HP) ────────────────────────── */
.solo { width: min(100% - 32px, 520px); margin: 0 auto; padding: 24px 0 64px; }
.solo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.solo-top .brand { font-size: 15px; }
.owner-bar { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; margin-bottom: 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: var(--shadow); }
.owner-bar span { flex: 1; }
.owner-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.keep { margin-top: 26px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.keep h3 { font-size: 14px; margin-bottom: 6px; }
.keep p { font-size: 13.5px; color: var(--ink-2); }
.keep .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.show-qr summary { cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
.show-qr summary::-webkit-details-marker { display: none; }
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 18px; }
.join-card h1 { font-size: clamp(26px, 6vw, 32px); letter-spacing: -.045em; font-weight: 650; }
.join-card .input { height: 52px; font-size: 17px; }
.mini-rewards { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.mini-rewards li { display: flex; gap: 10px; font-size: 14px; }
.mini-rewards li span:first-child { font: 500 12px/1.6 var(--mono); color: var(--brand-text); min-width: 64px; }

/* ── Auth & onboarding ──────────────────────────────────────── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 36px; padding: 36px clamp(28px, 4.5vw, 64px); background: var(--card); color: #fff; }
.auth-aside::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed rgba(252,216,114,.2); pointer-events: none; }
.auth-aside .brand { color: #fff; }
.auth-pitch { margin-top: clamp(8px, 5vh, 56px); }
.auth-pitch h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.05em; font-weight: 650; max-width: 13ch; }
.auth-pitch p { margin-top: 16px; max-width: 40ch; font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.62); }
.auth-card { width: min(100%, 360px); }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.82); }
.auth-points .ic { flex: none; margin-top: 2px; color: var(--brand-ink); }
.auth-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.5); }
.auth-steps li > span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); font: 500 12.5px var(--mono); }
.auth-steps li.done { color: rgba(255,255,255,.75); }
.auth-steps li.done > span { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--card); }
.auth-steps li.now { color: #fff; font-weight: 500; }
.auth-steps li.now > span { border-color: var(--brand-ink); color: var(--brand-ink); }
.auth-foot { margin-top: auto; font-size: 12.5px; color: rgba(255,255,255,.38); }

.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-box { width: min(100%, 410px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 36px; border-radius: 12px; background: #e6e6e1; }
.auth-tabs button { height: 40px; border: 0; border-radius: 9px; background: transparent; font: 500 14px var(--font); color: var(--muted); cursor: pointer; }
.auth-tabs button:hover { color: var(--ink); }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,20,22,.1); cursor: default; }
.auth-kicker { font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; }
.auth-box h1 { font-size: clamp(28px, 3vw, 34px); line-height: 1.05; letter-spacing: -.045em; font-weight: 650; }
.auth-sub { margin: 12px 0 28px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.auth-box .field-label { margin: 20px 0 8px; font-size: 13.5px; color: var(--ink); }
.auth-box form > .field-label:first-child { margin-top: 0; }
.auth-box .input { height: 50px; font-size: 15px; }
.auth-box .slug-prefix input { height: 50px; }
.auth-box .btn-lg { margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { background: var(--surface-2); color: var(--ink); }
.pw-toggle[aria-pressed="true"] { color: var(--brand-text); }
.auth-note { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }
.link-inline { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep); }

.auth-aside { position: sticky; top: 0; height: 100dvh; }
@media (max-height: 860px) and (min-width: 861px) {
  .auth-aside { gap: 26px; padding-top: 28px; padding-bottom: 24px; }
  .auth-pitch { margin-top: 0; }
  .auth-pitch h2 { font-size: clamp(28px, 3vw, 40px); }
  .auth-card { width: min(100%, 300px); }
  .auth-points { gap: 8px; }
  .auth-foot { display: none; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-aside { position: static; height: auto; }
  .auth-aside { gap: 10px; padding: 18px 20px 22px; }
  .auth-aside::after, .auth-card, .auth-points, .auth-steps, .auth-foot, .auth-pitch p { display: none; }
  .auth-pitch { margin-top: 6px; }
  .auth-pitch h2 { font-size: 22px; max-width: none; }
  .auth-main { place-items: start center; padding: 28px 20px 48px; }
  .auth-tabs { margin-bottom: 26px; }
}
.slug-prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.slug-prefix span { padding: 0 2px 0 12px; font: 13px var(--mono); color: var(--muted); white-space: nowrap; }
.slug-prefix input { border: 0; height: 44px; flex: 1; min-width: 0; padding: 0 12px 0 2px; font: 14px var(--mono); background: transparent; }
.slug-prefix:focus-within { border-color: var(--ink); }
.slug-prefix input:focus { outline: none; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; display: flex; align-items: center; gap: 8px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err .ic { color: #ff9b93; }
.toast.ok .ic { color: #9ee6be; }

.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; }
.skeleton { height: 220px; border-radius: 18px; background: linear-gradient(90deg, #e8e8e5, #f1f1ee, #e8e8e5); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ─────────────────────────────────────────────────────────────
   RESPONSIF
   ───────────────────────────────────────────────────────────── */

/* ── Logo toko ─────────────────────────────────────────────── */
.shop-logo { display: inline-block; flex: none; object-fit: contain; border-radius: 8px; background: #fff; }
.slot .ink.is-logo { width: 90%; height: 90%; opacity: 1; }
#shop-label { display: inline-flex; align-items: center; gap: 8px; }
#shop-label .shop-logo { border-radius: 6px; }
.join-logo { margin-bottom: 14px; }
.join-logo .shop-logo { border-radius: 14px; border: 1px solid var(--line); }

.logo-drop { width: 112px; height: 112px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--surface-2); display: grid; place-items: center; text-align: center; font-size: 12.5px; color: var(--muted); cursor: pointer; overflow: hidden; }
.logo-drop:hover { border-color: var(--brand-text); color: var(--brand-text); }
.logo-drop img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-side .hint { margin-top: 10px; }
.stamp-choice { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.stamp-choice legend { padding: 0; margin-bottom: 6px; }
.stamp-choice label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.stamp-choice input { accent-color: var(--brand-strong); width: 16px; height: 16px; }
.stamp-choice:disabled label { opacity: .5; cursor: not-allowed; }

/* ── Tukar hadiah: permintaan pelanggan ───────────────────── */
.reward.r-requested .reward-slot { color: #9a6200; }
.reward-state .btn + .btn { margin-left: 6px; }
.pill-wait { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; padding: 4px 9px; border-radius: 99px; color: #8a5a00; background: #fbf1dc; }
.link-btn { background: none; border: 0; padding: 4px 2px 4px 8px; font: inherit; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.slot.r-requested .slot-gift { background: #f2c25b; color: var(--card); box-shadow: 0 0 0 3px rgba(242,194,91,.25); }

.tab { position: relative; }
.tab-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font: 600 11.5px/20px var(--font); font-style: normal; text-align: center; }
.tab-badge[hidden] { display: none; }

.claims { margin: 0 0 18px; padding: 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.claims h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--brand-deep); margin: 0 0 10px; }
.claims .count { font: 600 12px/20px var(--font); min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand-strong); color: var(--on-brand-strong); text-align: center; }
.claims ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.claims li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border-radius: 10px; border: 1px solid var(--line); }
.claim-who { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.claim-who b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim-who > span { font-size: 12px; color: var(--muted); }
.claim-who:hover b { text-decoration: underline; }
.claim-what { font-size: 14px; font-weight: 500; }
.claim-act { display: flex; gap: 6px; }

.celebrate { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 12px 0 8px; }
.celebrate .ic { color: var(--brand-text); }
.celebrate b { font-size: 22px; letter-spacing: -.03em; }
.local-bar code { font: 500 12px var(--mono); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(4) { border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-grid .panel.span-2 { grid-column: 1 / -1; }
  .cashier { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stage-inner { grid-template-columns: 1fr; }
  .stage-card { grid-column: 1; }
  .stage-side { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-head p { justify-self: start; }
  .features, .steps, .for { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .insight-preview { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btns { justify-content: flex-start; }
  .nav-links { display: none; }
  .nav { gap: 12px; justify-content: space-between; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: auto 0 0 0; top: auto; height: auto; z-index: 40;
    flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
    background: rgba(242,242,240,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .side .brand, .side-shop, .side-foot { display: none; }
  .tabs { flex-direction: row; width: 100%; justify-content: space-around; }
  .tab { flex-direction: column; gap: 3px; height: 54px; padding: 0 6px; font-size: 11px; justify-content: center; flex: 1; }
  .tab[aria-current="page"] { background: var(--brand-strong); color: #fff; border-radius: 14px; }
  .tab[aria-current="page"] .ic { color: #fff; }
  .tab[aria-current="page"] .tab-badge { background: var(--brand); color: var(--on-brand); }
  .main { padding: 18px 16px 110px; }
  .mobile-top { display: flex !important; }
  .local-bar { flex-wrap: nowrap; padding: 8px 8px 8px 12px; font-size: 12.5px; line-height: 1.35; }
  .local-bar > .ic { display: none; }
  .local-bar button { flex: none; }
  .tier-head h3 .muted { display: block; font-weight: 400; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(4) { border-left: 1px solid var(--line); }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ins-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .poster { grid-template-columns: 1fr; }
  .poster .qr-box { margin: 0 auto; }
  .data .hide-sm { display: none; }
  .sheet-wrap { padding: 0; place-items: end stretch; }
  .sheet, .sheet.is-wide { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; transform: translateY(30px); }
  .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .toast { bottom: 84px; }
}
@media (max-width: 560px) {
  .features, .steps, .for { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .feature { min-height: 0; }
  .stage { padding-left: 12px; padding-right: 12px; padding-top: 52px; }
  .stage-meta { left: 20px; right: 20px; top: 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .nav .btn { padding: 0 12px; }
  .item-row { grid-template-columns: minmax(0, 1fr) 110px 36px; }
  .slot-picker { grid-template-columns: repeat(var(--cols), 30px); gap: 6px; }
  .slot-picker button { width: 30px; height: 30px; }
}
.mobile-top { display: none; justify-content: space-between; align-items: center; margin-bottom: 16px; }

@media (max-width: 760px) {
  .logo-drop { width: 96px; height: 96px; }
  .claims li { grid-template-columns: minmax(0, 1fr) auto; }
  .claim-what { grid-column: 1; grid-row: 2; }
  .claim-act { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; }
  .tab-badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; line-height: 18px; font-size: 10.5px; }
  .reward { grid-template-columns: 30px minmax(0, 1fr); }
  .reward-state { grid-column: 2; justify-self: start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
}
[tabindex="-1"]:focus { outline: none; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row .field-label { margin-bottom: 8px; }
.link-inline.small { font-size: 13px; font-weight: 500; color: var(--brand-text); text-decoration: none; }
.link-inline.small:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; padding: 0; border: 0; background: none; font: 500 13.5px var(--font); color: var(--muted); cursor: pointer; }
.back-link:hover { color: var(--ink); }

.design-guide { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.design-guide b { color: var(--ink); }
.design-guide ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.preview-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 10px; border-radius: 10px; background: #e6e6e1; }
.preview-tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: 500 12.5px var(--font); color: var(--muted); cursor: pointer; }
.preview-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 1180px) and (min-width: 761px) {
  .logo-drop { width: 96px; height: 96px; }
}
@media (max-width: 760px) {
}
.tag-form { margin-top: 18px; }
.tag-form[hidden] { display: none; }
.tag-row { display: flex; gap: 8px; }
.tag-row .input { flex: 1; min-width: 0; height: 42px; }
.tag-row .btn { height: 42px; flex: none; }
.preview-tabs button { white-space: nowrap; }


/* ═════════════════════════════════════════════════════════════
   KARTU LOYALITAS - satu bentuk (8:5) di seluruh website.
   .lcard = wadah (container query). Semua ukuran di dalam kartu
   memakai cqi = 1% lebar kartu, jadi kartu besar & kecil identik.
   Tema (.th-ink / .th-paper / .th-fun) mengubah depan DAN belakang.
   ═════════════════════════════════════════════════════════════ */
.lcard { --accent: #fcd872; --a-rgb: 252 216 114; --deep: #fcd872; --d-rgb: 252 216 114; container-type: inline-size; width: 100%; display: grid; border-radius: 4.2cqi; }
.face {
  /* warna default = tema Tinta */
  --bg: #1b1b1e; --fg: #f3f3f1; --soft: rgba(255,255,255,.52); --line-c: rgba(255,255,255,.12);
  --slot-line: rgba(255,255,255,.26); --slot-fill: #26262a; --ink-c: var(--accent, #fcd872); --gift-bg: #1b1b1e;
  --scrim: linear-gradient(rgba(16,16,20,.6), rgba(16,16,20,.74));
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 8 / 5; width: 100%; border-radius: 4.2cqi; color: var(--fg); background: var(--bg);
  box-shadow: 0 6cqi 12cqi -6cqi rgba(10,10,14,.5), inset 0 0 0 1px rgba(255,255,255,.06);
  font-family: var(--font); text-align: left;
}
.face .tick { opacity: .35; width: 2.6cqi; }
.face .tick.tl, .face .tick.tr { top: 2.6cqi; } .face .tick.bl, .face .tick.br { bottom: 2.6cqi; }
.face .tick.tl, .face .tick.bl { left: 2.6cqi; } .face .tick.tr, .face .tick.br { right: 2.6cqi; }

/* ── Depan: stempel ── */
.face-front { display: flex; flex-direction: column; padding: 4.4cqi 5.2cqi 4cqi; }
.face-front.has-bg { background: var(--scrim), var(--front-bg) center / cover no-repeat, var(--bg); }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 3cqi; padding-bottom: 2.6cqi; border-bottom: 1px solid var(--line-c); }
.f-shop { display: flex; align-items: center; gap: 2cqi; min-width: 0; font-size: 4.1cqi; font-weight: 650; letter-spacing: -.02em; }
.f-shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-logo { width: 6.4cqi; height: 6.4cqi; flex: none; object-fit: contain; border-radius: 1.4cqi; background: #fff; }
.f-no { display: flex; gap: 2.2cqi; flex: none; font: 500 2.5cqi/1.2 var(--mono); color: var(--soft); text-transform: uppercase; letter-spacing: .05em; }
.f-pill { padding: .8cqi 1.8cqi; border-radius: 9cqi; background: var(--accent); color: var(--bg); font-weight: 600; }
.f-grid {
  flex: 1; list-style: none; margin: 0; padding: 0; display: grid; align-content: center; justify-content: center;
  grid-template-columns: repeat(var(--cols), var(--d)); grid-auto-rows: var(--d); gap: var(--g);
}
.slot { position: relative; border-radius: 50%; border: max(1px, .25cqi) dashed var(--slot-line); display: grid; place-items: center; }
.slot-n { font: 500 calc(var(--d) * .2)/1 var(--mono); color: var(--soft); }
.slot.is-stamped { border-style: solid; border-color: transparent; background: var(--slot-fill); }
.slot .ink { width: 88%; height: 88%; color: var(--ink-c); transform: rotate(var(--rot)); }
.slot .ink.is-logo { width: 92%; height: 92%; }
.slot.is-void .ink { opacity: .3; filter: grayscale(1); }
.slot.is-reward:not(.is-stamped) { border-color: var(--accent); border-style: solid; border-width: max(1px, .2cqi); }
.slot.is-reward:not(.is-stamped) .slot-n { color: var(--accent); }
.slot-gift {
  position: absolute; right: -6%; bottom: -6%; width: 40%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--gift-bg); box-shadow: 0 0 0 max(1px, .3cqi) var(--accent); color: var(--accent);
}
.slot-gift .ic { width: 62%; height: 62%; }
.slot.r-available .slot-gift { background: var(--accent); color: var(--gift-bg); }
.slot.r-requested .slot-gift { background: #f2c25b; color: #1b1b1e; box-shadow: 0 0 0 max(1px, .3cqi) #f2c25b; }
.slot.r-redeemed .slot-gift { box-shadow: 0 0 0 max(1px, .25cqi) var(--soft); color: var(--soft); }
.slot.is-new .ink { animation: press .55s cubic-bezier(.2,.9,.25,1.2) both; }
@keyframes press {
  0% { transform: rotate(var(--rot)) scale(1.9); opacity: 0; }
  55% { transform: rotate(var(--rot)) scale(.92); opacity: 1; }
  100% { transform: rotate(var(--rot)) scale(1); }
}
.f-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqi; padding-top: 2.4cqi; border-top: 1px solid var(--line-c); }
.f-who { min-width: 0; }
.f-name { font-size: 4.2cqi; font-weight: 550; letter-spacing: -.02em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-code { margin-top: .6cqi; font: 500 2.5cqi/1.2 var(--mono); color: var(--soft); }
.f-count { font-family: var(--mono); line-height: .9; white-space: nowrap; }
.f-count b { font-size: 8.4cqi; font-weight: 500; letter-spacing: -.05em; }
.f-count span { font-size: 3.2cqi; color: var(--soft); }

/* ── Belakang: logo ── */
.face-back { display: grid; place-items: center; text-align: center; }
.face-back.has-bg { background: var(--back-bg) center / cover no-repeat, var(--bg); }
.b-frame { position: absolute; inset: 4.4cqi; border: 1px solid var(--line-c); border-radius: 2.4cqi; pointer-events: none; }
.b-center { display: grid; justify-items: center; gap: 1.8cqi; padding: 0 12cqi; }
.b-logo { width: 15cqi; height: 15cqi; object-fit: contain; }
.b-mono { width: 14cqi; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: .55cqi solid var(--accent);
  font: 700 5.2cqi/1 var(--font); letter-spacing: -.04em; color: var(--accent); box-shadow: inset 0 0 0 1.1cqi var(--bg), inset 0 0 0 1.4cqi var(--accent); }
.b-name { font-size: 5.6cqi; font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.b-kicker { font: 500 2.1cqi/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.b-kicker::before, .b-kicker::after { content: "-"; margin: 0 1.2cqi; opacity: .6; }
.b-tag { position: absolute; left: 8cqi; right: 8cqi; bottom: 7.6cqi; font: 500 2.3cqi/1.3 var(--mono); letter-spacing: .06em; color: var(--soft); }

/* ── Tema Tinta: gelap, garis tipis ungu, bingkai bersudut asimetris ── */
.th-ink .face-back { background: radial-gradient(80% 90% at 50% 40%, rgb(var(--a-rgb) / .1), transparent 70%), #18181b; }
.th-ink .b-frame { border-color: rgb(var(--a-rgb) / .55); border-radius: 10cqi 1cqi 10cqi 1cqi; }
.th-ink .b-name { color: var(--accent); }
.th-ink .b-logo { background: #fff; border-radius: 2.6cqi; padding: 1.6cqi; }
.th-ink .face-front { background: radial-gradient(120% 90% at 100% 0%, rgb(var(--a-rgb) / .13), transparent 55%), var(--bg); }
.th-ink .face-front.has-bg { background: var(--scrim), var(--front-bg) center / cover no-repeat, var(--bg); }

/* ── Tema Kertas: krem bersih, tinta ungu tua ── */
.th-paper .face {
  --bg: #f6f4ee; --fg: #1f1d2e; --soft: rgba(31,29,46,.5); --line-c: rgba(31,29,46,.12);
  --slot-line: rgba(31,29,46,.28); --slot-fill: rgb(var(--a-rgb) / .08); --ink-c: var(--deep); --gift-bg: #f6f4ee;
  --scrim: linear-gradient(rgba(248,246,240,.5), rgba(248,246,240,.68));
  background: radial-gradient(120% 90% at 20% 10%, #fbfaf6, #efede5);
  box-shadow: 0 6cqi 12cqi -7cqi rgba(10,10,14,.32), inset 0 0 0 1px rgba(31,29,46,.08);
}
.th-paper .face-front.has-bg, .th-paper .face-back.has-bg { background-color: #f6f4ee; }
.th-paper .face-front.has-bg { background: var(--scrim), var(--front-bg) center / cover no-repeat, #f6f4ee; }
.th-paper .face-back.has-bg { background: var(--back-bg) center / cover no-repeat, #f6f4ee; }
.th-paper .b-frame { border-style: dashed; border-color: rgb(var(--a-rgb) / .4); }

/* ── Tema Ceria: pastel hangat, konfeti, slot seperti stiker, tepi tiket ── */
.th-fun .face {
  --bg: #fff8ee; --fg: var(--deep); --soft: rgb(var(--d-rgb) / .62); --line-c: rgb(var(--a-rgb) / .22);
  --slot-line: rgb(var(--a-rgb) / .5); --slot-fill: #fff; --ink-c: var(--accent); --gift-bg: #fff;
  --scrim: linear-gradient(rgba(255,248,238,.5), rgba(255,248,238,.68));
  border-radius: 6cqi;
  background: linear-gradient(160deg, rgb(var(--a-rgb) / .16), rgb(var(--a-rgb) / .05) 60%, #ffe9c7 140%), #fff8ee;
  box-shadow: 0 6cqi 12cqi -7cqi rgb(var(--d-rgb) / .35), inset 0 0 0 1px rgb(var(--a-rgb) / .14);
}
.th-fun .face .tick { display: none; }
/* konfeti (titik warna-warni di tepi, tidak menutupi slot) */
.th-fun .face:not(.has-bg)::before, .th-fun .face-front.has-bg::before {
  background:
    radial-gradient(circle, var(--accent) 0 .9cqi, transparent 1cqi) 4% 30% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, #ffb547 0 1.3cqi, transparent 1.4cqi) 97% 22% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, #ff6b8b 0 .8cqi, transparent .9cqi) 93% 62% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, #3dc9b8 0 1cqi, transparent 1.1cqi) 2.5% 70% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, #ffb547 0 .6cqi, transparent .7cqi) 50% 4% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, rgb(var(--a-rgb) / .5) 0 .7cqi, transparent .8cqi) 70% 96% / 4cqi 4cqi no-repeat;
}
/* tepi tiket bergerigi di bawah sisi depan */
.th-fun .face-front::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6cqi; z-index: -1;
  background: radial-gradient(circle at 50% 100%, var(--accent) 0 1.1cqi, transparent 1.2cqi) 0 0 / 3.6cqi 2.6cqi repeat-x;
  opacity: .9;
}
.th-fun .face-front { padding-bottom: 5.6cqi; }
.th-fun .face-front.has-bg { background: var(--scrim), var(--front-bg) center / cover no-repeat, #fff8ee; }
.th-fun .f-head { border-bottom: 1.5px dashed rgb(var(--a-rgb) / .35); }
.th-fun .f-foot { border-top: 1.5px dashed rgb(var(--a-rgb) / .35); }
.th-fun .f-shop { font-weight: 750; color: var(--accent); letter-spacing: -.03em; }
.th-fun .f-logo { border-radius: 50%; box-shadow: 0 0 0 .5cqi #fff, 0 1cqi 2cqi -1cqi rgb(var(--d-rgb) / .4); }
.th-fun .f-no { color: var(--soft); }
.th-fun .f-count b { color: var(--accent); font-weight: 650; }
.th-fun .slot { background: #fff; border: .45cqi dashed var(--slot-line); box-shadow: 0 .8cqi 1.6cqi -1cqi rgb(var(--d-rgb) / .3); }
.th-fun .slot:nth-child(odd) { transform: rotate(-4deg); }
.th-fun .slot:nth-child(even) { transform: rotate(3deg); }
.th-fun .slot.is-stamped { border: .45cqi solid rgb(var(--a-rgb) / .35); background: #fff; }
.th-fun .slot-gift { box-shadow: 0 0 0 .4cqi var(--accent), 0 .6cqi 1.2cqi -.6cqi rgb(var(--d-rgb) / .5); }
/* sisi belakang: warna toko penuh, logo seperti stiker */
.th-fun .face-back:not(.has-bg) {
  --fg: #fff; --soft: rgba(255,255,255,.82); --line-c: rgba(255,255,255,.45);
  background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.18), transparent 55%), var(--accent);
}
.th-fun .face-back:not(.has-bg)::before {
  background:
    radial-gradient(circle, #fff 0 .9cqi, transparent 1cqi) 8% 18% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, #ffd27a 0 1.4cqi, transparent 1.5cqi) 90% 16% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, #ff9db1 0 1cqi, transparent 1.1cqi) 86% 80% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, rgba(255,255,255,.7) 0 .7cqi, transparent .8cqi) 12% 82% / 4cqi 4cqi no-repeat,
    radial-gradient(circle, #7ee8d9 0 .8cqi, transparent .9cqi) 22% 50% / 4cqi 4cqi no-repeat;
}
.th-fun .face-back.has-bg { background: var(--back-bg) center / cover no-repeat, var(--accent); }
.th-fun .b-frame { border: .45cqi dashed rgba(255,255,255,.5); border-radius: 5cqi; }
.th-fun .b-logo { background: #fff; border-radius: 50%; padding: 2.4cqi; width: 17cqi; height: 17cqi; transform: rotate(-6deg); box-shadow: 0 1.6cqi 3cqi -1cqi rgba(0,0,0,.3); }
.th-fun .b-mono { background: #fff; border-color: #fff; color: var(--accent); transform: rotate(-6deg); box-shadow: inset 0 0 0 1.1cqi #fff, inset 0 0 0 1.4cqi var(--accent), 0 1.6cqi 3cqi -1cqi rgba(0,0,0,.3); }
.th-fun .b-name { font-weight: 750; font-size: 6.2cqi; }

/* ── Membalik kartu ── */
.flip { perspective: 1800px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flip-inner { display: grid; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, .75, .25, 1); }
.flip-face { grid-area: 1 / 1; display: grid; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }
.flip.show-back .flip-inner { transform: rotateY(180deg); }
.flip-btn { display: inline-flex; align-items: center; gap: 6px; margin: 12px auto 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; }
.flip-btn:hover { color: var(--ink); border-color: var(--line-2); }
.cp-card { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* Tempat-tempat kartu */
.auth-card .lcard { transform: rotate(-2.5deg); }
.auth-card .face { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8cqi 16cqi -6cqi rgba(0,0,0,.8); }
.stamped-hero .lcard { max-width: 460px; margin: 0 auto; }

/* ── Pengaturan: tampilan kartu ── */
.card-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 28px; align-items: start; }
.card-set-preview { position: sticky; top: 16px; }
.card-set-preview .flip { max-width: 360px; }
.theme-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-opt { display: grid; gap: 8px; padding: 8px 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.theme-opt:hover { border-color: var(--line-2); }
.theme-opt[aria-pressed="true"] { border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand); }
.theme-opt .face { box-shadow: none; }
.theme-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; pointer-events: none; }
.theme-opt b { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.theme-opt[aria-pressed="true"] b { color: var(--ink); }
.theme-opt small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.set-sub { margin: 26px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.set-sub h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.set-sub p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.logo-row { display: flex; gap: 16px; align-items: flex-start; }
.img-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.img-slot { display: grid; gap: 8px; }
.img-slot-box { aspect-ratio: 8 / 5; border-radius: 10px; border: 1.5px dashed var(--line-2); background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; text-align: center; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.img-slot-box:hover { border-color: var(--brand-text); color: var(--brand-text); }
.img-slot-box.has-img { border-style: solid; border-color: var(--line); }
.img-slot-box.has-img span { display: none; }
.img-slot-name { font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.img-slot-name .btns { display: flex; gap: 4px; }
@media (max-width: 1100px) {
  .card-set { grid-template-columns: 1fr; }
  .card-set-preview { position: static; order: -1; }
}
@media (max-width: 560px) {
  .theme-picker { grid-template-columns: 1fr; }
  .theme-opt { grid-template-columns: 150px 1fr; align-items: center; }
  .img-slots { grid-template-columns: 1fr; }
  .logo-row { flex-direction: column; }
}

.th-paper .b-name { color: var(--deep); }

/* Pengaturan: pilihan warna kartu */
.color-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.color-opt { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); display: grid; place-items: center; color: #fff; }
.color-opt .ic { opacity: 0; }
.color-opt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.color-opt[aria-pressed="true"] .ic { opacity: 1; }
.color-opt.is-light { color: #303030; }
.color-custom { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 4px; border: 1px dashed var(--line-2); border-radius: 99px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.color-custom[aria-pressed="true"] { border-style: solid; border-color: var(--ink); }
.color-custom .dot { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#d64545, #e0742b, #b8902f, #3f8f3a, #0f8f7e, #2f6fdb, #5b4cdb, #d6457f, #d64545); }
.color-custom[aria-pressed="true"] .dot { background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.color-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.color-hex { font: 500 12px var(--mono); color: var(--muted); }

.seg button { white-space: nowrap; }
@media (max-width: 760px) {
  .toolbar .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 3px; }
  .toolbar .seg button { height: 38px; padding: 0 8px; font-size: 13.5px; }
}

/* ── Pengaturan: ringkasan tampilan kartu & halaman tersendiri ── */
.settings-wide { max-width: 1120px; }
.card-summary .cs-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 420px); border-radius: 10px; }
.cs-cards .face { box-shadow: 0 3cqi 6cqi -4cqi rgba(10,10,14,.35); }
.cs-cards:hover .face { transform: translateY(-2px); transition: transform .15s; }
.main > #view > .back-link { margin-bottom: 14px; text-decoration: none; }
@media (max-width: 560px) {
  .card-summary .cs-row .btn { width: 100%; }
}

/* ── Login di HP: terang & sederhana, satu kolom ──
   Kartu kecil di atas, judul tebal, kolom isian jelas, tombol hitam penuh. */
@media (max-width: 860px) {
  .auth { background: var(--paper); grid-template-rows: auto 1fr; }
  .auth-aside { position: relative; height: auto; overflow: visible; gap: 0; padding: 18px 22px 0; background: transparent; color: var(--ink); }
  .auth-aside .brand { color: var(--ink); }
  .auth-aside::after, .auth-pitch, .auth-points, .auth-steps, .auth-foot { display: none; }
  .auth-card { display: block; width: min(62%, 260px); margin: 26px auto 4px; }
  .auth-card .lcard { transform: rotate(-4deg); }
  .auth-card .face { box-shadow: 0 22px 34px -20px rgba(10,10,14,.5), inset 0 0 0 1px rgba(255,255,255,.06); }
  .auth-main { place-items: start center; padding: 26px 22px 40px; background: transparent; }
  .auth-box { width: 100%; max-width: 440px; }
  .auth-tabs { display: none; }
  .auth-kicker { margin-bottom: 8px; }
  .auth-box h1 { font-size: 32px; line-height: 1.04; letter-spacing: -.05em; }
  .auth-sub { margin: 10px 0 22px; font-size: 15px; }
  .auth-box .field-label { margin-top: 16px; }
  .auth-box .input { height: 52px; border-radius: 12px; font-size: 16px; }
  .auth-box .btn-lg { height: 54px; border-radius: 14px; font-size: 15.5px; margin-top: 8px; }
  .auth-note { margin-top: 18px; font-size: 14px; }
  .back-link { margin-bottom: 18px; }
}
.th-fun .face::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cs-cards, .cs-cards * { text-decoration: none; color: inherit; }


/* ═════════════════════════════════════════════════════════════
   HALAMAN TIDAK DITEMUKAN (kartu / toko)
   ═════════════════════════════════════════════════════════════ */
.lost { padding: 8px 0 24px; overflow-x: clip; }
.lost-visual { position: relative; width: min(100%, 400px); margin: 18px auto 34px; }
.lost-visual::before { /* bayangan kartu yang "hilang": garis putus-putus di belakang */
  content: ""; position: absolute; inset: 0; border: 1.5px dashed var(--line-2); border-radius: 17px; transform: rotate(5deg) translate(10px, 6px);
}
.lost-card { position: relative; transform: rotate(-3deg); filter: saturate(.6); }
.lost-card .face { box-shadow: 0 30px 50px -28px rgba(10,10,14,.55); }
.lost-card .slot-n { opacity: .55; }
.lost-stamp {
  position: absolute; width: 50%; right: -4%; top: 50%; color: #ef5a4c; opacity: .94;
  transform: translateY(-50%) rotate(-14deg); filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  animation: lost-press .7s cubic-bezier(.2,.9,.25,1.25) .25s both;
}
@keyframes lost-press {
  0% { transform: translateY(-50%) rotate(-14deg) scale(1.7); opacity: 0; }
  60% { transform: translateY(-50%) rotate(-14deg) scale(.94); opacity: 1; }
  100% { transform: translateY(-50%) rotate(-14deg) scale(1); opacity: .94; }
}
@media (prefers-reduced-motion: reduce) { .lost-stamp { animation: none; } }
.lost-kicker { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #d2453a; }
.lost-title { margin-top: 10px; font-size: clamp(32px, 8.4vw, 44px); line-height: 1; letter-spacing: -.055em; font-weight: 700; }
.lost-title span { color: var(--muted); }
.lost-lead { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.lost-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.lost-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lost-steps .n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--brand-text); color: var(--brand-deep); font: 600 13px var(--mono); }
.lost-steps b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lost-steps p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.lost-steps p b { display: inline; font-size: inherit; color: var(--ink-2); font-weight: 600; }
.lost-saved { margin-top: 26px; }
.lost-saved h2 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.lost-saved ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lost-saved li + li { border-top: 1px solid var(--line); }
.lost-saved a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; text-decoration: none; color: var(--ink); }
.lost-saved a:hover { background: var(--surface-2); }
.lost-saved b { display: block; font-size: 14.5px; font-weight: 600; }
.lost-saved small { font-size: 12.5px; color: var(--muted); }
.lost-brand { position: relative; margin-top: 30px; padding: 26px 22px 22px; border-radius: 18px; background: var(--card); color: #f3f3f1; overflow: hidden; }
.lost-brand::after { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 1px dashed rgba(252,216,114,.3); box-shadow: 0 0 0 26px rgba(252,216,114,.04); }
.lost-brand .tick { opacity: .4; }
.lost-brand-kicker { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.lost-brand h2 { margin-top: 10px; font-size: 26px; line-height: 1.05; letter-spacing: -.045em; font-weight: 650; }
.lost-brand p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.66); max-width: 44ch; }
.lost-brand .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }
.lost-brand .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.lost-brand .btn-light { display: inline-flex; align-items: center; gap: 6px; }

.lost-brand .btn-light { background: #fff; color: var(--ink); }


/* ── Tukar hadiah: status tambahan ── */
.pill-ready { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 99px; color: var(--brand-deep); background: var(--brand-soft); }
.pill-rejected { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 8px; margin-right: 6px; border-radius: 99px; color: #a3302a; background: #fbe7e5; }
.cp-lock { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 13px; line-height: 1.45; color: var(--muted); }
.cp-lock .ic { flex: none; margin-top: 2px; }
.cp-lock b { color: var(--ink-2); }
.celebrate.is-rejected .ic { color: #c8423a; }
.next-steps { list-style: none; margin: 6px 0 18px; padding: 0; display: grid; gap: 8px; }
.next-steps li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.45; }
.next-steps span { font: 600 12px var(--mono); color: var(--brand-text); }
.unlock span b { color: inherit; }


/* ── Keterangan kasir & pembatalan stempel ── */
.reward-note { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: #a3302a; }
.note-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-sm { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font: 500 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.chip-sm:hover { border-color: var(--line-2); color: var(--ink); }
.note-input { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; font: 14.5px/1.45 var(--font); }
.history li.h-undo { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(20,20,22,.025) 8px 16px); }
.h-undo .h-items > span:first-child { display: inline-flex; align-items: center; gap: 5px; color: #a3302a; font-weight: 500; }
.h-undo .h-date b, .h-undo .h-amt { color: var(--muted); }
.h-note { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.updates { display: grid; gap: 10px; margin-bottom: 18px; }
.upd { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.upd-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.upd-rej .upd-ic { background: #fbe7e5; color: #b4322a; }
.upd-undo .upd-ic { background: #fdf1dc; color: #8a5a00; }
.upd b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.upd p { margin-top: 4px; }
.upd-note { font-size: 14px; color: var(--ink); padding: 8px 10px; margin-top: 8px !important; border-radius: 8px; background: var(--surface); border-left: 3px solid var(--brand); }

/* ── PIN kasir ──────────────────────────────────────────────── */
.lock-box { max-width: 340px; margin: 56px auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.lock-ic { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); }
.lock-box h2 { font-size: 18px; letter-spacing: -.02em; }
.lock-box > p { margin: 6px 0 18px; font-size: 13.5px; }
.lock-box form, .pin-form { text-align: left; }
.pin-input { font: 600 20px var(--mono); letter-spacing: .4em; text-align: center; }
.pin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pin-row p { color: var(--muted); font-size: 13.5px; max-width: 52ch; }
.pin-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--good); }

/* ═════════════════════════════════════════════════════════════
   Dashboard berwarna (kuning + hitam). Hanya berlaku di dalam .app,
   jadi kartu pelanggan & halaman pendaftaran tidak terpengaruh.
   ═════════════════════════════════════════════════════════════ */
.app {
  --on-brand-muted: #5a4a1e;  /* teks sekunder di atas kuning (kontras 6.2) */
  --app-line: #e9e3cf;
  background:
    radial-gradient(1100px 680px at 100% 100%, rgba(252, 216, 114, .55), transparent 62%),
    radial-gradient(800px 460px at 70% -10%, rgba(252, 216, 114, .22), transparent 65%),
    #f6f4ec;
  background-attachment: fixed;
}
.app .side { background: transparent; border-right-color: var(--app-line); }
.app .side .brand .logo-mark { color: var(--ink); }
.app .side-shop { border-color: var(--app-line); box-shadow: 0 10px 24px -20px rgba(92, 68, 0, .5); }
.app .tab:hover { background: rgba(252, 216, 114, .38); color: var(--ink); }
.app .tab[aria-current="page"]:hover { background: var(--brand-strong); color: #fff; }

/* Judul halaman dengan sapuan stabilo kuning */
.app .page-head h1 { display: inline; padding: 0 .1em; background: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 90%, transparent 90%); }
.app .btn-dark .ic { color: var(--brand); }

/* Input: cincin fokus kuning */
.app .input:focus, .app .money:focus-within { border-color: var(--brand-strong); box-shadow: 0 0 0 4px rgba(252, 216, 114, .6); }
.app .search input { border-color: var(--app-line); }

/* Kasir */
.app .today { background: var(--brand); border-color: transparent; color: var(--on-brand); box-shadow: 0 18px 40px -26px rgba(92, 68, 0, .7); }
.app .today h2 .muted, .app .today .small.muted, .app .today .feed .mono, .app .today-stats span { color: var(--on-brand-muted); }
.app .today-stats { border-color: rgba(48, 48, 48, .16); }
.app .today-stats div + div { border-left-color: rgba(48, 48, 48, .16); }
.app .today-stats b { font-size: 30px; }
.app .today .feed li + li { border-top-color: rgba(48, 48, 48, .18); }
.app .today .feed li span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-strong); margin-right: 8px; vertical-align: 1px; }

.app .claims { background: var(--brand-strong); border-color: transparent; color: #fff; }
.app .claims h2 { color: var(--brand); }
.app .claims .count { background: var(--brand); color: var(--on-brand); }
.app .claims li { border-color: transparent; color: var(--ink); }

.app .cust-list { border-color: var(--app-line); }
.app .cust-list li + li { border-top-color: var(--app-line); }
.app .cust:hover { background: var(--brand-soft); }
.app .avatar { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.app .cust:hover .avatar, .app .data tbody tr:hover .avatar { background: var(--brand-strong); color: var(--brand); }

/* Pelanggan */
.app .seg { background: rgba(48, 48, 48, .07); }
.app .seg button[aria-pressed="true"] { background: var(--brand-strong); color: var(--brand); box-shadow: none; }
.app table.data { border-color: var(--app-line); }
.app .data th { background: var(--brand-soft); color: var(--brand-deep); border-bottom-color: var(--brand-line); }
.app .data td { border-bottom-color: var(--app-line); }
.app .data tbody tr:hover td { background: var(--brand-soft); }

/* Insight: KPI jadi ubin terpisah, dua di antaranya berwarna */
.app .kpis { background: transparent; border: 0; border-radius: 0; overflow: visible; gap: 10px; }
.app .kpi { background: var(--surface); border: 1px solid var(--app-line); border-radius: 16px; }
.app .kpi-yellow { background: var(--brand); border-color: transparent; color: var(--on-brand); }
.app .kpi-yellow .kpi-l, .app .kpi-yellow .delta { color: var(--on-brand-muted); }
.app .kpi-yellow .delta.up { color: #145234; }
.app .kpi-yellow .delta.down { color: #8a1f17; }
.app .kpi-dark { background: var(--brand-strong); border-color: transparent; color: #fff; }
.app .kpi-dark b { color: var(--brand); }
.app .kpi-dark .kpi-l, .app .kpi-dark .delta { color: #bfbfbf; }
.app .kpi-dark .delta.up { color: #7fd6a6; }
.app .kpi-dark .delta.down { color: #ff9d94; }
.app .panel { border-color: var(--app-line); }
.app .panel-head h3::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-strong); margin-right: 8px; vertical-align: 1px; }
.app .chart .grid { stroke: var(--app-line); }
.app .chart .bar.is-peak path { fill: var(--brand); stroke: var(--brand-strong); stroke-width: 1.5px; }
.app .chart .tip { background: var(--brand-strong); color: var(--brand); }
.app .hb-track { height: 10px; border-radius: 5px; background: #f1ecdc; }
.app .hb-fill { background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-strong); border-radius: 5px; }
.app .rank li::before { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 11px; flex: none; }
.app .rank li:first-child::before { background: var(--brand-strong); color: var(--brand); }
.app .rank li, .app .risk li { border-top-color: var(--app-line); }
.app .risk-v { background: #fdecea; border-radius: 99px; padding: 2px 10px; text-align: center; }

/* Pengaturan */
.app .set-sec { border-color: var(--app-line); }
.app .set-sec h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-strong); margin-right: 10px; vertical-align: 1px; }
.app .tier { border-color: var(--app-line); background: #fffdf6; }
.app .tier-head h3 { display: inline-flex; align-items: center; gap: 8px; }
.app .lock-box { border-color: var(--app-line); }
.app .lock-ic { background: var(--brand); color: var(--on-brand); }
.app .empty b::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--brand); margin: 8px auto 0; }

@media (max-width: 760px) {
  .app .side { background: rgba(248, 244, 230, .94); border-top-color: var(--app-line); }
  .app .page-head h1 { background: linear-gradient(transparent 60%, var(--brand) 60%, var(--brand) 92%, transparent 92%); }
}
.app .slot-picker button.has { background: var(--brand); color: var(--on-brand); border-color: var(--brand-strong); }
.app .slot-picker button[aria-pressed="true"] { background: var(--brand-strong); color: var(--brand); }
.app .reward-row .tag { background: var(--brand); color: var(--on-brand); }
.app .note { background: var(--brand); color: var(--on-brand); }
.app .today .skeleton { background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.6), rgba(255,255,255,.35)); background-size: 200% 100%; }

/* ── Detail pelanggan (#pelanggan/TOKEN) ────────────────────── */
.cd { display: grid; gap: 16px; }
.cd-top { margin-bottom: -4px; }
.cd-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--app-line, var(--line)); }
.cd-avatar { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font: 650 24px var(--font); letter-spacing: -.03em; background: var(--brand); color: var(--on-brand); box-shadow: inset 0 0 0 2px var(--brand-strong); }
.cd-id { min-width: 0; }
.cd-id h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.045em; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.cd-code { padding: 1px 8px; border-radius: 6px; background: var(--brand-strong); color: var(--brand); font-size: 12px; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cd-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.cd-tag.is-hot { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.cd-tag.is-dark { background: var(--brand-strong); color: var(--brand); box-shadow: none; }

.cd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cd-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--app-line, var(--line)); }
.cd-stat.skel { height: 112px; background: linear-gradient(90deg, #efebe0, #f7f4ea, #efebe0); background-size: 200% 100%; animation: sk 1.2s linear infinite; border: 0; }
.cd-stat-l { font-size: 12.5px; color: var(--muted); }
.cd-stat b { font: 500 30px/1.05 var(--mono); letter-spacing: -.05em; white-space: nowrap; }
.cd-stat b i { font-style: normal; font-size: 18px; opacity: .55; }
.cd-stat-s { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cd-stat.is-yellow { background: var(--brand); border-color: transparent; color: var(--on-brand); }
.cd-stat.is-yellow .cd-stat-l, .cd-stat.is-yellow .cd-stat-s { color: var(--on-brand-muted, #5a4a1e); }
.cd-stat.is-dark { background: var(--brand-strong); border-color: transparent; color: #fff; }
.cd-stat.is-dark b { color: var(--brand); }
.cd-stat.is-dark .cd-stat-l, .cd-stat.is-dark .cd-stat-s { color: #bfbfbf; }
.cd-bar { display: block; height: 8px; border-radius: 4px; background: rgba(48, 48, 48, .14); overflow: hidden; }
.cd-bar > span { display: block; height: 100%; border-radius: 4px; background: var(--brand-strong); transition: width .3s; }

.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.cd-main { display: grid; gap: 16px; min-width: 0; grid-column: 1; grid-row: 1; }
.cd-side { grid-column: 2; grid-row: 1; position: sticky; top: 20px; min-width: 0; }
.cd-box { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--app-line, var(--line)); min-width: 0; }
.cd-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cd-box-head h2 { font-size: 17px; letter-spacing: -.02em; }
.cd-box-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cd-count { font: 500 12px var(--mono); padding: 2px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-deep); }
.cd-box-foot { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--app-line, var(--line)); }
.cd-box .history, .cd-box .rewards { border-color: var(--app-line, var(--line)); }

.cd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.cd-field { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fbfaf5; border: 1px solid var(--app-line, var(--line)); min-width: 0; }
.cd-span { grid-column: 1 / -1; }
.cd-field dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cd-field dt .ic { color: var(--brand-text); }
.cd-field dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.cd-val { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.cd-val:hover { text-decoration: underline; text-underline-offset: 3px; }
.cd-mini { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.cd-mini .icon-btn { width: 32px; height: 32px; }
.cd-chip { font: 500 11.5px var(--mono); padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-deep); }
.cd-note { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cd-add { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin-left: -4px; border: 1px dashed var(--line-2); border-radius: 10px; background: transparent; font: 500 13px var(--font); color: var(--brand-text); cursor: pointer; }
.cd-add:hover { border-color: var(--brand-text); background: var(--brand-soft); }

.cd-cardbox { padding: 18px; }
.cd-cardbox .cp-sec { margin-top: 20px; }

/* Formulir pelanggan */
.cf .err-text:empty { margin: 0; min-height: 0; }
.cf-more { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; }
.cf-more > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.cf-more > summary::-webkit-details-marker { display: none; }
.cf-more > summary .ic { color: var(--brand-text); transition: transform .15s; }
.cf-more[open] > summary .ic { transform: rotate(45deg); }
.cf-more[open] > summary { border-bottom: 1px solid var(--line); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 4px 14px 0; }
.cf-grid .field-label { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.cf-grid .field-label .ic { color: var(--brand-text); }
.cf-span { grid-column: 1 / -1; }
.cf-note { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.45; }
.cf-hint { display: flex; gap: 6px; align-items: flex-start; padding: 0 14px 14px; margin-top: 10px; }
.cf-hint .ic { flex: none; margin-top: 1px; }

/* Layar menengah: satu kolom; kotak kartu dibagi dua (kartu | hadiah) kalau cukup lebar */
.cd-cardbox { container-type: inline-size; }
@container (min-width: 600px) {
  #cd-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px; grid-auto-flow: row dense; align-items: start; }
  #cd-panel > .cp-card, #cd-panel > .cp-line, #cd-panel > .cp-actions, #cd-panel > .cp-lock { grid-column: 1; }
  #cd-panel > .cp-sec { grid-column: 2; margin-top: 0; margin-bottom: 18px; }
}
@media (max-width: 1240px) {
  .cd-grid { grid-template-columns: minmax(0, 1fr); }
  .cd-side { grid-column: 1; grid-row: 1; position: static; }
  .cd-main { grid-column: 1; grid-row: 2; }
}
@media (max-width: 900px) {
  .cd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cd-head { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .cd-avatar { width: 54px; height: 54px; font-size: 19px; }
  .cd-head-act { grid-column: 1 / -1; }
  .cd-head-act .btn { width: 100%; }
  .cd-fields, .cf-grid { grid-template-columns: 1fr; }
  .cd-stat b { font-size: 26px; }
  .cd-box { padding: 16px; border-radius: 16px; }
}

/* ── Latar halaman pelanggan (kartu & pendaftaran) ────────────
   Mengikuti warna toko (--brand dari applyShopColor), jadi tiap toko punya nuansa sendiri. */
body:has(> main.solo) {
  position: relative;
  min-height: 100dvh;
  background-color: #f6f4ee;
  background-color: color-mix(in srgb, var(--brand-soft) 60%, #f6f4ee);
  background-image:
    radial-gradient(900px 520px at 0% 0%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%),
    radial-gradient(800px 600px at 100% 100%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%),
    radial-gradient(600px 380px at 100% 0%, rgba(255, 255, 255, .7), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* titik-titik halus, memudar ke tengah supaya isi tetap bersih */
body:has(> main.solo)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--brand-text) 22%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 50%, #000 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 50%, #000 100%);
}
/* motif cap stempel besar di pojok */
body:has(> main.solo)::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; right: -170px; top: -150px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--brand-text) 18%, transparent);
  box-shadow:
    inset 0 0 0 26px color-mix(in srgb, var(--brand) 6%, transparent),
    inset 0 0 0 28px color-mix(in srgb, var(--brand-text) 14%, transparent),
    -1060px 640px 0 -120px color-mix(in srgb, var(--brand) 18%, transparent);
}
main.solo { position: relative; z-index: 0; }
main.solo .join-card, main.solo .rewards, main.solo .history { box-shadow: 0 18px 40px -30px rgba(60, 45, 10, .45); border-color: color-mix(in srgb, var(--brand-text) 14%, var(--line)); }
main.solo .solo-top { padding: 10px 14px; margin-inline: -14px; border-radius: 14px; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7); }
@media (max-width: 560px) {
  body:has(> main.solo)::after { width: 340px; height: 340px; right: -150px; top: -120px; box-shadow: inset 0 0 0 18px color-mix(in srgb, var(--brand) 10%, transparent), inset 0 0 0 20px color-mix(in srgb, var(--brand-text) 14%, transparent), -420px 560px 0 -60px color-mix(in srgb, var(--brand) 18%, transparent); }
  main.solo .solo-top { margin-inline: 0; }
}

/* Link & QR kartu di halaman detail */
.cd-side { display: grid; gap: 16px; }
.cd-share-field dd { display: block; }
.cd-share-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: start; }
.cd-share-row .cd-url { background: #fff; }
.cd-qr { position: relative; display: grid; gap: 6px; padding: 8px 8px 6px; border: 1px solid var(--app-line, var(--line)); border-radius: 14px; background: #fff; cursor: zoom-in; }
.cd-qr > svg { width: 100%; height: auto; display: block; }
.cd-qr > span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.cd-qr:hover { border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft); }
.cd-share-act { display: grid; gap: 8px; min-width: 0; }
.cd-url { padding: 8px 10px; border-radius: 10px; background: #fbfaf5; border: 1px solid var(--app-line, var(--line)); min-width: 0; }
.cd-url span { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cd-share-btns .btn { width: 100%; }
.cd-share .btn-wa { height: 40px; font-size: 13.5px; }
/* aksi kartu tanpa tombol Link: Batalkan terakhir selebar penuh */
.cd-cardbox .cp-actions > .btn:last-child:nth-child(2) { grid-column: 1 / -1; }
@media (max-width: 1240px) {
  .cd-side { grid-template-columns: minmax(0, 1fr); }
}
@container (min-width: 600px) {
  #cd-panel > .cp-actions { margin-bottom: 4px; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .cd-share-row { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .cd-share-row { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
}
.cd-dt-hint { color: var(--muted); font-size: 11.5px; }
@media (max-width: 560px) { .cd-dt-hint { display: none; } }

/* ── Langganan ─────────────────────────────────────────────── */
.lic-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; margin: -8px 0 20px; border-radius: 12px; font-size: 13.5px; background: var(--brand-soft); color: var(--brand-deep); border: 1px solid var(--brand-line); }
.lic-bar > span { flex: 1; min-width: 0; }
.lic-bar .ic { flex: none; }
.lic-bar.is-grace { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.lic-bar.is-expired { background: var(--brand-strong); color: #fff; border-color: transparent; }
.lic-bar.is-expired .ic { color: var(--brand); }
.lic-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.lic-chip.is-active { background: #e3f3ea; color: #145234; }
.lic-chip.is-grace { background: var(--brand); color: var(--on-brand); }
.lic-chip.is-expired { background: var(--brand-strong); color: var(--brand); }
.lic-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.lic-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--brand); color: var(--on-brand); }
.lic-stat span, .lic-stat small { font-size: 12.5px; color: var(--on-brand-muted, #5a4a1e); }
.lic-stat b { font: 600 22px/1.15 var(--font); letter-spacing: -.03em; }
.lic-row { display: flex; gap: 8px; }
.lic-row .input { flex: 1; min-width: 0; }
.code-input { letter-spacing: .08em; text-transform: uppercase; }
.lic-form .field-label { margin-top: 0; }
/* Mode hanya-baca: tombol tulis dibuat redup (database tetap menolak kalau dipaksa) */
.is-readonly [data-act="stamp"], .is-readonly [data-act="undo"], .is-readonly #new-cust, .is-readonly #new-cust2,
.is-readonly [data-claim-ok], .is-readonly [data-approve], .is-readonly #mk, .is-readonly #cd-edit, .is-readonly .cd-add {
  opacity: .4; pointer-events: none; }
@media (max-width: 640px) {
  .lic-grid { grid-template-columns: 1fr; }
  .lic-bar { flex-wrap: wrap; }
}

/* ═════════════════════════════════════════════════════════════
   Halaman admin Matera (admin.html)
   ═════════════════════════════════════════════════════════════ */
body.adm-body {
  background:
    radial-gradient(1000px 600px at 100% 100%, rgba(252, 216, 114, .45), transparent 62%),
    radial-gradient(700px 420px at 0% 0%, rgba(252, 216, 114, .18), transparent 65%),
    #f6f4ec;
  background-attachment: fixed;
  min-height: 100dvh;
}
.adm { width: min(100% - 32px, 1160px); margin: 0 auto; padding: 20px 0 80px; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.adm-tag { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 99px; background: var(--brand-strong); color: var(--brand); font: 600 11px var(--mono); letter-spacing: .04em; vertical-align: 2px; }
.adm-me { display: flex; align-items: center; gap: 10px; }
.adm-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid #e9e3cf; overflow-x: auto; }
.adm-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.adm-tabs a:hover { background: rgba(252, 216, 114, .35); color: var(--ink); }
.adm-tabs a[aria-current] { background: var(--brand-strong); color: #fff; font-weight: 500; }
.adm-tabs a[aria-current] .ic { color: var(--brand); }
.adm .page-head h1 { display: inline; padding: 0 .1em; background: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 90%, transparent 90%); }
.adm .btn-dark .ic { color: var(--brand); }
.adm-gate { max-width: 440px; margin: 10vh auto 0; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid #e9e3cf; display: grid; gap: 10px; }
.adm-gate h1 { font-size: 24px; letter-spacing: -.03em; margin-top: 12px; }
.adm-sql { margin: 6px 0 0; padding: 14px; border-radius: 12px; background: var(--brand-strong); color: var(--brand); font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.adm-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid #e9e3cf; min-width: 0; }
.adm-kpi span, .adm-kpi small { font-size: 12.5px; color: var(--muted); }
.adm-kpi b { font: 500 30px/1.05 var(--mono); letter-spacing: -.05em; white-space: nowrap; }
.adm-kpi.is-yellow { background: var(--brand); border-color: transparent; }
.adm-kpi.is-yellow span, .adm-kpi.is-yellow small { color: #5a4a1e; }
.adm-kpi.is-dark { background: var(--brand-strong); border-color: transparent; color: #fff; }
.adm-kpi.is-dark b { color: var(--brand); }
.adm-kpi.is-dark span, .adm-kpi.is-dark small { color: #bfbfbf; }

.adm-box { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid #e9e3cf; min-width: 0; }
.adm-box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-box-head h2 { font-size: 17px; letter-spacing: -.02em; }
.adm-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.adm-chip.is-active { background: #e3f3ea; color: #145234; }
.adm-chip.is-soon { background: var(--brand-soft); color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand-line); }
.adm-chip.is-grace { background: var(--brand); color: var(--on-brand); }
.adm-chip.is-expired { background: var(--brand-strong); color: var(--brand); }
.adm-chip.is-used { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.adm-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fbfaf5; border: 1px solid #e9e3cf; }
.adm-todo li > div { min-width: 0; display: flex; flex-direction: column; }
.adm-todo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-table { border-color: #e9e3cf; }
.adm-table th { background: var(--brand-soft); color: var(--brand-deep); border-bottom-color: var(--brand-line); }
.adm-table td { vertical-align: top; border-bottom-color: #e9e3cf; }
.adm-table tbody tr { cursor: default; }
.adm-table tbody tr:hover td { background: #fffdf4; }

.adm-codes { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.adm-plan { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
.adm-plan small { font: 400 11px var(--mono); color: var(--muted); }
.adm-plan:hover { border-color: var(--brand-text); }
.adm-plan[aria-pressed="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--brand); }
.adm-plan[aria-pressed="true"] small { color: #d9d9d9; }
.adm-custom .field-label { margin-top: 12px; }
.adm-newcode { display: grid; gap: 8px; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--brand); color: var(--on-brand); }
.adm-newcode .muted { color: #5a4a1e; }
.adm-newcode > b { font-size: 26px; letter-spacing: .06em; }
.adm-newcode-act { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-newcode .btn-ghost { background: rgba(255, 255, 255, .7); border-color: transparent; }
.adm-codelist { list-style: none; margin: 0; padding: 0; border: 1px solid #e9e3cf; border-radius: 14px; overflow: hidden; }
.adm-codelist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 104px; gap: 12px; align-items: center; padding: 10px 12px; }
.adm-codelist li + li { border-top: 1px solid #e9e3cf; }
.adm-codelist li.is-used, .adm-codelist li.is-revoked { background: #fcfbf7; }
.adm-codelist li.is-revoked .adm-code-main b { text-decoration: line-through; color: var(--muted); }
.adm-code-main { display: flex; flex-direction: column; min-width: 0; }
.adm-code-main b { font-size: 14.5px; letter-spacing: .04em; }
.adm-code-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-code-act { display: flex; justify-content: flex-end; gap: 2px; }
.adm-code-act a.icon-btn { color: var(--ink-2); }
.icon-btn.danger { color: var(--danger); }

.adm-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.adm-tier { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: #fbfaf5; border: 1px solid #e9e3cf; }
.adm-tier.is-best { background: var(--brand); border-color: transparent; }
.adm-tier.is-best .muted { color: #5a4a1e; }
.adm-tier-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.adm-tier strong { font-size: 22px; letter-spacing: -.04em; }
.adm-disc { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.adm-disc input { width: 58px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 13px var(--mono); }
.adm-guide ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.adm-guide li::marker { font: 600 13px var(--mono); color: var(--brand-text); }

@media (max-width: 1000px) {
  .adm-codes, .adm-price { grid-template-columns: minmax(0, 1fr); }
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .adm-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-todo li { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-todo li > span.muted { display: none; }
  .adm-codelist li { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-code-act { grid-column: 1 / -1; justify-content: flex-start; }
  .adm-me .muted { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Loader halaman: stempel yang ngecap 3 slot bergantian
   ───────────────────────────────────────────────────────────── */
.stamp-loader { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px 0; }
.stamp-loader svg { display: block; width: 220px; height: auto; overflow: visible; }
.stamp-loader p { margin: 0; font-size: 13.5px; color: var(--muted); letter-spacing: .01em; }
.sl-slots circle { fill: rgba(255, 255, 255, .55); stroke: #d8cfae; stroke-width: 1.5; stroke-dasharray: 3 3.2; }
.sl-imp { opacity: 0; transform-box: fill-box; transform-origin: center; animation: 3s ease-out infinite; }
.sl-imp circle { fill: #fcd872; stroke: #303030; stroke-width: 1.5; }
.sl-imp path { fill: none; stroke: #303030; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sl-imp1 { animation-name: sl-imp1; }
.sl-imp2 { animation-name: sl-imp2; }
.sl-imp3 { animation-name: sl-imp3; }
.sl-burst { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sl-burst 3s ease-out infinite; }
.sl-burst path { fill: none; stroke: #e0a91c; stroke-width: 2.4; stroke-linecap: round; }
.sl-b2 { animation-delay: 1s; }
.sl-b3 { animation-delay: 2s; }
.sl-stamp { transform-box: view-box; transform-origin: 0 0; transform: translate(40px, 80px); animation: sl-stamp 3s ease-in-out infinite; }
.sl-ink { fill: #303030; }
.sl-pad { fill: #fcd872; stroke: #303030; stroke-width: 1.5; }

@keyframes sl-stamp {
  0%, 8%   { transform: translate(40px, 80px) rotate(0); }
  10%      { transform: translate(40px, 109px) rotate(0); animation-timing-function: ease-out; }
  13%      { transform: translate(40px, 108px) rotate(0); }
  20%      { transform: translate(40px, 80px) rotate(0); }
  26%      { transform: translate(65px, 73px) rotate(-8deg); }
  33%, 41% { transform: translate(90px, 80px) rotate(0); }
  43.3%    { transform: translate(90px, 109px) rotate(0); animation-timing-function: ease-out; }
  46%      { transform: translate(90px, 108px) rotate(0); }
  53%      { transform: translate(90px, 80px) rotate(0); }
  59%      { transform: translate(115px, 73px) rotate(-8deg); }
  66%, 74% { transform: translate(140px, 80px) rotate(0); }
  76.6%    { transform: translate(140px, 109px) rotate(0); animation-timing-function: ease-out; }
  79%      { transform: translate(140px, 108px) rotate(0); }
  86%      { transform: translate(140px, 80px) rotate(0); }
  93%      { transform: translate(90px, 64px) rotate(7deg); }
  100%     { transform: translate(40px, 80px) rotate(0); }
}
@keyframes sl-imp1 {
  0%, 9.9% { opacity: 0; transform: scale(.6); }
  10%  { opacity: 1; transform: scale(1.12); }
  18%  { transform: scale(1); }
  88%  { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.9); }
}
@keyframes sl-imp2 {
  0%, 43.2% { opacity: 0; transform: scale(.6); }
  43.3% { opacity: 1; transform: scale(1.12); }
  51%  { transform: scale(1); }
  88%  { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.9); }
}
@keyframes sl-imp3 {
  0%, 76.5% { opacity: 0; transform: scale(.6); }
  76.6% { opacity: 1; transform: scale(1.12); }
  84%  { transform: scale(1); }
  88%  { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.9); }
}
@keyframes sl-burst {
  0%, 9.9% { opacity: 0; transform: scale(.7); }
  11%  { opacity: 1; transform: scale(1); }
  22%  { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .sl-stamp, .sl-imp, .sl-burst { animation: none; }
  .sl-imp { opacity: 1; }
  .sl-stamp { transform: translate(140px, 74px); }
}

/* ─────────────────────────────────────────────────────────────
   Kalkulator hadiah (#pengaturan/kalkulator)
   ───────────────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.calc-in, .calc-out { display: grid; gap: 16px; min-width: 0; }
.calc-box { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--app-line, #e9e3cf); min-width: 0; }
.calc-box h2 { font-size: 16px; letter-spacing: -.02em; margin-bottom: 14px; }
.calc-box h2 .muted { font-weight: 400; }
.calc-h3 { margin: 20px 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.calc-money { position: relative; display: flex; align-items: center; }
.calc-money > span { position: absolute; left: 12px; font-size: 14px; color: var(--muted); pointer-events: none; }
.calc-money > .input { padding-left: 38px; font-family: var(--mono); }
.calc-money.calc-sm > .input { height: 40px; }
.calc-money .sfx { left: auto; right: 12px; }
.calc-money:not(:has(> span:first-child)) > .input { padding-left: 12px; padding-right: 32px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.calc-chips:empty { display: none; }
.calc-chip { height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand-deep); font: 500 12.5px var(--font); cursor: pointer; }
.calc-chip:hover { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.calc-rw { padding: 12px 0; border-top: 1px solid var(--line); }
.calc-rw:first-child { border-top: 0; padding-top: 0; }
.calc-rw-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 500; min-width: 0; }
.calc-rw-top b { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--brand-strong); color: var(--brand); font: 600 12px var(--mono); }
.calc-rw-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-rw-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.calc-rw-in select.input { height: 40px; }
.calc-rw-note { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.calc-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 20px; border-radius: 20px; border: 1.5px dashed var(--brand-line); background: var(--brand-soft); text-align: center; color: var(--brand-deep); }
.calc-empty span { font-size: 13.5px; color: var(--muted); }

.calc-verdict { padding: 22px; border-radius: 22px; background: var(--brand); color: var(--on-brand); }
.calc-verdict.is-tipis { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.calc-verdict.is-rugi { background: var(--brand-strong); color: #fff; }
.calc-vtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.calc-vtag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--brand-strong); color: var(--brand); font-size: 13px; font-weight: 600; }
.calc-verdict.is-rugi .calc-vtag { background: #e5544b; color: #fff; }
.calc-vsub { font-size: 12.5px; opacity: .7; }
.calc-big { margin-top: 18px; }
.calc-big small { display: block; font-size: 13px; opacity: .75; }
.calc-big b { display: block; margin-top: 2px; font: 500 clamp(34px, 6vw, 46px)/1 var(--mono); letter-spacing: -.05em; }
.calc-verdict.is-rugi .calc-big b { color: #ff8f87; }
.calc-verdict > p { margin-top: 8px; font-size: 14px; opacity: .85; }
.calc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.calc-kpis div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .55); min-width: 0; }
.calc-verdict.is-tipis .calc-kpis div { background: #fff; }
.calc-verdict.is-rugi .calc-kpis div { background: rgba(255, 255, 255, .08); }
.calc-kpis span { display: block; font-size: 12px; opacity: .75; line-height: 1.25; }
.calc-kpis b { display: block; margin-top: 4px; font: 500 17px var(--mono); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.calc-sum { margin: 0; display: grid; }
.calc-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.calc-sum div:first-child { border-top: 0; padding-top: 0; }
.calc-sum dt { color: var(--ink-2); }
.calc-sum dd { margin: 0; font-family: var(--mono); white-space: nowrap; }
.calc-sum .tot { border-top: 1.5px solid var(--ink); font-weight: 600; }
.calc-sum .cmp dt, .calc-sum .cmp dd { color: var(--muted); font-size: 13px; }

.calc-strip { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: end; }
.calc-v { display: grid; grid-template-rows: 64px auto auto; justify-items: center; gap: 4px; min-width: 0; }
.calc-v i { align-self: end; width: 100%; max-width: 30px; height: max(4px, var(--h)); border-radius: 6px 6px 3px 3px; background: var(--brand); }
.calc-v.is-rw i { background: var(--brand-strong); }
.calc-v.is-neg i { background: #e5544b; }
.calc-v span { font: 600 11px var(--mono); color: var(--ink-2); }
.calc-v.is-rw span { padding: 0 4px; border-radius: 4px; background: var(--brand-strong); color: var(--brand); }
.calc-v small { font: 400 10px var(--mono); color: var(--muted); white-space: nowrap; letter-spacing: -.04em; }
.calc-h3 .muted { font-weight: 400; }
.calc-v.is-neg small { color: var(--danger); }
.calc-tips { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.calc-tips li::marker { color: var(--brand-text); }

@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .calc-kpis { grid-template-columns: minmax(0, 1fr); }
  .calc-kpis div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .calc-kpis b { margin-top: 0; }
  .calc-v small { display: none; }
  .calc-rw-in { grid-template-columns: minmax(0, 1fr); }
}
/* kalkulator: perilaku pelanggan */
.calc-money.calc-pct { max-width: 160px; }
.calc-money.calc-sm.calc-pct { max-width: none; }
.calc-money.calc-pct > .input { padding-left: 12px; padding-right: 32px; }
.calc-chip[aria-pressed="true"] { background: var(--brand-strong); color: var(--brand); border-color: var(--brand-strong); }
.calc-chip.is-data { border-style: dashed; }
.calc-src { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 13px; }
.calc-src summary { cursor: pointer; font-weight: 500; color: var(--brand-deep); }
.calc-src ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; color: var(--ink-2); }
.calc-sum dt small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.calc-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px; background: var(--brand-strong); color: var(--brand); font: 600 11px var(--mono); vertical-align: 1px; }
.calc-worst { background: var(--surface-2); }
.calc-worst h2 .muted { font-weight: 400; font-size: 13px; }

/* ─────────────────────────────────────────────────────────────
   Fitur Pro (kalkulator berbayar)
   ───────────────────────────────────────────────────────────── */
.pro-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--brand-strong); color: var(--brand); font: 700 10.5px var(--mono); letter-spacing: .08em; white-space: nowrap; vertical-align: 1px; }
.btn .pro-badge { margin-left: 2px; }
.pro-badge.is-on { height: 24px; margin-bottom: 10px; padding: 0 9px; background: var(--brand); color: var(--on-brand); }
.lic-pro { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--brand-line); background: var(--brand-soft); color: var(--brand-deep); font-size: 13.5px; text-decoration: none; }
.lic-pro > span:nth-child(2) { flex: 1; min-width: 0; }
.lic-pro:hover { border-style: solid; }
.lic-pro.is-on { border-style: solid; background: var(--brand); color: var(--on-brand); border-color: transparent; }

.pro-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border-radius: 26px; background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; }
.pro-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1.5px 1.5px, rgba(48, 48, 48, .08) 1.2px, transparent 1.4px) 0 0 / 14px 14px; pointer-events: none; }
.pro-hero > * { position: relative; }
.pro-hero h1 { margin-top: 14px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1; letter-spacing: -.045em; }
.pro-lead { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--on-brand-muted, #5a4a1e); max-width: 520px; }
.pro-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pro-cta .btn-dark .ic { color: var(--brand); }
.pro-cta .btn-ghost { background: rgba(255, 255, 255, .6); border-color: transparent; }
.pro-hero .hint { margin-top: 14px; color: var(--on-brand-muted, #5a4a1e); max-width: 520px; }

.pro-preview { position: relative; border-radius: 22px; padding: 14px; background: var(--brand-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); transform: rotate(1.5deg); }
.pro-mock { display: grid; gap: 10px; filter: saturate(.9); }
.pro-mock-v { padding: 16px; border-radius: 16px; background: var(--brand); color: var(--on-brand); display: grid; gap: 4px; }
.pro-mock-tag { display: inline-flex; align-items: center; gap: 5px; width: max-content; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--brand-strong); color: var(--brand); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.pro-mock-v small { font-size: 12px; opacity: .75; }
.pro-mock-v > b { font: 500 32px/1.05 var(--mono); letter-spacing: -.05em; }
.pro-mock-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.pro-mock-k span { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .55); min-width: 0; }
.pro-mock-k i { font-style: normal; font-size: 10.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-mock-k b { font: 500 14px var(--mono); }
.pro-mock-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: end; height: 70px; padding: 10px 12px 0; border-radius: 14px 14px 0 0; background: #3a3a3a; }
.pro-mock-bars i { height: var(--h); border-radius: 4px 4px 0 0; background: var(--brand); opacity: .85; }
.pro-mock-bars i.r { background: #fff; }
.pro-mock-rows { display: grid; margin-top: -10px; padding: 4px 12px 8px; border-radius: 0 0 14px 14px; background: #3a3a3a; color: #e8e8e8; font-size: 12.5px; }
.pro-mock-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.pro-mock-rows span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-mock-rows b { margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--brand); color: var(--on-brand); font: 600 11px var(--mono); }
.pro-blur { filter: blur(6px); user-select: none; }
.pro-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-1.5deg); display: grid; justify-items: center; gap: 4px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .94); color: var(--ink); text-align: center; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); min-width: 210px; }
.pro-lock .ic { color: var(--brand-text); }
.pro-lock span { font-size: 12.5px; color: var(--muted); }

.pro-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pro-feat { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--app-line, #e9e3cf); display: grid; gap: 8px; align-content: start; }
.pro-feat-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); }
.pro-feat b { font-size: 15px; letter-spacing: -.015em; line-height: 1.25; }
.pro-feat p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pro-how { margin-top: 16px; padding: 22px; border-radius: 22px; background: var(--brand-strong); color: #fff; }
.pro-how h2 { font-size: 17px; letter-spacing: -.02em; color: var(--brand); }
.pro-how ol { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pro-how li { counter-increment: s; display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.pro-how li::before { content: "0" counter(s); font: 600 12px var(--mono); color: var(--brand); }
.pro-how li b { font-size: 14.5px; }
.pro-how li span { font-size: 13px; color: #bdbdbd; line-height: 1.45; }

.adm-chip.is-pro { background: var(--brand-strong); color: var(--brand); font-family: var(--mono); letter-spacing: .04em; }
.adm-row-act { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.adm-pro-opts { display: grid; gap: 8px; }

@media (max-width: 1000px) {
  .pro-hero { grid-template-columns: minmax(0, 1fr); }
  .pro-preview { transform: none; max-width: 460px; }
  .pro-lock { transform: translate(-50%, -50%); }
  .pro-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pro-hero { padding: 20px; border-radius: 22px; }
  .pro-feats, .pro-how ol { grid-template-columns: minmax(0, 1fr); }
  .pro-cta .btn { flex: 1 1 100%; }
}

/* ─────────────────────────────────────────────────────────────
   Merek Matera: logo stempel ber-M + wordmark bergaris kuning
   ───────────────────────────────────────────────────────────── */
.logo-mark { flex: none; overflow: visible; }
.wordmark { position: relative; z-index: 0; font-weight: 750; letter-spacing: -.045em; padding: 0 .1em; }
.wordmark::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: .2em; height: .36em; border-radius: .08em; background: #fcd872; }
.auth-aside .wordmark { color: #fcd872; }
.auth-aside .wordmark::before { display: none; }
@media (max-width: 1000px) { .auth-aside .wordmark { color: inherit; } .auth-aside .wordmark::before { display: block; } }

/* Grafik contoh di landing: batang kuning bergaris hitam, sama seperti dashboard toko */
.ip-shot .chart .grid { stroke: #e9e3cf; }
.ip-shot .chart .bar path { fill: var(--brand); stroke: var(--brand-strong); stroke-width: 1.5px; }
.ip-shot .chart .tip { background: var(--brand-strong); color: var(--brand); }

/* Pilihan contoh usaha di landing */
.kind-pick { margin-bottom: 20px; }
.kind-pick p { margin-bottom: 10px; font-size: 13.5px; color: var(--muted); }
.kind-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-tabs button { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 500 14px var(--font); white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s; }
.kind-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.kind-tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand-strong); color: var(--on-brand); }
.kind-tabs button:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.fig-levels div { gap: 12px; }
@media (max-width: 700px) {
  .kind-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .kind-tabs::-webkit-scrollbar { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Landing: tiga langkah (bento kuning-hitam)
   ───────────────────────────────────────────────────────────── */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
.how-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 2.6vw, 34px); display: flex; }
.how-text { position: relative; z-index: 1; }
.how-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: #303030; color: #fcd872; font: 600 18px/1 var(--mono); }
.how-text h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 10px; }
.how-text p { font-size: 15px; line-height: 1.55; max-width: 38ch; }
.how-art { position: relative; }

.how-join { grid-row: span 2; flex-direction: column; background: #fcd872; color: #303030; }
.how-join::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1.5px 1.5px, rgba(48,48,48,.11) 1.2px, transparent 1.4px) 0 0 / 16px 16px; }
.how-join p { color: #5a4a1e; }
.how-join .how-art { flex: 1; min-height: 370px; margin-top: 28px; }
.how-poster { position: absolute; left: 0; top: 14px; width: 54%; max-width: 226px; padding: 18px 18px 20px; border-radius: 18px; background: #303030; color: #fff; transform: rotate(-6deg); transform-origin: 0 100%; }
.how-poster small { display: block; font: 500 11px var(--mono); color: #fcd872; }
.how-poster b { display: block; margin: 4px 0 14px; font-size: 20px; letter-spacing: -.03em; }
.how-poster i { display: block; padding: 10px; border-radius: 12px; background: #fff; }
.how-poster svg { display: block; width: 100%; }
.how-phone { position: absolute; right: 2%; top: 44px; width: 54%; max-width: 232px; min-height: 400px; padding: 40px 18px 24px; border-radius: 34px; border: 7px solid #303030; background: #fffdf6; box-shadow: 0 30px 50px -24px rgba(92,68,0,.6); display: flex; flex-direction: column; }
.how-notch { position: absolute; top: 9px; left: 50%; width: 64px; height: 16px; margin-left: -32px; border-radius: 99px; background: #303030; }
.how-phone small { font-size: 12px; color: #6c6c72; }
.how-phone b { font-size: 19px; letter-spacing: -.035em; line-height: 1.15; }
.how-phone label { margin: 22px 0 6px; font-size: 12px; color: #5a4a1e; }
.how-input { padding: 10px 12px; border-radius: 11px; border: 1.5px solid #303030; background: #fff; font-size: 14px; }
.how-input::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: #303030; animation: how-caret 1.1s steps(1) infinite; }
.how-btn { margin-top: 10px; padding: 11px 8px; border-radius: 11px; background: #303030; color: #fcd872; font-size: 13.5px; font-weight: 600; text-align: center; }
.how-phone em { margin-top: 12px; font: 500 11px var(--mono); color: #8a6100; text-align: center; }

.how-stamp { background: #303030; color: #fff; }
.how-stamp .how-n { background: #fcd872; color: #303030; }
.how-stamp p { color: #c9c7c0; }
.how-stamp, .how-reward { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; min-height: 300px; }
.how-stamp .how-art { padding-top: 64px; }
.how-bill { position: absolute; top: 0; left: 0; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: #454442; font-size: 12.5px; white-space: nowrap; }
.how-bill b { font: 500 12px var(--mono); color: #fcd872; }
.how-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 66px 16px 18px; border-radius: 18px; background: #fcd872; }
.how-slots i { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(48,48,48,.5); display: grid; place-items: center; font: 600 13px var(--mono); color: #303030; }
.how-slots .on, .how-slots .hit::before { border: 0; background: #303030 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcd872' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.4 3.4L17 9'/%3E%3C/svg%3E") center / 78% no-repeat; }
.how-slots .hit::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; animation: how-ink 2.6s infinite; }
.how-slots .gift { border: 0; background: #fff; }
.how-tool { position: absolute; left: 50%; bottom: 8%; width: 84px; margin-left: -42px; color: #303030; transform: translateY(-38px) rotate(-7deg); animation: how-press 2.6s infinite cubic-bezier(.4,0,.2,1); }
.how-tool svg { display: block; }
.how-slots .how-tool [fill="#fcd872"] { fill: #fff; }

.how-reward { background: #fff; box-shadow: inset 0 0 0 1px #e9e3cf; }
.how-reward .how-n { background: #fcd872; color: #303030; }
.how-reward p { color: var(--ink-2); }
.how-ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 22px; border-radius: 18px; background: radial-gradient(circle 11px at 0 50%, transparent 98%, #fcd872) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #fcd872) right / 51% 100% no-repeat; color: #303030; transform: rotate(-2.5deg); }
.how-ticket small { display: block; font-size: 12px; color: #5a4a1e; }
.how-ticket b { display: block; margin-top: 2px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.04em; line-height: 1.1; }
.how-ticket span { flex: none; padding: 10px 15px; border-radius: 11px; background: #303030; color: #fcd872; font-size: 13.5px; font-weight: 600; }
.how-ok { width: max-content; margin: 14px 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #303030; color: #fff; font-size: 13px; }
.how-ok i { width: 9px; height: 9px; border-radius: 50%; background: #fcd872; }

@keyframes how-caret { 50% { opacity: 0; } }
@keyframes how-press { 0%, 22% { transform: translateY(-38px) rotate(-7deg); } 32%, 40% { transform: translateY(0) rotate(0); } 54%, 100% { transform: translateY(-38px) rotate(-7deg); } }
@keyframes how-ink { 0%, 32% { opacity: 0; } 33%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .how-tool, .how-input::after, .how-slots .hit::before { animation: none; } }
@media (max-width: 1000px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-join { grid-row: auto; }
  .how-join .how-art { width: 100%; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .how-card { border-radius: 22px; }
  .how-stamp, .how-reward { grid-template-columns: minmax(0, 1fr); }
  .how-join .how-art { min-height: 330px; }
  .how-phone { padding-inline: 13px; }
  .how-poster { padding: 13px; }
  .how-poster b { font-size: 17px; }
}

/* ─────────────────────────────────────────────────────────────
   Landing: panel ajakan kuning
   ───────────────────────────────────────────────────────────── */
.cta-band { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; background: #fcd872; color: #303030; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1.5px 1.5px, rgba(48,48,48,.11) 1.2px, transparent 1.4px) 0 0 / 16px 16px; pointer-events: none; }
.cta-copy, .cta-art { position: relative; }
.cta-band h2 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; }
.cta-band mark { padding: 0 .14em .04em; border-radius: .14em; background: #303030; color: #fcd872; }
.cta-band p { color: #5a4a1e; font-size: 16px; line-height: 1.55; }
.cta-band .btns { justify-content: flex-start; margin-top: 28px; }
.cta-band .btn-ghost, .cta-band .btn-ghost:hover { background: rgba(255,255,255,.65); color: #303030; border-color: rgba(48,48,48,.35); }
.cta-band .btn-ghost:hover { background: #fff; }
.cta-art { width: 100%; max-width: 430px; justify-self: end; padding-top: 84px; }
.cta-card { padding: 22px; border-radius: 22px; background: #303030; color: #fff; transform: rotate(-4deg); box-shadow: 0 34px 54px -28px rgba(92,68,0,.75); }
.cta-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cta-card-top b { font-size: 18px; letter-spacing: -.03em; }
.cta-card-top span { font: 500 11.5px var(--mono); color: #fcd872; }
.cta-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cta-slots i { aspect-ratio: 1; border-radius: 50%; }
.cta-slots .on { background: #fcd872 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303030' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.4 3.4L17 9'/%3E%3C/svg%3E") center / 72% no-repeat; }
.cta-slots .next { border: 2px dashed #fcd872; }
.cta-tool { position: absolute; right: -6px; top: 0; color: #303030; transform: rotate(12deg); animation: cta-float 4s ease-in-out infinite; }
.cta-tool svg { display: block; width: 130px; height: 130px; paint-order: stroke; }
.cta-tool [fill="#fcd872"] { fill: #fff; }
@keyframes cta-float { 50% { transform: translateY(-8px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .cta-tool { animation: none; } }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-art { justify-self: center; max-width: 360px; }
}
@media (max-width: 560px) { .cta-band .btns .btn { flex: 1 1 100%; } }
.cta-band h2 { line-height: 1.2; }
.cta-band mark { display: inline-block; line-height: 1; padding: .06em .14em .14em; }
.cta-card { background: #fffdf6; color: #303030; border: 3px solid #303030; }
.cta-card-top { margin-right: 120px; }
.cta-slots .next { border-color: #303030; }
.cta-tool { right: 4px; top: 14px; }
.cta-tool [fill="#fcd872"] { fill: #fcd872; }

/* Link & QR kartu: tidak boleh melewati kotaknya; di HP QR di atas, tombol di bawah */
.cd-share-act { grid-template-columns: minmax(0, 1fr); }
.cd-share-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-share-btns .btn { min-width: 0; padding-inline: 8px; }
.cd-share-field dd, #cd-share { min-width: 0; }
@media (max-width: 560px) {
  .cd-share-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cd-qr { width: min(200px, 100%); margin: 2px auto 0; padding: 12px 12px 10px; }
  .cd-url span { text-align: center; }
  .cd-share-btns .btn { --h: 44px; }
  .cd-share .btn-wa, #cd-share .btn-wa { height: 48px; padding-inline: 10px; font-size: 14px; }
}
