/* Arcani — mobile-first, dark, purple. */
:root {
  --bg: #0e0d13;
  --surface: #17151f;
  --surface-2: #1f1c2a;
  --surface-3: #272336;
  --line: #2d2940;
  --line-2: #3a3550;
  --text: #f4f2f9;
  --text-2: #c9c4d8;
  --muted: #8e88a3;
  --primary: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-300: #c4b5fd;
  --primary-soft: rgba(139, 92, 246, .14);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .12);
  --err: #f87171;
  --err-soft: rgba(248, 113, 113, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 60px;
  --tabbar-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg); min-height: 100vh; min-height: 100dvh;
}
a { color: var(--primary-300); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: .5rem 0; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.xs { font-size: .75rem; }
.mono { font-family: var(--mono); letter-spacing: .03em; }
.center { text-align: center; }
.bold { font-weight: 700; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgba(14, 13, 19, .88); backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .inner { max-width: 1120px; margin: 0 auto; height: 100%; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.35rem; color: var(--text); letter-spacing: -.04em; }
.logo:hover { text-decoration: none; }
.logo .moon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 15px; }
.topnav { display: none; gap: 2px; margin-left: 16px; }
.topnav a { color: var(--text-2); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: var(--radius-sm); }
.topnav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topnav a.active { color: var(--primary-300); }
.header .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-300); font-weight: 700; font-size: .88rem; border: 1px solid rgba(139, 92, 246, .35);
  white-space: nowrap;
}
.balance:hover { text-decoration: none; background: rgba(139, 92, 246, .22); }
.balance svg.i { width: 16px; height: 16px; }

