:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --text: #0e0e10;
  --muted: #5f626a;
  --line: #e2e2dc;
  --line-strong: #c9c9c2;
  --accent: #ffd600;
  --accent-ink: #0e0e10;
  --ring: #0e0e10;
  --sel-bg: #fffbe0;
  --hl-bg: #ffd600;
  --hl-fg: #0e0e10;
  --ok: #127a46;
  --ok-soft: #e2f4e9;
  --bad: #c0271d;
  --bad-soft: #fde9e7;
  --wait: #7d5600;
  --wait-soft: #fff2c7;
  --work: #2346c4;
  --work-soft: #e8edfd;
  --shadow: 0 1px 2px rgba(14, 14, 16, 0.04), 0 8px 24px rgba(14, 14, 16, 0.06);
  --shadow-lift: 0 2px 4px rgba(14, 14, 16, 0.06), 0 14px 32px rgba(14, 14, 16, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #141416;
    --surface-2: #1a1a1d;
    --text: #f3f3f0;
    --muted: #9c9fa7;
    --line: #26262b;
    --line-strong: #3a3a41;
    --ring: #ffd600;
    --sel-bg: #1f1c0b;
    --hl-bg: transparent;
    --hl-fg: #ffd600;
    --hl-pad: 0;
    --ok: #5fd49a;
    --ok-soft: #10281b;
    --bad: #ff8a80;
    --bad-soft: #331617;
    --wait: #ffd600;
    --wait-soft: #2a2408;
    --work: #93abff;
    --work-soft: #19203d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 36px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.main {
  padding-top: 20px;
  padding-bottom: 56px;
  min-height: 62vh;
}

.page-brand .main {
  padding-bottom: 40px;
}

