/* ==========================================================================
   Panel Pro — design system
   Token → komponen → layout → skin (nova / obsidian / paper / arcade)
   Warna utama disuntik per toko lewat --p-* (lib/theme.js).
   ========================================================================== */

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px; --r: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs: .9375rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem; --fs-xl: 1.625rem; --fs-2xl: 2.125rem; --fs-3xl: clamp(2rem, 4.2vw, 3.25rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .22s;
  --sidebar: 264px; --sidebar-mini: 76px; --topbar: 64px;

  /* Permukaan — terang */
  --bg: #f5f6fa;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f0f2f8;
  --border: #e4e7ef;
  --border-strong: #cfd4e1;
  --text: #0e1321;
  --text-2: #4b5468;
  --text-3: #6b7489;
  --ok: #12805a; --ok-bg: #e7f6ef;
  --warn: #9a5b00; --warn-bg: #fff4dd;
  --bad: #c0303a; --bad-bg: #fdecee;
  --info: #2455c3; --info-bg: #e9f0ff;
  --muted-bg: #eef0f5;

  /* Elevation 0–7 */
  --e0: none;
  --e1: 0 1px 2px rgba(14, 19, 33, .05);
  --e2: 0 1px 2px rgba(14, 19, 33, .04), 0 2px 6px rgba(14, 19, 33, .05);
  --e3: 0 2px 4px rgba(14, 19, 33, .04), 0 6px 16px rgba(14, 19, 33, .07);
  --e4: 0 4px 8px rgba(14, 19, 33, .05), 0 12px 28px rgba(14, 19, 33, .09);
  --e5: 0 8px 16px rgba(14, 19, 33, .06), 0 20px 40px rgba(14, 19, 33, .12);
  --e6: 0 12px 24px rgba(14, 19, 33, .08), 0 28px 56px rgba(14, 19, 33, .14);
  --e7: 0 24px 64px rgba(14, 19, 33, .22);

  --p: var(--p-base, #4f46e5);
  --p-text: var(--p-on-light, #4338ca);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0d14;
  --bg-2: #10131c;
  --surface: #141823;
  --surface-2: #181d2a;
  --surface-3: #1e2433;
  --border: #252c3d;
  --border-strong: #343d53;
  --text: #eef1f8;
  --text-2: #b3bbcc;
  --text-3: #8791a7;
  --ok: #4ad19a; --ok-bg: rgba(74, 209, 154, .12);
  --warn: #f2b24c; --warn-bg: rgba(242, 178, 76, .12);
  --bad: #ff7a84; --bad-bg: rgba(255, 122, 132, .12);
  --info: #86a8ff; --info-bg: rgba(134, 168, 255, .12);
  --muted-bg: #1d2331;
  --e1: 0 1px 2px rgba(0, 0, 0, .4);
  --e2: 0 2px 6px rgba(0, 0, 0, .35);
  --e3: 0 6px 16px rgba(0, 0, 0, .4);
  --e4: 0 12px 28px rgba(0, 0, 0, .45);
  --e5: 0 20px 40px rgba(0, 0, 0, .5);
  --e6: 0 28px 56px rgba(0, 0, 0, .55);
  --e7: 0 24px 64px rgba(0, 0, 0, .65);
  --p-text: var(--p-on-dark, #a5b4fc);
  color-scheme: dark;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs); line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--p-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 var(--s2); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-lg); } h3 { font-size: var(--fs-md); } h4 { font-size: var(--fs); }
p { margin: 0 0 var(--s3); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; border-radius: 6px; }
.num, .price, td.num, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: var(--s3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: var(--s2); } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); }
.mb-2 { margin-bottom: var(--s2); } .mb-4 { margin-bottom: var(--s4); } .mb-6 { margin-bottom: var(--s6); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Tombol (4 varian) ─────────────────────────────────────────────────── */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: var(--h); padding: 0 var(--s5); border-radius: var(--r); border: 1px solid transparent;
  font-weight: 700; font-size: var(--fs); cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur), border-color var(--dur);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--p); color: var(--p-on); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px var(--p-ring); }
