/* =========================================================================
 * SkinsFlow theme — built from the Brand & Media Kit v1.0
 * Ink first, mint for action, violet as the second voice.
 *
 * Component reference (every view uses only these):
 *
 *   Layout     .container .container--narrow .section .stack .stack--lg .cluster .split
 *              .grid .grid--2 .grid--3 .grid--4 .grid--sidebar
 *   Type       h1–h4 .display .eyebrow .lead .muted .small .mono .text-mint .text-violet
 *              .text-danger .text-right .nowrap .truncate
 *   Buttons    .btn .btn--primary .btn--ghost .btn--danger .btn--link .btn--sm .btn--lg .btn--block
 *   Cards      .card .card--pad .card--flush .card--highlight .card__header .card__title .card__body .card__footer
 *   Stats      .stats .stat .stat__label .stat__value .stat__meta
 *   Tables     .table-wrap .table  td.num  .table__empty  tr.is-muted
 *   Badges     .badge .badge--success|warning|danger|info|violet|neutral
 *   Forms      .form .field .field__label .field__input .field__hint .field__error .field-row .check
 *              .input-group .form-actions .filters
 *   Feedback   .alerts .alert .alert--success|info|warning|danger .empty .callout
 *   Data       .datalist .datalist__row .datalist__key .datalist__value  .code  .secret
 *   Nav        .tabs .tabs__link.is-active  .pagination  .breadcrumbs
 *   App shell  .app .app__sidebar .app__main .app__topbar .app__content .sidenav .sidenav__link.is-active
 *   Marketing  .site-header .nav .hero .feature .steps .cta-band .site-footer .prose
 *   Checkout   .checkout .inv-grid .inv-item .inv-item.is-selected .summary-bar
 *   Consent    .consent .consent__body .consent__title .consent__text .consent__actions (analytics.js)
 * ========================================================================= */

/* Icons (Icon::svg adds .icon). Contextual rules such as .btn svg override this default size. */
svg.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

@font-face { font-family: 'Sora'; src: url('fonts/sora.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    --ink: #0B0F14;
    --bg: #0B0F14;
    --panel: #121821;
    --panel-2: #18202B;
    --panel-3: #1E2733;
    --line: #263040;
    --line-2: #33405A;
    --fg: #EEF1F6;
    --muted: #9AA5B5;
    --faint: #6B7687;
    --mint: #2EE6A6;
    --mint-hover: #5CF0BC;
    --mint-deep: #0E9F6E;
    --violet: #8B6CFF;
    --violet-deep: #5B3FE0;
    --warning: #FFC861;
    --danger: #FF7A8A;
    --info: #7FB8FF;
    --paper: #F6F7F9;

    --f-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    --r: 14px;
    --r-sm: 10px;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .28);
    --gutter: clamp(16px, 4vw, 32px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-hover); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(46, 230, 166, .3); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }

