/* ==========================================================================
   Midnight × Aurora — design system
   Themes: [data-theme="aurora"] (default) · "midnight" · "daylight"
   Brand colour: --primary (set per tenant), --primary-ink (text on it)
   ========================================================================== */

:root {
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px; --pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --primary: #3DDC97; --primary-ink: #06130d;
  --accent-2: #22D3EE; --accent-3: #A78BFA;
  --ok: #3DDC97; --warn: #F5C451; --bad: #FF7A85; --info: #7FB2FF;
}

[data-theme="aurora"], [data-theme="midnight"] {
  color-scheme: dark;
  --bg: #090D14;
  --bg-2: #0D121B;
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #121822;
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .1);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #EAF0F6;
  --text-2: #B7C2CE;
  --muted: #8492A1;
  --input: rgba(0, 0, 0, .28);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .05);
  --primary-soft: color-mix(in oklab, var(--primary) 16%, transparent);
  --primary-line: color-mix(in oklab, var(--primary) 45%, transparent);
  --primary-text: var(--primary);
  --ok-soft: rgba(61, 220, 151, .13); --warn-soft: rgba(245, 196, 81, .14);
  --bad-soft: rgba(255, 122, 133, .14); --info-soft: rgba(127, 178, 255, .14);
}
[data-theme="midnight"] { --surface: #111720; --surface-2: #161E29; --surface-3: #1C2532; --bg: #0A0E14; }

[data-theme="daylight"] {
  color-scheme: light;
  --bg: #F4F7FB;
  --bg-2: #EEF2F8;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-2: #F3F6FA;
  --surface-3: #E9EEF5;
  --border: rgba(15, 23, 42, .09);
  --border-strong: rgba(15, 23, 42, .16);
  --text: #0E1726;
  --text-2: #334155;
  --muted: #5B6779;
  --input: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .07);
  --highlight: none;
  --primary-soft: color-mix(in oklab, var(--primary) 14%, white);
  --primary-line: color-mix(in oklab, var(--primary) 55%, white);
  --primary-text: color-mix(in oklab, var(--primary) 62%, black);
  --ok: #138A55; --warn: #A16207; --bad: #C2283A; --info: #2558C9;
  --ok-soft: #E3F6EC; --warn-soft: #FEF3D6; --bad-soft: #FDE7EA; --info-soft: #E5EDFD;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[data-theme="aurora"] body {
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(124, 58, 237, .28), transparent 65%),
    radial-gradient(760px 480px at 100% 0%, rgba(34, 211, 238, .16), transparent 65%),
    radial-gradient(900px 700px at 60% 110%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: var(--primary-soft); }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 16.5px; font-weight: 600; }
p { margin: 0; }
.mono, code, kbd { font-family: var(--font-mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); } .warn-text { color: var(--warn); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.ic { flex: none; vertical-align: -3px; }

/* ── Layout helpers ───────────────────────────────────────────────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 520px; }
.container-md { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ── Surfaces ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--highlight); padding: 20px;
}
[data-theme="aurora"] .card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
[data-theme="daylight"] .card { box-shadow: var(--shadow); }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-body { padding: 20px; }
.card-glow {
  background: linear-gradient(150deg, color-mix(in oklab, var(--primary) 20%, transparent), color-mix(in oklab, var(--accent-3) 14%, transparent));
  border-color: var(--primary-line);
}
[data-theme="daylight"] .card-glow { background: linear-gradient(150deg, var(--primary-soft), #fff); }
.section-title { font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font: 600 14.5px/1 var(--font-body);
  cursor: pointer; text-decoration: none !important; transition: transform .12s var(--ease), background .15s, border-color .15s, opacity .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 22px color-mix(in oklab, var(--primary) 28%, transparent); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 88%, white); }
[data-theme="aurora"] .btn-primary { background: linear-gradient(120deg, var(--primary), color-mix(in oklab, var(--primary) 55%, var(--accent-2))); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--pill); }
.icon-btn { min-width: 40px; min-height: 40px; padding: 0; border-radius: var(--r-sm); }
.link-btn { background: none; border: 0; color: var(--primary-text); cursor: pointer; font: inherit; padding: 0; }

/* ── Forms ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .label { font: 600 13px/1.2 var(--font-body); color: var(--text-2); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--border-strong);
  background: var(--input); color: var(--text); font: 400 16px/1.3 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.field textarea, textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--primary-line); box-shadow: 0 0 0 4px var(--primary-soft);
}
.field input[type="color"] { padding: 4px; height: 48px; cursor: pointer; }
.field input[type="file"] { font: inherit; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 13px; color: var(--bad); }
.input-group { display: flex; align-items: stretch; }
.input-group .input, .input-group input { border-radius: var(--r) 0 0 var(--r) !important; }
.input-group .addon { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fieldset { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.fieldset legend { padding: 0 6px; font: 600 13px var(--font-body); color: var(--text-2); }

/* ── Pills, badges, alerts ────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--pill); font: 600 12px/1 var(--font-body); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-muted { background: var(--surface-2); color: var(--muted); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pill); background: var(--primary); color: var(--primary-ink); font: 700 12px/1 var(--font-body); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r); border: 1px solid transparent; font-size: 14.5px; }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in oklab, var(--ok) 30%, transparent); }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in oklab, var(--bad) 30%, transparent); }
.alert-warning { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in oklab, var(--warn) 30%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in oklab, var(--info) 30%, transparent); }
.alert p { color: var(--text-2); }
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

/* ── Tables ───────────────────────────────────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 11.5px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface); }
.table td.amount, .table th.amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td strong, .table td .strong { color: var(--text); font-weight: 600; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic-wrap { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.pager { display: flex; gap: 8px; justify-content: center; padding: 16px; }

/* ── Stats ────────────────────────────────────────────────────────── */
.stat { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.stat .label { font: 500 13px/1 var(--font-body); color: var(--muted); }
.stat .value { font: 700 26px/1 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .value small { font-size: .55em; color: var(--muted); font-weight: 600; margin-right: 3px; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.progress { height: 8px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent-2)); border-radius: inherit; }

/* ── Tabs / segmented ─────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); color: var(--text-2); font: 600 14px/1 var(--font-body); background: none; border: 0; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.tabs .on, .tabs [aria-selected="true"] { background: var(--text); color: var(--bg); }
[data-theme="daylight"] .tabs .on, [data-theme="daylight"] .tabs [aria-selected="true"] { background: #0E1726; color: #fff; }

/* ── Copy rows ────────────────────────────────────────────────────── */
.copy-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--r); background: var(--input); border: 1px solid var(--border); min-width: 0; }
.copy-row .value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 13.5px; color: var(--text); }