.btn-primary:hover { background: var(--p-hover); }
.btn-soft { background: var(--p-soft); color: var(--p-text); }
.btn-soft:hover { background: var(--p-ring); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--p); color: var(--p-text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn-sm { --h: 34px; padding: 0 var(--s3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-lg { --h: 52px; padding: 0 var(--s6); font-size: var(--fs-md); border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { --h: 40px; width: var(--h); padding: 0; border-radius: var(--r); }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Form (label mengambang) ───────────────────────────────────────────── */
.field { position: relative; margin-bottom: var(--s4); }
.field > label.lbl { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 var(--s4); border-radius: var(--r); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); transition: border-color var(--dur), box-shadow var(--dur);
}
.textarea { height: auto; min-height: 96px; padding: var(--s3) var(--s4); resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px var(--p-softer); }
.input-sm, .select-sm { height: 38px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.float { position: relative; }
.float .input { height: 56px; padding-top: 18px; }
.float label { position: absolute; left: var(--s4); top: 17px; color: var(--text-3); pointer-events: none; transition: all var(--dur) var(--ease); font-size: var(--fs); }
.float .input:focus + label, .float .input:not(:placeholder-shown) + label { top: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--p-text); }
.hint { font-size: var(--fs-xs); color: var(--text-3); margin-top: 6px; }
.hint.warn { color: var(--warn); }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--p); margin-top: 1px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background var(--dur); cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: var(--e2); transition: transform var(--dur) var(--ease); }
.switch input:checked { background: var(--p); }
.switch input:checked::after { transform: translateX(18px); }
.input-group { display: flex; gap: var(--s2); }
.color-input { width: 56px; height: 48px; padding: 4px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 var(--s4); }

/* ── Kartu & permukaan ─────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--e2); }
.card-pad { padding: var(--s5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: var(--fs-md); }
.card-body { padding: var(--s5); }
.card-foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-md) var(--r-md); }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--e4); border-color: var(--border-strong); }
.surface-2 { background: var(--surface-2); }
.divider { height: 1px; background: var(--border); margin: var(--s4) 0; border: 0; }

.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Badge, chip, tabs ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; background: var(--muted-bg); color: var(--text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: var(--p-soft); color: var(--p-text); }
.level-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--lvl, #64748b); }
.level-badge .ico { width: 15px; height: 15px; }

.chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: all var(--dur); }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-size: var(--fs-xs); opacity: .6; }

.tabs { display: flex; gap: 2px; padding: 4px; background: var(--surface-3); border-radius: var(--r); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: 1 0 auto; text-align: center; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-3); border: 0; background: none; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.tabs .active { background: var(--surface); color: var(--text); box-shadow: var(--e2); }

/* ── Tabel responsif (jadi kartu di mobile) ────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 800; padding: 10px var(--s4); border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px var(--s4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur); }
.table tbody tr:hover { background: var(--surface-2); }
.table .r { text-align: right; }
@media (max-width: 760px) {
  .table.stackable thead { display: none; }
  .table.stackable, .table.stackable tbody, .table.stackable tr, .table.stackable td { display: block; width: 100%; }
  .table.stackable tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
  .table.stackable td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: var(--s3); text-align: right; }
  .table.stackable td::before { content: attr(data-l); color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; text-align: left; }
  .table.stackable td.r { text-align: right; }
}

/* ── Alert / flash / banner ────────────────────────────────────────────── */
.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r); font-size: var(--fs-sm); background: var(--info-bg); color: var(--info); margin-bottom: var(--s4); }
.alert .ico { margin-top: 1px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert a { color: inherit; font-weight: 800; text-decoration: underline; }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: var(--s2); width: min(420px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 961px) { .toasts { bottom: auto; top: 20px; left: auto; right: 20px; transform: none; } }
.toast { pointer-events: auto; display: flex; gap: var(--s3); align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: var(--text); color: var(--bg); box-shadow: var(--e6); font-weight: 600; font-size: var(--fs-sm); animation: toastIn .32s var(--ease); }
.toast.ok .ico { color: #4ad19a; } .toast.bad .ico { color: #ff7a84; } .toast.warn .ico { color: #f2b24c; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ── Skeleton shimmer & empty state ────────────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--r-sm); min-height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.3s infinite; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { text-align: center; padding: var(--s10) var(--s5); color: var(--text-3); }
.empty .empty-art { width: 88px; height: 88px; margin: 0 auto var(--s4); border-radius: 28px; display: grid; place-items: center; background: var(--p-softer); color: var(--p-text); position: relative; }
.empty .empty-art::after { content: ""; position: absolute; inset: -8px; border-radius: 34px; border: 1px dashed var(--p-ring); }
.empty h3 { color: var(--text); }

/* ── Modal & bottom sheet ──────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8, 10, 18, .55); backdrop-filter: blur(3px); display: none; align-items: flex-end; justify-content: center; }
.overlay.open { display: flex; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--e7); padding: var(--s3) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom)); animation: sheetUp .32s var(--ease); }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--border-strong); margin: 0 auto var(--s4); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 761px) {
  .overlay { align-items: center; }
  .sheet { border-radius: var(--r-lg); padding: var(--s6); }
  .sheet::before { display: none; }
}

/* ── Stepper & timeline ────────────────────────────────────────────────── */
.stepper { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
.stepper .st { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); }
.stepper .st::before { content: ""; height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.stepper .st.done::before, .stepper .st.now::before { background: var(--p); }
.stepper .st.now { color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 var(--s5) 32px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; }
.timeline li.ok .dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.timeline li.bad .dot { border-color: var(--bad); background: var(--bad); color: #fff; }
.timeline li.now .dot { border-color: var(--p); box-shadow: 0 0 0 5px var(--p-soft); }
.timeline li.now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }
.timeline .t { font-weight: 700; }
.timeline .d { font-size: var(--fs-xs); color: var(--text-3); }

/* ── Chart SVG ─────────────────────────────────────────────────────────── */
.chart { width: 100%; height: 220px; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 5; }
.chart .axis { fill: var(--text-3); font-size: 11px; }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: var(--p); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-2 { fill: none; stroke: var(--ok); stroke-width: 2; stroke-dasharray: 5 5; }
.chart .bar { fill: var(--p-soft); }
.chart .dot { fill: var(--surface); stroke: var(--p); stroke-width: 2; }
.legend { display: flex; gap: var(--s4); font-size: var(--fs-xs); color: var(--text-3); font-weight: 700; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--p); }
.legend i.l2 { background: var(--ok); }

/* ==========================================================================
   LAYOUT — shell aplikasi (customer & admin)
   Desktop: sidebar yang bisa diciutkan + topbar dengan pencarian.
   Mobile: bottom nav dengan tombol aksi tengah (FAB "Beli").
   ========================================================================== */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns var(--dur) var(--ease); }
html.sb-mini .shell { grid-template-columns: var(--sidebar-mini) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: var(--s4) var(--s3); scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: var(--s3); padding: 6px var(--s2) var(--s5); color: var(--text); text-decoration: none !important; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--p), var(--p-strong)); color: var(--p-on); font-weight: 800; font-size: 18px; box-shadow: 0 6px 18px -6px var(--p-ring); overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 800; font-size: var(--fs-md); letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.nav-group { margin: var(--s3) 0 var(--s1); padding: 0 var(--s3); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.nav-item { position: relative; display: flex; align-items: center; gap: var(--s3); height: 42px; padding: 0 var(--s3); border-radius: var(--r); color: var(--text-2); font-weight: 650; font-size: var(--fs-sm); text-decoration: none !important; white-space: nowrap; transition: background var(--dur), color var(--dur); }
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.active { background: var(--p-soft); color: var(--p-text); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.nav-item .pill { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.sidebar-foot { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--border); display: grid; gap: var(--s1); }
html.sb-mini .sidebar .brand-text, html.sb-mini .sidebar .nav-label, html.sb-mini .sidebar .nav-group, html.sb-mini .sidebar .pill, html.sb-mini .sidebar .wallet-mini { display: none; }
html.sb-mini .sidebar .nav-item { justify-content: center; padding: 0; }
html.sb-mini .sidebar .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.wallet-mini { margin: var(--s2) var(--s1) var(--s3); padding: var(--s4); border-radius: var(--r-md); background: linear-gradient(135deg, var(--p), var(--p-strong)); color: var(--p-on); position: relative; overflow: hidden; }
.wallet-mini::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); }
.wallet-mini .lbl { font-size: var(--fs-xs); opacity: .8; font-weight: 700; }
.wallet-mini .val { font-size: var(--fs-lg); font-weight: 800; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s6); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur); }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .title { font-weight: 800; font-size: var(--fs-md); letter-spacing: -.01em; }
.search { position: relative; flex: 0 1 420px; margin-left: auto; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 42px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); padding: 0 44px 0 42px; transition: border-color var(--dur), box-shadow var(--dur); }
.search input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px var(--p-softer); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 700 11px/1 var(--font); color: var(--text-3); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: var(--s1); }
.dot-badge { position: relative; }
.dot-badge[data-count]:not([data-count="0"])::after { content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }
.content { padding: var(--s6); width: 100%; max-width: 1240px; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-3); }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--s2); }

