/* =========================================================================
 * SkinsGateway theme, built from the brand kit.
 * Ink ground, orange for action, purple as the second voice. Flat colour, no glow.
 *
 * 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
 *              .switcher .topbar__* .umenu (user dropdown)
 *   Marketing  .gh (header) .gf (footer) .hero .feature .steps .cta-band .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: 'Oxanium'; src: url('fonts/oxanium-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-400-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-600-ext.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-700-ext.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-800.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-800-ext.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-400-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-500-ext.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-600-ext.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; src: url('fonts/barlow-700-ext.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --ink: #0B0B0E;
    --bg: #0B0B0E;
    --panel: #141419;
    --panel-2: #1A1A21;
    --panel-3: #22222B;
    --line: #2A2A34;
    --line-2: #3A3A47;
    --fg: #F3F3F6;
    --muted: #B4B4C0;
    --faint: #8D8D9A;
    --accent: #FF8000;
    --accent-hover: #FF9A33;
    --accent-deep: #C96400;
    --accent-2: #A335EE;
    --accent-2-deep: #7A1FC0;
    --success: #3DDC84;
    --warning: #FFC861;
    --danger: #FF6B7A;
    --info: #7FB8FF;
    --paper: #F3F3F6;

    --f-display: 'Oxanium', 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    --f-num: 'Oxanium', 'Segoe UI', system-ui, sans-serif;

    --r: 8px;
    --r-sm: 6px;
    --r-pill: 6px;
    --shadow: 0 1px 0 rgba(0, 0, 0, .35);
    --gutter: clamp(16px, 4vw, 32px);
    color-scheme: dark;
}

/* The website and the sign-in pages stand on a light ground (layouts default, auth, focus, error).
   --ink is the ground a bar or a label stands on, --brand the orange of the mark. */
