/* Vollzette Billing — design system (dark, matches vollzette.com) */
:root {
  --bg: #07070b;
  --bg-2: #0b0b12;
  --surface: #0e0e16;
  --surface-2: #13131d;
  --surface-3: #191925;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #e8ecf3;
  --text-2: #b4bccb;
  --muted: #7d879a;
  --primary: #e2e8f0;
  --primary-ink: #0b0b12;
  --accent: #818cf8;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #818cf8, #22d3ee);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(129, 140, 248, .10), transparent 60%),
    radial-gradient(700px 380px at 95% 0%, rgba(34, 211, 238, .07), transparent 60%);
}
a { color: #a5b4fc; text-decoration: none; }
a:hover { color: #c7d2fe; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.i { flex: none; display: inline-block; vertical-align: -3px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.inline { display: inline; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(129, 140, 248, .35); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: 60px;
  display: flex; align-items: center; gap: 18px; padding: 0 22px;
  background: rgba(7, 7, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand .tag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); padding: 1px 7px; border-radius: 99px; letter-spacing: 0; }
.topnav { display: flex; gap: 4px; margin-left: 6px; }
.topnav a { color: var(--text-2); padding: 7px 11px; border-radius: 8px; font-weight: 500; }
.topnav a:hover, .topnav a.on { color: #fff; background: rgba(255, 255, 255, .05); }
.topbar .spacer { flex: 1; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); padding: 7px 10px; border-radius: 8px; }
.cart-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.cart-count { background: var(--grad); color: #0b0b12; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 6px; min-width: 18px; text-align: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); color: #fff; font-weight: 600; font-size: 13px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 6px; cursor: pointer; }
.announce-bar { background: linear-gradient(90deg, rgba(129, 140, 248, .18), rgba(34, 211, 238, .14)); border-bottom: 1px solid var(--line); text-align: center; padding: 8px 16px; font-size: 13px; color: #e0e7ff; }
.impersonating { background: rgba(251, 191, 36, .12); border-bottom: 1px solid rgba(251, 191, 36, .3); color: #fde68a; padding: 8px 16px; font-size: 13px; display: flex; gap: 12px; justify-content: center; align-items: center; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.sidebar { border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar .group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; font-weight: 600; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.sidebar a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.sidebar a.on { background: rgba(129, 140, 248, .12); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.sidebar .count { margin-left: auto; font-size: 11px; background: var(--surface-3); color: var(--text-2); border-radius: 99px; padding: 0 7px; }
.sidebar .count.hot { background: rgba(248, 113, 113, .18); color: #fecaca; }
.main { padding: 28px 32px 60px; max-width: 1240px; width: 100%; }
.main.narrow { max-width: 880px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 15px; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .01); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stat { padding: 18px 20px; }
.stat .label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat .value { font-size: 26px; font-weight: 700; color: #fff; margin-top: 6px; letter-spacing: -.02em; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; color: var(--text); word-break: break-word; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table .title { color: #fff; font-weight: 550; }
.table a.rowlink { color: #fff; font-weight: 550; }
.table a.rowlink:hover { color: #c7d2fe; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { color: var(--green); background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .25); }
.badge-amber { color: var(--amber); background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .25); }
.badge-red { color: var(--red); background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .25); }
.badge-blue { color: var(--blue); background: rgba(96, 165, 250, .08); border-color: rgba(96, 165, 250, .25); }
.badge-gray { color: #94a3b8; background: rgba(148, 163, 184, .08); border-color: rgba(148, 163, 184, .22); }
.pill { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 13.5px var(--font); cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, .2); color: #fff; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { background: #fff; color: var(--primary-ink); border-color: #fff; box-shadow: 0 6px 24px rgba(226, 232, 240, .18); }
.btn-accent { background: var(--grad); color: #0b0b12; border: 0; }
.btn-accent:hover { filter: brightness(1.08); color: #0b0b12; }
.btn-danger { background: rgba(248, 113, 113, .1); color: #fecaca; border-color: rgba(248, 113, 113, .3); }
.btn-danger:hover { background: rgba(248, 113, 113, .2); color: #fff; border-color: rgba(248, 113, 113, .5); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: transparent; }
.btn-sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 550; color: var(--text-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; color: var(--text);
  font: 14px var(--font); padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d879a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select[multiple] { background-image: none; padding-right: 12px; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(129, 140, 248, .6); box-shadow: 0 0 0 3px rgba(129, 140, 248, .15); }
input::placeholder, textarea::placeholder { color: #545d6e; }
.help { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; margin-bottom: 14px; }
.checkbox input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { flex: none; width: 36px; height: 20px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: .2s; margin-top: 1px; }
.toggle .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #64748b; transition: .2s; }
.toggle input:checked + .track { background: rgba(129, 140, 248, .35); border-color: rgba(129, 140, 248, .6); }
.toggle input:checked + .track::after { left: 18px; background: #fff; }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text strong { display: block; font-weight: 550; color: var(--text); font-size: 13.5px; }
.toggle-text small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.search { position: relative; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 34px; height: 38px; min-width: 240px; }

/* ---------- Alerts ---------- */
.flashes { position: fixed; top: 72px; right: 20px; z-index: 60; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.alert { padding: 12px 14px; border-radius: 11px; border: 1px solid; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); box-shadow: var(--shadow); }
.alert-success { border-color: rgba(52, 211, 153, .35); color: #d1fae5; }
.alert-error { border-color: rgba(248, 113, 113, .4); color: #fee2e2; }
.alert-info { border-color: rgba(96, 165, 250, .35); color: #dbeafe; }
.flashes .alert { animation: slidein .25s ease-out; }
.alert .x { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 16px; line-height: 1; }
.callout { padding: 14px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13.5px; }
.callout.warn { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .06); color: #fef3c7; }
.callout.danger { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .06); color: #fee2e2; }
.callout.ok { border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .06); color: #d1fae5; }
.callout.info { border-color: rgba(129, 140, 248, .3); background: rgba(129, 140, 248, .07); color: #e0e7ff; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: #fff; }
.tabs a.on { color: #fff; border-color: var(--accent); }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg label { padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-weight: 550; font-size: 13px; cursor: pointer; }
.seg a:hover, .seg label:hover { color: #fff; }
.seg a.on, .seg input:checked + label { background: var(--surface-3); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.seg input { position: absolute; opacity: 0; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .i { color: #4b5263; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: 6px; justify-content: center; padding: 16px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; padding: 0 8px; }
.pager a:hover { border-color: var(--line-2); color: #fff; }
.pager .on { background: var(--surface-3); color: #fff; border-color: var(--line-2); }

/* ---------- Store ---------- */
.store-hero { padding: 34px 0 10px; }
.store-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; letter-spacing: -.035em; }
.store-hero p { color: var(--text-2); max-width: 620px; font-size: 15.5px; margin-top: 10px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 34px 0 14px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.product { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; color: var(--text); }
.product:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); color: var(--text); }
.product .banner { height: 120px; background: var(--surface-2) center/cover no-repeat; position: relative; }
.product .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--surface)); }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 16px; }
.product .tagline { color: var(--muted); font-size: 13px; margin: 4px 0 12px; min-height: 20px; }
.product .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.product .price { margin-top: auto; display: flex; align-items: baseline; gap: 4px; }
.product .price strong { font-size: 24px; font-weight: 750; color: #fff; letter-spacing: -.02em; }
.product .price span { color: var(--muted); font-size: 13px; }
.product .ribbon { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--grad); color: #0b0b12; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.product .soldout { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(248, 113, 113, .9); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.product .from { font-size: 12px; color: var(--muted); }
.cycle-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cycle-options label { position: relative; display: block; padding: 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: .15s; }
.cycle-options label:hover { border-color: rgba(255, 255, 255, .22); }
.cycle-options input { position: absolute; opacity: 0; }
.cycle-options input:checked + label, .cycle-options label.on { border-color: var(--accent); background: rgba(129, 140, 248, .08); box-shadow: 0 0 0 3px rgba(129, 140, 248, .12); }
.cycle-options .c-name { font-weight: 600; color: #fff; display: block; }
.cycle-options .c-price { font-size: 18px; font-weight: 700; color: #fff; display: block; margin-top: 4px; }
.cycle-options .c-note { font-size: 12px; color: var(--muted); }
.cycle-options .save { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; color: var(--green); }
.summary-line { display: flex; justify-content: space-between; padding: 7px 0; color: var(--text-2); }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: #fff; font-weight: 700; font-size: 17px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.spec { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.spec small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.spec strong { color: #fff; font-size: 15px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; color: var(--text-2); }
.checklist li .i { color: var(--green); margin-top: 1px; }
.checklist li.no .i { color: var(--red); }

/* ---------- Service / invoice ---------- */
.service-hero { display: flex; gap: 18px; align-items: center; padding: 20px 22px; }
.service-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; color: #0b0b12; flex: none; }
.secret { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px dashed rgba(129, 140, 248, .5); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); color: #fff; }
.secret span { flex: 1; word-break: break-all; }
.invoice-sheet { padding: 30px 32px; }
.invoice-sheet .inv-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.invoice-sheet .stamp { font-size: 22px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.stamp.paid { color: var(--green); } .stamp.unpaid { color: var(--amber); } .stamp.cancelled, .stamp.refunded { color: #94a3b8; }
.totals { margin-left: auto; width: min(320px, 100%); }
.pay-box { position: sticky; top: 80px; }
.gateway { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font: 600 14px var(--font); margin-bottom: 10px; transition: .15s; text-align: left; }
.gateway:hover { border-color: var(--accent); background: rgba(129, 140, 248, .07); }
.gateway small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.gateway .i { color: var(--accent); }

/* ---------- Tickets ---------- */
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.msg.staff { border-color: rgba(129, 140, 248, .3); background: linear-gradient(180deg, rgba(129, 140, 248, .06), var(--surface) 60%); }
.msg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.msg-head strong { color: #fff; }
.msg-body { padding: 14px 16px; color: var(--text-2); word-wrap: break-word; }

/* ---------- Charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #818cf8, rgba(129, 140, 248, .35)); min-height: 3px; position: relative; }
.bars .bar i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 6px; font-size: 11.5px; font-style: normal; white-space: nowrap; color: #fff; }
.bars .bar span { font-size: 11px; color: var(--muted); }
.bars .bar.now i { background: var(--grad); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(430px, 100%); }
.auth-card .card { padding: 30px 28px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; margin-bottom: 26px; font-size: 18px; }
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 6px 0 22px; }
.auth-foot { text-align: center; color: var(--muted); margin-top: 18px; font-size: 13.5px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.otp { font-family: var(--mono); font-size: 24px !important; letter-spacing: .5em; text-align: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.foot a { color: var(--muted); }
.foot a:hover { color: #fff; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---------- Dropdown ---------- */
details.dd { position: relative; }
details.dd > summary { list-style: none; cursor: pointer; }
details.dd > summary::-webkit-details-marker { display: none; }
details.dd .dd-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); z-index: 50; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--text-2); background: none; border: 0; font: 500 13.5px var(--font); cursor: pointer; text-align: left; }
.dd-menu a:hover, .dd-menu button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.dd-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dd-menu .who strong { display: block; color: #fff; }
.dd-menu .who span { font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .pay-box { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: 60px; left: 0; bottom: 0; width: 270px; height: auto; z-index: 45; background: var(--bg); transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex; }
  .topnav { display: none; }
  .main { padding: 22px 16px 50px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid.g3 { grid-template-columns: minmax(0, 1fr); }
  .page-head > * { min-width: 0; max-width: 100%; }
  .page-head h1 { word-break: break-word; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 10px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .search input { min-width: 0; }
  .invoice-sheet { padding: 22px 18px; }
  .hide-sm { display: none !important; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .stat .value { font-size: 21px; }
  .brand .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print (invoices) ---------- */
@media print {
  body { background: #fff; color: #111; }
  body::before, .topbar, .sidebar, .no-print, .flashes, .foot, .announce-bar { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .card { background: #fff; border-color: #ddd; }
  h1, h2, h3, .table .title, .dl dd, .summary-line.total { color: #111 !important; }
  .muted, .table th, .dl dt { color: #555 !important; }
  .table td, .table th { border-color: #e5e5e5; }
  .split { display: block; }
  a { color: #111; }
}

/* =====================================================================
   v2 — motion & polish
   ===================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Page enter */
.main > *, .container > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.main > *:nth-child(2), .container > *:nth-child(2) { animation-delay: .04s; }
.main > *:nth-child(3), .container > *:nth-child(3) { animation-delay: .08s; }
.main > *:nth-child(4), .container > *:nth-child(4) { animation-delay: .12s; }
.main > *:nth-child(n+5), .container > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Top loading bar */
#vz-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100; background: var(--grad); box-shadow: 0 0 12px rgba(129, 140, 248, .8); transition: width .4s ease, opacity .3s; opacity: 0; }
#vz-progress.on { opacity: 1; }

/* Spotlight cards (cursor-follow glow) */
.spot, .product, .stat, .kb-cat, .gateway { --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.spot::before, .product::before, .stat::before, .kb-cat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(129, 140, 248, .12), transparent 45%);
}
.spot:hover::before, .product:hover::before, .stat:hover::before, .kb-cat:hover::before { opacity: 1; }
.stat { transition: border-color .2s, transform .2s; }
.stat:hover { border-color: var(--line-2); transform: translateY(-2px); }

/* Animated gradient ring for featured items */
.ring { position: relative; }
.ring::after, .product.is-featured::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, #818cf8 70%, #22d3ee 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 4s linear infinite;
}
@keyframes spin-ang { to { --ang: 360deg; } }

/* Buttons feel */
.btn:active { transform: scale(.98); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.badge-green::before { animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Sidebar */
.sidebar a { transition: background .15s, color .15s, transform .15s; }
.sidebar a:hover { transform: translateX(2px); }
.sidebar a.on .i { color: #a5b4fc; }

/* Toasts with a timer bar */
.flashes .alert { position: relative; overflow: hidden; }
.flashes .alert:not(.alert-error)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .35; transform-origin: left; animation: toast-timer 6s linear forwards; }
@keyframes toast-timer { to { transform: scaleX(0); } }

/* Store hero */
.store-hero { position: relative; padding: 48px 0 16px; }
.store-hero::before { content: ""; position: absolute; inset: -40px -200px auto; height: 360px; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 220px at 25% 30%, rgba(129, 140, 248, .22), transparent 70%), radial-gradient(380px 200px at 70% 10%, rgba(34, 211, 238, .14), transparent 70%);
  filter: blur(10px); animation: drift 16s ease-in-out infinite alternate; }
.store-hero::after { content: ""; position: absolute; inset: -40px -200px auto; height: 360px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 40% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 40% 20%, #000, transparent 75%); }
@keyframes drift { to { transform: translate(40px, 10px) scale(1.05); } }
.store-hero h1 .grad-text { background-size: 200% auto; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: var(--green); }
.product .banner { transition: transform .5s; }
.product:hover .banner { transform: scale(1.04); }
.product .go { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); transition: .2s; background: var(--surface); }
.product:hover .go { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); transform: translateX(2px); }

/* Auth split screen */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: #08080d; }
.auth-side .orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float-orb 14s ease-in-out infinite alternate; }
.auth-side .orbs i:nth-child(1) { width: 380px; height: 380px; left: -80px; top: -60px; background: rgba(129, 140, 248, .55); }
.auth-side .orbs i:nth-child(2) { width: 320px; height: 320px; right: -60px; top: 30%; background: rgba(34, 211, 238, .35); animation-delay: -5s; }
.auth-side .orbs i:nth-child(3) { width: 260px; height: 260px; left: 30%; bottom: -80px; background: rgba(203, 213, 225, .18); animation-delay: -9s; }
@keyframes float-orb { to { transform: translate(40px, -30px) scale(1.1); } }
.auth-side .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.auth-side > * { position: relative; }
.auth-side h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; max-width: 460px; }
.auth-side .perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 420px; }
.auth-side .perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.auth-side .perks .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(129, 140, 248, .12); border: 1px solid rgba(129, 140, 248, .25); color: #c7d2fe; }
.auth-side .perks strong { display: block; color: #fff; font-size: 14.5px; }
.auth-side .perks small { color: var(--muted); font-size: 13px; }
.auth-side .mini-console { margin-top: 30px; max-width: 440px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10, 10, 16, .8); padding: 14px 16px; font: 12.5px/1.8 var(--mono); color: #cbd5e1; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.mini-console .t { color: #505a6e; } .mini-console .ok { color: var(--green); } .mini-console .hl { color: #a5b4fc; }
.mini-console .line { opacity: 0; animation: type-in .4s forwards; }
.mini-console .line:nth-child(1) { animation-delay: .3s; } .mini-console .line:nth-child(2) { animation-delay: 1s; } .mini-console .line:nth-child(3) { animation-delay: 1.7s; } .mini-console .line:nth-child(4) { animation-delay: 2.4s; }
@keyframes type-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-main .auth-card { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-main .auth-card .card { background: rgba(14, 14, 22, .85); backdrop-filter: blur(10px); }
@media (max-width: 960px) { .auth-split { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Bell + notifications */
.icon-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.bell-dot { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--bg); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0); } }
.dd-menu.wide { width: 340px; max-width: calc(100vw - 24px); }
.dd-title { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.link-btn { background: none; border: 0; color: #a5b4fc; font: 500 12.5px var(--font); cursor: pointer; padding: 0 !important; width: auto !important; }
.dd-all { justify-content: center; color: #a5b4fc !important; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px !important; }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; color: var(--text); }
.notif:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.notif .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: transparent; }
.notif.unread .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.notif .n-body { flex: 1; min-width: 0; }
.notif .n-body strong { display: block; font-weight: 550; font-size: 13.5px; color: #fff; }
.notif .n-body small { display: block; color: var(--muted); font-size: 12px; }
.notif-list .notif { border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 20px; }
.notif-list .notif time { white-space: nowrap; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
details.dd[open] > .dd-menu { animation: dd-in .16s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* Options */
.opt-grid { display: grid; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; flex-direction: column; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 550; font-size: 13.5px; transition: .15s; }
.chip span small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.chip input:checked + span { border-color: var(--accent); background: rgba(129, 140, 248, .1); box-shadow: 0 0 0 3px rgba(129, 140, 248, .12); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty input { width: 80px; text-align: center; }
table.compact td { padding: 6px 6px; }
table.compact input { padding: 7px 8px; font-size: 13px; min-width: 64px; }
table.compact td:first-child input { min-width: 140px; }

/* Files */
.file-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line-2); }
.file-pick:hover { color: #fff; border-color: rgba(129, 140, 248, .5); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick.has { border-style: solid; border-color: rgba(129, 140, 248, .5); color: #c7d2fe; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.att { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text-2); font-size: 12.5px; max-width: 260px; }
.att:hover { border-color: rgba(129, 140, 248, .5); color: #fff; }
.att img { width: 40px; height: 40px; object-fit: cover; border-radius: 7px; }
.att .i { margin: 0 6px; }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att small { display: block; color: var(--muted); font-size: 11px; }

/* Knowledge base */
.kb-hero { position: relative; text-align: center; padding: 42px 16px 34px; margin-bottom: 20px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, rgba(129, 140, 248, .08), transparent); }
.kb-hero .aurora-sm { position: absolute; inset: -60% -20% auto; height: 300px; background: radial-gradient(closest-side, rgba(129, 140, 248, .35), transparent); filter: blur(30px); animation: drift 12s ease-in-out infinite alternate; pointer-events: none; }
.kb-hero > * { position: relative; }
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a5b4fc; margin-bottom: 10px; }
.kb-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.kb-search { position: relative; max-width: 560px; margin: 20px auto 0; }
.kb-search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.kb-search input { height: 52px; padding-left: 46px; border-radius: 14px; font-size: 15px; background: rgba(7, 7, 11, .7); }
.kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kb-cat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: .2s; }
.kb-cat:hover { border-color: rgba(129, 140, 248, .45); transform: translateY(-3px); color: var(--text); }
.kb-cat strong { color: #fff; font-size: 16px; }
.kb-cat small { color: var(--muted); font-size: 13px; flex: 1; }
.kb-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(129, 140, 248, .12); border: 1px solid rgba(129, 140, 248, .25); color: #c7d2fe; margin-bottom: 6px; }
.kb-row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .15s; }
.kb-row:last-child { border-bottom: 0; }
.kb-row:hover { background: rgba(255, 255, 255, .025); color: var(--text); }
.kb-row .i { color: #a5b4fc; }
.kb-row > span { flex: 1; min-width: 0; }
.kb-row strong { display: block; font-weight: 550; color: #fff; }
.kb-row small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prose { line-height: 1.75; color: var(--text-2); }
.prose h1 { font-size: 28px; margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose h3 { font-size: 16px; margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: #818cf8; }
.prose pre { background: #07070c; border: 1px solid var(--line-2); border-radius: 11px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: #e2e8f0; }
.prose blockquote { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--accent); background: rgba(129, 140, 248, .07); border-radius: 0 10px 10px 0; color: #e0e7ff; }
.prose strong { color: #fff; }
.md-preview { border: 1px solid var(--line-2); border-radius: 10px; padding: 16px 18px; margin-top: 8px; min-height: 300px; background: var(--bg-2); }

/* Confetti */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* Success celebration card */
.celebrate { border-color: rgba(52, 211, 153, .45) !important; box-shadow: 0 0 0 1px rgba(52, 211, 153, .2), 0 20px 60px rgba(52, 211, 153, .08); }
.bump { animation: bump .35s cubic-bezier(.3, 1.6, .5, 1); display: inline-block; }
@keyframes bump { 50% { transform: scale(1.08); color: #c7d2fe; } }
.bars .bar i { transform-origin: bottom; animation: grow-bar .9s cubic-bezier(.2, .8, .2, 1) both; }
.bars .bar:nth-child(n) i { animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes grow-bar { from { transform: scaleY(0); } }

/* ---------- Vollzette Pay (crypto) ---------- */
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.coin { --coin: #818cf8; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.coin:hover { border-color: color-mix(in srgb, var(--coin) 60%, transparent); transform: translateY(-2px); }
.coin:hover .go { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.coin-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: var(--coin, #818cf8); box-shadow: 0 6px 20px color-mix(in srgb, var(--coin, #818cf8) 45%, transparent); }
.coin-logo.sm { width: 34px; height: 34px; font-size: 14px; }
.coin-name { flex: 1; }
.coin-name strong { display: block; color: #fff; }
.coin-name small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.coin .go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); transition: .2s; }
.crypto-card { --coin: #818cf8; overflow: hidden; }
.crypto-card::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--coin), #22d3ee); }
.crypto-body { display: flex; gap: 26px; padding: 26px; flex-wrap: wrap; }
.qr-wrap { position: relative; width: 204px; height: 204px; padding: 10px; border-radius: 14px; background: #fff; flex: none; }
.qr-wrap .coin-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 3px solid #fff; }
.crypto-fields { flex: 1; min-width: 240px; }
.secret.big span { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.secret.big b { color: var(--text-2); font-weight: 600; font-size: 15px; }
.crypto-status { border-top: 1px solid var(--line); padding: 20px 26px; background: rgba(255, 255, 255, .012); }
.cstep { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.cstep li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 550; flex-wrap: wrap; }
.cstep li small { margin-left: auto; font-weight: 400; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cstep li span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; }
.cstep li.active { color: #fff; }
.cstep li.active span { border-color: var(--coin); border-top-color: transparent; animation: spin .9s linear infinite; }
.cstep li.done { color: #d1fae5; }
.cstep li.done span { border-color: var(--green); background: var(--green); }
.cstep li.done span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #0b0b12; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.how { margin: 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 8px; font-size: 14px; }

/* ---------- Server control ---------- */
.srv { overflow: hidden; }
.srv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line-2); text-transform: capitalize; }
.state i { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.state.running { color: var(--green); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.state.running i { background: var(--green); animation: pulse-dot 2s infinite; }
.state.starting, .state.stopping { color: var(--amber); border-color: rgba(251, 191, 36, .35); }
.state.starting i, .state.stopping i { background: var(--amber); animation: pulse-dot 1s infinite; }
.state.offline { color: #94a3b8; }
.power { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.srv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 20px; }
.gauge small { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.gauge small b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.gauge .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.gauge .fill { height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.gauge .fill.warn { background: linear-gradient(90deg, #fbbf24, #f87171); }
.srv-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.cmd { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.cmd input { font-family: var(--mono); font-size: 13px; }
.addr { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: #fff; background: var(--bg-2); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 9px; }
.backup-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.backup-row:last-child { border-bottom: 0; }
.backup-row > span { flex: 1; min-width: 0; }
.backup-row strong { display: block; color: #fff; font-weight: 550; }
.backup-row small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 700px) { .srv-grid { grid-template-columns: 1fr; } .power { margin-left: 0; } }

/* ---------- Go-live checklist ---------- */
.checks { display: grid; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
.check.ok .dot { background: rgba(52, 211, 153, .15); color: var(--green); }
.check.warn .dot { background: rgba(251, 191, 36, .15); color: var(--amber); }
.check.fail .dot { background: rgba(248, 113, 113, .15); color: var(--red); }
.check > span { flex: 1; min-width: 0; }
.check strong { display: block; color: #fff; font-weight: 600; }
.check small { color: var(--muted); font-size: 13px; word-break: break-word; }
.score { font-size: 44px; font-weight: 800; letter-spacing: -.04em; }
.score-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255, 255, 255, .06) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; z-index: 1; font-size: 26px; font-weight: 800; color: #fff; }
.inline-dd { display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }

/* ---------- Location picker ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.loc-opt { position: relative; }
.loc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.loc { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; height: 100%; }
.loc:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.loc-opt input:checked + .loc { border-color: var(--accent); background: rgba(129, 140, 248, .08); box-shadow: 0 0 0 3px rgba(129, 140, 248, .14); }
.loc-opt input:focus-visible + .loc { outline: 2px solid var(--accent); outline-offset: 2px; }
.loc.is-full { opacity: .5; cursor: not-allowed; }
.loc-top { display: flex; align-items: center; gap: 10px; }
.flag { width: 28px; height: 20px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex: none; }
.flag.blank { display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.loc-name { flex: 1; min-width: 0; }
.loc-name strong { display: block; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-name small { color: var(--muted); font-size: 12px; }
.ping { font: 600 12.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.ping.good { color: var(--green); } .ping.ok { color: var(--amber); } .ping.bad { color: var(--red); }
.loc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.avail { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); }
.avail.available, .avail.unknown { color: var(--green); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); }
.avail.limited { color: var(--amber); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); }
.avail.full { color: var(--red); border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .07); }
.loc .best { display: none; font-size: 11.5px; font-weight: 700; color: #c7d2fe; }
.loc.fastest .best { display: inline; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.loc.fastest { border-color: rgba(129, 140, 248, .45); }
.sw-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.sw span { min-width: 130px; }

/* ---------- Gift cards ---------- */
.gift { position: relative; overflow: hidden; border-radius: 16px; padding: 22px; background: linear-gradient(135deg, rgba(129, 140, 248, .22), rgba(34, 211, 238, .12)); border: 1px solid rgba(129, 140, 248, .35); }
.gift::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); }
.gift h3 { display: flex; align-items: center; gap: 8px; }
.gift .input-group input { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.codes { font: 13px/1.9 var(--mono); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; max-height: 260px; overflow: auto; white-space: pre; }

/* Status page */
.st-wrap { max-width: 860px; margin: 26px auto 0; }
.st-hero { display: flex; gap: 18px; align-items: center; padding: 26px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 18px; position: relative; overflow: hidden; }
.st-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 160px at 0% 0%, var(--st-glow, rgba(52, 211, 153, .14)), transparent 70%); pointer-events: none; }
.st-hero h1 { font-size: 22px; margin: 0; }
.st-hero p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.st-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--st-c, var(--green)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-c, var(--green)) 18%, transparent); animation: st-pulse 2.4s infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--st-c, var(--green)) 6%, transparent); } }
.st-degraded, .st-minor { --st-c: var(--amber); --st-glow: rgba(251, 191, 36, .14); }
.st-down, .st-major { --st-c: var(--red); --st-glow: rgba(248, 113, 113, .16); }
.st-maintenance { --st-c: var(--blue); --st-glow: rgba(96, 165, 250, .14); }
.st-operational { --st-c: var(--green); }
.st-incident { border-left: 3px solid var(--st-c, var(--amber)); }
.st-comp { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.st-comp:last-child { border-bottom: 0; }
.st-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--st-c); font-weight: 550; }
.st-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-c); }
.st-bars { display: flex; gap: 2px; height: 30px; margin: 10px 0 6px; }
.st-bars span { flex: 1; min-width: 0; border-radius: 2px; background: var(--green); opacity: .85; transition: opacity .15s, transform .15s; }
.st-bars span:hover { opacity: 1; transform: scaleY(1.12); }
.st-bars .warn { background: var(--amber); }
.st-bars .bad { background: var(--red); }
.st-bars .na { background: var(--surface-3); }
.st-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line-2); }
.st-timeline li { position: relative; padding: 0 0 14px 4px; }
.st-timeline li::before { content: ""; position: absolute; left: -21px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--accent); }
.st-timeline li:last-child { padding-bottom: 0; }
.st-past { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.st-past:last-child { border-bottom: 0; }
@media (max-width: 640px) { .st-bars { gap: 1px; height: 24px; } .st-bars span:nth-child(-n+45) { display: none; } }

/* Trial + subdomain + access details */
.trial-cta { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .06); margin-bottom: 12px; font-size: 13px; }
.trial-cta strong { color: var(--green); }
.sub-input { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.sub-input input { border: 0 !important; background: transparent !important; flex: 1; min-width: 0; box-shadow: none !important; }
.sub-input span { display: flex; align-items: center; padding: 0 12px; color: var(--muted); background: var(--surface-2); border-left: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.sub-hint { font-size: 12.5px; margin: 6px 0 10px; min-height: 18px; color: var(--muted); font-weight: 400; }
.sub-hint.ok { color: var(--green); }
.sub-hint.bad { color: var(--red); }
.addr-big { display: flex; align-items: center; gap: 10px; font: 600 16px var(--mono); color: #fff; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-2); word-break: break-all; }
.access-details { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; }
.access-details p:last-child { margin-bottom: 0; }

/* Currency switcher */
.cur-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); font: 600 12.5px var(--font); cursor: pointer; list-style: none; margin-right: 6px; }
.cur-btn::-webkit-details-marker { display: none; }
.cur-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .22); }
.cur-dd .dd-menu { width: 240px; }
.cur-dd .dd-menu button.on { color: #fff; background: rgba(129, 140, 248, .12); }
.cur-sym { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 6px; background: var(--surface-3); font-size: 12px; color: #fff; }

/* Team, retention, sales, ratings, search */
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.team-row .grow { flex: 1; min-width: 0; }
.team-row strong { display: block; color: #fff; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.team-row small { color: var(--muted); font-size: 12px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; flex: none; }
.team-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 640px) { .team-invite { grid-template-columns: 1fr; } }
.retain { position: relative; border: 1px solid rgba(129, 140, 248, .4); background: linear-gradient(135deg, rgba(129, 140, 248, .12), rgba(34, 211, 238, .06)); border-radius: var(--radius); padding: 16px; font-size: 13.5px; }
.retain-badge { position: absolute; top: -10px; right: 12px; background: var(--grad); color: #0b0b12; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.sale-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: linear-gradient(90deg, #7c3aed, #db2777, #f59e0b); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; }
.sale-bar .cd { font: 700 13px var(--mono); background: rgba(0, 0, 0, .25); padding: 3px 10px; border-radius: 99px; letter-spacing: .5px; }
.was { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .7em; margin-right: 6px; }
.sale-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #db2777, #f59e0b); padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 26px; line-height: 1; color: var(--surface-3); cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #fbbf24; }
.stars label:hover { transform: scale(1.15); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.msg.note { border-style: dashed; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .05); }
.admin-search { position: relative; flex: 0 1 340px; margin: 0 12px; }
.admin-search input { height: 34px; padding-left: 34px; font-size: 13px; }
.admin-search .i { position: absolute; left: 11px; top: 9px; color: var(--muted); }
.admin-search kbd { position: absolute; right: 8px; top: 7px; font: 600 11px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.search-pop { position: absolute; top: 40px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 60; max-height: 70vh; overflow: auto; }
.search-pop a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text-2); }
.search-pop a:hover, .search-pop a.on { background: rgba(255, 255, 255, .06); color: #fff; }
.search-pop small { display: block; color: var(--muted); font-size: 11.5px; }
.search-pop .type { margin-left: auto; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 860px) { .admin-search { display: none; } }