.bottom-nav { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr !important; }
  .sidebar { position: fixed; z-index: 70; left: 0; top: 0; width: 284px; transform: translateX(-104%); transition: transform .28s var(--ease); box-shadow: var(--e7); }
  html.sb-open .sidebar { transform: none; }
  html.sb-open .sb-scrim { display: block; }
  .topbar { padding: 0 var(--s4); }
  .search { display: none; }
  .content { padding: var(--s4) var(--s4) calc(110px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-3); text-decoration: none !important; padding: 6px 0; }
  .bottom-nav a.active { color: var(--p-text); }
  .bottom-nav .fab { position: relative; top: -18px; }
  .bottom-nav .fab span.fab-btn { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p), var(--p-strong)); color: var(--p-on); box-shadow: 0 10px 24px -8px var(--p-ring), 0 0 0 5px var(--bg); transform: rotate(-8deg); transition: transform var(--dur) var(--ease); }
  .bottom-nav .fab span.fab-btn .ico { transform: rotate(8deg); }
  .bottom-nav .fab:active span.fab-btn { transform: rotate(0) scale(.95); }
  .bottom-nav .fab { color: var(--text) !important; }
}
.sb-scrim { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(8,10,18,.5); }
@media (min-width: 961px) { .only-mobile { display: none !important; } }
@media (max-width: 960px) { .only-desktop { display: none !important; } }