.display { font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 7.5vw, 84px); line-height: 1; letter-spacing: -0.045em; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lead { color: var(--muted); font-size: 18px; max-width: 62ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.mono, code, kbd { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
code { font-size: .9em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.text-mint { color: var(--mint); }
.text-violet { color: var(--violet); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hidden, [hidden] { display: none !important; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0 !important; }
.flow { color: var(--mint); }

/* ---------- Layout ------------------------------------------------------ */

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1400px; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 28px; }
.stack--xl { gap: 48px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; }
@media (max-width: 960px) { .grid--sidebar { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Logo -------------------------------------------------------- */

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; color: var(--fg); line-height: 1; font-size: 22px; }
.logo:hover { color: var(--fg); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo--lg { font-size: 30px; }
.logo--lg svg { width: 40px; height: 40px; }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
    appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel-2); color: var(--fg);
    font: 600 14px/1.1 var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { border-color: var(--line-2); color: var(--fg); background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn--primary:hover { background: var(--mint-hover); border-color: var(--mint-hover); color: var(--ink); }
.btn--violet { background: var(--violet); border-color: var(--violet); color: var(--ink); }
.btn--violet:hover { background: #A48BFF; border-color: #A48BFF; color: var(--ink); }
.btn--ghost { background: transparent; }
.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: var(--danger); }
.btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--mint); border-radius: 4px; }
.btn--link:hover { background: none; color: var(--mint-hover); }
.btn--sm { min-height: 34px; padding: 7px 12px; font-size: 13px; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Cards ------------------------------------------------------- */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.card--pad { padding: clamp(18px, 3vw, 28px); }
.card--flush { overflow: hidden; }
.card--highlight { border-color: color-mix(in srgb, var(--mint) 40%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 15%, transparent) inset; }
.card--warning { border-color: color-mix(in srgb, var(--warning) 40%, var(--line)); }
.card--danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.card__header { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__title { font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.card__body { padding: 20px; }
.card__footer { padding: 14px 20px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 50%, transparent); }

/* ---------- Stats ------------------------------------------------------- */

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--f-mono); font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stat__meta { font-size: 13px; color: var(--muted); }
.stat--mint .stat__value { color: var(--mint); }

/* ---------- Tables ------------------------------------------------------ */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.card .table-wrap { border: 0; border-radius: 0; background: transparent; }
.table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: color-mix(in srgb, var(--panel-2) 60%, transparent); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--panel-2) 45%, transparent); }
.table td.num, .table th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td a { color: var(--fg); }
.table td a:hover { color: var(--mint); }
.table tr.is-muted td { color: var(--faint); }
.table__empty { padding: 40px 16px !important; text-align: center !important; color: var(--muted); }
.table--compact th, .table--compact td { padding: 8px 12px; }

/* ---------- Badges ------------------------------------------------------ */

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; text-transform: none; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge--plain::before { display: none; }
.badge--success { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 40%, var(--line)); background: color-mix(in srgb, var(--mint) 8%, transparent); }
.badge--warning { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 40%, var(--line)); background: color-mix(in srgb, var(--warning) 8%, transparent); }
.badge--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.badge--info { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, var(--line)); background: color-mix(in srgb, var(--info) 8%, transparent); }
.badge--violet { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); background: color-mix(in srgb, var(--violet) 8%, transparent); }
.badge--neutral { color: var(--muted); }

/* ---------- Forms ------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--fg); }
.field__label .optional { color: var(--faint); font-weight: 500; }
.field__input, .form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form input[type=number],
.form input[type=date], .form input[type=search], .form input[type=tel], .form select, .form textarea, .filters input, .filters select {
    width: 100%; min-height: 44px; padding: 10px 14px;
    background: var(--ink); color: var(--fg);
    border: 1px solid var(--line); border-radius: var(--r-sm);
    font: 500 15px/1.4 var(--f-body);
    transition: border-color .15s, box-shadow .15s;
}
.form textarea, textarea.field__input { min-height: 110px; resize: vertical; }
.form select, select.field__input, .filters select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AA5B5' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field__input:focus, .form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 18%, transparent); }
.field__input[readonly], .form input[readonly] { color: var(--muted); background: var(--panel-2); }
input[type=file] { color: var(--muted); font: 500 14px var(--f-body); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 13px var(--f-body); color: var(--fg); background: var(--panel-3); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--danger); }
.field.has-error .field__input { border-color: var(--danger); }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--mint); flex: none; }
.input-group { display: flex; gap: 8px; }
.input-group > :first-child { flex: 1; min-width: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters > * { flex: 1 1 160px; min-width: 0; }
.filters > .btn, .filters > .filters__actions { flex: 0 0 auto; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.captcha { min-height: 65px; }

/* ---------- Feedback ---------------------------------------------------- */