/* ── App shell (admin + tenant dashboard) ─────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; width: 264px; flex: none; overflow-y: auto;
  padding: 20px 14px; border-right: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 70%, transparent);
  display: flex; flex-direction: column; gap: 18px;
}
[data-theme="aurora"] .sidebar { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--text); text-decoration: none !important; min-width: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--primary-ink); font: 700 16px/1 var(--font-display); overflow: hidden; }
[data-theme="aurora"] .brand-mark { background: linear-gradient(135deg, var(--primary), var(--accent-2)); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font: 700 17px/1.1 var(--font-display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font: 600 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; opacity: .8; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text-2); font: 500 14.5px/1 var(--font-body); text-decoration: none !important; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--primary); }
.nav a .badge { margin-left: auto; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.content { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.nav-toggle { display: none; }
.banner-imp { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 28px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 14px; }
@media (max-width: 980px) {
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s var(--ease); background: var(--bg-2); box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .nav-toggle { display: inline-flex; }
  .topbar, .content, .banner-imp { padding-left: 16px; padding-right: 16px; }
  .content { padding-top: 18px; }
}
.scrim { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); }

/* ── Public site header (platform + store) ────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; padding: 14px 0; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 16px; border-radius: var(--pill); background: color-mix(in oklab, var(--bg) 70%, transparent); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-links { display: flex; gap: 4px; align-items: center; }
.site-links a { padding: 10px 14px; border-radius: var(--pill); color: var(--text-2); font-weight: 500; font-size: 14.5px; text-decoration: none !important; }
.site-links a:hover, .site-links a.on { background: var(--surface-2); color: var(--text); }
@media (max-width: 860px) { .site-links.collapsible { display: none; } }
.announce { text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 600; background: var(--primary); color: var(--primary-ink); }

/* ── Landing page ─────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: clamp(36px, 6vw, 70px); line-height: 1.02; letter-spacing: -.045em; max-width: 960px; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; }
.net-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.section { padding: 56px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }
.section-head p { color: var(--text-2); max-width: 580px; }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature .ic-box { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.feature p { color: var(--text-2); font-size: 14.5px; }
.price-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.price-card .amount { font: 700 42px/1 var(--font-display); letter-spacing: -.03em; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li .ic { color: var(--primary-text); margin-top: 2px; }
.footer { padding: 30px 0 44px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.preview-card { width: 100%; max-width: 980px; padding: 22px; text-align: left; }

/* ── Store: buying ────────────────────────────────────────────────── */
.wallet-card { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.wallet-card .balance { font: 700 34px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.net-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.net-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 15px/1 var(--font-body); cursor: pointer; }
.net-tab.on { border-color: var(--primary-line); color: var(--text); background: var(--primary-soft); }
.net-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 10px/1 var(--font-body); letter-spacing: .02em; flex: none; }
.bundle-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bundle { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .12s var(--ease), background .15s; }
.bundle:hover { border-color: var(--border-strong); }
.bundle input { position: absolute; opacity: 0; pointer-events: none; }
.bundle .size { font: 700 26px/1 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.bundle .price { font: 600 15px/1 var(--font-mono); color: var(--primary-text); }
.bundle .validity { font-size: 12px; color: var(--muted); }
.bundle:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.bundle:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.buy-panel { position: sticky; top: 90px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.summary-line.total { font-size: 17px; font-weight: 700; color: var(--text); padding-top: 10px; border-top: 1px solid var(--border); }
.pay-option { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--border); cursor: pointer; background: var(--surface); }
.pay-option input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.pay-option:has(input:checked) { border-color: var(--primary-line); background: var(--primary-soft); }
.pay-option .meta { margin-left: auto; font-size: 12.5px; color: var(--muted); text-align: right; }
.code-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary-text); font: 700 18px/1 var(--font-mono); letter-spacing: .04em; }
.store-shell { min-height: 100vh; display: flex; flex-direction: column; }
.store-main { flex: 1 1 auto; padding: 18px 0 90px; }
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg) 88%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--r-sm); color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none !important; }
  .bottom-nav a.on { color: var(--primary-text); }
  .buy-panel { position: static; }
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.layout-buy { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 980px) { .layout-buy { grid-template-columns: 1fr; } }

