/* Referral Bonus: sistem desain gelap dengan kartu besar berwarna, tombol pil, dan navigasi bawah.
   Huruf: Plus Jakarta Sans (OFL, disalin di vendor/, disajikan dari origin sendiri). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #0d0d12; --surface: #18181f; --surface-2: #22222b; --glass: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .09);
  --fg: #f5f5f7; --muted: #9b9ba8;
  --lime: #d4ff4f; --lime-fg: #12140a;
  --blue: #4d5ef6; --blue-fg: #fff;
  --lavender: #c3bdff; --peach: #ffc9a6; --mint: #a9f0d6; --pink: #ffb8d9; --pastel-fg: #16141f;
  --danger: #ff7a7a; --danger-bg: rgba(255, 90, 90, .14); --ok: #7df0a8; --ok-bg: rgba(110, 240, 160, .12);
  --r-lg: 28px; --r-md: 20px; --r-pill: 999px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--fg); background: var(--bg);
  font: 16px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Cahaya lembut di latar, seperti referensi. */
  background-image:
    radial-gradient(60% 40% at 85% -5%, rgba(124, 92, 255, .30), transparent 70%),
    radial-gradient(50% 35% at 0% 15%, rgba(255, 140, 80, .16), transparent 70%);
  background-attachment: fixed;
}
main { max-width: 520px; margin: 0 auto; padding: 20px 18px 48px; }
main:has(.bottom-nav) { padding-bottom: 128px; }
a { color: var(--lime); }
p { margin: 8px 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }

/* ---------- Tipografi ---------- */
.display { font-size: 2.35rem; line-height: 1.08; font-weight: 300; margin: 12px 0 10px; }
.display b, .display strong { font-weight: 800; }
h1 { font-size: 1.9rem; line-height: 1.12; font-weight: 800; margin: 10px 0 6px; }
h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); font-size: .92rem; }
.center { text-align: center; }
.eyebrow { color: var(--muted); font-size: .85rem; margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

/* ---------- Bagian atas: tombol bulat dan salam ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line); color: var(--fg); text-decoration: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hello { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--lavender)); color: var(--pastel-fg); font-weight: 800; font-size: 1.1rem;
}
.hello b { display: block; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Kartu ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin: 14px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.glass { background: var(--glass); backdrop-filter: blur(12px); }

/* Ubin berwarna (tindakan utama), dengan tombol panah bulat di pojok. */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 168px; padding: 66px 18px 18px;
  border-radius: var(--r-lg); text-decoration: none; overflow: hidden; isolation: isolate;
}
.tile.wide { grid-column: 1 / -1; min-height: 132px; padding-right: 70px; }
.tile strong { display: block; font-size: 1.2rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.tile span { display: block; font-size: .85rem; opacity: .8; margin-top: 4px; }
.tile .arrow {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #111;
}
.tile .arrow .ico { width: 18px; height: 18px; }
.tile::before {   /* bentuk gradasi dekoratif */
  content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -50px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%);
}
.tile.blue, .menu-card.blue { background: linear-gradient(150deg, #6372ff, var(--blue) 60%, #3442d6); color: var(--blue-fg); }
.tile.lime, .menu-card.lime { background: linear-gradient(150deg, #e6ff8a, var(--lime)); color: var(--lime-fg); }
.tile.lavender, .menu-card.lavender { background: linear-gradient(150deg, #ded9ff, var(--lavender)); color: var(--pastel-fg); }
.tile.peach, .menu-card.peach { background: linear-gradient(150deg, #ffe1cc, var(--peach)); color: var(--pastel-fg); }
.tile.mint, .menu-card.mint { background: linear-gradient(150deg, #d3fbec, var(--mint)); color: var(--pastel-fg); }
.tile.pink, .menu-card.pink { background: linear-gradient(150deg, #ffd9eb, var(--pink)); color: var(--pastel-fg); }
.tile.dark, .menu-card.dark { background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }

/* ---------- Pil (chip status) ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; background: var(--glass); border: 1px solid var(--line); }
.chip.on { background: var(--lime); color: var(--lime-fg); border-color: transparent; }
.chip.bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

/* ---------- Formulir ---------- */
label { display: block; margin: 16px 0 8px; font-weight: 600; font-size: .95rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
input, select, textarea {
  width: 100%; min-height: 54px; padding: 12px 18px; font: inherit; font-size: 1.02rem; color: var(--fg);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input::placeholder { color: #6e6e7a; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; margin-right: 8px; appearance: auto; }

/* ---------- Tombol pil ---------- */
button, .btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 16px; padding: 14px 22px;
  font: inherit; font-size: 1.02rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--r-pill); background: var(--lime); color: var(--lime-fg);
}
button:active, .btn:active { transform: scale(.98); }
.btn.secondary, button.secondary { background: var(--glass); color: var(--fg); border: 1px solid var(--line); }
.btn.danger, button.danger { background: var(--danger-bg); color: var(--danger); }
.btn.blue, button.blue { background: var(--blue); color: #fff; }
form.inline { margin: 0; }

/* ---------- Daftar ---------- */
.links { list-style: none; padding: 0; margin: 0; }
.links li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; color: var(--fg);
  border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.links li:last-child a { border-bottom: 0; }
.links li a::after { content: "›"; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

/* ---------- Pemberitahuan ---------- */
.notice { border-radius: var(--r-md); padding: 14px 16px; margin: 14px 0; }
.notice.bad { background: var(--danger-bg); color: var(--danger); }
.notice.bad a { color: var(--danger); font-weight: 700; }
.notice.good { background: var(--ok-bg); color: var(--ok); }
.notice.info { background: var(--glass); border: 1px solid var(--line); }
.error { color: var(--danger); }

/* ---------- Langkah bernomor ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: 8px 0 8px 46px; min-height: 40px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 6px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line); text-align: center; line-height: 30px; font-weight: 700;
}
.steps li.done::before { content: "✓"; background: var(--lime); color: var(--lime-fg); border-color: transparent; }
.steps li.done { color: var(--muted); }

/* ---------- Pahlawan (halaman masuk) ---------- */
.hero { position: relative; height: 300px; margin: -8px -18px 0; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.hero::before { width: 330px; height: 330px; left: -60px; top: -40px;
  background: conic-gradient(from 200deg, #8f7bff, #ff9bd0, #ffc58a, #d4ff4f, #8f7bff); opacity: .95; }
.hero::after { width: 230px; height: 230px; right: -40px; top: 90px;
  background: radial-gradient(circle at 35% 35%, #6c7bff, #3442d6 70%); }
.hero .glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); z-index: 1; }

/* ---------- Voucher ---------- */
.ticket { position: relative; border-radius: var(--r-lg); padding: 22px; margin: 16px 0; color: var(--pastel-fg); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #ece9ff, var(--lavender) 55%, #a99fff); }
.ticket::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%;
  background: conic-gradient(from 120deg, #ffc58a, #ff9bd0, #8f7bff, #ffc58a); opacity: .55; }
.ticket.off { background: var(--surface-2); color: var(--fg); }
.ticket.off::before { opacity: .12; }
.ticket .muted { color: inherit; opacity: .7; }
.big-code { font-size: 1.5rem; letter-spacing: .14em; font-weight: 800; }
.qr svg { display: block; width: 100%; max-width: 250px; height: auto; margin: 14px auto; border-radius: 20px; }

/* ---------- Navigasi bawah (pil mengambang) ---------- */
.bottom-nav {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
  display: flex; gap: 8px; padding: 8px; border-radius: var(--r-pill);
  background: rgba(30, 30, 38, .88); border: 1px solid var(--line); backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.bottom-nav a { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--fg); background: var(--glass); }
.bottom-nav a[aria-current="page"] { background: var(--lime); color: var(--lime-fg); }
.bottom-nav .ico { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cara kerja (halaman awal) ---------- */
.howto { display: grid; gap: 10px; margin: 12px 0; }
.howto .step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); color: var(--pastel-fg); }
.howto .step:nth-child(1) { background: var(--lavender); }
.howto .step:nth-child(2) { background: var(--peach); }
.howto .step:nth-child(3) { background: var(--lime); color: var(--lime-fg); }
.howto .num { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.howto b { display: block; font-size: 1.02rem; }
.howto span { font-size: .9rem; opacity: .85; }

/* ---------- Panduan: tab pil dan tanya-jawab ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin: 0 -18px 4px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.tabs a { flex: none; padding: 10px 18px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); color: var(--fg);
  text-decoration: none; font-weight: 600; font-size: .92rem; }
.tabs a:first-child { background: var(--lime); color: var(--lime-fg); border-color: transparent; }
section { scroll-margin-top: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 4px; }
.section-title .badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--pastel-fg); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 10px 0; }
details > summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; font-weight: 600; min-height: 52px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
  border-radius: 50%; background: var(--glass); text-align: center; line-height: 27px; font-size: 1.2rem; color: var(--muted); }
details[open] > summary::after { content: "−"; background: var(--lime); color: var(--lime-fg); }
details > div { padding: 0 18px 16px; color: #d3d3db; }
details ul, .card ul.plain { margin: 6px 0; padding-left: 20px; }
.help-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }

/* ---------- Kaki halaman dan persetujuan ---------- */
.site-footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 4px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--line); font-weight: 400; font-size: .92rem; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--lime); }
.legal .card h2 { font-size: 1.02rem; }
.legal .card ul.plain li { margin: 6px 0; }

/* ---------- Dashboard insight admin ---------- */
h2.section { margin: 28px 0 8px; }
.tabs a[aria-current="page"] { background: var(--lime); color: var(--lime-fg); border-color: transparent; }
.tabs a:first-child:not([aria-current]) { background: var(--glass); color: var(--fg); border: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile b { font-size: 1.8rem; line-height: 1.1; font-weight: 800; }
.stat-tile .hint { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.delta { font-size: .8rem; font-weight: 700; color: var(--muted); }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }
figure.chart { margin: 0; }
figure.chart figcaption { display: flex; flex-direction: column; margin-bottom: 8px; }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart rect:hover + * , figure.chart rect:hover { fill: rgba(255, 255, 255, .06); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.data td { padding: 8px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }
.scroll-x table { min-width: 520px; }
.funnel-row { margin: 12px 0; }
.meter { height: 10px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: var(--r-pill); background: #a7a0ff; }

/* ---------- Admin: kerangka responsif ---------- */
main.wide { max-width: 1320px; padding: 0; }
.admin-shell { min-height: 100vh; }
.admin-side { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px;
  background: rgba(13, 13, 18, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.admin-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; }
.admin-brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: #d6fe54 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAIAAADajyQQAAABY2lDQ1BrQ0dDb2xvclNwYWNlRGlzcGxheVAzAAAokX2QsUvDUBDGv1aloHUQHRwcMolDlJIKuji0FURxCFXB6pS+pqmQxkeSIgU3/4GC/4EKzm4Whzo6OAiik+jm5KTgouV5L4mkInqP435877vjOCA5bnBu9wOoO75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JJc2cAJ7+ibSWZ0EPsFCqvDPI1uOIgIFJKsnQtzSxa0HPw1T6FoupjJ1H7Hq30Pk0sFtIWDqp0xKblthNwoFpVbxJBGGajP8DxUBY5xmzOJ4AAAAASUVORK5CYII=") center / cover no-repeat; }
.admin-nav { order: 3; flex: 1 0 100%; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.admin-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--glass); border: 1px solid var(--line); }
.admin-nav a[aria-current="page"] { background: var(--lime); color: var(--lime-fg); border-color: transparent; }
.admin-nav .ico { width: 18px; height: 18px; }
.admin-me { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-me .avatar { width: 36px; height: 36px; font-size: .95rem; }
.admin-email { display: none; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-me .icon-btn { width: 40px; height: 40px; margin: 0; padding: 0; min-height: 0; }
.admin-main { padding: 18px 16px 48px; min-width: 0; }
.admin-main .tabs { margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.admin-head h1 { margin: 0; font-size: 1.7rem; }
.btn.small, button.small { width: auto; min-height: 42px; margin-top: 0; padding: 8px 16px; font-size: .92rem; }
form.inline button.small { margin-top: 10px; }
.card.flush { padding: 4px 4px; }
.form-card { max-width: 720px; }
.sub-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sub-item:last-child { border-bottom: 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 4px 4px 4px 16px; margin: 12px 0; max-width: 640px; }
.search .ico { color: var(--muted); flex: none; }
.search input { border: 0; background: transparent; min-height: 44px; padding: 8px 4px; }
.search input:focus { outline: none; }
.grid-2, .chart-grid { display: grid; gap: 14px; }
.grid-2 > .card, .chart-grid > .card { margin: 0; }
.chart-grid { margin-top: 8px; }

/* Tabel responsif: di layar sempit setiap baris menjadi kartu dengan label kolom. */
table.rtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.rtable th { text-align: left; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rtable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
table.rtable tbody tr:last-child td { border-bottom: 0; }
table.rtable a { color: var(--fg); }
@media (max-width: 699px) {
  table.rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.rtable, table.rtable tbody, table.rtable tr, table.rtable td { display: block; width: 100%; }
  table.rtable tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.rtable tbody tr:last-child { border-bottom: 0; }
  table.rtable td { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 5px 0; border: 0; text-align: right; }
  table.rtable td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; text-align: left; flex: none; margin-right: auto; }
  table.rtable td:first-child { display: block; text-align: left; font-size: 1rem; padding-bottom: 6px; }
  table.rtable td:first-child::before { content: none; }
}

/* Halaman masuk admin. */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }

@media (min-width: 700px) {
  .admin-email { display: inline; max-width: 220px; }
  .admin-main { padding: 26px 28px 56px; }
  .admin-main .tabs { margin: 0 0 4px; padding-left: 0; padding-right: 0; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .admin-side { position: sticky; top: 0; height: 100vh; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px;
    padding: 22px 16px; border-bottom: 0; border-right: 1px solid var(--line); background: rgba(18, 18, 24, .7); }
  .admin-nav { order: 0; flex: 1; flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .admin-nav a { background: transparent; border-color: transparent; padding: 12px 14px; border-radius: 14px; font-size: .95rem; }
  .admin-nav a:hover { background: var(--glass); }
  .admin-me { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .admin-email { max-width: 130px; }
  .admin-main { padding: 32px 36px 64px; }
  .admin-head h1 { font-size: 2rem; }
  .chart-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Statistik kecil di beranda. */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 12px; text-decoration: none; color: var(--fg); }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; }

/* ---------- Aplikasi: adaptif untuk tablet dan laptop ----------
   HP (< 768px) tetap satu kolom. Layar lebih lebar memakai ruang ekstra untuk menu dan kartu,
   sementara formulir, voucher, dan teks panjang dibatasi lebarnya supaya tetap nyaman dibaca. */
html, body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }
@media (min-width: 768px) {
  main:not(.wide) { max-width: 760px; padding: 28px 28px 56px; }
  main:not(.wide) .hero { margin: -8px -28px 0; height: 340px; }
  main:not(.wide) .tabs { margin: 0 -28px 4px; padding-left: 28px; padding-right: 28px; }
  .display { font-size: 3rem; }
  .tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
  .tile.wide { grid-column: span 2; }
  .howto { grid-template-columns: repeat(3, 1fr); }
  .howto .step { flex-direction: column; }
  .card:has(> form), .card.form-card { max-width: 640px; }
  main:not(.wide) > form { max-width: 640px; }
  .ticket, .qr { max-width: 520px; margin-left: auto; margin-right: auto; }
  .legal { max-width: 720px; margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  main:not(.wide) { max-width: 980px; padding: 36px 40px 64px; }
  main:not(.wide) .hero { margin: -8px -40px 0; height: 380px; }
  main:not(.wide) .tabs { margin: 0 -40px 4px; padding-left: 40px; padding-right: 40px; }
}

/* Progres bonus bertingkat di halaman pengajak. */
.milestone { background: rgba(255, 255, 255, .45); border-radius: var(--r-md); padding: 12px 14px; margin: 12px 0; }
.milestone .meter { background: rgba(13, 13, 18, .15); }
.milestone .meter span { background: var(--ink, #0d0d12); }

/* ---------- Poster kasir (siap cetak A6) ----------
   Ukuran dalam em dari font dasar poster: layar 16px (lebar 420px), cetak 10pt (lebar A6 bersih ~95mm),
   jadi pratinjau di layar sama dengan hasil cetak. Teks terkecil 0.9em = 9pt saat dicetak. */
@page poster { size: 105mm 148mm; margin: 7mm; }   /* A6 tegak; Chrome tidak mengenal kata kunci "A6" */
.poster { --ink: #0d0d12; font-size: 16px; width: 100%; max-width: 420px; margin: 20px auto 8px; padding: 1.4em 1.3em 1.2em; box-sizing: border-box;
  background: #fff; color: var(--ink); border-radius: var(--r-lg); text-align: center; line-height: 1.25;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.poster-head { display: flex; align-items: center; justify-content: center; gap: .6em; text-align: left; }
.poster-logo { width: 2.5em; height: 2.5em; border-radius: .7em; flex: none; }
.poster-head b { display: block; font-size: 1.15em; font-weight: 800; letter-spacing: -.01em; }
.poster-head small { display: block; font-size: .95em; font-weight: 600; color: #3d3d47; }
.poster-title { font-size: 2.35em; line-height: 1.05; font-weight: 400; margin: .45em 0 .35em; letter-spacing: -.02em; }
.poster-title b { font-weight: 800; }
.poster-deal { background: var(--lime); border-radius: 1.1em; padding: .7em .8em .8em; }
.poster-deal span { display: block; font-size: 1em; font-weight: 700; }
.poster-deal b { display: block; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin-top: .1em; }
.poster-deal b.xl { font-size: 3em; }
.poster-deal b.l { font-size: 2.2em; }
.poster-deal b.m { font-size: 1.7em; }
.poster-deal-2 { font-size: 1.1em; margin: .45em 0 0; padding: .45em .6em; border-radius: .8em; background: var(--lavender); }
.poster-deal-2 b { font-weight: 800; }
.poster-scan { display: grid; grid-template-columns: 46% 1fr; gap: .9em; align-items: center; margin-top: .9em; }
.poster-qr svg { display: block; width: 100%; height: auto; border: .18em solid var(--ink); border-radius: .8em; }
.poster-steps { list-style: none; counter-reset: ps; padding: 0; margin: 0; text-align: left; display: grid; gap: .55em; }
.poster-steps li { counter-increment: ps; position: relative; padding-left: 2em; font-size: 1.05em; line-height: 1.2; }
.poster-steps li::before { content: counter(ps); position: absolute; left: 0; top: -.05em; width: 1.5em; height: 1.5em; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 800; font-size: .95em; }
.poster-url { margin: .8em 0 0; font-size: .9em; font-weight: 700; word-break: break-all; }
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; }
  body:has(.poster) { page: poster; }
  main, main:not(.wide) { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .no-print, .site-footer, .bottom-nav { display: none !important; }
  /* Jarak 7mm dari tepi kertas + bingkai tipis membulat dengan ruang dalam 5mm, supaya isi tidak mepet. */
  .poster { font-size: 9.6pt; width: 91mm; max-width: 91mm; margin: 0; padding: 5mm 5mm 4mm; border: .3mm solid #d9d9e3; border-radius: 5mm;
    break-inside: avoid; height: 133.5mm; display: flex; flex-direction: column; justify-content: space-between; }
  .poster-title, .poster-scan, .poster-url { margin-top: 0; margin-bottom: 0; }
}

/* Logo usaha (Pro). */
.logo-big { display: block; margin: 0 auto 8px; border-radius: 22%; object-fit: cover; background: #fff; }
img.avatar { object-fit: cover; padding: 0; background: #fff; }

/* Kartu menu beranda usaha: ikon dalam kotak, judul, keterangan; lencana Pro untuk fitur terkunci. */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 18px; }
.menu-card { position: relative; display: flex; flex-direction: column; min-height: 138px; padding: 16px; border-radius: var(--r-lg);
  text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .15s; }
.menu-card:active { transform: scale(.98); }
.menu-card::before { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 65%); }
.menu-card .mc-ico { margin-bottom: auto; }
.menu-card strong { display: block; font-size: 1.05rem; line-height: 1.2; font-weight: 800; margin-top: 14px; }
.menu-card > span:last-child { display: block; font-size: .82rem; opacity: .75; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .55); color: #111; flex: none; }
.menu-card.dark .mc-ico, .menu-card.blue .mc-ico { background: rgba(255, 255, 255, .12); color: inherit; }
.mc-ico .ico { width: 22px; height: 22px; }
.mc-badge { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .72rem; font-weight: 800; padding: 4px 10px;
  border-radius: var(--r-pill); background: var(--lime); color: var(--lime-fg); }
.menu-card.locked strong, .menu-card.locked > span:last-child { opacity: .8; }
.pro-banner { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 64px 16px 16px; margin: 10px 0 12px; border-radius: var(--r-lg);
  text-decoration: none; color: var(--lime-fg); background: linear-gradient(120deg, #e6ff8a, var(--lime) 55%, #b7f05a); overflow: hidden; }
.pro-banner strong { display: block; font-size: 1.15rem; font-weight: 800; }
.pro-banner span span { display: block; font-size: .85rem; opacity: .8; }
.pro-banner .arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; }
.pro-banner .arrow .ico { width: 18px; height: 18px; }
@media (min-width: 768px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }
.nav-badge { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 800; min-width: 22px; padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--danger-bg); color: var(--danger); text-align: center; }
