/* =====================================================================
   Horizon Rust - site styles
   One shared file for every page. Colors and fonts live in :root.
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* build number: must match HZ_BUILD in script.js */
:root { --hz-build: 41; }

:root {
    /* surfaces: blue-grey steel, darkest at the back */
    --bg: #080c12;
    --panel: #141b26;
    --inset: #0e141d;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);

    /* text: one body color, one quiet color */
    --text: #f2f5f8;
    --muted: #9aa6b4;

    /* meaning, not decoration:
       blue = actions, amber = deals, green = linked/money, red = remove */
    --blue: #1683ff;
    --blue-hover: #3a96ff;
    --on-blue: #ffffff;
    --amber: #f2a93b;
    --green: #3ddc84;
    --red: #f07178;

    --brand: var(--blue);
    --gold: var(--amber);

    --r-sm: 8px;
    --r: 12px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scrollbar-color: var(--border-strong) var(--bg); scrollbar-width: thin; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: -40px;
    z-index: -2;
    /* horizon-bg.jpg (full-size 1920x1080 screenshot) is used if you upload one,
       otherwise the hero banner is stretched to fill the screen */
    background: url("/horizon-bg.jpg") center / cover no-repeat, url("/horizon-hero.png") 62% center / cover no-repeat;
    filter: blur(3px) saturate(1.15);
    transform: translateZ(0);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(8, 12, 18, .35), rgba(8, 12, 18, .85) 75%),
        linear-gradient(rgba(8, 12, 18, .25), rgba(8, 12, 18, .75));
}

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

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { width: min(1000px, calc(100% - 32px)); margin: 0 auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 1000;
    padding: 10px 14px; border-radius: var(--r-sm);
    background: var(--blue); color: var(--on-blue); font-weight: 600;
}
.skip-link:focus { top: 12px; }

h1, h2, h3, .page-title { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 12, 18, .92);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .01em;
}
.brand img { height: 32px; width: auto; }

.site-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 12px; }
.site-nav a {
    padding: 20px 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    box-shadow: inset 0 -2px 0 transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--blue); }
.site-nav a[hidden] { display: none; }

.header-right { display: flex; align-items: center; gap: 14px; }

.secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
}
.secure[hidden] { display: none; }
.secure svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.store-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}
.store-credit strong { color: var(--green); font-weight: 700; }
.store-credit[hidden] { display: none; }

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--blue);
    color: var(--on-blue);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    transition: background .15s ease;
}
.cart-btn:hover { background: var(--blue-hover); }
.cart-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 2px solid var(--bg);
    background: var(--red);
    color: #1a0608;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.cart-count[hidden] { display: none; }

@media (max-width: 760px) {
    .header-inner { gap: 10px; }
    .site-header .brand span { display: none; }
    .site-nav { margin-left: 0; }
    .site-nav a { padding: 20px 9px; }
}
@media (max-width: 640px) {
    .secure { display: none; }
    .store-credit span.label { display: none; }
}

/* ---------- Main + shared ---------- */
main { flex: 1; padding: 56px 0 88px; }

.page-title { font-size: clamp(34px, 5vw, 46px); }
.page-sub { color: var(--muted); margin-top: 10px; max-width: 56ch; }

.btn {
    display: inline-block;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--blue);
    color: var(--on-blue);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--blue-hover); }

.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); background: transparent; }

.btn.discord { background: #5865f2; color: #fff; }
.btn.discord:hover { background: #6b77f5; }

.btn.danger { background: transparent; border-color: #5a2a2d; color: var(--red); }
.btn.danger:hover { background: #2a1517; }

.btn[aria-disabled="true"] {
    background: var(--inset);
    border-color: var(--border);
    color: var(--muted);
    pointer-events: none;
}

.notice {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #5c4a1c;
    border-left: 3px solid var(--amber);
    background: #1d1709;
    border-radius: var(--r-sm);
    color: #eec97a;
    font-size: 14px;
}
.notice a { text-decoration: underline; }

/* ---------- Home: linking ---------- */
/* home content uses the same width as the header so left edges line up */

.home-banner {
    margin-bottom: 36px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--inset);
    line-height: 0;
}
.home-banner img { display: block; width: 100%; height: auto; aspect-ratio: 2048 / 286; object-fit: cover; transition: transform .35s ease; }

/* banner is a link to the store */
a.home-banner { position: relative; display: block; transition: border-color .15s ease; }
a.home-banner:hover { border-color: var(--border-strong); }
.home-banner-cta {
    position: absolute;
    right: 16px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    background: rgba(8, 12, 18, .75);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}
.home-banner-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
a.home-banner:hover .home-banner-cta, a.home-banner:focus-visible .home-banner-cta { opacity: 1; transform: none; }
@media (hover: none) { .home-banner-cta { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { a.home-banner:hover img { transform: none; } }

.noscript-note {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    border: 1px solid #5c4a1c;
    background: #1d1709;
    color: #eec97a;
    font-size: 14px;
}

/* The two steps sit side by side with an arrow between, so the order reads at a glance */
.link-list {
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    align-items: stretch;
    transition: opacity .15s ease;
}
.link-list.is-loading { opacity: 0; pointer-events: none; }

.link-arrow {
    display: grid;
    place-items: center;
    color: var(--border-strong);
}
.link-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.link-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas: "icon text" "btn btn";
    align-content: space-between;
    gap: 22px 16px;
    min-height: 190px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .2s ease;
}

.link-icon {
    grid-area: icon;
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--r);
    background: #1b2838;
    color: #fff;
}
.link-icon svg { width: 30px; height: 30px; fill: currentColor; }
.link-icon.discord { background: #5865f2; }
.link-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.link-text { grid-area: text; display: grid; align-content: center; gap: 4px; min-width: 0; }
.link-text strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
}
.link-text .step {
    padding: 2px 8px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.link-text > span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.link-text .who { color: var(--text); font-weight: 600; }

.link-row .btn { grid-area: btn; width: 100%; padding: 13px 18px; }

/* waiting on step 1 */
.link-row.locked { border-top-color: var(--border-strong); }
.link-row.locked .link-icon,
.link-row.locked .link-text { opacity: .55; }

/* done */
.link-row.linked { border-top-color: var(--green); }
.link-row.linked .step { border-color: rgba(61, 220, 132, .45); color: var(--green); }
.link-row.linked .link-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--panel);
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304121f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.privacy-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 72ch;
    margin: 18px 0 44px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}
.privacy-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* sale strip: noticeable, but it doesn't outrank linking */
.sale-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 44px;
    padding: 18px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--amber);
    border-radius: var(--r);
}
.sale-banner[hidden] { display: none; }
.sale-badge {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    color: var(--amber);
}
.sale-copy { min-width: 0; }
.sale-copy strong { display: block; font-size: 17px; font-weight: 600; }
.sale-copy span { color: var(--muted); font-size: 14px; }
.sale-banner .btn { margin-left: auto; white-space: nowrap; }

