/* ============================================================================
   ASTRAL WORKS STORE
   ----------------------------------------------------------------------------
   Pure black ground, one blue accent, white pill buttons. Every colour below
   is a token so the whole site re-skins from this block.
   ============================================================================ */

:root {
    --bg:          #000000;
    --bg-2:        #050506;
    --surface:     #0b0b0d;
    --surface-2:   #121215;
    --surface-3:   #1a1a1e;
    --line:        rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .18);

    --text:        #f5f5f7;
    --muted:       #a3a3ad;
    --dim:         #6b6b75;

    --accent:      #3d7bff;
    --accent-2:    #60a5fa;
    --accent-soft: rgba(61, 123, 255, .14);
    --hot:         #e11d48;
    --ok:          #22c55e;

    --warn:        #f59e0b;
    --danger:      #ef4444;

    --radius:      16px;
    --radius-lg:   22px;
    --pill:        999px;
    --shadow:      0 24px 60px rgba(0, 0, 0, .6);

    --nav-h:       92px;
    --font:        'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --mono:        'Fira Code', ui-monospace, 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2e var(--bg);
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: #2a2a2e;
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

code {
    font-family: var(--mono);
    font-size: .86em;
    background: rgba(61, 123, 255, .12);
    color: #9dbcff;
    padding: 2px 6px;
    border-radius: 5px;
}

.wrap { width: min(1280px, 92vw); margin: 0 auto; }

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-head { margin-bottom: 34px; }
.section-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.1;
}
.section-head p { color: var(--muted); margin-top: 10px; max-width: 62ch; font-size: 15px; }

section { padding: 84px 0; }

/* ============================================================
   BANNER
   ============================================================ */

.banner {
    background: linear-gradient(90deg, #1d4ed8, #3d7bff 60%, #60a5fa);
    text-align: center;
    padding: 11px 20px;
    font-size: 13.5px;
    position: relative;
    z-index: 60;
}
.banner strong { color: #fff; }
.banner a {
    margin-left: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    font-weight: 600;
}
.banner a:hover { border-color: #fff; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav .wrap { display: flex; align-items: center; gap: 22px; }

.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    color: #fff;
    flex-shrink: 0;
}
.logo-mark svg { width: 44px; height: 44px; display: block; }
.logo-text b {
    display: block;
    white-space: nowrap;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -.4px;
    line-height: 1.1;
    text-transform: uppercase;
}
.logo-text b::after { content: '.'; color: var(--accent); }
.logo-text span { display: block; white-space: nowrap; font-size: 10.5px; color: var(--dim); letter-spacing: .2px; margin-top: 2px; }

.nav-links { display: flex; gap: 2px; margin-right: 6px; }
.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 15px;
    color: #e6e6ea;
    font-weight: 500;
    letter-spacing: -.1px;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .06); }