:root { --brand: #FF8000; }
html[data-ground="light"] {
    --ink: #FFFFFF;
    --bg: #FFFFFF;
    --panel: #F6F6F8;
    --panel-2: #EFEFF2;
    --panel-3: #E5E5EA;
    --line: #E3E3E8;
    --line-2: #C9C9D2;
    --fg: #0B0B0E;
    --muted: #4D4D58;
    --faint: #72727E;
    --accent: #0B0B0E;
    --accent-hover: #3A3A47;
    --accent-deep: #0B0B0E;
    --accent-2: #7A1FC0;
    --accent-2-deep: #7A1FC0;
    --success: #1B7A43;
    --warning: #8A5A00;
    --danger: #C22F3F;
    --info: #1F5FBF;
    --f-display: var(--f-body);
    --f-num: var(--f-body);
    --r: 10px;
    --shadow: 0 1px 2px rgba(11, 11, 14, .06);
    color-scheme: light;
    background: var(--bg);
}
html[data-ground="light"] ::selection { background: rgba(255, 128, 0, .25); }
html[data-ground="light"] :focus-visible { outline-color: var(--brand); }
html[data-ground="light"] h1, html[data-ground="light"] h2 { letter-spacing: -0.02em; }
html[data-ground="light"] .btn { background: #FFFFFF; border-color: var(--line-2); }
html[data-ground="light"] .btn:hover { background: var(--panel); border-color: var(--fg); }
html[data-ground="light"] .btn--primary { background: #0B0B0E; border-color: #0B0B0E; color: #FFFFFF; }
html[data-ground="light"] .btn--primary:hover { background: #2A2A34; border-color: #2A2A34; color: #FFFFFF; }
html[data-ground="light"] .btn--ghost { background: transparent; }
html[data-ground="light"] .card { background: #FFFFFF; box-shadow: none; }
html[data-ground="light"] .secret { background: var(--panel); }
html[data-ground="light"] .code { background: #0B0B0E; border-color: #0B0B0E; color: #E6E6EC; border-radius: 10px; }
html[data-ground="light"] .code .k { color: #C69CFF; }
html[data-ground="light"] .code .s { color: #FFB366; }
html[data-ground="light"] .code .c { color: #8D8D9A; }
html[data-ground="light"] .prose { color: #2A2A34; }
html[data-ground="light"] .badge { font-family: var(--f-body); }
html[data-ground="light"] :is(.mk-card__media, .mk-hero__media, .mp-order__media) img { filter: none; }
html[data-ground="light"] .gh__link.is-active { border-bottom-color: var(--brand); }
html[data-ground="light"] .gh__signin:hover { color: var(--muted); }
html[data-ground="light"] .gh__menu-links a { font-weight: 600; }
html[data-ground="light"] .gh__menu-links a.is-active { color: var(--fg); box-shadow: inset 3px 0 0 var(--brand); padding-left: 12px; }
html[data-ground="light"] .gf { background: var(--panel); }
html[data-ground="light"] .gf__by a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }

/* Website type and links (layout default). */
.layout--default h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; line-height: 1.06; }
.layout--default h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.12; }
.layout--default h3 { font-size: 19px; font-weight: 600; }
.layout--default .lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }
.layout--default main :is(p, dd, td, figcaption, .prose li) > a:not(.btn):not([class]),
.textlink { color: var(--fg); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.layout--default main :is(p, dd, td, figcaption, .prose li) > a:not(.btn):not([class]):hover,
.textlink:hover { color: var(--fg); text-decoration-color: var(--fg); }
.textlink { font-weight: 600; }
.h-second { color: #8A8A96; }
.layout--default .gf__title, .layout--default .site-footer__title { font: 600 14px/1.2 var(--f-body); letter-spacing: 0; color: var(--fg); }
.layout--default .page-hero h1 .h-second { display: block; }

*, *::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(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 128, 0, .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.01em; 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.01em; }
.eyebrow { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; 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(--accent); }
.text-violet { color: var(--accent-2); }
.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(--accent); }

/* ---------- 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: 9px; font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; color: var(--fg); line-height: 1; font-size: 19px; }
.logo:hover { color: var(--fg); }
.logo svg { width: 28px; height: 32px; flex: none; }
.logo__word b { font-weight: 800; }
.logo--lg { font-size: 26px; }
.logo--lg svg { width: 38px; height: 44px; }

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

.btn {
    appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 18px; border-radius: var(--r-pill);
    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(--accent); border-color: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.btn--accent-2 { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); }
.btn--accent-2:hover { background: #B95CF2; border-color: #B95CF2; 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(--accent); border-radius: 4px; }
.btn--link:hover { background: none; color: var(--accent-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%; white-space: normal; text-align: center; line-height: 1.25; }
.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(--accent) 40%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 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-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; 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.01em; overflow-wrap: anywhere; }
.stat__meta { font-size: 13px; color: var(--muted); }
.stat--accent .stat__value { color: var(--accent); }

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

.table-wrap { position: relative; /* contains .sr-only cells so they don't widen the page */ 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-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; 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(--accent); }
.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: var(--r-pill); 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(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 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--accent-2 { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); background: color-mix(in srgb, var(--accent-2) 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(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 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: var(--r-pill); 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(--accent); 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(--accent); }
.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--accent { border-color: color-mix(in srgb, var(--accent) 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: #D0D0DA; margin: 0; tab-size: 2; }
.code .k { color: var(--accent-2); } .code .s { color: var(--accent); } .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; }
/* Longer button labels (de, ru, fr…) wrap below the value on narrow screens instead of pushing out of the box. */
@media (max-width: 600px) { .secret { flex-wrap: wrap; } .secret code { flex-basis: 100%; padding: 4px 0; } .secret form { display: contents; } }
.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(--accent); }
/* Section tabs above a dashboard page: the pages of the current sidebar entry (partials/subnav.php). */
.app__tabs { margin: -4px 0 26px; }
.tabs__ext { width: 12px; height: 12px; margin-left: 5px; opacity: .55; vertical-align: -1px; }
.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) ---------------------- */
/* Sidebar + top bar (partials/sidebar.php, partials/topbar.php; menu data: AppNav). */

.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.app__sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; background: var(--panel); border-right: 1px solid var(--line); padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.app__brand { padding: 4px 6px 4px 8px; min-height: 40px; display: flex; align-items: center; gap: 10px; }
.app__brand .logo { font-size: 20px; }
.app__brand .logo svg { width: 28px; height: 28px; }
.app__tag { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, var(--line)); border-radius: var(--r-pill); padding: 3px 7px; }
.app__close { display: none; margin-left: auto; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.app__close:hover { color: var(--fg); border-color: var(--line-2); }
.app__main { min-width: 0; display: flex; flex-direction: column; }
.app__content { padding: clamp(20px, 3vw, 36px) var(--gutter) 64px; width: 100%; max-width: 1320px; }
.app__menu-toggle { display: none; }

/* business switcher: a card with a transparent native <select> on top (keyboard + screen readers keep working) */
.switcher { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); transition: border-color .15s, background-color .15s; }
.switcher:hover, .switcher:focus-within { border-color: var(--line-2); background: var(--panel-3); }
.switcher:focus-within { box-shadow: 0 0 0 3px rgba(255, 128, 0, .15); }
.switcher__mark { width: 32px; height: 32px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-2-deep); color: #fff; font: 700 14px var(--f-display); }
.switcher__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.switcher__name { font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher__hint { font-size: 11.5px; color: var(--faint); }
.switcher__chev { width: 16px; height: 16px; color: var(--faint); flex: none; }
.switcher select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }

.sidenav { display: flex; flex-direction: column; gap: 1px; }
.sidenav__section { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--faint); padding: 16px 10px 6px; }
.sidenav__link { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; min-width: 0; transition: color .12s, background-color .12s; }
.sidenav__link svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.sidenav__link:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.sidenav__link.is-active { color: var(--fg); background: rgba(255, 128, 0, .1); }
.sidenav__link.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidenav__link.is-active svg { color: var(--accent); opacity: 1; }
.sidenav__count { margin-left: auto; font-family: var(--f-mono); font-size: 11px; font-weight: 600; background: var(--accent-2); color: var(--ink); border-radius: var(--r-pill); padding: 1px 7px; }
.sidenav__ext { margin-left: auto; width: 14px !important; height: 14px !important; opacity: .45 !important; }
.sidenav__footer { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sidenav__switch { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; font-weight: 600; transition: color .15s, border-color .15s; }
.sidenav__switch svg { width: 16px; height: 16px; flex: none; }
.sidenav__switch svg:last-child:not(:first-child) { margin-left: auto; }
.sidenav__switch:hover { color: var(--fg); border-color: var(--accent-2); }
.sidenav__legal { margin: 4px 10px 0; font-size: 11px; color: var(--faint); }

/* top bar */
.app__topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 60px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(11, 11, 14, .8); }
.topbar__left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topbar__right { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar__icon { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.topbar__icon:hover { color: var(--fg); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.topbar__icon svg { width: 18px; height: 18px; }
.topbar__icon.app__menu-toggle { display: none; }
.topbar__mark { display: none; flex: none; }
.topbar__mark svg { width: 30px; height: 30px; }
.topbar__trail { flex-wrap: nowrap; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 13.5px; align-items: center; }
.topbar__trail > * { overflow: hidden; text-overflow: ellipsis; }
.topbar__root { color: var(--muted); font-weight: 600; }
.topbar__trail .is-current { color: var(--fg); font-weight: 600; }
.topbar__pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; transition: color .15s, border-color .15s; }
.topbar__pill svg { width: 15px; height: 15px; }
.topbar__pill:hover { color: var(--fg); border-color: var(--line-2); }
.topbar__pill--staff { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 35%, var(--line)); background: rgba(163, 53, 238, .07); }
.topbar__pill--staff:hover { color: #C27BF5; border-color: var(--accent-2); }
.topbar__cta { gap: 6px; }
.topbar__cta svg { width: 16px; height: 16px; }

/* user menu (<details data-dropdown>) */
.umenu { position: relative; }
.umenu > summary { list-style: none; }
.umenu > summary::-webkit-details-marker { display: none; }
.umenu__btn { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: var(--r-pill); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background-color .15s; }
.umenu__btn:hover, .umenu[open] .umenu__btn { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.umenu__btn .avatar { width: 30px; height: 30px; font-size: 12px; }
.umenu__name { max-width: 140px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.umenu__chev { width: 15px; height: 15px; color: var(--faint); transition: transform .15s; }
.umenu[open] .umenu__chev { transform: rotate(180deg); }
.umenu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 264px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: #141419; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: umenu-in .14s ease-out; }
@keyframes umenu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.umenu__head { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.umenu__who { display: flex; flex-direction: column; min-width: 0; }
.umenu__who strong { font-size: 14px; }
.umenu__who span { font-size: 12px; color: var(--muted); }
.umenu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.umenu__item svg { width: 17px; height: 17px; flex: none; }
.umenu__item:hover { color: var(--fg); background: var(--panel-2); }
.umenu__item--danger:hover { color: var(--danger); background: rgba(255, 122, 138, .08); }
.umenu__form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }

.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-2-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--f-display); flex: none; overflow: hidden; }
.avatar--lg { width: 40px; height: 40px; font-size: 15px; }
.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: 70; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
    .app.is-menu-open .app__sidebar { transform: none; }
    .app.is-menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(5, 5, 7, .6); z-index: 65; }
    .app__menu-toggle, .app__close, .topbar__icon.app__menu-toggle { display: inline-flex; }
    .topbar__mark { display: inline-flex; }
    .umenu__name, .umenu__chev, .topbar__pill span { display: none; }
    .umenu__btn { padding: 3px; }
    .topbar__pill { width: 34px; padding: 0; justify-content: center; }
}
@media (max-width: 600px) {
    .app__topbar { padding: 0 12px; gap: 8px; }
    .topbar__right { gap: 6px; }
    .topbar__trail > :not(:last-child) { display: none; }
    .topbar__trail > :last-child::before { display: none; }
    .topbar__cta span { display: none; }
    .topbar__cta { width: 36px; padding: 0; justify-content: center; }
    .topbar__right > .topbar__icon[href] { display: none; }
}
body.is-locked { overflow: hidden; }

/* ---------- 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 --------------------------------------------------- */

/* Website header (partials/site-header.php, behaviour in js/app.js [data-sh]) */
.gh { position: sticky; top: 0; z-index: 40; background: var(--ink); border-bottom: 1px solid var(--line); }
.gh__bar { display: flex; align-items: center; gap: 28px; max-width: 1240px; height: 64px; margin: 0 auto; padding: 0 var(--gutter); }
.gh__logo { flex: none; }
.gh__nav { display: flex; gap: 22px; margin-right: auto; }
.gh__link { color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.gh__link:hover { color: var(--fg); }
.gh__link.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.gh__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.gh__signin { color: var(--fg); font-weight: 600; font-size: 15px; white-space: nowrap; }
.gh__signin:hover { color: var(--accent); }
.gh__burger { display: none; position: relative; width: 44px; height: 44px; flex: none; border: 0; background: none; cursor: pointer; }
.gh__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--fg); transition: transform .18s ease, top .18s ease; }
.gh__burger span:first-child { top: 17px; }
.gh__burger span:last-child { top: 25px; }
.gh__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.gh__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.gh__menu { border-top: 1px solid var(--line); background: var(--ink); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 64px); overflow-y: auto; }
.gh__menu-links { display: flex; flex-direction: column; }
.gh__menu-links a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); font: 600 18px/1.2 var(--f-display); }
.gh__menu-links a.is-active { color: var(--accent); }
.gh__menu-actions { display: grid; gap: 10px; padding-top: 18px; }
@media (max-width: 1180px) { .gh__bar { gap: 20px; } .gh__nav { gap: 16px; } .gh__link { font-size: 14px; } }
@media (min-width: 1081px) { .gh__menu { display: none !important; } }
@media (max-width: 1080px) {
    .gh__bar { height: 58px; gap: 12px; }
    .gh__nav, .gh__signin, .gh__actions .langsw { display: none; }
    .gh__actions { margin-left: auto; }
    .gh__burger { display: block; }
}
@media (max-width: 420px) { .gh__actions .btn { display: none; } }

.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(163, 53, 238, .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(--accent); }
.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(--accent-2); letter-spacing: .1em; }
.steps__item p { color: var(--muted); font-size: 15px; }