.alerts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); font-size: 14px; border-left-width: 3px; }
.alert--success { border-left-color: var(--mint); }
.alert--info { border-left-color: var(--info); }
.alert--warning { border-left-color: var(--warning); }
.alert--danger { border-left-color: var(--danger); }
.callout { padding: 16px 18px; border-radius: var(--r); border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--muted); font-size: 14px; }
.callout strong { color: var(--fg); }
.callout--mint { border-color: color-mix(in srgb, var(--mint) 45%, var(--line)); border-style: solid; }
.callout--warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); border-style: solid; }
.callout--danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); border-style: solid; }
.empty { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h3 { color: var(--fg); }

/* ---------- Data -------------------------------------------------------- */

.datalist { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); margin: 0; }
.datalist__row { display: contents; }
.datalist__key, .datalist__value { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
.datalist__key { color: var(--muted); font-size: 13px; padding-right: 16px; }
.datalist__value { font-size: 14px; overflow-wrap: anywhere; }
.datalist__row:last-child > * { border-bottom: 0; }
@media (max-width: 560px) { .datalist { grid-template-columns: minmax(0, 1fr); } .datalist__key { border-bottom: 0; padding-bottom: 0; } }

.code { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; white-space: pre; color: #C9D3E1; margin: 0; tab-size: 2; }
.code .k { color: var(--violet); } .code .s { color: var(--mint); } .code .c { color: var(--faint); }
.secret { display: flex; gap: 8px; align-items: center; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 6px 6px 14px; min-width: 0; }
.secret code { background: none; border: 0; padding: 0; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; word-break: normal; }
.kv { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

/* ---------- Nav pieces -------------------------------------------------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__link { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs__link:hover { color: var(--fg); }
.tabs__link.is-active { color: var(--fg); border-bottom-color: var(--mint); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 12px 0; }
.pagination__links { display: flex; gap: 6px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs span::before { content: "/"; margin-right: 6px; color: var(--faint); }

.page-header { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.page-header__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- App shell (dashboard / admin / verify) ---------------------- */

.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.app__sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.app__brand { padding: 4px 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app__brand .logo { font-size: 20px; }
.app__brand .logo svg { width: 28px; height: 28px; }
.app__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); border: 1px solid color-mix(in srgb, var(--violet) 40%, var(--line)); border-radius: 999px; padding: 3px 7px; }
.app__main { min-width: 0; display: flex; flex-direction: column; }
.app__topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.app__content { padding: clamp(20px, 3vw, 36px) var(--gutter) 64px; width: 100%; max-width: 1320px; }
.app__menu-toggle { display: none; }

.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav__section { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.sidenav__link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.sidenav__link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.sidenav__link:hover { color: var(--fg); background: var(--panel-2); }
.sidenav__link.is-active { color: var(--fg); background: var(--panel-3); box-shadow: inset 2px 0 0 var(--mint); }
.sidenav__count { margin-left: auto; font-family: var(--f-mono); font-size: 11px; background: var(--violet); color: var(--ink); border-radius: 999px; padding: 1px 7px; }
.sidenav__footer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

.switcher { position: relative; }
.switcher select { width: 100%; min-height: 40px; padding: 8px 32px 8px 12px; background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; font: 600 13px var(--f-body); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AA5B5' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--violet-deep), var(--mint-deep)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--f-display); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .app__sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 50; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
    .app.is-menu-open .app__sidebar { transform: none; }
    .app.is-menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 40; }
    .app__menu-toggle { display: inline-flex; }
}

/* ---------- Focus shell (auth, verify, pay) ----------------------------- */

.focus { min-height: 100vh; display: flex; flex-direction: column; }
.focus__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
.focus__main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 5vh, 56px) var(--gutter) 48px; }
.focus__card { width: 100%; max-width: 440px; }
.focus__card--wide { max-width: 760px; }
.focus__foot { padding: 20px var(--gutter); color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.focus__foot a { color: var(--faint); }
.focus__foot a:hover { color: var(--muted); }
.auth-card { padding: clamp(22px, 4vw, 36px); }
.auth-card__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 20px; font-size: 14px; }
.otp-input { font-family: var(--f-mono) !important; font-size: 26px !important; letter-spacing: .5em; text-align: center; }

/* ---------- Marketing --------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav__link { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav__link:hover, .nav__link.is-active { color: var(--fg); background: var(--panel-2); }
.nav__actions { display: flex; gap: 8px; align-items: center; }
.nav__toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
    .nav { flex-wrap: wrap; }
    .nav__toggle { display: inline-flex; }
    .nav__links, .nav__actions { display: none; width: 100%; }
    .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: stretch; margin: 0; padding-bottom: 8px; }
    .nav.is-open .nav__actions { display: flex; padding-bottom: 16px; }
    .nav.is-open .nav__actions .btn { flex: 1; }
}

.hero { padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(139, 108, 255, .18), transparent); pointer-events: none; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.feature { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.feature__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--panel-3); display: inline-flex; align-items: center; justify-content: center; color: var(--mint); }
.feature__icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps__item { counter-increment: step; position: relative; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; }
.steps__item::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--violet); letter-spacing: .1em; }
.steps__item p { color: var(--muted); font-size: 15px; }

.cta-band { border: 1px solid color-mix(in srgb, var(--mint) 35%, var(--line)); border-radius: calc(var(--r) * 1.5); padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 100% 0%, rgba(46, 230, 166, .10), transparent 55%), var(--panel); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span { font-family: var(--f-display); font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; background: var(--panel); }

.site-footer { border-top: 1px solid var(--line); padding-block: 48px 36px; color: var(--muted); font-size: 14px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h4 { color: var(--fg); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
.site-footer__col a { color: var(--muted); }
.site-footer__col a:hover { color: var(--fg); }
.site-footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: var(--faint); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__grid > :first-child { grid-column: 1 / -1; } }

.prose { max-width: 74ch; color: #D3DAE5; font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 22px; color: var(--fg); }
.prose h3 { margin-top: 1.6em; font-size: 17px; color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--fg); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }

/* ---------- Checkout (pay.skinsflow.com) -------------------------------- */