/* Small pills after a nav label — HOT, NEW, FREE. */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 19px;
    padding: 0 7px;
    border-radius: var(--pill);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .6px;
    line-height: 1;
}
.nav-pill i { font-size: 9px; }
.nav-pill.hot { background: var(--hot); color: #fff; }
.nav-pill.new { background: #fff; color: #000; }
.nav-pill.free { background: var(--accent); color: #fff; }

/* Cart and account share one pill shape at the right of the bar. */
.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 13px;
    background: var(--surface-3);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}
.nav-chip:hover { background: #232328; border-color: rgba(255, 255, 255, .12); }
.nav-chip i { font-size: 15px; }

.cart-btn .cart-count {
    min-width: 12px;
    font-size: 14.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.nav-toggle {
    display: none;
    background: none; border: none; color: var(--text);
    font-size: 20px; cursor: pointer; padding: 6px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--pill);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
    white-space: nowrap;
}
.btn i { font-size: 12px; }

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, .08);
}
.btn-primary:hover { background: #ececf1; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 255, 255, .12); }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .04); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #2f6df0; transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 18px; font-size: 11.5px; letter-spacing: .7px; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    padding: 96px 0 104px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #000;
}

/* The engineering-paper grid from the reference, fading toward the edges. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 500px at 78% 50%, rgba(61, 123, 255, .10), transparent 65%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 70px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(52px, 6.6vw, 92px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -3.4px;
}
.hero h1 em {
    display: block;
    font-style: italic;
    color: var(--accent);
    padding-right: .08em;    /* italic overhang otherwise clips the last letter */
}
.hero p.lead { color: #b9b9c2; font-size: 17.5px; line-height: 1.6; margin: 30px 0 38px; max-width: 50ch; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .1);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Composed artwork: a headline word, a strap line and the real item renders
   floating over it. No screenshot required, and it re-themes from the
   featured item's accent colours. */
.hero-visual {
    position: relative;
    aspect-ratio: 16 / 9.4;
    overflow: hidden;
    background:
        radial-gradient(70% 90% at 20% 100%, color-mix(in srgb, var(--a1, #3d7bff) 38%, transparent), transparent 70%),
        radial-gradient(60% 80% at 90% 0%, color-mix(in srgb, var(--a2, #60a5fa) 26%, transparent), transparent 70%),
        linear-gradient(180deg, #0f1013, #050506);
}
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-visual-title {
    position: absolute;
    top: 9%;
    left: 6%; right: 24%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    font-size: clamp(48px, 7.4vw, 108px);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .9;
    color: #fff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, .6);
    text-transform: uppercase;
}
.hero-visual-sub {
    position: absolute;
    top: calc(9% + clamp(48px, 7.4vw, 108px) * .98);
    left: 6%; right: 26%;
    text-align: left;
    font-size: clamp(11px, 1.15vw, 15px);
    font-style: italic;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    letter-spacing: -.1px;
}
.hero-visual-ghost {
    position: absolute;
    right: -2%;
    bottom: -10%;
    white-space: nowrap;
    font-size: clamp(110px, 13vw, 190px);
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .13);
    pointer-events: none;
}
/* Items are boxed by height so tall renders (the crypto stick) and wide ones
   (the laptop) sit on the same baseline instead of one swallowing the title. */
.hv-item {
    position: absolute;
    bottom: 5%;
    height: 44%;
    width: 24%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .65));
    transition: transform .4s ease;
}
.hv-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hv-item:nth-child(1) { left: 4%;  width: 30%; height: 50%; transform: rotate(-7deg); }
.hv-item:nth-child(2) { left: 31%; height: 40%; transform: rotate(4deg); }
.hv-item:nth-child(3) { left: 54%; height: 46%; transform: rotate(-3deg); }
.hv-item:nth-child(4) { right: 4%; width: 18%; height: 42%; transform: rotate(8deg); }
.hero-card:hover .hv-item:nth-child(1) { transform: rotate(-10deg) translateY(-6px); }
.hero-card:hover .hv-item:nth-child(2) { transform: rotate(6deg) translateY(-8px); }
.hero-card:hover .hv-item:nth-child(3) { transform: rotate(-5deg) translateY(-5px); }
.hero-card:hover .hv-item:nth-child(4) { transform: rotate(11deg) translateY(-7px); }

/* Framework strip pinned to the bottom-left of the artwork. */
.hero-visual-brands {
    position: absolute;
    left: 18px; bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.hero-visual-brands span { display: inline-flex; align-items: center; gap: 6px; }
.hero-visual-brands i { font-size: 12px; opacity: .9; }

.hero-card-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: var(--surface);
}
.hero-card-foot div { padding: 22px 26px 24px; }
.hero-card-foot div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.hero-card-foot b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 5px; letter-spacing: -.2px; }
.hero-card-foot span { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Price chip that sits over the artwork's top-right corner. */
.hero-price {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--pill);
    background: rgba(0, 0, 0, .62);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    color: var(--muted);
}
.hero-price b { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.hero-price .price-sale b { color: #fff; }

/* ============================================================
   GENERATED PRODUCT ARTWORK
   ============================================================ */

.art {
    position: relative;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--a1, #3d7bff), var(--a2, #60a5fa));
    overflow: hidden;
}
.art::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .3), transparent 46%),
        linear-gradient(160deg, transparent 40%, rgba(0, 0, 0, .55));
}
.art::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .1) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
}
/* Sized per context on purpose. A percentage font-size here would resolve
   against the parent's font size (~16px), not the artwork box, which makes the
   icon a few pixels tall. */
.art i {
    position: relative;
    z-index: 1;
    font-size: 52px;
    color: rgba(255, 255, 255, .95);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45));
}

.hero-art .art i    { font-size: 92px; }
.product-art .art i { font-size: 104px; }
.card-art .art i    { font-size: 54px; }
.art .art-label {
    position: absolute;
    z-index: 1;
    bottom: 14px; left: 16px;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
}
.art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.art.has-image::before, .art.has-image::after { display: none; }

/* ============================================================
   FILTER BAR
   ============================================================ */

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.filters button {
    padding: 9px 17px;
    border-radius: 99px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
}
.filters button:hover { color: var(--text); border-color: var(--line-strong); }
.filters button.active {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .22);
    box-shadow: var(--shadow);
}

.card-art { position: relative; }
.card-art .art { aspect-ratio: 16 / 9; }

.badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    padding: 4px 11px;
    border-radius: 99px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    background: #fff;
    color: #000;
}

.card-body { padding: 20px 21px 0; flex: 1; }
.card-cat {
    font-size: 10.5px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--dim);
    font-weight: 700;
}
.card-body h3 { font-size: 18.5px; font-weight: 750; margin: 7px 0 8px; letter-spacing: -.3px; }
.card-body p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.chip {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
}

.card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 21px 21px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
}
.price { margin-right: auto; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.price s { color: var(--dim); font-size: 13.5px; }

/* ============================================================
   BUNDLES
   ============================================================ */

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.bundle {
    position: relative;
    padding: 28px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
}
.bundle.highlight {
    border-color: rgba(61, 123, 255, .5);
    background: linear-gradient(180deg, rgba(61, 123, 255, .07), var(--surface) 55%);
}
.bundle-tag {
    position: absolute;
    top: -11px; left: 26px;
    padding: 4px 13px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
}
.bundle-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 19px;
    color: #fff;
    margin-bottom: 17px;
}
.bundle h3 { font-size: 20px; font-weight: 750; }
.bundle > p { color: var(--muted); font-size: 13.5px; margin: 7px 0 18px; }

.bundle-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.bundle-price b { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; }
.bundle-price s { color: var(--dim); font-size: 15px; }
.bundle-save {
    font-size: 12.5px;
    color: var(--accent-2);
    font-weight: 650;
    margin-bottom: 20px;
}

