/* atribut hidden harus selalu menang atas display di bawah */
[hidden] { display: none !important; }

:root {
  --bg: #F1F4F9;
  --bg-2: #E9EEF6;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --line: #DCE3EE;
  --line-strong: #C3CDDC;
  --ink: #0E1628;
  --ink-2: #4F5B73;
  --ink-3: #6B768C;
  --brand: #FF6A1A;
  --brand-hover: #FF8038;
  --brand-ink: #C2410C;
  --brand-tint: rgba(255, 106, 26, .10);
  --on-brand: #0E1628;
  --err: #B42318;
  --err-bg: rgba(180, 35, 24, .09);
  --chip: #F1F4F9;
  --chip-hover: #E4EAF3;
  --shadow-card: 0 1px 2px rgba(14, 22, 40, .05), 0 22px 44px -20px rgba(14, 22, 40, .24);
  --shadow-cta: 0 10px 24px -10px rgba(255, 106, 26, .75);
  --hero-glow: radial-gradient(540px 380px at 92% 0%, rgba(255, 140, 60, .30), transparent 70%), radial-gradient(460px 320px at 0% 35%, rgba(47, 91, 234, .07), transparent 70%);
  --clock-bg: #D5DDC9;
  --clock-edge: #B3BFA4;
  --clock-ink: #1D2817;
  --clock-ghost: rgba(29, 40, 23, .09);
  --clock-dim: rgba(29, 40, 23, .24);
  --clock-glow: none;
  --clock-inset: inset 0 2px 8px rgba(40, 52, 30, .18);
  --stars: 0;
  --led-bg: #0A0C10;
  --led-on: #FFB23E;
  --led-off: #1D2129;
  --dock-bg: rgba(255, 255, 255, .9);
  /* status & grafik */
  --warn-bg: #FEF3D6;
  --warn-ink: #8A5A00;
  --info-bg: #E6EDFD;
  --info-ink: #2448C0;
  --good-bg: #DDF5DD;
  --good-ink: #006300;
  --crit-ink: #B42318;
  --good-dot: #0CA30C;
  --viz-1: #E8590C;
  --grid: #E8EDF4;
  --axis: #C9D2DF;
  --tip-bg: #0E1628;
  --tip-ink: #FFFFFF;
  color-scheme: light;
}
:root[data-waktu="malam"] {
  --bg: #0B1120;
  --bg-2: #0F1629;
  --surface: #121A2E;
  --surface-2: #0D1426;
  --line: #223052;
  --line-strong: #304069;
  --ink: #EAF0FA;
  --ink-2: #A3AFC7;
  --ink-3: #8290AE;
  --brand: #FF7A2E;
  --brand-hover: #FF924F;
  --brand-ink: #FF9152;
  --brand-tint: rgba(255, 122, 46, .14);
  --on-brand: #0B1120;
  --err: #FF9A90;
  --err-bg: rgba(255, 120, 110, .14);
  --chip: #18223B;
  --chip-hover: #202C4A;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .35), 0 26px 50px -22px rgba(0, 0, 0, .75);
  --shadow-cta: 0 10px 28px -10px rgba(255, 122, 46, .6);
  --hero-glow: radial-gradient(540px 380px at 90% 0%, rgba(157, 179, 255, .16), transparent 70%), radial-gradient(460px 320px at 0% 35%, rgba(255, 122, 46, .07), transparent 70%);
  --clock-bg: #05070C;
  --clock-edge: #1A2031;
  --clock-ink: #FFB23E;
  --clock-ghost: rgba(255, 178, 62, .075);
  --clock-dim: rgba(255, 178, 62, .2);
  --clock-glow: 0 0 16px rgba(255, 178, 62, .55);
  --clock-inset: inset 0 2px 10px rgba(0, 0, 0, .6);
  --stars: 1;
  --dock-bg: rgba(18, 26, 46, .9);
  --warn-bg: rgba(250, 178, 25, .14);
  --warn-ink: #FAB219;
  --info-bg: rgba(157, 179, 255, .14);
  --info-ink: #9DB3FF;
  --good-bg: rgba(12, 163, 12, .18);
  --good-ink: #4ADE80;
  --crit-ink: #FF9A90;
  --viz-1: #EC6320;
  --grid: #1E2945;
  --axis: #33426A;
  --tip-bg: #EAF0FA;
  --tip-ink: #0B1120;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sep { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; font-weight: 800; margin-inline: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.blink { animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: .18; } }

/* ---------- Running text LED ---------- */
.led { position: relative; background: var(--led-bg); overflow: hidden; border-bottom: 1px solid #000; }
.led::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at center, var(--led-off) 1.1px, transparent 1.6px);
  background-size: 5px 5px;
}
.led-track { position: relative; display: flex; width: max-content; animation: led-run 48s linear infinite; }
.led:hover .led-track { animation-play-state: paused; }
.led-group { display: flex; align-items: center; }
.led-item {
  font-family: "Doto", ui-monospace, Menlo, Consolas, monospace;
  font-weight: 900; font-size: 15px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  color: var(--led-on); text-shadow: 0 0 6px rgba(255, 178, 62, .65);
  padding-block: 9px; white-space: nowrap;
}
.led-dot { flex: none; width: 6px; height: 6px; margin-inline: 22px; background: var(--led-on); box-shadow: 0 0 8px rgba(255, 178, 62, .8); }
@keyframes led-run { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-word { display: inline-flex; align-items: center; font-weight: 800; font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.logo-colon { display: inline-grid; gap: 5px; margin-inline: 3px 4px; }
.logo-colon i { display: block; width: 5px; height: 5px; border-radius: 1px; background: var(--brand); }
.logo-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .22em; line-height: 1; padding: 5px 6px 5px 8px; border: 1.5px solid currentColor; border-radius: 6px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.mode { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); }
.mode button { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); transition: background-color .2s, color .2s; }
.mode button[aria-pressed="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.mode .ic { width: 17px; height: 17px; }
.btn-chat {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), border-color .2s;
}
.btn-chat:hover { border-color: var(--line-strong); }
.btn-chat:active { transform: scale(.96); }
.btn-chat .ic { width: 18px; height: 18px; }
@media (max-width: 419px) { .btn-chat .lbl { display: none; } .btn-chat { padding-inline: 10px; } }
.only-admin, .only-dasbor { display: none; }
html.is-admin .only-admin { display: inline-flex; }
html.is-admin .only-pelanggan { display: none; }
html.mode-dasbor .only-dasbor { display: inline-flex; }
html.mode-dasbor .only-toko { display: none; }