.checkout { width: 100%; max-width: 1080px; display: flex; flex-direction: column; gap: 18px; }
.checkout__head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.checkout__merchant { display: flex; flex-direction: column; gap: 2px; }
.checkout__merchant strong { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.02em; }
.checkout__steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.checkout__steps span { display: inline-flex; align-items: center; gap: 6px; }
.checkout__steps span.is-active { color: var(--fg); }
.checkout__steps span.is-done { color: var(--mint); }
.checkout__steps span + span::before { content: ""; width: 18px; height: 1px; background: var(--line-2); margin-right: 2px; }

.steam-user { display: flex; align-items: center; gap: 12px; }
.steam-user img { width: 40px; height: 40px; border-radius: 8px; }

.inv-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.inv-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.inv-item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--fg); font: inherit; min-width: 0; transition: border-color .12s, transform .05s, background-color .12s; }
.inv-item:hover { border-color: var(--line-2); }
.inv-item:active { transform: scale(.99); }
.inv-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.inv-item__name { font-size: 12px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.inv-item__price { font-family: var(--f-mono); font-size: 14px; color: var(--fg); }
.inv-item.is-selected { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 9%, var(--panel-2)); box-shadow: 0 0 0 1px var(--mint) inset; }
.inv-item.is-selected::after { content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='%230B0F14' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.inv-item.is-disabled { opacity: .38; cursor: not-allowed; }
.inv-item.is-disabled .inv-item__price { text-decoration: line-through; }

.summary-bar { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 14px 18px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.summary-bar__total { display: flex; flex-direction: column; }
.summary-bar__value { font-family: var(--f-mono); font-size: 22px; color: var(--mint); }

.trade-box { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: clamp(28px, 5vw, 48px) 20px; }
.trade-box__code { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--mint); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.result-icon--success { background: color-mix(in srgb, var(--mint) 15%, transparent); color: var(--mint); }
.result-icon--fail { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.result-icon svg { width: 32px; height: 32px; }

/* ---------- Misc -------------------------------------------------------- */

.divider { height: 1px; background: var(--line); border: 0; margin: 8px 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot--ok { background: var(--mint); }
.dot--bad { background: var(--danger); }
.progress { height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.checklist li.is-done { color: var(--fg); }
.checklist li.is-done::before { border-color: var(--mint); background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='%230B0F14' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.chart__bar { flex: 1; min-width: 4px; background: color-mix(in srgb, var(--mint) 70%, transparent); border-radius: 4px 4px 0 0; position: relative; }
.chart__bar:hover { background: var(--mint); }
.chart__bar[data-zero] { background: var(--panel-3); }
.swatch { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.swatch__chip { height: 110px; display: flex; align-items: flex-end; padding: 12px; font-family: var(--f-mono); font-size: 12px; }
.swatch__info { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.swatch__info strong { color: var(--fg); font-family: var(--f-display); }
.logo-tile { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.logo-tile__art { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 28px; }
.logo-tile__art img { max-height: 70%; max-width: 80%; }
.logo-tile__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
details.disclosure { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
details.disclosure > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: "+"; color: var(--muted); font-family: var(--f-mono); }
details.disclosure[open] > summary::after { content: "−"; }
details.disclosure > div { padding: 0 16px 16px; }

/* Cookie consent (partials/consent.php, opened by js/analytics.js) */
.consent { position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: rgba(18, 24, 33, .96); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.consent[hidden] { display: none; }
.consent.is-open { animation: consent-in .24s ease-out; }
.consent__body { flex: 1; min-width: 0; }
.consent__title { margin: 0 0 4px; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--fg); }
.consent__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent__text a { color: var(--mint); }
.consent__status { margin: 6px 0 0; color: var(--faint); }
.consent__actions { display: flex; gap: 8px; flex-shrink: 0; }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 560px) {
    .consent { flex-direction: column; align-items: stretch; gap: 12px; }
    .consent__actions .btn { flex: 1; min-height: 42px; }
}