.bundle ul { list-style: none; margin-bottom: 22px; flex: 1; }
.bundle li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13.5px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.bundle li i { color: var(--accent-2); font-size: 11px; }

/* ============================================================
   FEATURE STRIP
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.feature {
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.feature i {
    font-size: 19px;
    color: var(--accent);
    margin-bottom: 13px;
    display: block;
}
.feature h4 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 13.5px; }

/* ============================================================
   CART DRAWER
   ============================================================ */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 7, .68);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 100vw);
    z-index: 100;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.3, .9, .3, 1);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 17px; font-weight: 700; margin-right: auto; }
.icon-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }

.cart-item {
    display: flex;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.cart-item .art { width: 62px; height: 46px; border-radius: 9px; flex-shrink: 0; }
.cart-item .art i { font-size: 17px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info b { display: block; font-size: 14px; font-weight: 650; }
.cart-item-info span { font-size: 12px; color: var(--dim); }
.cart-item { align-items: center; }
.cart-item-price { text-align: right; }
.cart-item-price b { font-size: 14.5px; font-weight: 700; white-space: nowrap; }

/* A round icon button instead of the word "Remove", which used to collide
   with the price. Stays visible on touch, where there is no hover. */
.cart-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--dim);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color .15s, border-color .15s, background .15s;
}
.cart-remove:hover {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 45%, transparent);
    background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.cart-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--dim); }
.cart-empty i { font-size: 34px; margin-bottom: 14px; display: block; opacity: .45; }
.cart-empty p { font-size: 14px; }

.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}
.cart-total span { color: var(--muted); font-size: 14px; }
.cart-total b { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.drawer-note { font-size: 11.5px; color: var(--dim); margin-top: 12px; text-align: center; line-height: 1.55; }

/* Cfx.re sign-in state. Sits above the total so the buyer knows who the
   licence is about to be issued to before they look at the price. */
.cart-ident {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--muted);
}
.cart-ident i { font-size: 14px; color: var(--dim); flex-shrink: 0; }
.cart-ident span { flex: 1; min-width: 0; }
.cart-ident b { color: var(--text); font-weight: 600; word-break: break-word; }

.cart-ident.is-in { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .07); }
.cart-ident.is-in i { color: var(--accent-2); }

.cart-ident button {
    flex-shrink: 0;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 11.5px;
    color: var(--dim);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cart-ident button:hover { color: var(--accent); }

/* ============================================================
   SALE PRICING  (driven by Tebex, never by the site)
   ============================================================ */

.price-sale { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-sale s { color: var(--dim); font-weight: 500; opacity: .7; }
.price-sale b { color: var(--accent-2); }
.price-sale em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 2px 6px;
    border-radius: 5px;
    color: #000;
    background: var(--accent-2);
}

/* ============================================================
   DISCOUNT / PARTNER CODES
   ============================================================ */

.codes { margin-bottom: 14px; }
.codes summary {
    cursor: pointer;
    font-size: 12.5px;
    color: var(--muted);
    padding: 4px 0;
    list-style: none;
    user-select: none;
}
.codes summary::-webkit-details-marker { display: none; }
.codes summary::before {
    content: "\f067";                       /* plus */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    margin-right: 8px;
    color: var(--dim);
}
.codes[open] summary::before { content: "\f068"; }   /* minus */
.codes summary:hover { color: var(--accent); }

.code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
}
.code-row > i { font-size: 12px; color: var(--dim); width: 14px; flex-shrink: 0; }
.code-row input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}
.code-row input::placeholder { color: var(--dim); }
.code-row input:focus { outline: none; border-color: var(--accent); }
.code-row button {
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    cursor: pointer;
}
.code-row button:hover { color: var(--accent); border-color: var(--accent); }

.code-row.is-on {
    padding: 9px 11px;
    border: 1px solid rgba(34, 197, 94, .35);
    border-radius: 8px;
    background: rgba(34, 197, 94, .07);
    font-size: 12.5px;
    color: var(--muted);
}
.code-row.is-on > i { color: var(--accent-2); }
.code-row.is-on span { flex: 1; min-width: 0; }
.code-row.is-on b { color: var(--text); font-weight: 650; }
.code-row.is-on button { height: auto; padding: 0; border: 0; font-size: 11.5px; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   CFX.RE ACCOUNT CONTROL (beside the cart)
   ============================================================
   Signed out: a chip inviting the Cfx.re login. Signed in: the buyer's
   forum avatar and name in the same chip, with a small popover beneath. */

.account { position: relative; }

.acct-chip { padding-left: 8px; }
.acct-chip img {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2a2e;
    flex-shrink: 0;
}
.acct-chip span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

.cfx-btn i { color: var(--accent); }

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    min-width: 236px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
}
.account-who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.account-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.account-who b { display: block; font-size: 13.5px; font-weight: 700; word-break: break-word; }
.account-who span { font-size: 11.5px; color: var(--dim); }

.account-menu > button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.account-menu > button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.account-menu > button i { font-size: 12px; width: 14px; }

@media (max-width: 720px) {
    .cfx-btn span, .acct-chip span, .cart-btn .cart-label { display: none; }
    .nav-chip { padding: 0 12px; }
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */

.product-hero { padding: 46px 0 40px; border-bottom: 1px solid var(--line); }
.product-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }

.breadcrumb { font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 9px; margin: 0 8px; }