/* ── Announcement bar ──────────────────────────────────────────────────── */
.announce { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s4); border-radius: var(--r); background: var(--p-softer); border: 1px solid var(--p-soft); color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--s5); }
.announce .ico { color: var(--p-text); }

/* ==========================================================================
   KOMPONEN KUNCI CUSTOMER
   ========================================================================== */
/* Kartu saldo */
.balance-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: var(--s6); color: #fff; background: radial-gradient(120% 140% at 0% 0%, var(--p-glow) 0%, var(--p) 38%, var(--p-strong) 100%); box-shadow: 0 24px 48px -24px var(--p-ring); isolation: isolate; }
.balance-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), transparent 60%), radial-gradient(40% 50% at 85% 110%, rgba(255,255,255,.14), transparent 70%); }
.balance-card .glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); border-radius: var(--r-md); }
.balance-card .bal-lbl { font-size: var(--fs-sm); font-weight: 700; opacity: .85; display: flex; align-items: center; gap: 6px; }
.balance-card .bal-val { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 var(--s4); }
.balance-card .progress { height: 8px; border-radius: 9px; background: rgba(255,255,255,.22); overflow: hidden; }
.balance-card .progress > i { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .8s var(--ease); }
.balance-card .lvl-row { padding: var(--s3) var(--s4); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s4); }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s3) 0; border-radius: var(--r-md); color: #fff; font-size: var(--fs-xs); font-weight: 700; text-decoration: none !important; transition: background var(--dur); }
.quick a:hover { background: rgba(255,255,255,.12); }
.quick a span.q-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); }
.balance-card .level-badge { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); }

/* Grid kategori */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s3); }
.cat { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s4) var(--s2); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; font-weight: 700; font-size: var(--fs-sm); text-align: center; transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.cat:hover { transform: translateY(-3px); box-shadow: var(--e4); border-color: var(--p-ring); }
.cat .cat-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--p-text); background: linear-gradient(145deg, var(--p-soft), var(--p-softer)); position: relative; overflow: hidden; }
.cat .cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat .cat-count { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
@media (max-width: 480px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s2); } .cat { padding: var(--s3) 2px; font-size: 11px; border: 0; background: transparent; } .cat .cat-ico { width: 50px; height: 50px; background: var(--surface); box-shadow: var(--e2); } .cat .cat-count { display: none; } }