.cta-band { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: calc(var(--r) * 1.5); padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 100% 0%, rgba(255, 128, 0, .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: var(--r-pill); padding: 8px 14px; font-size: 14px; background: var(--panel); }

/* Website footer (partials/site-footer.php) */
.gf { border-top: 1px solid var(--line); padding-block: 56px 32px; color: var(--muted); font-size: 15px; background: var(--ink); }
.gf__top { display: grid; gap: 36px 32px; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
.gf__brand { display: flex; flex-direction: column; gap: 18px; }
.gf__by { line-height: 1.6; }
.gf__by strong { color: var(--fg); font-weight: 600; }
.gf__col { display: flex; flex-direction: column; gap: 9px; }
.gf__title, .site-footer__title { color: var(--fg); font: 700 15px/1.2 var(--f-display); margin: 0 0 4px; }
.gf__col a { color: var(--muted); }
.gf__col a:hover, .gf__by a:hover { color: var(--fg); }
.gf__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; font-size: 14px; color: var(--faint); }
.gf__bottom .langsw { margin-left: auto; }
.site-footer__trust { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 28px 56px; }
@media (max-width: 900px) { .gf__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gf__brand { grid-column: 1 / -1; } .gf__bottom .langsw { margin-left: 0; } }

.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 (skinsgateway.com/pay) -------------------------------- */

.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.01em; }
.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(--accent); }
.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(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel-2)); box-shadow: 0 0 0 1px var(--accent) inset; }
.inv-item.is-selected::after { content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) 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); 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(--accent); }