/* ---------- Hero ---------- */
.hero-zone { position: relative; overflow-x: clip; }
.hero-zone::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 680px; background: var(--hero-glow); pointer-events: none; }
.sky { position: absolute; inset: 0 0 auto 0; height: 440px; pointer-events: none; opacity: var(--stars); transition: opacity .6s ease; }
.sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #DDE6FF; box-shadow: 0 0 6px rgba(221, 230, 255, .8); animation: twinkle 3.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
.hero-atas { position: relative; padding-block: 10px 0; }
.hero-copy { display: grid; gap: 24px; }
.hero-jam .clock { margin-top: 0; }
.hero { position: relative; display: grid; gap: 28px; padding-block: 28px 44px; }
.hero-order { width: 100%; max-width: 560px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; padding-block: 36px 72px; }
  .panduan-kol { position: sticky; top: 28px; }
  .hero-atas { padding-block: 36px 0; }
  .hero-copy { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 56px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 8.4vw, 62px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
h1 .hl { color: var(--brand-ink); }
.lede { margin: 16px 0 0; max-width: 34em; font-size: clamp(16px, 2.2vw, 18px); color: var(--ink-2); text-wrap: pretty; }

.clock {
  display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 16px; row-gap: 10px;
  margin-top: 26px; padding: 14px 18px 12px; max-width: 100%;
  border-radius: 16px; background: var(--clock-bg); border: 1px solid var(--clock-edge); box-shadow: var(--clock-inset);
  color: var(--clock-ink); transition: background-color .6s ease, border-color .6s ease;
}
.clock-face { position: relative; font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 900; font-size: clamp(54px, 14vw, 78px); line-height: .9; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-ghost { position: absolute; inset: 0; color: var(--clock-ghost); user-select: none; }
.clock-time { position: relative; text-shadow: var(--clock-glow); }
.clock-side { display: grid; gap: 7px; font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 900; font-size: 16px; letter-spacing: .08em; line-height: 1; }
.clock-ind { color: var(--clock-dim); transition: color .3s, text-shadow .3s; }
.clock-ind.on { color: var(--clock-ink); text-shadow: var(--clock-glow); }
.clock-meta {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 9px; border-top: 1px dashed var(--clock-dim);
  font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 13px; letter-spacing: .12em; line-height: 1; text-transform: uppercase;
}
.clock-open { display: inline-flex; align-items: center; gap: 7px; }
.clock-open i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; animation: pulse 2s ease-out infinite; }
.clock-open.off i { background: #E5484D; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.clock-cap { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- Kartu pesanan ---------- */
.order {
  position: relative; display: grid; gap: 22px; padding: 20px 18px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card);
  scroll-margin-top: 16px;
}
@media (min-width: 420px) { .order { padding: 24px 22px 22px; } }
.order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.order-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ticket { font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 14px; letter-spacing: .05em; color: var(--ink-3); }
.tutup { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--err-bg); color: var(--err); font-size: 14px; font-weight: 600; line-height: 1.5; }
.field { display: grid; gap: 10px; min-width: 0; }
.label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.hint.err { color: var(--err); font-weight: 600; }