/* ── Auth pages ───────────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 30px 16px 60px; }
.auth-card { width: 100%; max-width: 440px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-card .head { display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; }
.otp-input { letter-spacing: .5em; text-align: center; font-family: var(--font-mono) !important; font-size: 22px !important; }

/* ── Neutral pages ────────────────────────────────────────────────── */
.neutral { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #F6F7F9; color: #1F2937; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.neutral-box { max-width: 440px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.neutral-box .mark { width: 54px; height: 54px; border-radius: 16px; background: #E5E7EB; display: grid; place-items: center; color: #6B7280; }
.neutral-box h1 { font: 600 22px/1.3 system-ui, sans-serif; color: #111827; letter-spacing: 0; }
.neutral-box p { color: #4B5563; font-size: 16px; line-height: 1.6; }

/* ── Misc ─────────────────────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }
details.disclosure { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
details.disclosure > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details.disclosure[open] > summary::after { content: "–"; }
details.disclosure > .inner { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.toggle-theme { min-width: 40px; }
[data-theme="daylight"] .only-dark, [data-theme="aurora"] .only-light, [data-theme="midnight"] .only-light { display: none; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.chart-bars > div { flex: 1; border-radius: 6px 6px 0 0; background: var(--surface-3); min-height: 3px; position: relative; }
.chart-bars > div.hi { background: linear-gradient(var(--primary), color-mix(in oklab, var(--primary) 40%, transparent)); }
.chart-labels { display: flex; gap: 6px; font-size: 11px; color: var(--muted); }
.chart-labels span { flex: 1; text-align: center; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-strong); }
.theme-choice { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-choice label { cursor: pointer; border: 1px solid var(--border); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.theme-choice label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.theme-choice .prev { height: 54px; border-radius: 10px; }
@media (max-width: 560px) { .theme-choice { grid-template-columns: 1fr; } }
.tier-row { display: grid; grid-template-columns: 1fr 120px 1fr auto; gap: 8px; align-items: end; }
@media (max-width: 560px) { .tier-row { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.sep { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }
.site-nav > .row { flex-wrap: nowrap; flex: none; gap: 6px; }
.site-nav .brand { min-width: 0; flex: 1 1 auto; }
.site-nav .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .hide-sm { display: none !important; } .site-nav { padding-left: 10px; } }
@media (max-width: 400px) { .site-nav .btn-pill { padding-left: 12px; padding-right: 12px; } }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .layout-buy > * { min-width: 0; }
.pay-option .meta { max-width: 55%; overflow-wrap: anywhere; }
.wallet-card > * { min-width: 0; }
.split-32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.split-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split-32, .split-21 { grid-template-columns: 1fr; } }
.rule-row { grid-template-columns: 1.2fr 1fr 110px 1fr auto; } @media (max-width: 560px) { .rule-row { grid-template-columns: 1fr 1fr; } }
.legal { padding: 32px; gap: 12px; line-height: 1.7; }
.legal h2 { font-size: 19px; margin-top: 14px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.human-check { gap: 10px; display: flex; flex-direction: column; }
.human-check legend { display: inline-flex; gap: 6px; align-items: center; }
.hc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hc-option { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.hc-option input { accent-color: var(--primary); }
.hc-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s var(--ease), background .15s; }
.switch input:checked + span { background: var(--primary); border-color: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--primary-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.filter-bar { padding: 12px 14px; margin-bottom: 16px; gap: 8px; } .filter-bar .input { min-height: 40px; }
.sidebar-wallet { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 14px; padding: 14px; border-radius: var(--r); background: var(--primary-soft); border: 1px solid var(--primary-line); text-decoration: none !important; color: var(--text); }
.cust-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 28px 90px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .bottom-nav.five { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 761px) { .shell ~ .bottom-nav, .main ~ .bottom-nav { display: none; } }
/* ── Store landing ───────────────────────────────────────────────── */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 48px 0 40px; }
.lp-hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.lp-hero-copy h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.lp-hero-copy p { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--text-2); max-width: 560px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lp-price-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.lp-from { text-align: right; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.lp-section { padding: 48px 0 8px; }
.lp-features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lp-features h3 { font-size: 17px; }
.lp-steps { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-step { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.lp-num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font: 700 17px/1 var(--font-display); }
.lp-cta { margin: 48px 0 20px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { .lp-hero { grid-template-columns: 1fr; padding-top: 24px; } .lp-steps { grid-template-columns: 1fr; } }
/* ── Customer dashboard ──────────────────────────────────────────── */
.dash-hero { padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-balance { font: 700 clamp(32px, 4vw, 44px)/1 var(--font-display); letter-spacing: -.03em; }
.dash-balance small { font-size: .45em; color: var(--muted); margin-right: 4px; }
.dash-actions { display: grid; grid-template-columns: repeat(4, minmax(84px, 1fr)); gap: 10px; }
.dash-action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; text-decoration: none !important; font-size: 13px; font-weight: 600; text-align: center; }
.dash-action:hover { border-color: var(--primary-line); }
.dash-action .ic-box { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--text) !important; text-decoration: none !important; }
a.list-row:hover { background: var(--surface-2); }
@media (max-width: 760px) { .dash-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; } .dash-action { font-size: 11.5px; padding: 10px 4px; } }
@media (max-width: 680px) {
  .tx-table thead { display: none; }
  .tx-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
  .tx-table td { border: 0 !important; padding: 0 !important; }
  .tx-table td[data-label="Reference"], .tx-table td[data-label="Before"] { display: none; }
  .tx-table td[data-label="Date"] { grid-column: 1 / -1; order: -1; color: var(--muted); }
}
.api-docs h3 { font-size: 15px; margin-top: 6px; }
.api-docs pre, pre.code { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font: 500 12.5px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-all; color: var(--text); }

/* ── v3: analytics, network logos, manual orders ── */
.chart-duo { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 12px 0 6px; }
.chart-duo .col { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; min-width: 0; }
.chart-duo .bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.chart-duo .bar.rev { background: var(--surface-3); }
.chart-duo .bar.pro { background: linear-gradient(var(--primary), color-mix(in oklab, var(--primary) 45%, transparent)); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-3); display: inline-block; }
.legend-dot.legend-profit { background: var(--primary); }
.net-logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); border: 1px solid var(--border); }
.net-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.net-logo-text { font-weight: 800; letter-spacing: -.02em; border: 0; line-height: 1; }

/* ── v3: buy & bulk pages ── */
.buy2 { padding: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step + .step { padding-top: 22px; border-top: 1px solid var(--border); }
.step-head { display: flex; gap: 12px; align-items: flex-start; }
.step-head h2 { font-size: 17px; margin: 0; }
.step-head p { margin: 2px 0 0; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary-text); font: 700 13px/1 var(--font-body); border: 1px solid var(--primary-line); }
.net-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.net-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .12s var(--ease); }
.net-tile:hover { border-color: var(--border-strong); }
.net-tile input { position: absolute; opacity: 0; pointer-events: none; }
.net-tile:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.net-tile:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.net-tile-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.dd { position: relative; }
.dd-toggle { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--input, var(--surface)); color: var(--text); font: 500 15px/1.2 var(--font-body); cursor: pointer; text-align: left; }
.dd.open .dd-toggle { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dd-toggle svg { transition: transform .15s; flex: none; }
.dd.open .dd-toggle svg { transform: rotate(180deg); }
.dd-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--surface-solid, var(--bg)); box-shadow: var(--shadow); overflow: hidden; }
.dd-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.dd-search input { flex: 1; border: 0; background: none; color: var(--text); font: 500 16px/1.2 var(--font-body); outline: none; min-height: 34px; }
.dd-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.dd-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: 500 14.5px/1.3 var(--font-body); cursor: pointer; text-align: left; }
.dd-opt:hover, .dd-opt:focus-visible { background: var(--surface-2); outline: none; }
.dd-opt.on { background: var(--primary-soft); }
.dd-price { color: var(--primary-text); font-weight: 600; white-space: nowrap; }
.dd-empty { padding: 14px; text-align: center; }
.input-lg { min-height: 52px; font-size: 17px !important; letter-spacing: .02em; }
.pay-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.price-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.price-box-amount { font: 700 26px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.wallet-mini { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.tips ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tips h3 { font-size: 15px; margin: 0; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; padding: 24px; border-radius: var(--r-lg); border: 2px dashed var(--border-strong); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.drag, .dropzone:hover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--ok, var(--primary)); }
.dz-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--primary-text); border: 1px solid var(--border); }
.avail .avail-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.avail .avail-row:last-child { border-bottom: 0; }
.avail { max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 600px) {
  .buy2 { padding: 18px 16px; }
  .net-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd-list { max-height: 55vh; }
}