.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(--accent); 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(--accent) 15%, transparent); color: var(--accent); }
.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(--accent); }
.dot--bad { background: var(--danger); }
.progress { height: 6px; border-radius: var(--r-pill); background: var(--panel-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); 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(--accent); background: var(--accent) 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(--accent) 70%, transparent); border-radius: 4px 4px 0 0; position: relative; }
.chart__bar:hover { background: var(--accent); }
.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: var(--r-pill); 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; }

/* Player chip (partials/player-chip.php): avatar + balance, or the official "Sign in through Steam" button. */
.player-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font-weight: 600; font-size: 13px; line-height: 1; white-space: nowrap; }
.player-chip:hover { border-color: var(--line-2); color: var(--fg); }
.player-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.player-chip__balance { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--accent); }
.steam-signin { display: inline-flex; align-items: center; line-height: 0; border-radius: 4px; }
.steam-signin img { height: 35px; width: auto; }

/* Language selector (partials/lang-switcher.php) */
.langsw { position: relative; }
.langsw > summary { list-style: none; }
.langsw > summary::-webkit-details-marker { display: none; }
.langsw__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; white-space: nowrap; }
.langsw__btn:hover, .langsw[open] .langsw__btn { color: var(--fg); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.langsw__btn svg { width: 16px; height: 16px; }
.langsw__code { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.langsw__name { display: none; }
.langsw__chev { width: 13px !important; height: 13px !important; color: var(--faint); transition: transform .15s; }
.langsw[open] .langsw__chev { transform: rotate(180deg); }
.langsw__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 200px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: #141419; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); display: grid; gap: 1px; animation: umenu-in .14s ease-out; }
.langsw__opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; }
.langsw__opt:hover { color: var(--fg); background: var(--panel-2); }
.langsw__opt.is-active { color: var(--fg); background: rgba(255, 128, 0, .08); }
.langsw__opt-code { width: 26px; font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.langsw__opt-name { flex: 1; }
.langsw__tick { width: 15px; height: 15px; color: var(--accent); }
.langsw--footer .langsw__panel { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.langsw--footer .langsw__name { display: inline; color: var(--muted); }
.langsw__panel { max-height: min(420px, 70vh); overflow-y: auto; }
/* inline variant: every language as a chip (phone menu sheet) */
.langsw--inline { display: grid; gap: 8px; padding: 12px 6px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
.langsw__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--faint); }
.langsw__label svg { width: 14px; height: 14px; }
.langsw__list { display: flex; flex-wrap: wrap; gap: 6px; }
.langsw__chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: color .15s, border-color .15s, background-color .15s; }
.langsw__chip:hover { color: var(--fg); border-color: var(--line-2); }
.langsw__chip.is-active { color: var(--fg); border-color: rgba(255, 128, 0, .4); background: rgba(255, 128, 0, .08); }
/* placements */
.site-footer__lang { margin-top: 28px; display: flex; }
.topbar__right > .langsw .langsw__btn { height: 38px; }
/* Website header: globe-only button in the bar (four page links fit in every language down to 1081px;
   below that the menu button takes over, app.js `wide` follows the same split). */
.sh__actions > .langsw .langsw__code, .sh__actions > .langsw .langsw__chev { display: none; }
.sh__actions > .langsw .langsw__btn { width: 38px; padding: 0; justify-content: center; }
@media (max-width: 1080px) { .sh__actions > .langsw { display: none; } }
@media (max-width: 600px) { .topbar__right > .langsw .langsw__chev { display: none; } .topbar__right > .langsw .langsw__btn { padding: 0 8px; } }

/* 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(20, 20, 25, .96); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.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(--accent); }
.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; }
}

/* "Need help with this?" line under player pages (site/partials/help-line). */
.help-line { padding-top: 8px; padding-bottom: 40px; }
.help-line p { display: flex; align-items: center; gap: 8px; margin: 0; }
.help-line svg.icon { width: 16px; height: 16px; flex: none; }
.faq-more { text-align: center; margin-top: 20px; }

/* ---- Checkout design page (dashboard/projects/checkout.php) -------------- */
.design { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1040px) { .design { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } .design__side { position: sticky; top: 84px; } }
.design__form { display: flex; flex-direction: column; gap: 18px; }
.design__set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.design__set legend { padding: 0; margin-bottom: 8px; }
.design__logo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.design__logo img { max-height: 40px; max-width: 180px; object-fit: contain; }
.design__choice { display: flex; gap: 8px; flex-wrap: wrap; }
.design__opt { position: relative; }
.design__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.design__opt span { display: block; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.design__opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.design__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.design__colour { display: flex; gap: 8px; align-items: stretch; }
.design__colour input[type="color"] { flex: none; width: 46px; height: 42px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel-2); cursor: pointer; }
.design__colour .field__input { max-width: 140px; text-transform: uppercase; }
.design__swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.design__swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; padding: 0; }
.design__swatch:hover, .design__swatch:focus-visible { border-color: var(--fg); }
.design__swatch--ff8000 { background: #FF8000; }
.design__swatch--a335ee { background: #A335EE; }
.design__swatch--3ddc84 { background: #3DDC84; }
.design__swatch--2f9bff { background: #2F9BFF; }
.design__swatch--ff4d6d { background: #FF4D6D; }
.design__swatch--ffc400 { background: #FFC400; }
.design__swatch--14b8a6 { background: #14B8A6; }
.design__swatch--f3f3f6 { background: #F3F3F6; }
.design__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.design__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.design__sizes { display: flex; gap: 6px; }
.design__sizes .btn.is-active { border-color: var(--accent); color: var(--accent); }
.design__stage { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); padding: 12px; overflow: hidden; }
.design__frame { display: block; width: 100%; height: 720px; border: 0; border-radius: var(--r-sm); background: var(--bg); margin: 0 auto; }
.design__stage[data-stage="phone"] .design__frame { max-width: 390px; }

/* Small helpers that replace one-off inline styles (the site sends no inline CSS). */
.mt { margin-top: 16px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 32px; }
.cluster--nowrap { flex-wrap: nowrap; }
.check--center { align-items: center; }
.stack--center { align-items: center; }
.form--inline { display: inline; }
.list-plain { padding-left: 1.2em; margin: 0; }
.truncate--line { max-width: 52ch; }
.field__input--tiny { width: 5.5em; min-width: 0; min-height: 34px; padding: 4px 8px; }
.container--alerts { padding-top: 20px; }