.avatar {
  --h: 265; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 30) 65% 45%));
}
.avatar.sm { width: 30px; height: 30px; font-size: .8rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.5rem; }
a.avatar:hover { text-decoration: none; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(23, 21, 31, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: .68rem; font-weight: 600; position: relative;
}
.tabbar a:hover { text-decoration: none; }
.tabbar a.active { color: var(--primary-300); }
.tabbar a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--primary); }
.tabbar a svg.i { width: 22px; height: 22px; }
.tabbar a.fab { color: #fff; }
.tabbar a.fab .fab-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); display: grid; place-items: center;
  margin-top: -18px; box-shadow: 0 6px 20px rgba(139, 92, 246, .45); border: 4px solid var(--bg);
}
.tabbar a.fab.active::before { display: none; }
.tabbar .dot { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: #fff; font-size: .62rem; display: grid; place-items: center; }

/* ---------- Layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
body.no-tabbar main { padding-bottom: 40px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.page-head .sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.back:hover { color: var(--text); text-decoration: none; }
.section { margin: 28px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stack > * + * { margin-top: 10px; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.narrow { max-width: 440px; margin: 0 auto; }
.medium { max-width: 720px; margin: 0 auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.flat { background: var(--surface-2); border-color: transparent; }
.card.pad-lg { padding: 20px; }
a.card { display: block; color: inherit; transition: border-color .15s, transform .15s; }
a.card.row { display: flex; }
a.card:hover { text-decoration: none; border-color: var(--line-2); }
a.card:active { transform: scale(.99); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* List rows (like Fiverr order list) */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; border-top: 1px solid var(--line); min-height: 64px; }
.list > .item:first-child { border-top: 0; }
a.item:hover { text-decoration: none; background: var(--surface-2); }
.item .title { font-weight: 600; }
.item .meta { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.item .chev { color: var(--muted); }
.item .end { text-align: right; flex-shrink: 0; }

/* Hero banner */
.hero {
  position: relative; overflow: hidden; border-radius: 16px; padding: 22px 20px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(196, 181, 253, .35), transparent 60%),
    linear-gradient(135deg, #6d28d9, #4c1d95 60%, #2e1065);
}
.hero h1 { font-size: 1.55rem; color: #fff; max-width: 16ch; }
.hero p { color: #e9e3ff; opacity: .9; max-width: 34ch; }
.hero .deco { position: absolute; right: -10px; bottom: -18px; font-size: 110px; opacity: .14; transform: rotate(12deg); pointer-events: none; }
.hero .btn { margin-top: 12px; background: #fff; color: #4c1d95; }
.hero .btn:hover { background: #f1ecff; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; }
.stat .num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-size: .75rem; font-weight: 500; }
.stat.accent .num { color: var(--primary-300); }

/* Category / gig cards */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.cat:hover { text-decoration: none; border-color: var(--line-2); }
.cat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--primary-soft); }
.cat .name { font-weight: 700; font-size: .95rem; }
.cat .price { color: var(--muted); font-size: .78rem; }
.cat .price b { color: var(--text); }
label.cat { margin: 0; }
label.cat > input { position: absolute; opacity: 0; pointer-events: none; }
label.cat:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
label.cat:has(input:checked) .ic { background: var(--primary); }
label.cat .check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
label.cat:has(input:checked) .check { background: var(--primary); border-color: var(--primary); }
label.cat:has(input:checked) .check::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* Packages (Fiverr-style tiers) */
.packages { display: grid; gap: 10px; }
.pkg { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; margin: 0; }
.pkg > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pkg .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; }
.pkg:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.pkg:has(input:checked) .radio { border-color: var(--primary); }
.pkg:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.pkg .name { font-weight: 700; color: var(--text); }
.pkg .desc { color: var(--muted); font-size: .8rem; }
.pkg .price { margin-left: auto; font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.pkg .tag { position: absolute; top: -9px; right: 14px; background: var(--primary); color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Forms ---------- */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin: 16px 0 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom */ color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #6c6680; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.big { min-height: 300px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238e88a3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.input-icon { position: relative; }
.input-icon svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 44px; }
.form-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  min-height: 46px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--primary); color: #fff; transition: background .15s, transform .1s, opacity .15s;
}
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-3); }
.btn.outline { background: transparent; color: var(--primary-300); border-color: rgba(139, 92, 246, .5); }
.btn.outline:hover { background: var(--primary-soft); }
.btn.danger { background: transparent; color: var(--err); border-color: rgba(248, 113, 113, .4); }
.btn.danger:hover { background: var(--err-soft); }
.btn.ok { background: #10b981; }
.btn.ok:hover { background: #059669; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.btn.lg { min-height: 54px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 44px; }

/* Sticky action bar (checkout-style, phones) */
.actionbar {
  position: fixed; left: 0; right: 0; z-index: 25; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  background: rgba(23, 21, 31, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 16px;
}
.actionbar .inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.actionbar .total .lbl { font-size: .72rem; color: var(--muted); }
.actionbar .total .val { font-size: 1.15rem; font-weight: 800; }
.actionbar .btn { margin-left: auto; }
.has-actionbar main { padding-bottom: calc(var(--tabbar-h) + 110px + env(safe-area-inset-bottom)); }

/* ---------- Pills / badges / tabs ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge.pending, .badge.awaiting { color: var(--warn); background: var(--warn-soft); }
.badge.answered, .badge.paid, .badge.on { color: var(--ok); background: var(--ok-soft); }
.badge.cancelled, .badge.off, .badge.expired { color: var(--muted); background: var(--surface-3); }
.badge.purple, .badge.role-admin { color: var(--primary-300); background: var(--primary-soft); }
.badge.role-reader { color: #93c5fd; background: rgba(147, 197, 253, .12); }
.badge.role-user { color: var(--muted); background: var(--surface-3); }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
.tabs a:hover { text-decoration: none; border-color: var(--line-2); }
.tabs a.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.tabs a .count { opacity: .75; margin-left: 4px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.seg a { text-align: center; padding: 9px; border-radius: 7px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.active { background: var(--surface-3); color: var(--text); }

/* ---------- Flash (toast-like) ---------- */
.flashes { position: fixed; top: calc(var(--header-h) + 8px); left: 12px; right: 12px; z-index: 40; display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: .9rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: drop .25s ease-out; }
.flash::before { content: ""; width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }
.flash.success::before { background: var(--ok); }
.flash.error::before { background: var(--err); }
.flash.info::before { background: var(--primary); }
.flash .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 2px; line-height: 1; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }

/* ---------- Reading ---------- */
.question { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.response { white-space: pre-wrap; font-size: 1rem; line-height: 1.75; color: var(--text-2); }
.answer-card { border-left: 3px solid var(--primary); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .glyph { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--surface-2); font-size: 26px; }
.empty .btn { margin-top: 14px; }

/* key-value */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- Barcode / purchase requests ---------- */
.req { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.req .top { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.req .amount { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.barcode-box { background: #fff; color: #000; border-radius: 10px; padding: 14px 14px 8px; text-align: center; margin: 0 16px; }
.barcode-box svg { width: 100%; height: 72px; display: block; }
.barcode-box .code { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .18em; margin-top: 6px; font-weight: 600; }
.req .foot { padding: 12px 16px 14px; display: flex; gap: 8px; }
.req .foot .btn { flex: 1; }
.req:target { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.fullscreen-code { text-align: center; position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #000; }
.fullscreen-code svg { width: 100%; max-width: 640px; height: auto; min-height: 140px; }
.fullscreen-code .code { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .2em; margin-top: 12px; font-weight: 700; }
.fullscreen-code .meta { margin-top: 8px; color: #555; }
.fullscreen-code .close { position: absolute; top: 16px; right: 16px; background: #eee; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

/* ---------- Scanner ---------- */
.scanner { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 60vh; margin: 0 auto; width: 100%; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; left: 8%; right: 8%; top: 38%; bottom: 38%; border: 2px solid var(--primary-300); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); }
.scanner .laser { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--primary); box-shadow: 0 0 12px var(--primary); animation: scan 1.6s ease-in-out infinite; }
.scanner .idle { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }
@keyframes scan { 0%, 100% { transform: translateY(-26px); } 50% { transform: translateY(26px); } }

/* ---------- Tables (desktop admin only) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
td.num, th.num { text-align: right; white-space: nowrap; }
.plus { color: var(--ok); font-weight: 700; }
.minus { color: var(--err); font-weight: 700; }

/* Auth pages */
.auth { min-height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.auth h1 { font-size: 1.7rem; }
.auth .lead { color: var(--muted); margin: 6px 0 8px; }
.auth .alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: .9rem; }

/* Landing */
.landing-hero { padding: 36px 0 28px; text-align: center; }
.landing-hero .big-moon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 18px; background: linear-gradient(135deg, var(--primary), #4c1d95); font-size: 34px; box-shadow: 0 16px 40px rgba(139, 92, 246, .4); }
.landing-hero h1 { font-size: 2.1rem; max-width: 14ch; margin: 0 auto; }
.landing-hero h1 span { color: var(--primary-300); }
.landing-hero p { color: var(--muted); max-width: 36ch; margin: 12px auto 22px; font-size: 1.02rem; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-300); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

footer { text-align: center; color: var(--muted); font-size: .75rem; padding: 8px 16px 24px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body { font-size: 15.5px; }
  .topnav { display: flex; }
  .tabbar { display: none; }
  main { padding: 28px 24px 56px; }
  .has-actionbar main { padding-bottom: 120px; }
  .actionbar { bottom: 0; }
  .flashes { left: auto; right: 24px; width: 380px; }
  h1 { font-size: 1.9rem; }
  .hero { padding: 34px 32px; }
  .hero h1 { font-size: 2rem; }
  .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .packages .pkg { flex-direction: column; align-items: flex-start; }
  .packages .pkg .price { margin-left: 0; }
  .packages .pkg .radio { position: absolute; top: 16px; right: 16px; }
  .grid.desk-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.desk-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .req-grid > * + * { margin-top: 0 !important; }
  .scanner { aspect-ratio: 4 / 3; max-width: 560px; }
  .landing-hero h1 { font-size: 3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .desk-only { display: none !important; }
}
@media (min-width: 900px) {
  .phone-only { display: none !important; }
}
@media (max-width: 380px) {
  .balance .lbl { display: none; }
  .stats .stat .num { font-size: 1.25rem; }
}