.community {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.community .link-icon { width: 44px; height: 44px; flex: 0 0 44px; }
.community .link-icon svg { width: 24px; height: 24px; }
.community-copy { min-width: 0; }
.community h2 { font-size: 22px; margin-bottom: 2px; }
.community p { color: var(--muted); font-size: 14px; }
.community .btn { margin-left: auto; white-space: nowrap; }

@media (max-width: 760px) {
    main { padding-top: 24px; }
    .home-banner { margin-bottom: 24px; }
    .home-banner img { aspect-ratio: 2048 / 400; object-position: 42% center; }
    .link-list { grid-template-columns: 1fr; }
    .link-arrow { height: 32px; }
    .link-arrow svg { transform: rotate(90deg); }
    .link-row { min-height: 0; padding: 20px; }
    .link-text strong { font-size: 24px; }
    .sale-banner { flex-wrap: wrap; gap: 6px 16px; padding: 16px; }
    .sale-banner .btn { margin-left: 0; width: 100%; margin-top: 10px; }
    .community { flex-wrap: wrap; }
    .community .btn { margin-left: 0; width: 100%; }
}

/* ---------- Store (Atlas-style) ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.filter {
    padding: 9px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(20, 27, 38, .7);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.store-group { margin-top: 40px; }
.store-group[hidden] { display: none; }
.store-group h2 { font-size: 26px; margin-bottom: 16px; }

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

.item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(20, 27, 38, .92);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.item-body { padding: 22px 20px 6px; flex: 1; position: relative; }
.item .name { font-size: 24px; }
.item .kind { margin-top: 4px; color: var(--muted); font-size: 14px; }

.perks { list-style: none; margin-top: 16px; }
.perks li { position: relative; padding-left: 14px; font-size: 14px; color: #dbe2ea; }
.perks li + li { margin-top: 10px; }
.perks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--blue)); }

/* Tier cards: strong rank-colored wash from the top-left, big faded name behind */
.item-tier {
    --tone: var(--blue);
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--tone) 30%, transparent) 0%, transparent 55%),
        rgba(20, 27, 38, .94);
    border-color: color-mix(in srgb, var(--tone) 28%, transparent);
}
.item-tier:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tone) 60%, transparent);
    box-shadow: 0 14px 40px color-mix(in srgb, var(--tone) 22%, transparent);
}
.item-tier.is-top {
    border-color: color-mix(in srgb, var(--tone) 65%, transparent);
    box-shadow: 0 0 34px color-mix(in srgb, var(--tone) 22%, transparent);
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--tone) 42%, transparent) 0%, transparent 60%),
        rgba(20, 27, 38, .94);
}

.item-watermark {
    position: absolute;
    top: 74px;
    right: -30px;
    transform: rotate(-18deg);
    pointer-events: none;
    user-select: none;
}
.item-mark {
    display: block;
    font-family: var(--font-display);
    font-size: 92px;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: color-mix(in srgb, var(--tone) 20%, transparent);
}
.item-mark-img { display: block; width: 240px; height: auto; opacity: .3; }