.product-art {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.product-art .art { aspect-ratio: 16 / 9; }

.product-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1px; }
.product-sub { color: var(--muted); font-size: 15.5px; margin: 12px 0 20px; }

.buy-box {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.buy-price { display: flex; align-items: baseline; gap: 11px; margin-bottom: 20px; }
.buy-price b { font-size: 38px; font-weight: 800; letter-spacing: -1.4px; }
.buy-price span { color: var(--dim); font-size: 13px; }

.spec-list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    font-size: 13.5px;
}
.spec-row span { color: var(--dim); flex-shrink: 0; }
.spec-row b { font-weight: 600; text-align: right; }

.prose { max-width: 76ch; }
.prose h2 { font-size: 22px; font-weight: 750; margin: 0 0 16px; letter-spacing: -.4px; }
.prose p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.prose ul { list-style: none; }
.prose ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14.5px;
}
.prose ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0; top: 1px;
    color: var(--accent-2);
    font-size: 13px;
}
.prose ul li strong { color: var(--text); }

table.cmd { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cmd th, table.cmd td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.cmd th {
    font-size: 10.5px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--dim);
    font-weight: 700;
}
table.cmd td { color: var(--muted); }
table.cmd td:first-child { font-family: var(--mono); color: var(--accent); white-space: nowrap; }
table.cmd td:nth-child(2) { color: var(--text); white-space: nowrap; }

/* ============================================================
   DOCS PAGE
   ============================================================ */

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.doc-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: all .16s ease;
}
.doc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.doc-card .doc-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: grid; place-items: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
}
.doc-card b { display: block; font-size: 14.5px; font-weight: 650; }
.doc-card span { font-size: 12.5px; color: var(--dim); }
.doc-card > i { margin-left: auto; color: var(--dim); font-size: 13px; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { max-width: 800px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 11px;
    overflow: hidden;
}
.faq summary {
    padding: 17px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '\2b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: var(--dim);
    font-size: 12px;
    transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */

.cta {
    text-align: center;
    padding: 66px 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(61, 123, 255, .13), transparent 70%),
        var(--surface);
}
.cta h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.8px; }
.cta p { color: var(--muted); margin: 12px auto 26px; max-width: 52ch; font-size: 15px; }
.cta .hero-actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 46px 0 34px; background: var(--bg-2); }
.foot-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}
.foot-top p { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 40ch; }
.foot-col h5 {
    font-size: 11px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 14px;
    font-weight: 700;
}
.foot-col a { display: block; color: var(--muted); font-size: 13.5px; padding: 5px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--dim);
}

/* ============================================================
   TOAST
   ============================================================ */

.toasts {
    position: fixed;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 99px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: toast-in .22s ease, toast-out .3s ease 2.4s forwards;
}
.toast i { color: var(--accent-2); }
@keyframes toast-in  { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(-8px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
    .hero .wrap, .product-hero .wrap { grid-template-columns: 1fr; gap: 38px; }
    .buy-box { position: static; }
    .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1240px) {
    .nav-links a { font-size: 14px; padding: 8px 9px; }
    .nav .wrap { gap: 14px; }
    .logo-text span { display: none; }
}

@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        background: #000;
        border-bottom: 1px solid var(--line);
        padding: 10px 5vw 16px;
        display: none;
        margin-right: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 10px; font-size: 15px; }
}

@media (max-width: 760px) {
    section { padding: 56px 0; }
    .hero-stats { gap: 22px; flex-wrap: wrap; }
    .grid { grid-template-columns: 1fr; }
    .foot-top { grid-template-columns: 1fr; gap: 26px; }
    .logo-text span { display: none; }
}

/* ============================================================
   SUBSCRIPTION PLANS
   ============================================================ */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 18px;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.plan.highlight {
    border-color: rgba(61, 123, 255, .5);
    background: linear-gradient(180deg, rgba(61, 123, 255, .08), var(--surface) 55%);
}

.plan-tag {
    position: absolute;
    top: -11px; left: 22px;
    padding: 4px 13px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
}

.plan-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 17px;
    color: #fff;
    margin-bottom: 15px;
}

.plan-term {
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -.2px;
}

.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 13px 0 3px; }
.plan-price b { font-size: 31px; font-weight: 800; letter-spacing: -1.1px; }
.plan-price span { font-size: 12.5px; color: var(--dim); }

.plan-per { font-size: 12.5px; color: var(--muted); }
.plan-save {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-2);
    min-height: 19px;
    margin: 5px 0 16px;
}
.plan-save.none { color: var(--dim); font-weight: 500; }

.plan-note {
    font-size: 12.5px;
    color: var(--muted);
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.plan ul { list-style: none; flex: 1; margin-bottom: 19px; }
.plan li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 12.8px;
    color: var(--muted);
    line-height: 1.5;
}
.plan li i { color: var(--accent-2); font-size: 10.5px; margin-top: 5px; flex-shrink: 0; }

.plan-compare {
    margin-top: 26px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 13.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.plan-compare i { color: var(--accent); }
.plan-compare a { color: var(--accent); font-weight: 600; }
.plan-compare a:hover { text-decoration: underline; }

/* ============================================================
   DOCS PORTAL
   ============================================================ */

.docs-app {
    display: grid;
    grid-template-columns: 292px 1fr;
    align-items: start;
    min-height: calc(100vh - var(--nav-h));
}

/* ---- Sidebar ---- */

.docs-side {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    border-right: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
}
.docs-side-inner {
    height: 100%;
    overflow-y: auto;
    padding: 24px 14px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.docs-side-inner::-webkit-scrollbar { width: 8px; }
.docs-side-inner::-webkit-scrollbar-track { background: transparent; }
.docs-side-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .14);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 99px;
}