.input-row { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-row:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.input-row.invalid { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-bg); }
.input-prefix { display: grid; place-items: center; padding-left: 14px; font-weight: 800; color: var(--ink-3); }
#username { flex: 1; min-width: 0; border: 0; background: transparent; padding: 13px 10px 13px 4px; font-size: 16px; font-weight: 600; outline: none; }
#username::placeholder { color: var(--ink-3); font-weight: 500; }
.btn-cek { border: 0; margin: 5px; padding-inline: 18px; border-radius: 10px; background: var(--ink); color: var(--surface); font-weight: 800; font-size: 14px; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
.btn-cek:active { transform: scale(.95); }
.btn-cek[disabled] { opacity: .55; cursor: progress; }

.akun { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.akun-ava { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.akun-info { display: grid; min-width: 0; line-height: 1.35; }
.akun-info .sk { display: block; }
.akun-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akun-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--good-ink); }
.akun-status .ic { width: 15px; height: 15px; }
.demo-tag { margin-left: auto; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--chip); color: var(--ink-2); border: 1px dashed var(--line-strong); }
.sk { background: linear-gradient(90deg, var(--chip) 0%, var(--chip-hover) 50%, var(--chip) 100%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.chip {
  display: grid; place-content: center; justify-items: center; gap: 2px; height: 54px; padding: 0 2px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--chip); color: var(--ink);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background-color .2s, border-color .2s, color .2s;
}
.chip b { font-size: 15px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chip small { font-size: 11px; font-weight: 600; line-height: 1.1; color: var(--ink-3); white-space: nowrap; }
.chip:hover { background: var(--chip-hover); }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-cta); }
.chip[aria-pressed="true"] small { color: var(--on-brand); opacity: .8; }
.chip:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.chip:disabled:active { transform: none; }
.hint.kuota.ok { color: var(--good-ink); font-weight: 600; }
.custom { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.custom label { font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.custom label small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--chip); font-size: 20px; font-weight: 700; line-height: 1; color: var(--ink); transition: background-color .2s; }
.stepper button:hover { background: var(--chip-hover); }
#jumlah { width: 84px; height: 42px; border: 0; background: transparent; text-align: right; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; appearance: textfield; }
#jumlah::-webkit-outer-spin-button, #jumlah::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit { padding: 0 10px 0 5px; font-weight: 800; font-size: 14px; color: var(--ink-3); }