/* Kartu produk */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s3); }
.product { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); min-height: 150px; }
.product:hover { transform: translateY(-2px); box-shadow: var(--e4); border-color: var(--p-ring); }
.product .p-top { display: flex; align-items: flex-start; gap: var(--s3); }
.product .p-thumb { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--p-softer); color: var(--p-text); overflow: hidden; }
.product .p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .p-name { font-weight: 800; font-size: var(--fs-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .p-cat { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.product .p-price { margin-top: auto; font-size: var(--fs-md); font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.product .p-price s { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; margin-left: 6px; }
.product .p-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.product .rating { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.product .rating .ico { color: #f5a623; }
.product .p-go { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--p); color: var(--p-on); opacity: 0; transform: translateX(-6px); transition: all var(--dur) var(--ease); }
.product:hover .p-go { opacity: 1; transform: none; }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); } .product { padding: var(--s3); min-height: 140px; } .product .p-go { display: none; } }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: var(--s8) 0 var(--s3); }
.section-head h2 { margin: 0; font-size: var(--fs-md); }
.section-head a { font-size: var(--fs-sm); font-weight: 700; }

/* Checkout */
.checkout { max-width: 620px; margin: 0 auto; }
.product-hero { display: flex; gap: var(--s4); align-items: center; padding: var(--s5); }
.product-hero .p-thumb { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-text); flex: none; overflow: hidden; }
.product-hero .p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.price-big { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.summary { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.summary .ln { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); }
.summary .ln span:first-child { color: var(--text-3); }
.summary .ln.total { font-size: var(--fs-md); font-weight: 800; padding-top: var(--s2); border-top: 1px solid var(--border); }
.fav-list { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.success-anim { width: 96px; height: 96px; margin: var(--s2) auto var(--s4); }
.success-anim circle { stroke: var(--ok); stroke-width: 4; fill: var(--ok-bg); stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .6s var(--ease) forwards; }
.success-anim path { stroke: var(--ok); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Status order */
.status-hero { text-align: center; padding: var(--s8) var(--s5) var(--s6); }
.status-hero .s-ico { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto var(--s4); display: grid; place-items: center; }
.status-hero .s-ico.ok { background: var(--ok-bg); color: var(--ok); }
.status-hero .s-ico.bad { background: var(--bad-bg); color: var(--bad); }
.status-hero .s-ico.info, .status-hero .s-ico.warn { background: var(--p-soft); color: var(--p-text); }
.status-hero .s-ico.info .ico, .status-hero .s-ico.warn .ico { animation: spin 2.4s linear infinite; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--s4); font-size: var(--fs-sm); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-weight: 700; word-break: break-word; }
.sn-box { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); font-family: ui-monospace, Menlo, monospace; font-size: var(--fs-sm); word-break: break-all; }

/* List item (riwayat) */
.list { display: grid; }
.list-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: background var(--dur); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item .li-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.list-item .li-ico.ok { background: var(--ok-bg); color: var(--ok); }
.list-item .li-ico.bad { background: var(--bad-bg); color: var(--bad); }
.list-item .li-ico.info, .list-item .li-ico.warn { background: var(--p-soft); color: var(--p-text); }
.list-item .li-title { font-weight: 700; font-size: var(--fs-sm); }
.list-item .li-sub { font-size: var(--fs-xs); color: var(--text-3); }
.list-item .li-right { margin-left: auto; text-align: right; flex: none; }
.amount-in { color: var(--ok); font-weight: 800; }
.amount-out { color: var(--text); font-weight: 800; }

/* QR deposit */
.qr-card { max-width: 440px; margin: 0 auto; text-align: center; }
.qr-frame { width: min(280px, 78vw); margin: var(--s4) auto; padding: var(--s4); border-radius: var(--r-lg); background: #fff; box-shadow: var(--e4); position: relative; }
.qr-frame svg { width: 100%; height: auto; }
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid var(--p); }
.qr-frame::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.qr-frame::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.countdown { display: inline-flex; align-items: center; gap: var(--s2); padding: 8px 14px; border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn); font-weight: 800; font-variant-numeric: tabular-nums; }
.amount-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-bottom: var(--s4); }
.amount-pills button { height: 46px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); font-weight: 800; cursor: pointer; transition: all var(--dur); }
.amount-pills button:hover, .amount-pills button.active { border-color: var(--p); color: var(--p-text); background: var(--p-softer); }

/* ==========================================================================
   HALAMAN PUBLIK (landing & katalog tanpa login)
   ========================================================================== */
.pub-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.pub-header .inner { max-width: 1200px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s5); }
.pub-nav { display: flex; gap: var(--s1); margin-left: var(--s4); }
.pub-nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 700; font-size: var(--fs-sm); text-decoration: none !important; }
.pub-nav a:hover, .pub-nav a.active { color: var(--text); background: var(--surface-3); }
.pub-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
@media (max-width: 760px) { .pub-nav { display: none; } .pub-header .inner { padding: 0 var(--s4); } }
.pub-main { max-width: 1200px; margin: 0 auto; padding: 0 var(--s5) var(--s12); }
@media (max-width: 760px) { .pub-main { padding: 0 var(--s4) var(--s10); } }

.hero { position: relative; margin: var(--s6) 0 var(--s8); padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: 32px; overflow: hidden; isolation: isolate; background: var(--surface); border: 1px solid var(--border); }
.hero .mesh { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40% 60% at 10% 10%, rgba(var(--p-rgb), .28), transparent 60%),
  radial-gradient(35% 55% at 90% 20%, rgba(var(--p-rgb), .18), transparent 60%),
  radial-gradient(50% 60% at 70% 110%, rgba(var(--p-rgb), .22), transparent 60%); }
.hero .mesh::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%); opacity: .6; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 800; color: var(--text-2); box-shadow: var(--e1); }
.eyebrow span.e-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--p); color: var(--p-on); }
.hero h1 { font-size: var(--fs-3xl); letter-spacing: -.035em; margin: var(--s4) 0 var(--s3); line-height: 1.05; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--p), var(--p-glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 520px; }
.hero .cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }
.stats { display: flex; gap: var(--s8); margin-top: var(--s8); flex-wrap: wrap; }
.stats .st-val { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.stats .st-lbl { font-size: var(--fs-xs); color: var(--text-3); font-weight: 700; }
.hero-art { position: relative; height: 360px; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e6); padding: var(--s4); }
.float-card.fc1 { left: 6%; top: 8%; width: 70%; animation: bob 6s ease-in-out infinite; }
.float-card.fc2 { right: 0; top: 46%; width: 62%; animation: bob 7s ease-in-out -2s infinite; }
.float-card.fc3 { left: 0; bottom: 0; width: 46%; animation: bob 8s ease-in-out -4s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin: var(--s10) 0; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.feature { padding: var(--s6); }
.feature .f-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-text); margin-bottom: var(--s4); }
.cta-band { margin: var(--s10) 0; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: linear-gradient(135deg, var(--p), var(--p-strong)); color: var(--p-on); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.cta-band h2 { font-size: var(--fs-xl); margin: 0; }
.cta-band .btn { background: #fff; color: #0e1321; }
.pub-footer { border-top: 1px solid var(--border); padding: var(--s8) var(--s5); color: var(--text-3); font-size: var(--fs-sm); }
.pub-footer .inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--p-strong), var(--p) 55%, var(--p-glow)); color: var(--p-on); padding: var(--s12); display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 60%); }
.auth-side h2 { font-size: var(--fs-2xl); max-width: 420px; letter-spacing: -.03em; }
.auth-form { display: grid; place-items: center; padding: var(--s8) var(--s5); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: var(--fs-xl); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Setup wizard */
.wizard { max-width: 640px; margin: var(--s10) auto; padding: 0 var(--s4); }
.wizard-steps { display: flex; gap: var(--s2); margin-bottom: var(--s6); }
.wizard-steps .ws { flex: 1; }
.wizard-steps .ws .bar { height: 5px; border-radius: 5px; background: var(--border); }
.wizard-steps .ws.done .bar, .wizard-steps .ws.now .bar { background: var(--p); }
.wizard-steps .ws .lb { font-size: 11px; font-weight: 800; color: var(--text-3); margin-top: 6px; }
.wizard-steps .ws.now .lb { color: var(--text); }
@media (max-width: 560px) { .wizard-steps .ws .lb { display: none; } }
.theme-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
@media (max-width: 560px) { .theme-pick { grid-template-columns: repeat(2, 1fr); } }
.theme-pick label { cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick .tp { border: 2px solid var(--border); border-radius: var(--r-md); padding: var(--s2); transition: border-color var(--dur); }
.theme-pick input:checked + .tp { border-color: var(--p); box-shadow: 0 0 0 4px var(--p-softer); }
.theme-pick .tp-prev { height: 64px; border-radius: 10px; margin-bottom: 6px; }
.theme-pick .tp-name { font-size: var(--fs-xs); font-weight: 800; text-align: center; }
.tp-nova { background: radial-gradient(60% 90% at 20% 20%, rgba(var(--p-rgb), .55), transparent), #f5f6fa; }
.tp-obsidian { background: linear-gradient(160deg, #141823, #0b0d14); box-shadow: inset 0 0 0 1px rgba(var(--p-rgb), .5); }
.tp-paper { background: #fff; border: 1px solid #e4e7ef; background-image: linear-gradient(#e4e7ef 1px, transparent 1px); background-size: 100% 14px; }
.tp-arcade { background: linear-gradient(135deg, rgba(var(--p-rgb), .9), #1b1035); }

/* Admin */
.stat { padding: var(--s5); position: relative; overflow: hidden; }
.stat .st-lbl { font-size: var(--fs-xs); font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.stat .st-val { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .st-sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.stat .st-ico { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-text); }
.stat.accent { background: linear-gradient(145deg, var(--p), var(--p-strong)); color: var(--p-on); border: 0; }
.stat.accent .st-lbl, .stat.accent .st-sub { color: inherit; opacity: .8; }
.stat.accent .st-ico { background: rgba(255,255,255,.18); color: inherit; }
.filters { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.filters .input, .filters .select { height: 38px; width: auto; min-width: 140px; font-size: var(--fs-sm); }
.filters .grow .input { width: 100%; }
.pager { display: flex; gap: var(--s2); justify-content: center; padding: var(--s4); }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, 38px); gap: 6px; }
.icon-pick label input { position: absolute; opacity: 0; }
.icon-pick label span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); cursor: pointer; color: var(--text-2); }
.icon-pick label input:checked + span { border-color: var(--p); color: var(--p-text); background: var(--p-softer); }
details.disclose > summary { cursor: pointer; list-style: none; font-weight: 700; }
details.disclose > summary::-webkit-details-marker { display: none; }
.maint { max-width: 520px; margin: 12vh auto; text-align: center; padding: var(--s8) var(--s5); }

/* Struk */
.receipt { max-width: 440px; margin: var(--s8) auto; }
.receipt-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--e5); background: #fff; }
.receipt-img img { width: 100%; }

/* ==========================================================================
   SKIN / TEMA PREMIUM
   ========================================================================== */
/* Nova (default): terang, mesh gradient dari warna utama, kartu saldo glass */
[data-skin="nova"] body { background: radial-gradient(1200px 500px at 90% -10%, rgba(var(--p-rgb), .07), transparent 60%), var(--bg); background-attachment: fixed; }

/* Obsidian: gelap elegan, border halus bercahaya tipis (tanpa neon) */
[data-skin="obsidian"] .card, [data-skin="obsidian"] .product, [data-skin="obsidian"] .cat { border-color: color-mix(in srgb, var(--border) 70%, rgba(var(--p-rgb), .5)); }
[data-skin="obsidian"][data-theme="dark"] .card, [data-skin="obsidian"][data-theme="dark"] .product { box-shadow: 0 0 0 1px rgba(var(--p-rgb), .08), 0 12px 32px -16px rgba(var(--p-rgb), .35); }
[data-skin="obsidian"] .balance-card { background: linear-gradient(160deg, #1a1f2e, #0e111a); border: 1px solid rgba(var(--p-rgb), .45); box-shadow: 0 0 0 1px rgba(var(--p-rgb), .15), 0 24px 60px -30px rgba(var(--p-rgb), .6); }
[data-skin="obsidian"] .balance-card .bal-val { background: linear-gradient(90deg, #fff, var(--p-glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-skin="obsidian"] .sidebar { background: linear-gradient(180deg, var(--surface), var(--bg)); }

/* Paper: minimalis fintech, putih bersih, fokus tipografi */
[data-skin="paper"] { --r: 8px; --r-md: 12px; --r-lg: 16px; }
[data-skin="paper"] .card, [data-skin="paper"] .product, [data-skin="paper"] .cat { box-shadow: none; }
[data-skin="paper"] .balance-card { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
[data-skin="paper"] .balance-card::before { display: none; }
[data-skin="paper"] .balance-card .glass, [data-skin="paper"] .quick a span.q-ico { background: var(--surface-2); border-color: var(--border); color: var(--p-text); }
[data-skin="paper"] .balance-card .progress { background: var(--surface-3); }
[data-skin="paper"] .balance-card .progress > i { background: var(--p); }
[data-skin="paper"] .quick a { color: var(--text); }
[data-skin="paper"] .balance-card .level-badge { background: var(--p-soft); color: var(--p-text); border: 0; }
[data-skin="paper"] .bal-val { font-weight: 700; letter-spacing: -.04em; }
[data-skin="paper"] .hero .mesh { display: none; }
[data-skin="paper"] .hero { background: var(--surface); }
[data-skin="paper"] .cat .cat-ico { background: var(--surface-3); color: var(--text); }
[data-skin="paper"] h1, [data-skin="paper"] h2 { font-weight: 700; letter-spacing: -.035em; }

/* Arcade: energik untuk toko top up game */
[data-skin="arcade"] .cat .cat-ico { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(145deg, var(--p), var(--p-strong)); color: var(--p-on); box-shadow: 0 10px 22px -10px var(--p-ring); }
[data-skin="arcade"] .cat:hover .cat-ico { transform: rotate(-6deg) scale(1.06); }
[data-skin="arcade"] .cat .cat-ico { transition: transform .3s var(--ease); }
[data-skin="arcade"] .product { overflow: hidden; }
[data-skin="arcade"] .product::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(var(--p-rgb), .12) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s var(--ease); pointer-events: none; }
[data-skin="arcade"] .product:hover::before { transform: translateX(100%); }
[data-skin="arcade"] .product:hover { transform: translateY(-4px) rotate(-.4deg); }
[data-skin="arcade"] .product .p-thumb { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, var(--p-soft), rgba(var(--p-rgb), .3)); }
[data-skin="arcade"] .hero { background: linear-gradient(135deg, #140c2b, #1d1240 60%, rgba(var(--p-rgb), .6)); color: #fff; border: 0; }
[data-skin="arcade"] .hero p.lead, [data-skin="arcade"] .hero .st-lbl { color: rgba(255,255,255,.75); }
[data-skin="arcade"] .hero .eyebrow { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
[data-skin="arcade"] .hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
[data-skin="arcade"] .hero h1 em { background: linear-gradient(120deg, #fff, var(--p-glow)); -webkit-background-clip: text; background-clip: text; }
[data-skin="arcade"] .hero .mesh::after { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); }
[data-skin="arcade"] .chip.active { background: var(--p); border-color: var(--p); color: var(--p-on); }

/* ── Aksesibilitas gerak ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── Cetak (unduh PDF struk) ───────────────────────────────────────────── */
@media print {
  .no-print, .topbar, .sidebar, .bottom-nav, .pub-header, .pub-footer { display: none !important; }
  body { background: #fff; }
  .receipt { margin: 0 auto; }
  .receipt-img { box-shadow: none; }
}
.btn-reset { background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.auth-side .brand, .auth-side .brand-sub { color: inherit; }
.auth-side .brand-logo { background: rgba(255,255,255,.18); color: inherit; box-shadow: none; }
.btn-reset { font-family: inherit; font-size: var(--fs-sm); color: inherit; }
.brand-text { min-width: 0; }
.brand-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.stat .st-lbl { padding-right: 44px; }
.pending-card { display: flex; align-items: center; gap: var(--s3); flex-wrap: nowrap; }
@media (max-width: 720px) {
  .stat { padding: var(--s4); }
  .stat .st-val { font-size: var(--fs-lg); word-break: break-word; }
  .stat .st-ico { width: 30px; height: 30px; right: 12px; top: 12px; }
  .stat .st-ico .ico { width: 16px; height: 16px; }
  .page-head h1 { font-size: var(--fs-lg); }
  .brand-name { max-width: 120px; }
}
.float-card { color: var(--text); }
.product-desc p { color: var(--text-2); line-height: 1.6; }
.product .p-desc { font-size: var(--fs-xs); color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-box .sn-val { font-size: var(--fs-md); font-weight: 800; letter-spacing: .04em; }