.docs-nav-group { margin-top: 22px; }

.docs-nav-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px 9px;
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--dim);
    font-weight: 800;
}
.docs-nav-label span { font-size: 13px; }

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 13.8px;
    color: var(--muted);
    transition: background .14s ease, color .14s ease;
    line-height: 1.4;
}
.docs-nav-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.docs-nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 650;
}

.docs-nav-top {
    font-weight: 650;
    color: var(--text);
    margin-bottom: 4px;
}

.docs-nav-emoji { font-size: 15px; line-height: 1; flex-shrink: 0; }
.docs-nav-script > span:nth-child(2) { flex: 1; }
.docs-nav-script > i { font-size: 10px; color: var(--dim); }
.docs-nav-item.active > i { color: var(--accent); }

/* ---- Main column ---- */

.docs-main { min-width: 0; padding-bottom: 70px; }

.docs-banner {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(700px 320px at 18% 15%, rgba(168, 85, 247, .38), transparent 62%),
        radial-gradient(620px 300px at 82% 78%, rgba(61, 123, 255, .32), transparent 60%),
        linear-gradient(135deg, #12071f, #000 55%, #07211f);
    padding: 54px 44px 48px;
    text-align: center;
}

/* Starfield built from repeating radial gradients — no image asset needed. */
.docs-banner-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 27% 68%, rgba(255,255,255,.85), transparent),
        radial-gradient(1.6px 1.6px at 43% 14%, #fff, transparent),
        radial-gradient(1.1px 1.1px at 58% 52%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.5px 1.5px at 71% 28%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 86% 62%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.3px 1.3px at 34% 86%, rgba(255,255,255,.75), transparent),
        radial-gradient(1.1px 1.1px at 64% 88%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.4px 1.4px at 92% 18%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 6% 54%, rgba(255,255,255,.7), transparent);
    opacity: .9;
    pointer-events: none;
}

.docs-banner-inner { position: relative; z-index: 1; }

.docs-banner h2 {
    font-size: clamp(30px, 5.2vw, 54px);
    font-weight: 800;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.docs-banner p {
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
    margin-top: 10px;
}
.docs-banner-sub { font-size: 12.5px !important; color: rgba(255, 255, 255, .58) !important; letter-spacing: .4px; }

.docs-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding: 11px 24px;
    border-radius: 99px;
    background: linear-gradient(135deg, #1d4ed8, #3d7bff);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(124, 58, 237, .4);
    transition: transform .16s ease;
}
.docs-banner-cta:hover { transform: translateY(-2px); }

.docs-menu-btn {
    display: none;
    width: calc(100% - 48px);
    margin: 20px 24px 0;
    padding: 12px;
    gap: 9px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ---- Article ---- */

.docs-article { padding: 40px 44px 0; max-width: 900px; }

.docs-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}
.docs-head h1 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-right: auto;
    line-height: 1.15;
}

.docs-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.docs-copy:hover { color: var(--text); border-color: var(--accent); }

.docs-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 30px 0 11px;
    letter-spacing: -.2px;
}
.docs-body p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.docs-body ul { list-style: none; margin-bottom: 16px; }
.docs-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}
.docs-body ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 6px; top: 0;
    color: var(--accent);
    font-size: 13px;
}
.docs-body ul li strong { color: var(--text); }

.docs-body pre {
    background: #04070b;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 17px 19px;
    overflow-x: auto;
    margin: 6px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.docs-body pre code {
    background: none;
    padding: 0;
    color: #b9e6f2;
    font-size: 12.8px;
    line-height: 1.75;
    display: block;
    white-space: pre;
}

/* Script list under the About page */
.docs-links { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.docs-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: all .15s ease;
}
.docs-link:hover { border-color: var(--accent); transform: translateX(3px); }
.docs-link-emoji { font-size: 20px; line-height: 1; }
.docs-link-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.docs-link i { color: var(--dim); font-size: 12px; }

.docs-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 34px 0 10px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(61, 123, 255, .07), var(--surface) 60%);
}
.docs-cta > div { flex: 1; min-width: 200px; }
.docs-cta b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.docs-cta span { font-size: 13px; color: var(--muted); }
.docs-muted { color: var(--dim); font-size: 13px; }

@media (max-width: 980px) {
    .docs-app { grid-template-columns: 1fr; }
    .docs-side {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .docs-app.nav-open .docs-side { display: block; }
    .docs-side-inner { height: auto; max-height: 62vh; }
    .docs-menu-btn { display: flex; }
    .docs-article { padding: 28px 24px 0; }
    .docs-banner { padding: 40px 24px 36px; }
}

/* ============================================================
   DOCS — NESTED SIDEBAR
   ============================================================ */

.docs-nav-script { margin-bottom: 1px; }

.docs-nav-parent { padding-right: 4px; }
.docs-nav-name { flex: 1; }

.docs-nav-toggle {
    width: 24px; height: 24px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--dim);
    font-size: 10px;
    cursor: pointer;
    transition: transform .18s ease, background .15s ease, color .15s ease;
}
.docs-nav-toggle:hover {
    background: rgba(255, 255, 255, .07);
    border-color: var(--line);
    color: var(--text);
}
.docs-nav-script.open .docs-nav-toggle {
    transform: rotate(180deg);
    color: var(--accent);
    background: var(--accent-soft);
}