.page-brand .foot {
  padding-bottom: 96px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.notice {
  background: var(--wait-soft);
  color: var(--wait);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.3s var(--ease);
}

.logo-mark .ic {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
}

.logo-mark.small {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.logo-mark.small .ic {
  width: 14px;
  height: 14px;
}

.top-link,
.admin-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.top-link .ic {
  width: 18px;
  height: 18px;
}

.top-link:hover,
.admin-nav a:hover {
  border-color: var(--text);
}

.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav a {
  padding: 6px 12px;
}

.hero {
  padding: 28px 0 8px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hl {
  color: var(--hl-fg);
  background: var(--hl-bg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 var(--hl-pad, 0.12em);
  border-radius: 6px;
}

.hero-sub {
  max-width: 560px;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.searchbox:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.35);
}

.searchbox .ic {
  color: var(--muted);
}

.searchbox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.points .ic {
  width: 18px;
  height: 18px;
  color: var(--text);
}

.cats {
  position: sticky;
  top: 60px;
  z-index: 20;
  margin: 20px -16px 0;
  padding: 10px 16px;
  background: var(--bg);
}

.cats-in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats-in::-webkit-scrollbar {
  display: none;
}

.cats a,
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s;
}

.cats a .ic {
  width: 17px;
  height: 17px;
}

.cats a:hover,
.chips a:hover {
  border-color: var(--text);
}

.cats a:active {
  transform: scale(0.96);
}

.cats a.on,
.chips a.on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.cat h2,
.how h2,
.main > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
}

.cat h2 .ic {
  width: 22px;
  height: 22px;
}

.count {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  animation: rise 0.55s var(--ease) backwards;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.tile:hover .mono {
  transform: rotate(-6deg) scale(1.06);
}

.tile:active {
  transform: translateY(-1px) scale(0.98);
}

.tile[hidden] {
  display: none;
}

.tile-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tile-name {
  font-weight: 700;
  line-height: 1.25;
}

.tile-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.tiles > :nth-child(2) { animation-delay: 40ms; }
.tiles > :nth-child(3) { animation-delay: 80ms; }
.tiles > :nth-child(4) { animation-delay: 120ms; }
.tiles > :nth-child(5) { animation-delay: 160ms; }
.tiles > :nth-child(6) { animation-delay: 200ms; }
.tiles > :nth-child(7) { animation-delay: 240ms; }
.tiles > :nth-child(8) { animation-delay: 280ms; }
.tiles > :nth-child(n + 9) { animation-delay: 320ms; }

.mono {
  --m-bg: #333;
  --m-fg: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--m-bg);
  color: var(--m-fg);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: transform 0.35s var(--ease);
}

.mono.big {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 1.5rem;
}

.hue-0 { --m-bg: #e5484d; }
.hue-1 { --m-bg: #f76b15; }
.hue-2 { --m-bg: #ffc53d; --m-fg: #1a1400; }
.hue-3 { --m-bg: #30a46c; }
.hue-4 { --m-bg: #12a594; }
.hue-5 { --m-bg: #0090ff; }
.hue-6 { --m-bg: #3e63dd; }
.hue-7 { --m-bg: #8e4ec6; }
.hue-8 { --m-bg: #d6409f; }
.hue-9 { --m-bg: #2b2b30; }

.b-mobile-legends { --m-bg: #1b2a6b; --m-fg: #f2c94c; }
.b-free-fire { --m-bg: #ff6a00; --m-fg: #fff; }
.b-genshin-impact { --m-bg: #2c4a7a; --m-fg: #f4e3b5; }
.b-pubg-mobile { --m-bg: #f2a900; --m-fg: #1a1400; }
.b-valorant { --m-bg: #ff4655; --m-fg: #fff; }
.b-telkomsel { --m-bg: #e4002b; --m-fg: #fff; }
.b-xl { --m-bg: #0b4ea2; --m-fg: #fff; }
.b-axis { --m-bg: #6b2bb3; --m-fg: #fff; }
.b-indosat { --m-bg: #ffd000; --m-fg: #1a1400; }
.b-tri, .b-three { --m-bg: #4b1a8f; --m-fg: #fff; }
.b-smartfren { --m-bg: #e4003b; --m-fg: #fff; }
.b-by-u { --m-bg: #00c4c4; --m-fg: #0b1a1a; }
.b-pln { --m-bg: #00a2e9; --m-fg: #ffe600; }
.b-dana { --m-bg: #118eea; --m-fg: #fff; }
.b-go-pay, .b-gopay { --m-bg: #00aed6; --m-fg: #fff; }
.b-ovo { --m-bg: #4c3494; --m-fg: #fff; }
.b-shopee-pay, .b-shopeepay { --m-bg: #ee4d2d; --m-fg: #fff; }
.b-link-aja, .b-linkaja { --m-bg: #e82529; --m-fg: #fff; }

.how {
  margin-top: 40px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.how-steps span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.how-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.empty {
  margin: 28px 0;
  color: var(--muted);
  text-align: center;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s var(--ease);
}

.back .ic {
  width: 18px;
  height: 18px;
}

.back:hover {
  color: var(--text);
  transform: translateX(-2px);
}

.back::before {
  content: none;
}

.page-title {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
}

.page-title + .muted {
  margin-top: 0;
}

.brand-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.brand-hero p {
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
}

.tags .ic {
  width: 14px;
  height: 14px;
}

.step {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step:nth-of-type(2) {
  animation-delay: 80ms;
}

.step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 0.8rem;
}

input:not([type="radio"]):not([type="hidden"]):not([type="search"]) {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: inherit;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:not([type="radio"]):not([type="hidden"]):not([type="search"]):focus {
  outline: 0;
  border-color: var(--ring);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.3);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 118px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.opt:active {
  transform: scale(0.97);
}

.opt:has(input:checked) {
  border-color: var(--ring);
  background: var(--sel-bg);
  box-shadow: 0 0 0 1px var(--ring) inset;
}

.opt:has(input:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.opt.off {
  opacity: 0.45;
  cursor: not-allowed;
}

.opt.off:hover {
  transform: none;
  border-color: var(--line);
}

.opt-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.opt-icon .ic {
  width: 17px;
  height: 17px;
}

.opt-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.opt-check .ic {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.opt:has(input:checked) .opt-check {
  opacity: 1;
  transform: scale(1);
}

.opt-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.opt-desc {
  color: var(--muted);
  font-size: 0.78rem;
}

.opt-price {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.45s var(--ease);
}

.js .bar:not(.show) {
  transform: translateY(110%);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-info {
  display: grid;
  min-width: 0;
}

.bar-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-total {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bar-total.bump {
  animation: bump 0.35s var(--ease);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px solid var(--text);
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn .ic {
  width: 19px;
  height: 19px;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost,
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover,
.btn.ghost:hover {
  border-color: var(--text);
  box-shadow: none;
}

.btn-test {
  margin-top: 14px;
  background: var(--wait-soft);
  border-color: transparent;
  color: var(--wait);
}

.btn.wide {
  width: 100%;
}

.btn.big {
  min-height: 56px;
  font-size: 1.05rem;
}

.btn.small {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 0.85rem;
}

.btn.loading {
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--accent-ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn:not(.btn-accent).loading::after {
  border-color: var(--bg);
  border-right-color: transparent;
}

.btn-ghost.loading::after {
  border-color: var(--text);
  border-right-color: transparent;
}

.link,
.link-btn {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.copy .ic {
  width: 14px;
  height: 14px;
}

.copy:hover {
  border-color: var(--text);
}

.copy:active {
  transform: scale(0.94);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
  color: var(--bad);
  font-weight: 600;
  animation: shake 0.4s var(--ease);
}

.alert .ic {
  margin-top: 2px;
}

.alert.info {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  animation: rise 0.4s var(--ease) both;
}

.order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-head p {
  margin: 0;
}

.code {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.badge.ok,
.badge.s-success {
  background: var(--ok-soft);
  border-color: transparent;
  color: var(--ok);
}

.badge.bad,
.badge.s-failed {
  background: var(--bad-soft);
  border-color: transparent;
  color: var(--bad);
}

.badge.wait,
.badge.s-unpaid,
.badge.s-new {
  background: var(--wait-soft);
  border-color: transparent;
  color: var(--wait);
}

.badge.work,
.badge.s-paid,
.badge.s-processing {
  background: var(--work-soft);
  border-color: transparent;
  color: var(--work);
}

.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.track li::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}

.track li:first-child::before {
  display: none;
}

.track li.done::before,
.track li.now::before {
  background: var(--accent);
  transform-origin: left;
  animation: grow 0.6s var(--ease) both;
}

.track-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  color: var(--accent-ink);
}

.track-dot .ic {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.track li.done .track-dot {
  background: var(--accent);
  border-color: var(--accent);
  animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.track li.now .track-dot {
  border-color: var(--accent);
  background: var(--surface);
}

.track li.now .track-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.track li.now .track-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ring 1.6s var(--ease) infinite;
}

.track.is-failed li:last-child .track-dot {
  background: var(--bad);
  border-color: var(--bad);
}

.track.is-failed li:last-child .track-dot::before,
.track.is-failed li:last-child .track-dot::after {
  display: none;
}

.track-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.track li.done .track-label,
.track li.now .track-label {
  color: var(--text);
}

.order-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 820px) {
  .order-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.panel p {
  margin: 8px 0;
}

.panel form {
  margin-top: 16px;
}

.hl-text {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--sel-bg);
  border: 1px solid var(--line);
}

.panel.state {
  text-align: center;
}

.panel.state .btn {
  margin-top: 14px;
}

.state-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.state-icon .ic {
  width: 30px;
  height: 30px;
}

.muted-icon {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.bad-icon {
  background: var(--bad-soft);
  color: var(--bad);
  animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both, shake 0.5s 0.4s var(--ease);
}

.panel.bad h2 {
  color: var(--bad);
}

.pay {
  text-align: center;
}

.pay-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--wait-soft);
  color: var(--wait);
  font-size: 0.85rem;
  font-weight: 700;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: ring 1.4s var(--ease) infinite;
}

.qr-frame {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 14px;
}

.qr {
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  animation: qr-in 0.6s var(--ease) both;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  animation: corner 2.4s var(--ease) infinite;
}

.corner.tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 10px; }
.corner.tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 10px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 10px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 10px; }

.amount {
  margin: 14px 0 4px !important;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.timer {
  max-width: 300px;
  margin: 0 auto;
}

.timer-bar {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.timer-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 1));
  transition: transform 1s linear, background 0.3s;
}

.timer.low .timer-fill {
  background: var(--bad);
}

.timer.low strong {
  color: var(--bad);
}

[data-expires] {
  font-variant-numeric: tabular-nums;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.hint-list {
  margin: 8px 0 0;
  padding: 14px 14px 14px 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left;
}

.hint-list li {
  margin: 4px 0;
}

.loader {
  display: inline-flex;
  gap: 8px;
  height: 64px;
  margin-bottom: 6px;
  align-items: center;
}

.loader i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent);
  animation: hop 0.9s var(--ease) infinite;
}

.loader i:nth-child(2) {
  animation-delay: 0.15s;
}

.loader i:nth-child(3) {
  animation-delay: 0.3s;
}

.done-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
}

.done-mark circle {
  fill: var(--ok-soft);
  stroke: var(--ok);
  stroke-width: 3;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: draw 0.6s var(--ease) forwards;
}

.done-mark path {
  fill: none;
  stroke: var(--ok);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.4s 0.5s var(--ease) forwards;
}

.panel.ok h2 {
  color: var(--ok);
}

.sn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 4px 0 6px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.sn code {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.confetti {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  animation: burst 1.1s 0.3s var(--ease) forwards;
}

.confetti i:nth-child(3n) { background: var(--ok); }
.confetti i:nth-child(3n + 1) { background: var(--text); width: 6px; height: 6px; border-radius: 50%; }
.confetti i:nth-child(1) { --x: -120px; --y: -60px; --r: 200deg; }
.confetti i:nth-child(2) { --x: 110px; --y: -70px; --r: -160deg; }
.confetti i:nth-child(3) { --x: -80px; --y: -110px; --r: 120deg; }
.confetti i:nth-child(4) { --x: 70px; --y: -120px; --r: -220deg; }
.confetti i:nth-child(5) { --x: -150px; --y: 10px; --r: 300deg; }
.confetti i:nth-child(6) { --x: 150px; --y: 0px; --r: -260deg; }
.confetti i:nth-child(7) { --x: -30px; --y: -140px; --r: 90deg; }
.confetti i:nth-child(8) { --x: 30px; --y: -150px; --r: -90deg; }
.confetti i:nth-child(9) { --x: -110px; --y: 60px; --r: 180deg; }
.confetti i:nth-child(10) { --x: 120px; --y: 70px; --r: -180deg; }
.confetti i:nth-child(11) { --x: -60px; --y: 90px; --r: 240deg; }
.confetti i:nth-child(12) { --x: 60px; --y: 100px; --r: -240deg; }
.confetti i:nth-child(13) { --x: -170px; --y: -30px; --r: 150deg; }
.confetti i:nth-child(14) { --x: 175px; --y: -40px; --r: -150deg; }
.confetti i:nth-child(15) { --x: -40px; --y: 120px; --r: 60deg; }
.confetti i:nth-child(16) { --x: 45px; --y: -95px; --r: -60deg; }
.confetti i:nth-child(17) { --x: -135px; --y: -95px; --r: 330deg; }
.confetti i:nth-child(18) { --x: 135px; --y: 40px; --r: -330deg; }

.sum {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sum > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.sum > div:last-child {
  border-bottom: 0;
}

.sum dt {
  flex-shrink: 0;
  color: var(--muted);
}

.sum dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sum dd.strong {
  font-weight: 800;
}

.sum .sum-head {
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
}

.sum-head dd {
  text-align: left;
}

.sum-product {
  font-weight: 800 !important;
}

.side > p {
  margin: 10px 4px;
}

.lookup-wrap {
  max-width: 460px;
  margin: 24px auto;
  text-align: center;
}

.lookup {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  padding-bottom: 36px;
}

.foot-in > div:first-child {
  max-width: 460px;
}

.foot p {
  margin: 4px 0;
}

.foot-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.foot-links {
  display: grid;
  gap: 6px;
  align-content: start;
}

.foot-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.foot-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-brand .toast {
  bottom: 100px;
}

.rise {
  animation: rise 0.6s var(--ease) backwards;
}

.order-grid > .rise:nth-child(2) {
  animation-delay: 90ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ring {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hop {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-14px) rotate(45deg);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(0.6);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), calc(var(--y) + 40px)) rotate(var(--r)) scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes qr-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes corner {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: var(--c-move, translate(0, 0));
  }
}

.corner.tl { --c-move: translate(-3px, -3px); }
.corner.tr { --c-move: translate(3px, -3px); }
.corner.bl { --c-move: translate(-3px, 3px); }
.corner.br { --c-move: translate(3px, 3px); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}

.stat {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-label,
.stat-foot {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

td code {
  overflow-wrap: normal;
  white-space: nowrap;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.is-off {
  opacity: 0.55;
}

.inline {
  display: inline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.search {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 12px 0;
}

.search input {
  min-height: 40px !important;
}

.events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.events li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.brand-admin {
  margin-top: 28px;
}

.brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.brand-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.sum.wide dd {
  text-align: right;
}

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-link span {
    display: none;
  }
  .top-link {
    padding: 8px;
  }
  .brand-hero {
    padding: 16px;
  }
  .mono.big {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  .code {
    font-size: 1.25rem;
  }
  .track-label {
    font-size: 0.7rem;
  }
  .panel {
    padding: 18px;
  }
}

.mono.has-img {
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.mono img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  display: grid;
  gap: 32px;
}

.float {
  display: none;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 48px;
  }

  .float {
    position: relative;
    display: grid;
    place-items: center;
    padding: 24px;
  }
}

.float-blob {
  position: absolute;
  inset: 8% 6%;
  border-radius: 40px;
  background: var(--accent);
  transform: rotate(-6deg);
  animation: blob 9s ease-in-out infinite;
}

.float-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(100%, 360px);
}

.float-tile {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--bg), var(--shadow-lift);
  animation: bob 5.5s ease-in-out infinite;
}

.float-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-tile:nth-child(1) { animation-delay: -0.4s; transform: rotate(-4deg); }
.float-tile:nth-child(2) { animation-delay: -2.1s; }
.float-tile:nth-child(3) { animation-delay: -1.2s; }
.float-tile:nth-child(4) { animation-delay: -3.3s; }
.float-tile:nth-child(5) { animation-delay: -0.9s; }
.float-tile:nth-child(6) { animation-delay: -2.7s; }
.float-tile:nth-child(7) { animation-delay: -1.8s; }
.float-tile:nth-child(8) { animation-delay: -4.1s; }
.float-tile:nth-child(9) { animation-delay: -0.2s; }
.float-grid > :nth-child(odd) { --tilt: -3deg; }
.float-grid > :nth-child(even) { --tilt: 3deg; }

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(calc(var(--tilt, 0deg) * -1));
  }
}

@keyframes blob {
  0%,
  100% {
    transform: rotate(-6deg) scale(1);
  }
  50% {
    transform: rotate(-3deg) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .confetti {
    display: none;
  }
}