/* ── v3: shop owner page ── */
.share-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: linear-gradient(135deg, var(--primary-soft), transparent 60%), var(--surface); }
.share-main { display: flex; gap: 14px; align-items: center; }
.share-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); flex: none; }
.share-link .value { font-size: 15px; }
.share-actions { flex-wrap: wrap; gap: 8px; }
.markup-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); }
.shop-price-list { display: flex; flex-direction: column; }
.sp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 140px 120px; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.sp-row:last-child { border-bottom: 0; }
.sp-row.off .sp-name, .sp-row.off .sp-input, .sp-row.off .sp-profit { opacity: .45; }
.sp-row.bad .sp-input { border-color: var(--bad); }
.sp-row.bad [data-sp-profit] { color: var(--bad); }
.sp-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-input { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--input, var(--surface)); min-height: 42px; }
.sp-input input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 600 15px/1 var(--font-mono); outline: none; }
.sp-input:focus-within { border-color: var(--primary); }
.sp-profit { display: flex; flex-direction: column; gap: 2px; }
.sp-profit [data-sp-profit] { color: var(--ok, var(--primary-text)); }
.sp-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
@media (max-width: 600px) {
  .sp-row { grid-template-columns: auto minmax(0, 1fr) 110px; }
  .sp-profit { grid-column: 2 / 4; flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── v3: custom domain steps ── */
.dns-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.dns-steps > li { display: flex; gap: 12px; align-items: flex-start; }
.dns-steps > li > div { flex: 1; min-width: 0; }
.dns-steps p { margin: 2px 0 0; }
.dns-n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-line); font: 700 12px/1 var(--font-body); }
.dns-option { margin-top: 10px; padding: 12px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.dns-table th, .dns-table td { padding: 8px 10px; }
.dev-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dev-credit a:hover { color: var(--primary-text); }
.dash-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.track-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; }
.track-form .field { margin: 0; flex: 1 1 180px; }
.track-form .btn { min-height: 48px; }
.track-or { align-self: center; padding-top: 22px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .track-or { padding-top: 0; width: 100%; text-align: center; } .track-form .btn { width: 100%; } }
.cron-box { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.cron-box code { flex: 1; min-width: 0; font: 500 13px/1.6 var(--font-mono); color: var(--text); white-space: pre-wrap; word-break: break-all; user-select: all; }
.cron-box .btn { flex: none; }
.track-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.track-card .track-form { padding: 0; }
.log-clear { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }

/* ── v4: withdrawal verify + confirm ── */
.wd-step { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wd-step .step-num { width: 22px; height: 22px; font-size: 11px; }
.wd-name { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.wd-name strong { font-size: 16px; color: var(--ok, var(--text)); }
.wd-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); }
.wd-dialog { border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface-solid, var(--bg)); color: var(--text); padding: 22px; width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.wd-dialog::backdrop { background: rgba(5, 8, 15, .65); backdrop-filter: blur(3px); }
.wd-dialog h3 { margin: 0 0 14px; }
.wd-confirm { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin-bottom: 12px; }
.wd-confirm span { color: var(--muted); }
.wd-confirm strong { text-align: right; word-break: break-word; }

/* Export page */
.export-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.export-tile { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); min-width: 0; }
.export-tile .export-cols { padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); line-height: 1.5; }
.export-tile form { margin-top: auto; }
.export-tile > button { margin-top: auto; }
.export-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.export-tile-head > div { min-width: 0; }
.export-tile-head > .net-logo { flex-shrink: 0; }
.export-actions { flex-wrap: nowrap; justify-content: flex-end; }
.export-net { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-compact td, .table-compact th { padding-top: 10px; padding-bottom: 10px; }
.edit-row > td { background: var(--surface-2); }
.back-btn { gap: 6px; }

.topbar > .grow { min-width: 0; overflow: hidden; }
.topbar > .grow .pill { white-space: nowrap; }

/* Orders: action menu, popup, timeline */
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-solid, var(--bg)); box-shadow: var(--shadow); }
.menu-panel button { text-align: left; background: none; border: 0; color: var(--text); padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.menu-panel button:hover, .menu-panel button:focus-visible { background: var(--surface-2); }
.menu-panel { min-width: 250px; text-align: left; white-space: normal; }
.menu-panel .warn-text { color: var(--warn); }
.menu-label { padding: 6px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, var(--text-2)); }
.menu-note { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px 4px; margin-top: 4px; border-top: 1px solid var(--border); white-space: normal; }
.menu-note textarea { min-height: 56px; font-size: 14px; resize: vertical; }
.menu-panel .menu-save { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nr-flag { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--warn); white-space: nowrap; }
.tenant-note { margin-top: 4px; max-width: 240px; padding: 3px 7px; border-radius: 6px; background: var(--warn-soft); color: var(--text); white-space: normal; line-height: 1.35; }
.tenant-note svg { vertical-align: -2px; color: var(--warn); }
.note-box { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent); }
.timeline .tl-note::before { background: var(--warn, #f59e0b); }
.ov-dialog { border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface-solid, var(--bg)); color: var(--text); padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow); }
.ov-dialog::backdrop { background: rgba(5, 8, 15, .65); backdrop-filter: blur(3px); }
.ov-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: inherit; z-index: 1; }
.ov-body { padding: 16px 18px 20px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 3px var(--bg); }
.timeline .tl-delivered::before { background: var(--ok, #22c55e); }
.timeline .tl-failed::before, .timeline .tl-cancelled::before { background: var(--bad, #ef4444); }
.timeline .tl-refunded::before, .timeline .tl-needs_review::before { background: var(--warn, #f59e0b); }
.timeline .tl-api::before { background: var(--text-muted, #888); }
.api-entry { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.api-raw { margin: 8px 0 0; max-height: 260px; overflow: auto; padding: 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }


/* AFA settings: show / required table */
.afa-fields { width: 100%; border-collapse: collapse; }
.afa-fields th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 4px 6px 8px; }
.afa-fields th:not(:first-child), .afa-fields td:not(:first-child) { text-align: center; width: 72px; }
.afa-fields td { padding: 8px 6px; border-top: 1px solid var(--border); vertical-align: middle; }
.afa-fields input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }

/* Admin › Registration codes */
.regcode-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .regcode-grid { grid-template-columns: 1fr; } }
.regcode-input { text-transform: uppercase; }
.regcode-input::placeholder { text-transform: none; }

/* Security PIN */
.pin-input { letter-spacing: .6em; }
.pin-admin { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }

/* Links › own domain: what the domain is for */
.purpose-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.purpose-pick .check { margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); align-items: flex-start; }
.purpose-pick .check:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent); }
.dns-table .txt-val { word-break: break-all; }

/* ── News ticker (announcements): moves right → left in an endless loop ── */
.news-ticker { display: flex; align-items: center; height: 36px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--info-soft); color: var(--text); position: relative; }
.ticker-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--info); background: var(--surface-solid); border-right: 1px solid var(--border); z-index: 1; }
.ticker-viewport { flex: 1 1 auto; overflow: hidden; height: 100%; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
/* Text is shown twice side by side and slides left by one copy, so the bar is never empty and never jumps. */
.ticker-tape { display: flex; flex-shrink: 0; white-space: nowrap; animation: newsTicker 30s linear infinite; transform: translate3d(0, 0, 0); will-change: transform; }
.ticker-tape.js-run { animation: none; }
.ticker-text { display: inline-block; flex-shrink: 0; font-size: 13px; line-height: 1; padding-right: 0; }
.ticker-text strong { font-weight: 700; color: var(--info); }
.ticker-sep { display: inline-block; margin: 0 28px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .news-ticker:hover .ticker-tape { animation-play-state: paused; } }
@keyframes newsTicker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ═════════════════════ Shop storefront (5 designs) ═════════════════════
   One markup (store/shop.php); each .shopx-tpl-* sets its own colours, fonts, sizes and layout. */
.shopx-body { margin: 0; }
.shopx {
  --sx-head: var(--font-display); --sx-body: var(--font-body); --sx-radius: var(--r-lg); --sx-card-radius: var(--r-lg);
  --sx-max: 1120px; --sx-accent: var(--primary); --sx-accent-ink: var(--primary-ink);
  min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--sx-body);
}
.shopx-frame { max-width: var(--sx-max); margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.shopx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shopx-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.shopx-logo { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--sx-accent); color: var(--sx-accent-ink); font: 800 20px/1 var(--sx-head); }
.shopx-logo.sm { width: 36px; height: 36px; font-size: 15px; border-radius: 50%; }
.shopx-logo img { width: 100%; height: 100%; object-fit: cover; }
.shopx-titles { display: flex; flex-direction: column; min-width: 0; }
.shopx-name { font: 800 22px/1.15 var(--sx-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.shopx-tagline { font-size: 14px; color: var(--text-2); }
.shopx-head-actions { display: flex; align-items: center; gap: 8px; }
.shopx-wa-pill { display: none; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 16px; background: #25D366; color: #06210f; font: 700 14px/1 var(--sx-body); cursor: pointer; }
.shopx-ticker { border: 1px solid var(--border); border-radius: var(--sx-radius); overflow: hidden; }
.shopx-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.shopx-tabs::-webkit-scrollbar { display: none; }
.shopx-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 14.5px/1 var(--sx-body); cursor: pointer; white-space: nowrap; }
.shopx-tab[aria-selected="true"] { background: var(--sx-accent); color: var(--sx-accent-ink); }
.shopx-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.shopx-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.shopx-pane[hidden] { display: none; }
/* Network row: slides right → left like a ticker when it doesn't fit (script); swipeable otherwise. */
.shopx-nets { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.shopx-nets.static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
.shopx-nets-track { display: flex; gap: 10px; width: max-content; padding: 2px 4px; will-change: transform; }
.shopx-net { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 14.5px/1 var(--sx-body); cursor: pointer; white-space: nowrap; }
.shopx-net.on { border-color: var(--sx-accent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--sx-accent) 35%, transparent); }
.shopx-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.shopx-cards[hidden] { display: none; }
.shopx-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--sx-card-radius); border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.shopx-card-top { display: grid; place-items: center; aspect-ratio: 2 / 1; background: color-mix(in oklab, var(--net) 22%, transparent); }
.shopx-card-top .net-logo { box-shadow: 0 6px 18px rgba(0,0,0,.18); border-radius: 50%; }
.shopx-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
.shopx-size { font: 800 20px/1.1 var(--sx-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.shopx-validity { font-size: 12.5px; color: var(--muted); }
.shopx-price { font: 700 16px/1.2 var(--sx-body); color: var(--sx-accent); margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.shopx-buy, .shopx-cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--sx-accent); color: var(--sx-accent-ink); font: 700 14px/1 var(--sx-body); cursor: pointer; text-decoration: none; }
.shopx-cta { min-height: 50px; font-size: 16px; width: 100%; }
.shopx-buy:disabled { opacity: .5; cursor: not-allowed; }
.shopx-panel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--sx-radius); padding: 18px; }
.shopx-flush { padding: 0; overflow: hidden; }
.shopx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shopx-panel-head h2 { margin: 0; font: 800 20px/1.2 var(--sx-head); }
.shopx-price-tag { padding: 6px 12px; border-radius: 999px; background: color-mix(in oklab, var(--sx-accent) 16%, transparent); color: var(--sx-accent); font-weight: 800; }
.shopx-form { display: flex; flex-direction: column; gap: 14px; }
.shopx-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shopx-fields[hidden], .shopx-form .field.hidden, .shopx-fields.hidden { display: none; }
.shopx-muted { color: var(--text-2); margin: 0; }
.shopx-label { font: 600 13px/1.2 var(--sx-body); color: var(--text-2); }
.shopx-pay { display: flex; flex-direction: column; gap: 8px; }
.shopx-pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); cursor: pointer; }
.shopx-pay-opt span:first-of-type { flex: 1; font-weight: 600; }
.shopx-pay-opt:has(input:checked) { border-color: var(--sx-accent); background: color-mix(in oklab, var(--sx-accent) 9%, transparent); }
.shopx-empty { display: grid; place-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--sx-radius); }
.shopx-note { margin: 0; }
.shopx-afa-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shopx-foot { text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 10px; }
/* Buy popup */
.shopx-dialog { border: 1px solid var(--border-strong); border-radius: var(--sx-radius); background: var(--surface-solid); color: var(--text); padding: 18px; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow); font-family: var(--sx-body); }
.shopx-dialog::backdrop { background: rgba(5, 8, 15, .6); backdrop-filter: blur(3px); }
.shopx-dialog-head { display: flex; align-items: center; gap: 12px; }
.shopx-dialog-head h3 { margin: 0; font: 800 20px/1.2 var(--sx-head); }
.shopx-dialog-head > div { flex: 1; min-width: 0; }
.shopx-x { border: 0; background: var(--surface-2); color: var(--text); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.shopx-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.shopx-sum[hidden] { display: none; }
.shopx-total { padding-top: 10px; border-top: 1px solid var(--border); color: var(--text); font-size: 17px; }
/* WhatsApp */
.shopx-wa-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); cursor: pointer; }
.shopx-wa-drawer { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 61; width: min(340px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: #ECE5DD; color: #111; box-shadow: 0 24px 60px rgba(0,0,0,.35); font-family: var(--sx-body); animation: waIn .2s var(--ease); }
.shopx-wa-drawer[hidden] { display: none; }
@keyframes waIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.shopx-wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075E54; color: #fff; }
.shopx-wa-head > div { flex: 1; }
.shopx-wa-head .shopx-x { background: rgba(255,255,255,.15); color: #fff; }
.shopx-wa-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.shopx-wa-bubble { align-self: flex-start; max-width: 85%; padding: 9px 12px; border-radius: 0 12px 12px 12px; background: #fff; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.shopx-wa-body textarea { width: 100%; min-height: 84px; border: 1px solid #cfc6bb; border-radius: 12px; padding: 10px 12px; font: 400 15px/1.4 var(--sx-body); background: #fff; color: #111; resize: vertical; }
.shopx-wa-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; background: #25D366; color: #06210f; font-weight: 800; text-decoration: none; }

/* Phones: three bundle cards per row */
@media (max-width: 640px) {
  .shopx-frame { padding: 12px 12px 32px; gap: 12px; }
  .shopx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .shopx-card-body { padding: 8px 7px 9px; gap: 2px; }
  .shopx-card-top .net-logo { width: 34px !important; height: 34px !important; }
  .shopx-size { font-size: 15px; }
  .shopx-validity { font-size: 10.5px; }
  .shopx-price { font-size: 13px; margin-bottom: 6px; }
  .shopx-buy { min-height: 32px; font-size: 12px; padding: 0 6px; border-radius: 9px; }
  .shopx-tab { padding: 0 12px; font-size: 13.5px; }
  .shopx-name { font-size: 19px; }
}

/* ── 1. Aurora: the store's own theme (light / dark), glass cards, pill tabs ── */
.shopx-tpl-aurora { --sx-head: "Sora", var(--font-display); --sx-body: "IBM Plex Sans", var(--font-body); }
.shopx-tpl-aurora .shopx-card { backdrop-filter: blur(8px); }

/* ── 2. Clean: bright, centred header with the logo on top, underlined tabs ── */
.shopx-tpl-clean {
  --bg: #F7F8FA; --surface: #FFFFFF; --surface-solid: #FFFFFF; --surface-2: #F1F3F6; --border: #E6E8EC; --border-strong: #D5D9E0;
  --text: #111827; --text-2: #4B5563; --muted: #6B7280; --input: #FFFFFF; --shadow: 0 20px 50px rgba(17,24,39,.14);
  --sx-accent: #2563EB; --sx-accent-ink: #FFFFFF; --primary: #2563EB; --primary-ink: #fff; --primary-soft: #DBEAFE; --primary-line: #93C5FD;
  --sx-head: "DM Sans", system-ui, sans-serif; --sx-body: "DM Sans", system-ui, sans-serif; --sx-radius: 12px; --sx-card-radius: 12px; --sx-max: 980px;
  color-scheme: light;
}
.shopx-tpl-clean .shopx-head { flex-direction: column; text-align: center; padding: 18px 0 6px; }
.shopx-tpl-clean .shopx-brand { flex-direction: column; gap: 10px; }
.shopx-tpl-clean .shopx-logo { width: 72px; height: 72px; border-radius: 50%; font-size: 28px; }
.shopx-tpl-clean .shopx-name { font-size: 28px; font-weight: 700; }
.shopx-tpl-clean .shopx-tabs { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 0; width: 100%; justify-content: center; gap: 0; }
.shopx-tpl-clean .shopx-tab { border-radius: 0; min-height: 48px; border-bottom: 2px solid transparent; }
.shopx-tpl-clean .shopx-tab[aria-selected="true"] { background: transparent; color: var(--sx-accent); border-bottom-color: var(--sx-accent); }
.shopx-tpl-clean .shopx-nets-track { gap: 6px; }
.shopx-tpl-clean .shopx-net { border-radius: 8px; min-height: 40px; }
.shopx-tpl-clean .shopx-card-top { background: #F3F4F6; aspect-ratio: 5 / 2; }
.shopx-tpl-clean .shopx-size { font-weight: 700; }
.shopx-tpl-clean .shopx-buy { background: transparent; color: var(--sx-accent); border: 1.5px solid var(--sx-accent); }
.shopx-tpl-clean .shopx-price { color: #111827; }

/* ── 3. Bold: big colour blocks, chunky type, tab bar fixed at the bottom ── */
.shopx-tpl-bold {
  --bg: #14111F; --surface: #1E1A2E; --surface-solid: #1E1A2E; --surface-2: #2A2540; --border: #2F2946; --border-strong: #433B63;
  --text: #FFFFFF; --text-2: #CFC9E6; --muted: #9A93B8; --input: #110E1B; --shadow: 0 24px 60px rgba(0,0,0,.5);
  --sx-accent: #FFD43B; --sx-accent-ink: #14111F; --primary: #FFD43B; --primary-ink: #14111F; --primary-soft: rgba(255,212,59,.18); --primary-line: rgba(255,212,59,.6);
  --sx-head: "Archivo Black", "Archivo", sans-serif; --sx-body: "Archivo", system-ui, sans-serif; --sx-radius: 18px; --sx-card-radius: 16px;
  color-scheme: dark;
}
.shopx-tpl-bold .shopx-frame { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.shopx-tpl-bold .shopx-head { background: #FF5A36; color: #14111F; border-radius: 22px; padding: 22px 18px; align-items: flex-end; }
.shopx-tpl-bold .shopx-logo { width: 64px; height: 64px; border-radius: 16px; background: #14111F; color: #FFD43B; font-size: 28px; }
.shopx-tpl-bold .shopx-name { font-size: clamp(26px, 6vw, 44px); text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.shopx-tpl-bold .shopx-tagline { color: #2a1206; font-weight: 600; }
.shopx-tpl-bold .shopx-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; width: 100%; max-width: none; border-radius: 0; border: 0; border-top: 1px solid var(--border); background: #0E0B17; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
.shopx-tpl-bold .shopx-tab { flex: 1; flex-direction: column; gap: 4px; min-height: 58px; border-radius: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.shopx-tpl-bold .shopx-net { border-radius: 12px; text-transform: uppercase; font-weight: 800; }
.shopx-tpl-bold .shopx-card { border: 0; }
.shopx-tpl-bold .shopx-card-top { background: var(--net); aspect-ratio: 1 / 1; }
.shopx-tpl-bold .shopx-size { font-size: 24px; text-transform: uppercase; }
.shopx-tpl-bold .shopx-price { color: #FFD43B; font-size: 18px; font-weight: 800; }
.shopx-tpl-bold .shopx-buy { text-transform: uppercase; letter-spacing: .03em; }
.shopx-tpl-bold .shopx-wa-fab { bottom: calc(90px + env(safe-area-inset-bottom)); }
.shopx-tpl-bold .shopx-wa-drawer { bottom: calc(160px + env(safe-area-inset-bottom)); }
.shopx-tpl-bold .shopx-foot { padding-bottom: 10px; }
@media (max-width: 640px) { .shopx-tpl-bold .shopx-size { font-size: 16px; } .shopx-tpl-bold .shopx-price { font-size: 14px; } }

/* ── 4. Market: warm, rounded, banner header with logo + WhatsApp button, chip tabs ── */
.shopx-tpl-market {
  --bg: #FFF7ED; --surface: #FFFFFF; --surface-solid: #FFFFFF; --surface-2: #FFEDD5; --border: #F3DCC2; --border-strong: #E9C9A6;
  --text: #3B1F0E; --text-2: #6B4A33; --muted: #8C6A52; --input: #FFFFFF; --shadow: 0 20px 50px rgba(124,45,18,.18);
  --sx-accent: #C2410C; --sx-accent-ink: #FFFFFF; --primary: #C2410C; --primary-ink: #fff; --primary-soft: #FFEDD5; --primary-line: #FDBA74;
  --sx-head: "Nunito", system-ui, sans-serif; --sx-body: "Nunito", system-ui, sans-serif; --sx-radius: 24px; --sx-card-radius: 22px;
  color-scheme: light;
}
.shopx-tpl-market .shopx-head { background: linear-gradient(135deg, #C2410C, #EA580C 55%, #F59E0B); color: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 16px 40px rgba(194,65,12,.3); flex-wrap: wrap; }
.shopx-tpl-market .shopx-logo { width: 70px; height: 70px; border-radius: 22px; background: #fff; color: #C2410C; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.shopx-tpl-market .shopx-name { font-weight: 900; font-size: 26px; }
.shopx-tpl-market .shopx-tagline { color: #FFEDD5; }
.shopx-tpl-market .shopx-wa-pill { display: inline-flex; background: #fff; color: #15803D; }
.shopx-tpl-market .shopx-tabs { background: transparent; border: 0; padding: 0; gap: 8px; }
.shopx-tpl-market .shopx-tab { border: 1.5px solid var(--border-strong); background: #fff; color: var(--text-2); font-weight: 800; }
.shopx-tpl-market .shopx-tab[aria-selected="true"] { background: #3B1F0E; color: #FFF7ED; border-color: #3B1F0E; }
.shopx-tpl-market .shopx-card { box-shadow: 0 8px 22px rgba(124,45,18,.08); border-color: transparent; text-align: center; }
.shopx-tpl-market .shopx-card-top { background: transparent; aspect-ratio: auto; padding-top: 16px; }
.shopx-tpl-market .shopx-card-top .net-logo { width: 56px !important; height: 56px !important; }
.shopx-tpl-market .shopx-size { font-weight: 900; }
.shopx-tpl-market .shopx-price { align-self: center; padding: 3px 10px; border-radius: 999px; background: #DCFCE7; color: #15803D; }
.shopx-tpl-market .shopx-buy { border-radius: 999px; background: #3B1F0E; color: #FFF7ED; }
.shopx-tpl-market .shopx-net { background: #fff; font-weight: 800; }
@media (max-width: 640px) { .shopx-tpl-market .shopx-card-top { padding-top: 10px; } .shopx-tpl-market .shopx-card-top .net-logo { width: 36px !important; height: 36px !important; } .shopx-tpl-market .shopx-head { padding: 16px; } .shopx-tpl-market .shopx-logo { width: 54px; height: 54px; } }

/* ── 5. Midnight: black, monospace, sharp edges; tabs in a side column on computers ── */
.shopx-tpl-mono {
  --bg: #000000; --surface: #0B0B0B; --surface-solid: #0E0E0E; --surface-2: #161616; --border: #232323; --border-strong: #333333;
  --text: #EDEDED; --text-2: #A3A3A3; --muted: #7A7A7A; --input: #050505; --shadow: 0 24px 60px rgba(0,0,0,.7);
  --sx-accent: #00E599; --sx-accent-ink: #001A10; --primary: #00E599; --primary-ink: #001A10; --primary-soft: rgba(0,229,153,.14); --primary-line: rgba(0,229,153,.55);
  --sx-head: "Space Grotesk", system-ui, sans-serif; --sx-body: "Space Mono", ui-monospace, monospace; --sx-radius: 0px; --sx-card-radius: 0px;
  color-scheme: dark; font-size: 14px;
}
.shopx-tpl-mono .shopx-logo { border-radius: 0; border: 1px solid var(--sx-accent); background: transparent; color: var(--sx-accent); }
.shopx-tpl-mono .shopx-name { font-weight: 700; text-transform: lowercase; }
.shopx-tpl-mono .shopx-name::before { content: "> "; color: var(--sx-accent); }
.shopx-tpl-mono .shopx-tagline { font-size: 12px; }
.shopx-tpl-mono .shopx-tabs { border-radius: 0; background: transparent; padding: 0; gap: 0; border: 1px solid var(--border); }
.shopx-tpl-mono .shopx-tab { border-radius: 0; font-size: 13px; text-transform: uppercase; border-right: 1px solid var(--border); }
.shopx-tpl-mono .shopx-tab[aria-selected="true"] { background: var(--sx-accent); color: var(--sx-accent-ink); }
.shopx-tpl-mono .shopx-net { border-radius: 0; font-size: 13px; }
.shopx-tpl-mono .shopx-net.on { box-shadow: none; background: var(--primary-soft); }
.shopx-tpl-mono .shopx-card-top { background: transparent; aspect-ratio: auto; justify-items: start; padding: 12px 12px 0; }
.shopx-tpl-mono .shopx-card-top .net-logo { border-radius: 0; box-shadow: none; }
.shopx-tpl-mono .shopx-size { font-size: 26px; font-weight: 700; }
.shopx-tpl-mono .shopx-price { color: var(--sx-accent); }
.shopx-tpl-mono .shopx-buy, .shopx-tpl-mono .shopx-cta { border-radius: 0; background: transparent; color: var(--sx-accent); border: 1px solid var(--sx-accent); text-transform: uppercase; letter-spacing: .06em; }
.shopx-tpl-mono .shopx-buy:hover, .shopx-tpl-mono .shopx-cta:hover { background: var(--sx-accent); color: var(--sx-accent-ink); }
.shopx-tpl-mono .shopx-dialog, .shopx-tpl-mono .field input, .shopx-tpl-mono .field select { border-radius: 0 !important; }
@media (min-width: 900px) {
  .shopx-tpl-mono .shopx-frame { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "head ticker" "tabs main" "tabs foot"; align-items: start; column-gap: 24px; }
  .shopx-tpl-mono .shopx-head { grid-area: head; flex-direction: column; align-items: flex-start; }
  .shopx-tpl-mono .shopx-ticker { grid-area: ticker; }
  .shopx-tpl-mono .shopx-tabs { grid-area: tabs; flex-direction: column; width: 100%; position: sticky; top: 16px; }
  .shopx-tpl-mono .shopx-tab { border-right: 0; border-bottom: 1px solid var(--border); justify-content: flex-start; min-height: 52px; }
  .shopx-tpl-mono .shopx-main { grid-area: main; }
  .shopx-tpl-mono .shopx-foot { grid-area: foot; text-align: left; }
  .shopx-tpl-mono .shopx-head-actions { display: none; }
}
@media (max-width: 640px) { .shopx-tpl-mono .shopx-size { font-size: 16px; } }

/* Shop design picker (My shop): small previews hint at each layout */
.design-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.design-opt { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--r); border: 1px solid var(--border); cursor: pointer; }
.design-opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.design-opt input { position: absolute; opacity: 0; pointer-events: none; }
.design-name { font-weight: 700; }
.design-desc { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.design-prev { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 22px 1fr 10px; gap: 5px; height: 96px; padding: 7px; border-radius: 10px; background: var(--a); border: 1px solid rgba(127,127,127,.25); overflow: hidden; }
.design-prev i { grid-column: 1 / -1; border-radius: 6px; background: color-mix(in oklab, var(--b) 85%, transparent); }
.design-prev b { border-radius: 5px; background: color-mix(in oklab, var(--c) 70%, var(--a)); }
.design-prev em { grid-column: 1 / -1; border-radius: 4px; background: color-mix(in oklab, var(--b) 40%, var(--a)); }
.design-prev-clean i { justify-self: center; width: 22px; border-radius: 50%; }
.design-prev-clean b { background: #fff; border: 1px solid #e5e7eb; }
.design-prev-bold { grid-template-rows: 26px 1fr 12px; }
.design-prev-bold i { background: #FF5A36; }
.design-prev-bold b { background: var(--c); border-radius: 4px; }
.design-prev-bold em { background: #000; }
.design-prev-market i { background: linear-gradient(135deg, #C2410C, #F59E0B); border-radius: 10px; }
.design-prev-market b { background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(124,45,18,.15); }
.design-prev-mono { grid-template-columns: 26px repeat(3, 1fr); border-radius: 0; }
.design-prev-mono i { grid-column: 1; grid-row: 1 / -1; border-radius: 0; background: #111; border: 1px solid var(--b); }
.design-prev-mono b { border-radius: 0; background: transparent; border: 1px solid #333; }
.design-prev-mono em { grid-column: 2 / -1; border-radius: 0; background: var(--b); }
@media (max-width: 640px) {
  .shopx-tabs { width: 100%; }
  .shopx-tab { flex: 1; justify-content: center; }
  .shopx-tab-more { display: none; }
  .shopx-tpl-bold .shopx-tab-more { display: inline; }
  .shopx-card-top .net-logo-text { font-size: 11px !important; }
}
.shopx-tpl-clean .shopx-tab { flex: 1; justify-content: center; }
.shopx-tpl-mono .shopx-wa-fab { border-radius: 0; background: #000; color: #00E599; border: 1px solid #00E599; box-shadow: none; }
.shopx-tpl-mono .shopx-wa-drawer { border-radius: 0; }
@media (min-width: 900px) {
  .shopx-tpl-bold .shopx-tabs { left: 50%; right: auto; transform: translateX(-50%); bottom: 16px; width: min(620px, calc(100% - 32px)); border: 1px solid var(--border-strong); border-radius: 22px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
}