/* Collapsed by default; the open class reveals the section list. */
.docs-nav-sub {
    display: none;
    margin: 2px 0 8px 17px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}
.docs-nav-script.open .docs-nav-sub { display: block; }

.docs-nav-child {
    padding: 6px 10px;
    font-size: 13.2px;
    color: var(--dim);
}
.docs-nav-child:hover { color: var(--text); }
.docs-nav-child.active {
    background: transparent;
    color: var(--accent);
    font-weight: 650;
}

/* ============================================================
   DOCS — ARTICLE EXTRAS
   ============================================================ */

.docs-crumb {
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 7px;
}

.docs-head > div:first-child { margin-right: auto; min-width: 0; }

.docs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 20px;
}
.docs-chip {
    font-family: var(--mono);
    font-size: 11.8px;
    padding: 4px 10px;
    border-radius: 7px;
    background: rgba(61, 123, 255, .08);
    border: 1px solid rgba(61, 123, 255, .2);
    color: #7fe3f5;
    white-space: nowrap;
}

.docs-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 6px 0 20px;
    padding: 14px 17px;
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: rgba(61, 123, 255, .06);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}
.docs-note i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.docs-note strong { color: var(--text); }

/* ---- Previous / next ---- */

.docs-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 44px 0 10px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.docs-pager a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: all .15s ease;
}
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager a.next { justify-content: flex-end; text-align: right; }
.docs-pager a i { color: var(--dim); font-size: 12px; }
.docs-pager a:hover i { color: var(--accent); }
.docs-pager span small {
    display: block;
    font-size: 10.5px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 2px;
}
.docs-pager > span:empty { display: none; }
.docs-pager a span { font-size: 14px; font-weight: 600; }

@media (max-width: 620px) {
    .docs-pager { grid-template-columns: 1fr; }
}

/* ============================================================
   STORE — "INCLUDED FREE" PRODUCTS
   ============================================================ */

.price-included {
    display: flex;
    flex-direction: column;
    margin-right: auto;
}
.price-included b {
    font-size: 15px;
    font-weight: 750;
    color: var(--accent-2);
    letter-spacing: -.2px;
}
.price-included span { font-size: 11.5px; color: var(--dim); }

.buy-included {
    padding: 15px 17px;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 197, 94, .3);
    background: rgba(34, 197, 94, .08);
    margin-bottom: 18px;
}
.buy-included b {
    display: block;
    font-size: 15px;
    color: var(--accent-2);
    margin-bottom: 5px;
}
.buy-included span { font-size: 13px; color: var(--muted); line-height: 1.55; }

.card-included-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--accent-2);
    font-weight: 600;
}
.card-included-note i { font-size: 11px; }

/* ============================================================
   HOME TEASERS  (bundles / subscription cross-links)
   ============================================================ */

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.teaser {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: all .16s ease;
}
.teaser:hover { border-color: var(--accent); transform: translateY(-3px); }

.teaser > i:first-child {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
}
.teaser div { flex: 1; min-width: 0; }
.teaser b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.teaser span { font-size: 13.5px; color: var(--muted); }
.teaser-go { color: var(--dim); font-size: 14px; transition: transform .16s ease, color .16s ease; }
.teaser:hover .teaser-go { color: var(--accent); transform: translateX(4px); }

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.support-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: all .16s ease;
}
.support-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.support-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 18px;
}

.support-card b { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.support-card span { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.support-card em {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-style: normal;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--accent);
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

/* ---- Passcode gate ---- */

.gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(700px 340px at 50% 0%, rgba(61, 123, 255, .1), transparent 65%),
        var(--bg);
}

.gate-card {
    width: min(400px, 100%);
    padding: 34px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow);
}

.gate-mark {
    width: 52px; height: 52px;
    margin: 0 auto 18px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 20px;
    color: #000;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.gate-card h1 { font-size: 20px; font-weight: 750; }
.gate-card > p { font-size: 13.5px; color: var(--muted); margin: 8px 0 20px; }

.gate-card input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg-2);
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    text-align: center;
    letter-spacing: 2px;
}
.gate-card input:focus { outline: none; border-color: var(--accent); }

.gate-error {
    font-size: 13px;
    color: var(--danger);
    margin-bottom: 12px;
}

.gate-warn {
    display: flex;
    gap: 10px;
    text-align: left;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--dim);
    line-height: 1.6;
}
.gate-warn i { color: var(--warn); margin-top: 2px; flex-shrink: 0; }

/* ---- Top bar ---- */