.item-badge {
    position: absolute;
    top: 0;
    right: 16px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 0 0 8px 8px;
    background: var(--tone);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.item-title { display: flex; align-items: center; }
.item-icon { display: grid; place-items: center; flex: none; color: var(--tone); }
.item-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.item-tier .name { font-size: 25px; }
.item-tier.is-top .name { color: var(--tone); }
.item-tier.is-top .item-body { padding-top: 32px; }
.item-blurb { margin-top: 10px; color: #c3ccd6; font-size: 14px; }

/* kit perks as Atlas-style dot bullets with the value in bold */
.specs { list-style: none; margin: 18px 0 0; padding: 0; }
.specs li { display: flex; align-items: baseline; gap: 6px; padding: 0 0 0 14px; position: relative; font-size: 14px; }
.specs li + li { margin-top: 10px; }
.specs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--blue)); }
.spec-icon { display: none; }
.spec-label { color: #dbe2ea; }
.spec-value { color: #fff; font-weight: 800; }
.spec-value.yes, .spec-value.red, .spec-value.pink, .spec-value.blue, .spec-value.green { color: var(--c); }
.spec-value.yes   { --c: #3ddc84; }
.spec-value.red   { --c: #ff5c5c; }
.spec-value.pink  { --c: #ff6fb5; }
.spec-value.blue  { --c: #4fb6ff; }
.spec-value.green { --c: #3ddc84; }

.item-foot { position: relative; margin: 14px 20px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.item-foot .price { font-size: 30px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.item-tier.is-top .item-foot .price { color: var(--tone); }

.item-actions { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 16px 20px 20px; }

.buy {
    margin: 14px 18px 18px;
    padding: 13px;
    border: 0;
    border-radius: var(--r-sm);
    background: #7c3aed;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.buy:hover { background: #8b4dff; }
.buy:active { transform: scale(.98); }
.buy.added { background: #1f9d5c; }
.buy:disabled { background: var(--inset); color: var(--muted); cursor: not-allowed; }
.item-actions .buy { margin: 0; }
.item-tier.is-top .buy { background: var(--tone); }
.item-tier.is-top .buy:hover { background: color-mix(in srgb, var(--tone) 85%, #fff); }

.view-kit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: rgba(8, 12, 18, .55);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.view-kit:hover { border-color: color-mix(in srgb, var(--tone, var(--blue)) 60%, transparent); background: rgba(255, 255, 255, .04); }
.view-kit svg { color: var(--muted); }

/* Bundles: same plain card as everything else */
.bundle-card {
    --tone: #7c3aed;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    /* staggered dot grid: quiet like the stripes on the other cards */
    background:
        radial-gradient(circle, color-mix(in srgb, var(--tone) 30%, transparent) 1px, transparent 1.5px) 0 0 / 16px 16px,
        radial-gradient(circle, color-mix(in srgb, var(--tone) 30%, transparent) 1px, transparent 1.5px) 8px 8px / 16px 16px,
        color-mix(in srgb, var(--tone) 12%, #0d131b);
    border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
    border-radius: var(--r);
}
.bundle-tag { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.bundle-name { font-size: 28px; color: #fff; }
.bundle-text { margin-top: 6px; color: #c3ccd6; font-size: 15px; }
.bundle-includes { margin-top: 12px; color: #dbe2ea; font-size: 14px; }
.bundle-includes span { color: var(--muted); }

.bundle-buy { display: grid; justify-items: end; gap: 6px; }
.bundle-prices { display: flex; align-items: baseline; gap: 10px; }
.bundle-old { color: var(--muted); font-size: 16px; font-weight: 600; }
.bundle-now { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #fff; }
.bundle-save { color: var(--muted); font-size: 14px; font-weight: 600; }
.bundle-card .buy.bundle-cta { margin: 10px 0 0; width: 200px; }

@media (max-width: 760px) {
    .bundle-card { grid-template-columns: 1fr; padding: 22px; }
    .bundle-buy { justify-items: stretch; }
    .bundle-card .buy.bundle-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .item-tier:hover { transform: none; }
}

/* Kit details popup */
.kit-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 6, 10, .8);
}
.kit-modal[hidden] { display: none; }
.kit-modal-card {
    --tone: var(--blue);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    background: #10161f;
    border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--border));
    border-radius: var(--r);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    overflow: hidden;
}
.kit-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 18%, transparent), transparent 60%);
}
.kit-modal-badge {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: none;
    border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--tone) 35%, transparent), transparent 70%),
        #0b1018;
    box-shadow: 0 0 18px color-mix(in srgb, var(--tone) 18%, transparent);
}
.kit-modal-heading { flex: 1; min-width: 0; }
.kit-modal-heading h3 { font-size: 20px; }
.kit-modal-price { color: var(--tone); font-size: 16px; font-weight: 800; }
.kit-modal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.kit-modal-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.kit-modal-body { flex: 1; overflow-y: auto; padding: 18px; }
.kit-modal-gallery { display: grid; gap: 16px; }
.kit-modal-gallery.is-multi { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kit-shot { margin: 0; }
.kit-shot figcaption {
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--tone);
    font-weight: 800;
    font-size: 15px;
}
.kit-shot-frame {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, .3);
    overflow: hidden;
}
.kit-shot-frame img { display: block; width: 100%; height: auto; }
.kit-shot-frame img[hidden], .kit-shot-empty[hidden] { display: none; }
.kit-shot-empty { color: var(--muted); font-size: 14px; font-weight: 600; }
.kit-modal-note {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, .25);
    color: #c3ccd6;
    font-size: 14px;
}

.kit-modal-foot { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.kit-modal-foot .kit-modal-buy { flex: 1; margin: 0; padding: 15px; background: var(--tone); color: #fff; font-size: 15px; }
.kit-modal-foot .kit-modal-buy:hover { background: color-mix(in srgb, var(--tone) 85%, #fff); }
.kit-modal-foot .kit-modal-buy.in-cart { background: transparent; box-shadow: inset 0 0 0 2px var(--border-strong); }
.kit-modal-done {
    padding: 0 22px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.kit-modal-done:hover { background: rgba(255, 255, 255, .05); }

@media (max-width: 600px) {
    .kit-modal { padding: 0; align-items: end; }
    .kit-modal-card { max-height: 94vh; border-radius: var(--r) var(--r) 0 0; }
    .kit-modal-gallery.is-multi { grid-template-columns: 1fr; }
}

body.modal-open { overflow: hidden; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 14, .7);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 900;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-left: 1px solid var(--border);
    color: var(--text);
    transform: translateX(100%);
    transition: transform .25s ease;
    visibility: hidden;
    z-index: 901;
}
.cart-drawer.open { transform: translateX(0); visibility: visible; }
.cart-drawer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-drawer button { font: inherit; color: inherit; cursor: pointer; }

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-head h2 { font-size: 26px; }

.cart-drawer-close, .cart-row-remove {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--r-sm);
    color: var(--muted);
}
.cart-drawer-close:hover, .cart-row-remove:hover { background: var(--inset); color: var(--text); }
.cart-row-remove:hover { color: var(--red); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }

.cart-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-areas: "thumb info remove" "thumb qty price";
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
    padding: 14px 0;
}
.cart-row + .cart-row { border-top: 1px solid var(--border); }

.cart-row-thumb {
    grid-area: thumb;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: var(--inset);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}
.cart-row-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cart-row-thumb img.is-logo { opacity: .2; }

.cart-row-info { grid-area: info; align-self: start; display: flex; flex-direction: column; min-width: 0; }
.cart-row-info strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cart-row-info span { color: var(--muted); font-size: 13px; }
.cart-row-remove { grid-area: remove; align-self: start; }

.cart-qty { grid-area: qty; display: flex; align-items: center; gap: 10px; }
.cart-qty button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--inset);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.cart-qty button:hover:not(:disabled) { border-color: var(--muted); }
.cart-qty button:disabled { opacity: .35; cursor: not-allowed; }
.cart-qty span { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }

.cart-row-price { grid-area: price; justify-self: end; font-size: 16px; font-weight: 700; }

.cart-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.cart-empty .btn { margin-top: 16px; }

.cart-drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--border); }
.cart-drawer-foot[hidden] { display: none; }

.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; color: var(--muted); }
.cart-total-row strong { color: var(--text); font-size: 18px; }
.cart-total-row.credit { color: var(--green); }
.cart-total-row.total { color: var(--text); }

.cart-checkout {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--blue);
    color: var(--on-blue);
    font-size: 15px;
    font-weight: 700;
}
.cart-checkout:hover:not(:disabled) { background: var(--blue-hover); }
.cart-checkout:disabled { background: var(--inset); color: var(--muted); cursor: not-allowed; }

.credit-apply {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--inset);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.credit-apply input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.credit-apply span { font-size: 14px; color: var(--text); }
.credit-apply[hidden] { display: none; }

/* ---------- Policy pages ---------- */
.doc-layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}
.doc-nav { position: sticky; top: 88px; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.doc-nav a {
    margin-left: -1px;
    padding: 8px 14px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
}
.doc-nav a:hover { color: var(--text); }
.doc-nav a.active { color: var(--text); border-left-color: var(--blue); }

.doc-body { max-width: 66ch; }
.doc-note {
    margin-bottom: 36px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: var(--r-sm);
    color: #c6d2dd;
}
.doc-section { margin-bottom: 40px; scroll-margin-top: 88px; }
.doc-section h2 { font-size: 28px; margin-bottom: 12px; }
.doc-box { color: #c6d2dd; line-height: 1.65; }
.doc-box p + p { margin-top: 12px; }

@media (max-width: 700px) {
    .doc-layout { grid-template-columns: 1fr; gap: 24px; }
    .doc-nav { position: static; grid-auto-flow: column; justify-content: start; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--border); }
    .doc-nav a { margin: 0 0 -1px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
    .doc-nav a.active { border-bottom-color: var(--blue); }
}

/* ---------- Footer (Atlas-style) ---------- */
.site-footer { background: #000; border-top: 1px solid rgba(255, 255, 255, .06); color: #c3ccd6; font-size: 15px; }
.foot-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 32px;
    padding: 44px 0 38px;
}
.foot-links { display: flex; gap: 48px; }
.footer-col h3, .foot-social h3 { margin-bottom: 14px; color: #fff; font-size: 16px; font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; color: #c3ccd6; }
.footer-col a:hover { color: #fff; }

.foot-brand { align-self: center; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.foot-brand img { height: 38px; width: auto; }

.foot-social { justify-self: end; }
.social-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 18px; }
.social-tile { display: flex; align-items: center; gap: 10px; color: #c3ccd6; font-weight: 500; }
.social-tile:hover { color: #fff; }
.social-ico {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1e2633;
}
.social-ico.discord { color: #7b86f8; }
.social-ico.youtube { color: #ff4d4d; }
.social-ico.x, .social-ico.tiktok { color: #fff; }

.foot-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: var(--muted);
}
.foot-tag { color: #8fb3e6; }
.foot-bottom .to-top { justify-self: end; }

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1e2633;
    border: 0;
    border-radius: var(--r-sm);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.to-top:hover { background: #283243; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 820px) {
    .foot-top { grid-template-columns: 1fr; justify-items: start; }
    .foot-brand { order: -1; }
    .foot-social { justify-self: start; }
    .foot-bottom { grid-template-columns: 1fr; justify-items: start; }
    .foot-bottom .to-top { justify-self: start; }
}

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 4px; margin-top: 28px; border-bottom: 1px solid var(--border); }
.admin-tab {
    padding: 10px 16px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--text); border-bottom-color: var(--blue); }

.admin-panel { margin-top: 28px; }
.admin-panel[hidden] { display: none; }

.admin-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
    margin-bottom: 20px;
}
.admin-card h3 { font-size: 22px; margin-bottom: 14px; }

.admin-form { display: grid; gap: 12px; }
.admin-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.admin-form input, .admin-form select, .admin-form textarea {
    padding: 10px 12px;
    background: var(--inset);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--blue); outline: 0; }
.admin-form textarea { min-height: 80px; resize: vertical; }
.admin-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.lookup-result { margin-top: 16px; padding: 16px; background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm); }
.lookup-result[hidden] { display: none; }
.lookup-result .balance { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--green); margin: 6px 0 10px; }

.history-list { list-style: none; margin-top: 12px; max-height: 240px; overflow-y: auto; }
.history-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.history-list .amt-pos { color: var(--green); }
.history-list .amt-neg { color: var(--red); }

.product-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-table th, .product-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.product-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.product-table .actions { display: flex; gap: 8px; }
.product-table .btn-sm { padding: 6px 10px; font-size: 12px; }

.admin-msg { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.admin-msg.ok { background: #0d1f14; border: 1px solid #1a3d28; color: var(--green); }
.admin-msg.err { background: #1f1214; border: 1px solid #5a2a2d; color: var(--red); }
.admin-locked { text-align: center; padding: 60px 20px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- prices, sale, cart extras ---------- */
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price-suffix { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-was { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.was-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.was-label s { margin-left: 2px; }
.sale-tag {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(61, 220, 132, .14);
    border: 1px solid rgba(61, 220, 132, .35);
    color: #3ddc84;
    font-size: 12px;
    font-weight: 800;
}
.bundle-prices .price-suffix { align-self: flex-end; margin-bottom: 4px; }


.buy.in-cart { background: transparent; box-shadow: inset 0 0 0 2px var(--border-strong); color: var(--text); }
.buy.in-cart:hover { background: rgba(255, 255, 255, .06); }
.item-tier.is-top .buy.in-cart,
.bundle-card .buy.bundle-cta.in-cart { background: transparent; color: var(--text); }

.cart-row-price s { color: var(--muted); font-size: 13px; font-weight: 500; }
.cart-total-row.sale { color: #3ddc84; }
.cart-overlap { margin: 10px 0 6px; }
.notice-btn {
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* product picture as a banner (e.g. Scavenger's recycler) */
.item-banner {
    position: relative;
    display: grid;
    place-items: center;
    height: 150px;
    margin-bottom: -6px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 32%, transparent), transparent);
}
.item-banner img {
    width: auto;
    height: 136px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
    transition: transform .25s ease;
}
.item-tier.has-banner:hover .item-banner img { transform: scale(1.05) rotate(-2deg); }
.item-tier.has-banner .item-body { padding-top: 6px; }
.item-tier.has-banner .item-watermark { top: 170px; }
@media (prefers-reduced-motion: reduce) { .item-tier.has-banner:hover .item-banner img { transform: none; } }

/* ---------- Diamonds ---------- */
.diamond-items { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.diamond-card { --tone: #3fb8ff; text-align: center; background: rgba(18, 24, 33, .95); }
.diamond-art {
    display: grid;
    place-items: center;
    height: 104px;
    border-bottom: 1px solid var(--border);
    /* rank-card stripes, but crossed both ways so it reads as its own thing */
    background:
        repeating-linear-gradient(45deg, color-mix(in srgb, var(--tone) 8%, transparent) 0 1px, transparent 1px 11px),
        repeating-linear-gradient(135deg, color-mix(in srgb, var(--tone) 8%, transparent) 0 1px, transparent 1px 11px),
        color-mix(in srgb, var(--tone) 10%, #0d131b);
}
.diamond-card .item-body { padding: 16px 18px 4px; }
.diamond-card .gem { width: 52px; height: 52px; color: #9fe0ff; }
.diamond-card .name { font-size: 20px; line-height: 1.2; }
.diamond-bonus { margin-top: 4px; color: var(--muted); font-size: 13px; }
.diamond-card .price { margin-top: 14px; font-size: 26px; font-weight: 800; color: #fff; }
.diamond-card .item-actions { margin: 14px 18px 18px; }
.diamond-card .buy { display: flex; align-items: center; justify-content: center; gap: 8px; }
.diamond-card.is-best { border-color: var(--border-strong); }
.diamond-card .item-badge { background: rgba(8, 12, 18, .82); color: #fff; }

/* ---------- Cart page (basket) ---------- */
.cart-page main .wrap, .basket-page { max-width: 720px; }
.cart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cart-head .page-sub { margin-top: 4px; }
.cart-continue { display: inline-flex; align-items: center; gap: 8px; color: #c3ccd6; font-size: 15px; font-weight: 600; white-space: nowrap; }
.cart-continue:hover { color: #fff; }
.cart-continue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.basket { display: grid; gap: 14px; }
.basket-items { display: grid; gap: 14px; }

.basket-item {
    --tone: var(--blue);
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 6px 16px;
    align-items: start;
    padding: 20px 22px 16px;
    border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
    border-radius: var(--r);
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--tone) 16%, transparent), transparent 70%),
        rgba(16, 22, 31, .94);
}
.basket-item.is-doubled { border-color: rgba(255, 176, 32, .6); }

.basket-thumb {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--tone) 35%, transparent), transparent 70%),
        #0b1018;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 18px color-mix(in srgb, var(--tone) 18%, transparent);
    overflow: hidden;
}
.basket-thumb:has(.thumb-mark) {
    border-color: color-mix(in srgb, var(--tone) 55%, transparent);
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--tone) 38%, transparent), transparent 75%),
        #121923;
}
.thumb-mark {
    display: block;
    transform: rotate(-16deg) translateX(12px);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--tone);
}
.insignia { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--tone, #fff) 55%, transparent)); }
.basket-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.basket-letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 85%, #fff), var(--tone) 40%, color-mix(in srgb, var(--tone) 40%, #0b0f16));
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

.basket-info h3 { font-size: 18px; }
.basket-kind { color: var(--muted); font-size: 14px; }

.basket-price { display: grid; justify-items: end; text-align: right; }
.basket-price strong { font-size: 20px; font-weight: 800; }
.basket-price s { color: var(--muted); font-size: 13px; }
.basket-price span { color: var(--muted); font-size: 13px; }

.basket-warn {
    grid-column: 2 / -1;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 176, 32, .4);
    border-radius: var(--r-sm);
    background: rgba(255, 176, 32, .08);
    color: #ffc75f;
    font-size: 13px;
}
.basket-warn button { margin-left: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

.basket-remove {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 2px 0;
    border: 0;
    background: none;
    color: #ff4d4d;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.basket-remove:hover { color: #ff7a7a; }

.basket-upsell {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(22, 131, 255, .35);
    border-radius: var(--r);
    background: linear-gradient(120deg, rgba(22, 131, 255, .14), transparent 70%), rgba(16, 22, 31, .94);
    overflow: hidden;
}
.basket-upsell::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #2ee88a, #2fb4ff, #ff5fb0, #ff4d4d); }
.basket-upsell h3 { font-size: 18px; }
.basket-upsell p { margin-top: 4px; color: #c3ccd6; font-size: 14px; }
.basket-upsell .bundle-includes { margin-top: 12px; }
.basket-upsell-buy { display: grid; justify-items: end; gap: 10px; }
.basket-upsell-buy strong { font-size: 24px; font-weight: 900; }

.basket-summary {
    margin-top: 10px;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(16, 22, 31, .94);
}
.basket-summary h2 { font-size: 20px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14px; }
.sum-row span:last-child { font-weight: 700; }
.sum-sale { color: #3ddc84; }
.sum-credit { color: #3ddc84; }
.sum-credits {
    display: flex;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, .25);
    font-size: 14px;
}
.sum-credits svg { flex: none; margin-top: 1px; color: #3ddc84; }
.sum-credits strong { display: block; font-weight: 600; }
.sum-credits span, .sum-credit-toggle { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.sum-credit-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); }
.sum-credit-toggle input { width: 16px; height: 16px; accent-color: var(--blue); }
.sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 18px;
    font-weight: 800;
}
.sum-total strong { font-size: 22px; }
.basket-summary .cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    font-size: 15px;
    background: linear-gradient(90deg, #08a9f5, #1683ff);
    color: #fff;
}
.basket-summary .cart-checkout:disabled { background: rgba(255, 255, 255, .07); color: var(--muted); }
.sum-secure { margin-top: 12px; text-align: center; color: var(--muted); font-size: 12px; }
.basket-summary .notice { margin-top: 14px; }

.basket-empty {
    padding: 56px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r);
    text-align: center;
    background: rgba(16, 22, 31, .7);
}
.basket-empty h2 { font-size: 22px; }
.basket-empty p { margin: 6px 0 18px; color: var(--muted); }

@media (max-width: 560px) {
    .basket-item { grid-template-columns: 44px 1fr; padding: 16px; }
    .basket-thumb { width: 44px; height: 44px; grid-row: auto; }
    .basket-price { grid-column: 2; justify-items: start; text-align: left; }
    .basket-remove, .basket-warn { grid-column: 1 / -1; }
    .basket-upsell { grid-template-columns: 1fr; }
    .basket-upsell-buy { justify-items: stretch; }
    .cart-head { flex-wrap: wrap; }
}

/* ---------- "Added to cart" toast ---------- */
.hz-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 16px 14px 18px;
    border: 1px solid var(--border-strong);
    border-left: 3px solid #3ddc84;
    border-radius: var(--r-sm);
    background: #121923;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
}
.hz-toast.show { transform: none; opacity: 1; pointer-events: auto; }
.hz-toast-text strong { display: block; font-size: 14px; }
.hz-toast-text span { color: var(--muted); font-size: 13px; }
.hz-toast-link { color: #5aa9ff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hz-toast-link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .hz-toast { transition: none; } }

/* ---------- Free trials ---------- */
.trial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(61, 220, 132, .45);
    border-radius: var(--r-sm);
    background: rgba(61, 220, 132, .1);
    color: #3ddc84;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}
.trial-btn:hover { background: rgba(61, 220, 132, .18); }
.trial-btn.in-cart { background: transparent; border-color: var(--border-strong); color: var(--text); }

.basket-item.is-trial { border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
.trial-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid rgba(61, 220, 132, .45);
    border-radius: 6px;
    background: rgba(61, 220, 132, .12);
    color: #3ddc84;
    font-size: 11px;
    font-weight: 700;
    vertical-align: 3px;
}
.basket-price .free, .sum-row .free { color: #3ddc84; }
.basket-price strong.free { font-size: 20px; font-weight: 900; }
.trial-box {
    grid-column: 2 / -1;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(61, 220, 132, .35);
    border-radius: var(--r-sm);
    background: rgba(61, 220, 132, .07);
    color: #3ddc84;
}
.trial-box svg { flex: none; margin-top: 1px; }
.trial-box strong { display: block; font-size: 14px; }
.trial-box span { display: block; margin-top: 2px; color: #9fd9b8; font-size: 12px; }
@media (max-width: 560px) { .trial-box { grid-column: 1 / -1; } }

/* ---------- Store page: sale strip + free trial promo ---------- */
.store-sale { margin: 22px 0 14px; }
.trial-promo {
    --tone: #ff4d4d;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
    padding: 16px 16px 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(18, 24, 33, .95);
    overflow: hidden;
}
.trial-promo[hidden] { display: none; }
.trial-promo { grid-template-columns: 1fr auto auto; }
.trial-promo-art { display: none; }
.trial-promo-copy h2 { font-size: 19px; }
.trial-promo-copy h2 span { color: inherit; }
.trial-promo-copy p { margin-top: 3px; color: #c3ccd6; font-size: 14px; }
.trial-promo-cta {
    padding: 12px 20px;
    border: 0;
    border-radius: var(--r-sm);
    background: #7c3aed;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}
.trial-promo-cta:hover { background: #8b4dff; }
.trial-promo-cta:disabled { opacity: .6; cursor: wait; }
.trial-promo-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.trial-promo-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.trial-promo-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 640px) {
    .trial-promo { grid-template-columns: 1fr; }
    .trial-promo-cta { grid-column: 1 / -1; }
    .trial-promo-close { position: absolute; top: 8px; right: 8px; }
}

/* ---------- Compact store cards (Vitality-style) ---------- */
.store-page main .wrap { width: min(1240px, calc(100% - 32px)); }
.store-page .items { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }

.v-card { background: rgba(18, 24, 33, .95); }
.v-card .card-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 150px;
    border-bottom: 1px solid var(--border);
    background:
        repeating-linear-gradient(135deg, color-mix(in srgb, var(--tone) 9%, transparent) 0 1px, transparent 1px 9px),
        color-mix(in srgb, var(--tone) 12%, #0d131b);
    overflow: hidden;
}
.v-card .art-name {
    transform: rotate(-8deg);
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(180deg, #fff 10%, color-mix(in srgb, var(--tone) 80%, #fff) 55%, var(--tone));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 18px color-mix(in srgb, var(--tone) 45%, transparent));
}
.v-card.has-art .card-art img {
    width: auto;
    height: 128px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55));
    transition: transform .25s ease;
}
.v-card.has-art:hover .card-art img { transform: scale(1.05) rotate(-2deg); }

.v-card .item-body { padding: 16px 18px 4px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.v-card .name { font-size: 21px; }
.card-price { font-size: 23px; font-weight: 900; letter-spacing: -.02em; color: var(--tone); white-space: nowrap; }
.card-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card-kind {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.card-kind::before { content: ""; width: 18px; height: 2px; background: var(--tone); }
.card-term { color: var(--muted); font-size: 12px; white-space: nowrap; }
.card-term s { margin-right: 4px; }
.card-term b { color: #3ddc84; font-weight: 800; }

.v-card .specs { margin-top: 14px; }
.v-card .specs li { display: block; padding-left: 14px; font-size: 13.5px; }
.v-card .specs li + li { margin-top: 8px; }
.v-card .specs li::before { top: .5em; }
.spec-line { display: flex; gap: 6px; }
.spec-bar { display: block; width: 72%; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.spec-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 55%, #fff0), var(--tone)); }
.v-card .perks { margin-top: 14px; }
.v-card .perks li { font-size: 13.5px; }

.v-card .item-actions { margin: 14px 18px 18px; }
.v-card .buy, .bundle-card .buy { display: flex; align-items: center; justify-content: center; gap: 8px; }
.v-card .view-kit { padding: 11px; }

.v-card.is-top .item-body { padding-top: 16px; }
.v-card .item-badge { top: 0; }
/* the 4 kits stretch to fill the row instead of leaving an empty 5th column */
.store-page [data-group="kits"] .items { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* kit emblems in the card art area */
.v-card .card-art .emblem { width: auto; height: 104px; transition: transform .25s ease; }
.v-card:hover .card-art .emblem { transform: scale(1.05); }
.v-card .card-art .emblem text { font-family: var(--font); }
@media (prefers-reduced-motion: reduce) { .v-card:hover .card-art .emblem { transform: none; } }
/* big faded copy of the emblem behind the perks, like Atlas */
.v-card .card-mark {
    position: absolute;
    right: -46px;
    bottom: 70px;
    transform: rotate(-14deg);
    opacity: .05;
    pointer-events: none;
}
.v-card .card-mark .emblem { width: 220px; height: auto; }
.v-card .item-body, .v-card .item-actions { position: relative; }

/* plain colour band for items without a picture */
.v-card .card-art.is-band {
    height: 72px;
    /* same stripes as the rank pictures, in the kit's colour */
    background:
        repeating-linear-gradient(135deg, color-mix(in srgb, var(--tone) 14%, transparent) 0 1px, transparent 1px 9px),
        color-mix(in srgb, var(--tone) 18%, #0d131b);
}
.v-card .card-art.is-band + .item-body { padding-top: 18px; }
.v-card .item-badge { background: rgba(8, 12, 18, .82); color: #fff; }

/* ---------- Subscription length (picked at checkout) ---------- */
.term-note { margin: 0 0 8px; color: var(--muted); font-size: 14px; text-align: center; }

.bundle-price-box { display: grid; justify-items: end; gap: 6px; }
@media (max-width: 760px) { .bundle-price-box { justify-items: start; } }

.basket-term {
    margin-top: 6px;
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: #0d131b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6b4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 8px center / 14px no-repeat;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
}
.basket-term:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.card-kind { white-space: nowrap; }

/* narrow cards: the savings drop under the kind label instead of spilling out */
.card-sub { flex-wrap: wrap; row-gap: 4px; }

/* ---------- Discord: optional + free kit reward ---------- */
.link-text .step.optional { border-color: rgba(88, 101, 242, .5); color: #9aa3ff; }
.link-row.locked .step.optional { opacity: 1; }
.link-reward {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(88, 101, 242, .45);
    border-radius: var(--r);
    background: rgba(16, 22, 31, .92);
}
.link-reward-tag {
    flex: none;
    padding: 5px 10px;
    border-radius: 999px;
    background: #5865f2;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.link-reward-text { color: #c3ccd6; font-size: 14px; }
.link-reward-text strong { color: #fff; }
.link-reward.is-claimed { border-color: rgba(61, 220, 132, .45); }
.link-reward.is-claimed .link-reward-tag { background: #3ddc84; color: #062312; }
@media (max-width: 560px) { .link-reward { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- Home: link accounts panel (Vitality-style) ---------- */
.sync { display: grid; justify-items: center; text-align: center; margin-bottom: 40px; }
.sync-title { font-size: clamp(32px, 5vw, 46px); }
.sync-title span { color: var(--blue); }
.sync-lead { max-width: 52ch; margin: 10px auto 28px; color: #c3ccd6; font-size: 17px; }
.sync-panel {
    width: 100%;
    max-width: 780px;
    padding: 40px 48px 36px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(14, 19, 27, .95);
}
.sync-panel.is-done { border-color: rgba(61, 220, 132, .35); }
.sync-badge {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
}
.sync-panel.is-done .sync-badge { background: #3ddc84; color: #062312; }
.sync-badge svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.sync-state { font-size: 26px; }
.sync-state-sub { margin: 6px 0 26px; color: var(--muted); }

.sync-rows { display: grid; gap: 14px; text-align: left; transition: opacity .15s ease; }
.sync-rows.is-loading { opacity: 0; }
.sync-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    padding: 16px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(8, 12, 18, .55);
}
.sync-row.is-linked { border-color: rgba(61, 220, 132, .4); }
.sync-row.is-locked { opacity: .6; }
.sync-plat { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 12px; color: #fff; }
.sync-plat.steam { background: linear-gradient(150deg, #2a475e, #171a21); }
.sync-plat.discord { background: #5865f2; }
.sync-plat svg { width: 28px; height: 28px; fill: currentColor; }
.sync-sep { width: 1px; align-self: stretch; margin: 6px 0; background: var(--border-strong); }
.sync-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sync-who strong { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; }
.sync-avatar-blank { background: rgba(255, 255, 255, .1); }
.sync-copy {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.sync-copy:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.sync-copy.copied { color: #3ddc84; }
.sync-pill { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(88, 101, 242, .5); color: #9aa3ff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sync-pill.req { border-color: rgba(22, 131, 255, .5); color: #5aa9ff; }
.sync-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sync-unlink {
    padding: 6px 12px;
    border: 1px solid rgba(240, 113, 120, .45);
    border-radius: 8px;
    background: rgba(240, 113, 120, .1);
    color: #ff7a82;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.sync-unlink:hover { background: rgba(240, 113, 120, .2); }
.sync-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(61, 220, 132, .12); color: #3ddc84; }
.sync-go { padding: 11px 18px; font-size: 14px; }
.sync-go.discord { background: #5865f2; color: #fff; }
.sync-go.discord:hover { background: #6b77f5; }
.sync-hint { color: var(--muted); font-size: 14px; }
.sync-panel .link-reward { margin-top: 18px; text-align: left; }
@media (max-width: 600px) {
    .sync-panel { padding: 28px 16px; }
    .sync-row { flex-wrap: wrap; }
    .sync-sep { display: none; }
    .sync-actions { width: 100%; justify-content: flex-end; }
    .sync-go { flex: 1; }
}

/* ---------- Bundles: one big, two side by side ---------- */
.bundle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bundle-grid > .bundle-card:not(.is-compact) { grid-column: 1 / -1; }
.bundle-card.is-compact { padding: 22px 24px; }
.bundle-card.is-compact .bundle-name { font-size: 24px; }
.bundle-card.is-compact .bundle-now { font-size: 30px; }
@media (max-width: 900px) {
    .bundle-grid { grid-template-columns: 1fr; }
    .bundle-card.is-compact { grid-template-columns: 1fr; }
    .bundle-card.is-compact .bundle-buy { justify-items: stretch; }
}

/* ---------- Add to cart: one size everywhere ---------- */
/* Every buy button in the store and the kit popup is the same height, text size and shape */
#store-items .buy,
.kit-modal .buy {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
}
#store-items .buy svg,
.kit-modal .buy svg { width: 14px; height: 14px; }
/* View Kit Details and the free trial button match the button next to them */
#store-items .view-kit,
#store-items .trial-btn { height: 38px; padding: 0 14px; font-size: 13px; }

/* Diamonds: button uses the same light blue as the pattern behind the gem */
#store-items .diamond-card .buy:not(.in-cart):not(.added) { background: var(--tone); color: #06202e; }
#store-items .diamond-card .buy:not(.in-cart):not(.added):hover { background: color-mix(in srgb, var(--tone) 82%, #fff); }

/* Bundles: see-through purple, squarer corners */
#store-items .bundle-card .buy.bundle-cta { border-radius: 4px; }
#store-items .bundle-card .buy.bundle-cta:not(.in-cart):not(.added) {
    background: rgba(124, 58, 237, .32);
    box-shadow: inset 0 0 0 1px rgba(139, 77, 255, .75);
    color: #fff;
}
#store-items .bundle-card .buy.bundle-cta:not(.in-cart):not(.added):hover { background: rgba(124, 58, 237, .5); }

/* Kits and ranks: same squarer corners as the bundle buttons */
#store-items .v-card .buy { border-radius: 4px; }

/* Ranks and kits: button takes the card's own colour (its outline/background), see-through like bundles */
#store-items .v-card .buy:not(.in-cart):not(.added) {
    background: color-mix(in srgb, var(--tone) 30%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 80%, transparent);
    color: #fff;
}
#store-items .v-card .buy:not(.in-cart):not(.added):hover {
    background: color-mix(in srgb, var(--tone) 46%, transparent);
}