/* struk: tepi bawah bergerigi seperti kertas struk */
.struk {
  padding: 16px 16px 24px; border-radius: 16px 16px 4px 4px; background: var(--surface-2);
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 96%, #000 100%) 50% 0 / 14px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 100%, transparent 96%, #000 100%) 50% 0 / 14px 100% repeat-x;
}
.struk-top { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.struk-k { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.struk-big { font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 900; font-size: clamp(42px, 12vw, 54px); line-height: .9; color: var(--brand-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.struk-big small { font-size: .42em; margin-left: 6px; letter-spacing: .04em; }
.struk-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--good-ink); }
.struk-note .ic { width: 16px; height: 16px; }
.rows { margin: 0; display: grid; gap: 12px; padding-top: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row dt { font-size: 14px; color: var(--ink-2); line-height: 1.35; flex: none; }
.row dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row dd.wrap-ok { white-space: normal; font-weight: 700; font-size: 14px; line-height: 1.4; }
.row-total { margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.row-total dt { font-weight: 700; color: var(--ink); }
.row-total dd { font-size: 22px; letter-spacing: -.02em; }
.tag { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; line-height: 1.2; }

.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opts.single { grid-template-columns: 1fr; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-box {
  position: relative; display: grid; gap: 2px; padding: 12px 36px 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s, background-color .2s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.pay-box strong { font-size: 15px; font-weight: 800; }
.pay-box small { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.pay-box::after { content: ""; position: absolute; top: 13px; right: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); transition: border .2s; }
.pay-opt:active .pay-box { transform: scale(.97); }
.pay-opt input:checked + .pay-box { border-color: var(--brand); background: var(--brand-tint); }
.pay-opt input:checked + .pay-box::after { border: 5px solid var(--brand); }
.pay-opt input:focus-visible + .pay-box { outline: 3px solid var(--brand); outline-offset: 2px; }

.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding-inline: 18px;
  border-radius: 16px; background: var(--brand); color: var(--on-brand);
  font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-decoration: none; box-shadow: var(--shadow-cta);
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), background-color .2s, opacity .2s;
}
.btn-wa:hover { background: var(--brand-hover); }
.btn-wa:active { transform: scale(.97); }
.btn-wa[aria-disabled="true"] { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn-wa .ic { width: 21px; height: 21px; }
.fine { margin: -10px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Alasan ---------- */
.band { border-block: 1px solid var(--line); background: var(--bg-2); }
.why { display: grid; gap: 20px 28px; padding-block: 30px; }
@media (min-width: 560px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why-item { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: start; }
.why-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); }
.why-item h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.why-item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Section umum ---------- */
.sec { padding-block: 60px 0; }
.sec-head { display: grid; gap: 8px; align-content: start; margin-bottom: 26px; max-width: 40em; }
.sec-head .eyebrow { margin: 0; }
.sec-head h2 { margin: 0; font-size: clamp(26px, 5vw, 38px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--ink-2); }
.split { display: grid; gap: 4px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; } }


/* bar khusus admin di halaman toko */
.admin-bar { display: none; }
html.is-admin .admin-bar { display: block; }
.admin-bar-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--info-bg); color: var(--info-ink); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.admin-bar-in .btn-sm { text-decoration: none; }

/* papan panduan pembelian: selalu gelap seperti papan LED */
.papan { position: relative; overflow: hidden; padding: 22px 18px 24px; border-radius: 22px; background: #101A33; color: #DCE4F2; border: 1px solid #24335C; box-shadow: var(--shadow-card); scroll-margin-top: 16px; }
@media (min-width: 720px) { .papan { padding: 32px 36px 34px; } }
.papan::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at center, rgba(255, 178, 62, .09) 1.1px, transparent 1.6px); background-size: 6px 6px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 55%); mask-image: linear-gradient(135deg, #000, transparent 55%); }
.papan > * { position: relative; }
.papan-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.papan-badge { padding: 5px 10px; border-radius: 7px; background: #FFB23E; color: #0A0C10; font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; }
.papan-title { margin: 0; font-size: clamp(20px, 4.6vw, 28px); font-weight: 800; letter-spacing: .01em; line-height: 1.15; text-transform: uppercase; color: #FFB23E; }
.papan-list { list-style: none; counter-reset: p; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.papan-list li { counter-increment: p; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.55; }
.papan-list li::before { content: counter(p, decimal-leading-zero); font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 900; font-size: 20px; line-height: 1.25; color: #FFB23E; text-shadow: 0 0 6px rgba(255, 178, 62, .45); }
.papan-list b { color: #FFFFFF; }
.papan-list a { color: #FFB23E; font-weight: 700; text-underline-offset: 3px; }
.papan .ui { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #FFFFFF; font-weight: 700; white-space: nowrap; }
.papan-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed rgba(255, 178, 62, .35); font-size: 14.5px; color: #9FB0D0; }
.papan-note a { color: #FFB23E; font-weight: 700; text-underline-offset: 3px; }
.papan-info { display: grid; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed rgba(255, 178, 62, .35); }
@media (min-width: 720px) { .papan-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; } }
.papan-info.solo { margin-top: 0; padding-top: 0; border-top: 0; }
.papan-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9FB0D0; }
.papan-v { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.45; color: #FFFFFF; }
.papan-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; height: 42px; padding-inline: 16px; border-radius: 12px; background: #FFB23E; color: #0A0C10; font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.papan-wa:active { transform: scale(.96); }
.papan-wa .ic { width: 18px; height: 18px; }
.fine a { color: var(--brand-ink); font-weight: 700; text-underline-offset: 3px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 700; font-size: 16px; line-height: 1.4; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform .25s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 2px 18px; max-width: 62ch; color: var(--ink-2); }

.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { display: grid; gap: 18px; padding-block: 32px 128px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.foot-links a { color: var(--ink-2); font-weight: 700; text-underline-offset: 3px; }
.foot p { margin: 0; max-width: 72ch; font-size: 13px; color: var(--ink-3); }
.proto { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: 12px; font-weight: 700; color: var(--ink-3); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); background: var(--dock-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.dock.show { transform: none; }
.dock-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin-inline: auto; }
.dock-sum { display: grid; line-height: 1.15; }
.dock-r { font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 900; font-size: 24px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.dock-rp { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dock-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding-inline: 20px; border-radius: 14px; background: var(--brand); color: var(--on-brand); font-weight: 800; text-decoration: none; box-shadow: var(--shadow-cta); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.dock-btn:active { transform: scale(.95); }
@media (min-width: 720px) {
  .dock { left: 50%; right: auto; bottom: 16px; width: min(520px, calc(100% - 48px)); padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); transform: translate(-50%, 160%); }
  .dock.show { transform: translate(-50%, 0); }
}

/* ================= DASHBOARD ================= */
.dash { display: grid; gap: 16px; padding-block: 6px 120px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.dash-head .eyebrow { margin-bottom: 6px; }
.dash-title { margin: 0; font-size: clamp(28px, 6vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.sync { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-3); }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--good-dot); box-shadow: 0 0 0 3px var(--good-bg); }
.sync.off i { background: var(--ink-3); box-shadow: none; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--surface-2); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.banner b { color: var(--ink); }
.banner-act { display: flex; flex-wrap: wrap; gap: 8px; }

.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--chip); border: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .35); }
.tabs button { flex: 1; min-width: 0; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.tabs .ic { width: 17px; height: 17px; }
@media (max-width: 379px) { .tabs .ic { display: none; } }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; line-height: 1; }
.panel { display: grid; gap: 14px; }

.seg { display: inline-flex; justify-self: start; gap: 4px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.seg button { height: 34px; padding-inline: 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

.todo { display: flex; flex-wrap: wrap; gap: 8px; }
.todo-item { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 12px; font-weight: 700; font-size: 13.5px; text-align: left; line-height: 1.35; }
.todo-item .ic { width: 17px; height: 17px; }
.todo-ok { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--good-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
@media (min-width: 720px) { .card { padding: 18px 20px; } }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.card-sub { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
figure.card { margin: 0; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; align-content: start; justify-items: start; gap: 4px; min-width: 0; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi.kpi-utama { grid-column: 1 / -1; padding: 16px 18px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi-label { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.kpi-value { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.kpi-value small { font-size: .62em; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.kpi.kpi-utama .kpi-value { font-size: clamp(34px, 9vw, 48px); letter-spacing: -.035em; line-height: 1.05; margin-top: 2px; }
.kpi-sub { font-size: 13px; color: var(--ink-3); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.delta .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.delta.up { color: var(--good-ink); }
.delta.down { color: var(--crit-ink); }
.delta.flat { color: var(--ink-3); }

.chart-box { position: relative; min-height: 230px; }
.viz { display: block; overflow: visible; }
.viz .grid { stroke: var(--grid); stroke-width: 1; }
.viz .axis { stroke: var(--axis); stroke-width: 1; }
.viz .ax { fill: var(--ink-3); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.viz .val { fill: var(--ink-2); font-size: 11.5px; font-weight: 700; font-family: inherit; }
.viz .bar { fill: var(--viz-1); transition: opacity .15s; }
.viz .bar.on { opacity: .7; }
.viz .hit { fill: transparent; cursor: pointer; outline: none; }
.viz .hit:focus-visible { stroke: var(--brand); stroke-width: 2; }
.chart-empty { position: absolute; inset: 0 0 28px 48px; display: grid; place-items: center; font-size: 13.5px; color: var(--ink-3); pointer-events: none; }
.tip { position: absolute; z-index: 5; transform: translate(-50%, -100%); display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--tip-bg); color: var(--tip-ink); font-size: 12px; line-height: 1.35; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45); }
.tip strong { font-size: 14px; font-weight: 800; }
.tip span { opacity: .8; }
.tscroll { overflow-x: auto; }
.vtable { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.vtable th, .vtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.vtable th:first-child { text-align: left; font-weight: 600; }
.vtable thead th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; }
.hbar-label { font-size: 13.5px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbar-fill { flex: none; height: 12px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--viz-1); }
.hbar-val { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kosong { margin: 0; padding: 14px 0; font-size: 14px; color: var(--ink-3); }

.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.st .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.st-menunggu { background: var(--warn-bg); color: var(--warn-ink); }
.st-dibayar { background: var(--info-bg); color: var(--info-ink); }
.st-terkirim { background: var(--good-bg); color: var(--good-ink); }
.st-batal { background: var(--chip); color: var(--ink-3); }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini:first-child { border-top: 0; padding-top: 2px; }
.mini-user { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-r { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.mini .st { justify-self: start; }
.mini-t { font-size: 12.5px; color: var(--ink-3); text-align: right; }

.btn-sm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding-inline: 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background-color .2s; }
.btn-sm:hover { background: var(--chip); }
.btn-sm:active { transform: scale(.95); }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-sm.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-sm.primary:hover { background: var(--brand-hover); }
.btn-sm.danger, .btn-ghost.danger { color: var(--crit-ink); }
.btn-sm[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.btn-icon:active { transform: scale(.92); }
.btn-icon .ic { width: 17px; height: 17px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding-inline: 18px; border: 0; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: var(--shadow-cta); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background-color .2s; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { transform: scale(.96); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-primary .ic { width: 18px; height: 18px; }
.btn-ghost { height: 44px; padding-inline: 14px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.btn-ghost:hover { background: var(--chip); }
.link-btn { border: 0; padding: 0; background: none; color: var(--brand-ink); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }

.toolbar { display: flex; gap: 10px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding-inline: 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink-3); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.filter-row button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.filter-row .n { font-variant-numeric: tabular-nums; opacity: .7; }

.ord-list { display: grid; gap: 10px; }
@media (min-width: 860px) { .ord-list { grid-template-columns: 1fr 1fr; } }
.ord { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ord-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-3); }
.ord-kode { font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 13.5px; letter-spacing: .04em; color: var(--ink-2); }
.mtag { padding: 1px 7px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.ord-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ord-user { min-width: 0; font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-robux { font-weight: 800; font-size: 16px; white-space: nowrap; }
.ord-meta { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ord-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ord-actions .btn-icon { margin-left: auto; }
.muat { justify-self: center; }

.set-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .set-grid { grid-template-columns: 1fr 1fr; align-items: start; } .set-grid .span-2 { grid-column: 1 / -1; } }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid .span-2 { grid-column: 1 / -1; }
.f { display: grid; gap: 6px; align-content: start; min-width: 0; }
.f + .f, .switch + .f { margin-top: 12px; }
.fgrid > .f + .f { margin-top: 0; }
.f label, .f .flabel { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.35; }
.f input:not([type="checkbox"]), .f select, .f textarea { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 16px; outline: none; }
.f textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.f small { font-size: 12.5px; color: var(--ink-3); }
.money { display: flex; align-items: center; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.money:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.money span { padding-left: 12px; font-weight: 700; font-size: 14px; color: var(--ink-3); }
.money input { flex: 1; width: 100%; min-width: 0; height: 42px; border: 0; padding: 0 12px 0 6px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; outline: none; box-shadow: none; }
.f .money input { border: 0; height: 42px; padding: 0 12px 0 6px; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; box-shadow: none; }
.f .money input:focus { box-shadow: none; }
.paket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.paket-head .link-btn { letter-spacing: 0; text-transform: none; }
.paket-rows { display: grid; gap: 8px; column-gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .paket-rows { grid-template-columns: 1fr 1fr; } }
.paket-row { display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 72px 30px; align-items: center; gap: 8px; }
.paket-row .per { font-size: 12.5px; color: var(--ink-3); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-j { display: flex; align-items: center; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pk-j:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.pk-j input { flex: 1; width: 100%; min-width: 0; height: 42px; border: 0; padding: 0 2px 0 10px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; background: transparent; outline: none; box-shadow: none; }
.pk-j span { padding-right: 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.pk-j input::-webkit-outer-spin-button, .pk-j input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pk-j input { -moz-appearance: textfield; appearance: textfield; }
.pk-x { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font-size: 19px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.pk-x:hover { background: var(--err-bg); color: var(--err); }
.pk-tambah { margin-top: 14px; }
.pk-kosong { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background-color .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.switch span { display: grid; line-height: 1.4; font-size: 14.5px; }
.switch small { font-size: 12.5px; color: var(--ink-3); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.form-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--err-bg); color: var(--err); font-size: 14px; font-weight: 600; }
.savebar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .55); font-size: 14px; font-weight: 700; }
.savebar div { display: flex; gap: 6px; }
.savebar .btn-ghost { color: var(--bg); height: 40px; }
.savebar .btn-ghost:hover { background: rgba(127, 127, 127, .2); }
.savebar .btn-primary { height: 40px; box-shadow: none; }

dialog.sheet { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
dialog.sheet::backdrop { background: rgba(5, 8, 15, .6); }
.sheet-in { display: grid; gap: 14px; margin: 0; padding: 20px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sheet-head .card-sub { font-family: "Doto", ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: .04em; }
.tempel { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.tempel .btn-sm { justify-self: start; }
.sheet-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-foot .spacer { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

html.theme-anim body, html.theme-anim body * {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease, box-shadow .6s ease, opacity .6s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led-track, .blink, .sky i, .clock-open i, .sk { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Halaman masuk admin ---------- */
.masuk { min-height: 72vh; display: grid; place-items: center; padding: 32px 16px 64px; }
.masuk-kartu { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 24px; box-shadow: var(--shadow); }
.masuk-kartu h1 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 4px; }
.masuk-kartu .sub { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; margin-bottom: 20px; }
.masuk-kartu .f + .f { margin-top: 14px; }
.masuk-kartu .btn-primary { width: 100%; margin-top: 18px; justify-content: center; }
.masuk-ikon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.masuk-ikon .ic { width: 22px; height: 22px; }
.masuk-kartu .fine { margin-top: 16px; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.btn-wa.memuat { opacity: .72; pointer-events: none; }