.admin-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 26px;
    background: rgba(5, 7, 10, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.admin-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.admin-brand b { display: block; font-size: 14.5px; font-weight: 750; line-height: 1.3; }

.draft-state { font-size: 11.5px; color: var(--dim); }
.draft-state.dirty { color: var(--warn); font-weight: 600; }

.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

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

.admin-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-tabs {
    position: sticky;
    top: 68px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 24px 14px;
}
.admin-tabs button {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 13.8px;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
    transition: all .15s ease;
}
.admin-tabs button i { width: 16px; text-align: center; font-size: 12px; }
.admin-tabs button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.admin-tabs button.active {
    background: var(--accent-soft);
    border-color: rgba(61, 123, 255, .3);
    color: var(--accent);
    font-weight: 650;
}

.admin-main { padding: 24px 26px 80px; min-width: 0; }

.panel-head { margin: 30px 0 16px; }
.panel-head:first-child { margin-top: 0; }
.panel-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.3px; }
.panel-head p { font-size: 13.5px; color: var(--muted); margin-top: 5px; max-width: 70ch; }

/* ---- Fields ---- */

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld.wide { margin-top: 12px; }
.fld > span {
    font-size: 11.5px;
    font-weight: 650;
    color: var(--muted);
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.fld > span em {
    font-style: normal;
    font-size: 10.5px;
    color: var(--dim);
    font-weight: 400;
}

.fld input, .fld select, .fld textarea {
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--bg-2);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    width: 100%;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld input[type="number"] { font-family: var(--mono); }

/* ---- Row cards ---- */

.row-card {
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.row-head {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}
.row-head b { font-size: 15px; font-weight: 700; }
.row-head code { font-size: 11.5px; }
.row-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }

.tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
}
.tag + .tag { margin-left: 0; }
.tag.price { background: rgba(61, 123, 255, .12); color: var(--accent); font-family: var(--mono); }
.tag.good  { background: rgba(34, 197, 94, .14); color: var(--accent-2); }
.tag.bad   { background: rgba(239, 68, 68, .14); color: var(--danger); }

.includes {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--dim);
}
.includes span {
    display: inline-block;
    margin: 3px 5px 0 0;
    padding: 2px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    color: var(--muted);
}

/* ---- Health checks ---- */

.health-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }

.health {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    border-left-width: 3px;
}
.health i { margin-top: 3px; flex-shrink: 0; }
.health b { display: block; font-size: 14px; margin-bottom: 3px; }
.health span { font-size: 13px; color: var(--muted); line-height: 1.55; }

.health.ok    { border-left-color: var(--accent-2); }
.health.ok i  { color: var(--accent-2); }
.health.warn  { border-left-color: var(--warn); background: rgba(245, 158, 11, .05); }
.health.warn i { color: var(--warn); }
.health.error { border-left-color: var(--danger); background: rgba(239, 68, 68, .06); }
.health.error i { color: var(--danger); }

/* ---- Notes ---- */

.admin-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: rgba(61, 123, 255, .06);
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}
.admin-note i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.admin-note b { color: var(--text); }
.admin-note.deploy {
    margin-top: 34px;
    border-left-color: var(--accent-2);
    background: rgba(34, 197, 94, .07);
}
.admin-note.deploy i { color: var(--accent-2); }

@media (max-width: 900px) {
    .admin-body { grid-template-columns: 1fr; }
    .admin-tabs {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 14px 16px 0;
    }
    .admin-tabs button { white-space: nowrap; }
    .admin-main { padding: 18px 16px 60px; }
}

/* Admin: save-mode indicators */
.mode-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .07);
    color: var(--dim);
    vertical-align: middle;
}
.mode-badge.live { background: rgba(34, 197, 94, .16); color: var(--accent-2); }

.draft-state.saving { color: var(--accent); }
.draft-state.saved  { color: var(--accent-2); }

/* ============================================================
   ADMIN — DISCOUNTS & PARTNERS
   ============================================================ */

.table-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 26px;
    font-size: 13.5px;
}
.admin-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0 12px 9px;
    border-bottom: 1px solid var(--line);
}
.admin-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.admin-table .dimmed { color: var(--dim); }

.pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
}
.pill-good { background: rgba(34, 197, 94, .14); color: var(--accent-2); }
.pill-bad  { background: rgba(239, 68, 68, .14); color: var(--danger); }
.pill-dim  { background: rgba(255, 255, 255, .06); color: var(--dim); }

.row-del {
    margin-left: auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--dim);
    font-size: 12px;
    cursor: pointer;
}
.row-del:hover { color: var(--danger); border-color: rgba(239, 68, 68, .45); }

.admin-note.warn {
    border-color: rgba(245, 158, 11, .35);
    background: rgba(245, 158, 11, .07);
}
.admin-note.warn i { color: #f59e0b; }

/* ============================================================
   PARTNERS
   ============================================================ */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.partner {
    position: relative;
    display: block;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
a.partner:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-code {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
}
.partner-code i { font-size: 10px; }
.partner b { display: block; font-size: 15.5px; font-weight: 700; }
.partner p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.partner > i:last-child {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    color: var(--dim);
}

/* Advertised coupon, shown above the code box in the cart */
.code-advert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px dashed var(--accent);
    border-radius: 8px;
    background: var(--accent-soft);
    font-size: 12.5px;
    color: var(--muted);
}
.code-advert i { font-size: 12px; color: var(--accent); flex-shrink: 0; }
.code-advert b { color: var(--accent); font-family: var(--mono); font-weight: 700; letter-spacing: .5px; }

/* ============================================================
   LIVE CORNER CARD  (bottom-right, Tebex-driven)
   ============================================================
   Shows something that is true right now: a sale Tebex is running, or the
   purchase this buyer just completed. It is never fed made-up activity. */

.live-card {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(380px, calc(100vw - 48px));
    padding: 14px 18px 14px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: #0e0e11;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    color: var(--text);
    animation: live-in .35s cubic-bezier(.2, .9, .3, 1);
}
@keyframes live-in { from { opacity: 0; transform: translateY(16px); } }
.live-card[hidden] { display: none; }

.live-avatar {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 18px;
    overflow: hidden;
}
.live-avatar img { width: 100%; height: 100%; object-fit: cover; }
.live-avatar.sale { color: #fff; background: var(--accent); }
.live-avatar.ok   { color: #fff; background: var(--ok); }

.live-body { flex: 1; min-width: 0; }
.live-body b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-body span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.live-body span strong { color: var(--text); font-weight: 600; }

.live-brand {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: -.2px;
}
.live-brand i { font-size: 12px; }

.live-close {
    position: absolute;
    top: -9px; right: -9px;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: #16161a;
    color: var(--muted);
    font-size: 10px;
    cursor: pointer;
}
.live-close:hover { color: #fff; }

@media (max-width: 760px) {
    .live-card { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
    .hero { padding: 64px 0 72px; }
    .hero h1 { font-size: clamp(44px, 12vw, 64px); letter-spacing: -2.2px; }
    .hero-card-foot { grid-template-columns: 1fr; }
    .hero-card-foot div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
    .nav .wrap { gap: 10px; }
    .logo-text b { font-size: 16px; }
}

.fld textarea { resize: vertical; min-height: 84px; line-height: 1.5; font-family: inherit; }

/* ============================================================
   DISCORD LINK
   ============================================================ */

.disc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: #5865f2;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.disc-btn:hover { background: #4752c4; }
.disc-btn i { font-size: 14px; }

.menu-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.menu-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #5865f2; }
.menu-row > div { flex: 1; min-width: 0; }
.menu-row b { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-row span { display: block; font-size: 11px; color: #8b93ff; }
.menu-mini {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    color: var(--dim);
    font-size: 10px;
    cursor: pointer;
}
.menu-mini:hover { color: var(--danger); border-color: var(--danger); }

.cart-ident.disc i { color: #7983f5; }
.cart-ident.disc.is-in { border-color: rgba(88, 101, 242, .4); background: rgba(88, 101, 242, .09); }
.cart-ident.disc button { color: #a5adff; text-decoration: none; font-weight: 700; }

/* ============================================================
   HERO FACT STRIP
   ============================================================ */

.hero .hero-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: 14px;
    margin-top: 64px;
}
.hero-strip > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    transition: border-color .15s, background .15s;
}
.hero-strip > div:hover { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.hero-strip i {
    grid-row: 1 / span 2;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: rgba(61, 123, 255, .14);
    color: var(--accent);
    font-size: 15px;
}
.hero-strip #hero-discord i { background: rgba(88, 101, 242, .18); color: #8b93ff; }
.hero-strip b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.hero-strip span { font-size: 12px; color: var(--muted); }

@media (max-width: 1000px) { .hero .hero-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .hero .hero-strip { grid-template-columns: 1fr; margin-top: 40px; } }


/* ============================================================
   DOCS — Dependencies tab
   ============================================================ */

.docs-deps { list-style: none; margin: 22px 0 8px; padding: 0; }
.docs-dep { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding-bottom: 26px; }
.docs-dep::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.docs-dep:last-child::before { display: none; }
.docs-dep-num {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #8b5cf6, #3d7bff); color: #fff;
    font-size: 14px; font-weight: 800;
    position: relative; z-index: 1;
}
.docs-dep-body { min-width: 0; padding-top: 4px; }
.docs-dep-body h4 { font-size: 19px; font-weight: 750; letter-spacing: -.3px; margin: 0 0 8px; font-family: var(--mono); }
.docs-dep-body h4 em { font-style: normal; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.docs-dep-body h4 em.inc { color: var(--ok); }
.docs-dep-note { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.docs-dep-note code { font-size: 12.5px; }
.docs-dep-link {
    display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong); border-radius: 12px;
    background: var(--surface); color: var(--text); text-decoration: none;
    transition: all .15s ease;
}
.docs-dep-link:hover { border-color: var(--accent); background: var(--surface-2); transform: translateX(2px); }
.docs-dep-link > i:first-child { font-size: 22px; color: var(--text); text-align: center; }
.docs-dep-link > i:last-child { font-size: 12px; color: var(--dim); }
.docs-dep-link b { display: block; font-size: 14.5px; font-weight: 700; }
.docs-dep-link small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.docs-dep-link small.docs-dep-src { color: var(--dim); font-size: 11.5px; margin-top: 4px; }

/* ---- Product video preview ---- */
.product-video { margin-top: 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; }
.product-video iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ============================================================
   LEGAL PAGES (terms, refunds, licence)
   ============================================================ */

.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc {
    position: sticky; top: calc(var(--nav-h) + 24px);
    display: flex; flex-direction: column; gap: 2px;
    padding: 18px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface);
}
.legal-toc b { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); padding: 0 8px 10px; }
.legal-toc a { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { background: var(--surface-2); color: var(--text); }
.legal-body { max-width: 78ch; }
.legal-body h2 { font-size: 20px; margin-top: 36px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.7; }
.legal-body ul { margin: 0 0 16px; }
.legal-body a { color: var(--accent-2); }
.legal-body em { color: var(--text); font-style: normal; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }
