/* XIN-SCS storefront design system.
   Palette lifted from the xin coming-soon page (SCS_BRAND_THEMES: "Blue Sin City
   Science theme, electric feel") — near-black night canvas, ELECTRIC BLUE primary,
   pink/violet/gold as accents only. Structure follows the Spools token system. */

:root {
    /* canvas & surfaces (darkest → lightest) — electric-blue night, slightly bright */
    --ink: #0a1630;
    --ink-2: #0e1e40;
    --panel: #132a52;
    --card: #183464;
    --line: rgba(0, 216, 255, 0.26);
    --line-2: rgba(0, 216, 255, 0.45);

    /* accents (from the banner / coming-soon page) */
    --blue: #00d8ff;
    --blue-deep: #1f7ec2;
    --pink: #ff2bd6;
    --violet: #9b3cff;
    --gold: #ffd34d;
    --green: #4ade80;
    --red: #ff6b81;

    /* text */
    --text: #f7fbff;
    --muted: #b4cde6;
    --muted-2: #6f87a3;

    /* gradients */
    --grad-electric: linear-gradient(100deg, #00d8ff, #1f7ec2);
    --grad-hot: linear-gradient(100deg, #ff2bd6, #9b3cff);
    --grad-neon: linear-gradient(100deg, #00d8ff 0%, #9b3cff 55%, #ff2bd6 100%);

    /* shape & depth */
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    --glow-blue: 0 0 24px rgba(0, 216, 255, 0.28);
    --glow-pink: 0 0 24px rgba(255, 43, 214, 0.22);
    --maxw: 1200px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1000px 560px at 82% -8%, rgba(155, 60, 255, 0.15), transparent 60%),
        radial-gradient(1000px 560px at 6% 4%, rgba(0, 216, 255, 0.26), transparent 58%),
        radial-gradient(800px 500px at 50% 110%, rgba(31, 126, 194, 0.26), transparent 60%),
        linear-gradient(140deg, var(--ink), var(--ink-2) 52%, #0b1c3a);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* the electric grid — signature atmosphere, cheap */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0, 216, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(0, 216, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 80%);
}

.wrap { position: relative; z-index: 1; width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; }

/* ── type ─────────────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; }
.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
}
.muted { color: var(--muted); }
.neon {
    background: var(--grad-neon);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── buttons ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.btn-electric {
    background: var(--grad-electric);
    color: #02131c;
    box-shadow: 0 12px 30px rgba(0, 216, 255, 0.32);
}
.btn-electric:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 216, 255, 0.45); }
.btn-ghost {
    background: rgba(0, 0, 0, 0.3);
    color: var(--muted);
    border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn-block { width: 100%; }

/* ── panels / cards ───────────────────────────────────────────────── */
.panel {
    background:
        linear-gradient(145deg, rgba(0, 216, 255, 0.10), rgba(155, 60, 255, 0.05) 60%, rgba(8, 18, 38, 0.6)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow), inset 0 0 42px rgba(0, 216, 255, 0.07), 0 0 24px rgba(0, 216, 255, 0.06);
    backdrop-filter: blur(14px);
}

/* status pill (coming-soon lineage) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 216, 255, 0.42);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: #bff8ff;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: var(--glow-blue);
}
.status-pill .pulse {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 12px var(--pink);
    animation: xin-pulse 1.35s ease-in-out infinite;
}
@keyframes xin-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* banner frame (login/landing hero) */
.banner-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 0 28px rgba(0, 216, 255, 0.25), 0 26px 90px rgba(0, 0, 0, 0.58);
}
.banner-frame img { display: block; width: 100%; height: auto; }

/* ── shop chrome ──────────────────────────────────────────────────── */
.shop-bar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 22, 48, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.shop-bar-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.shop-brand { text-decoration: none; color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; line-height: 1.15; white-space: nowrap; }
.shop-brand span { color: var(--pink); font-weight: 900; font-size: 1.28em; text-shadow: 0 0 16px rgba(255, 43, 214, 0.6), 0 0 34px rgba(255, 43, 214, 0.35); }
.shop-brand em { display: block; font-style: normal; font-weight: 600; font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 640px) { .shop-brand { font-size: 0.84rem; } }
.shop-links { display: flex; gap: 4px; margin-left: 6px; flex: 1; }
.shop-links a { color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.shop-links a:hover { color: var(--text); background: rgba(0, 216, 255, 0.08); }
.shop-links a.on { color: #02131c; background: var(--grad-electric); }
.cart-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 999px; text-decoration: none;
    background: var(--grad-electric); color: #02131c; font-weight: 800; font-size: 0.9rem;
    box-shadow: 0 10px 24px rgba(0, 216, 255, 0.3);
    transition: transform 150ms ease;
}
.cart-pill:hover { transform: translateY(-1px); }
.cart-pill span { font-weight: 700; opacity: 0.85; }

/* announcements */
.annc { border-left: 3px solid var(--blue); margin: 18px 0 6px; padding: 14px 18px; }
.annc h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.annc p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.annc a { color: var(--blue); }

/* lean product rows (two-column grid) */
.prow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 860px) { .prow-grid { grid-template-columns: 1fr; } }
.prow {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--card); border: 1px solid var(--line);
}
.prow.us { border-left: 3px solid var(--blue-deep); }
.prow.china { border-left: 3px solid var(--gold); }
.prow.other { border-left: 3px solid var(--violet); }
.prow.dead { opacity: 0.55; }
.prow-info { flex: 1; min-width: 0; }
.prow-name { font-weight: 700; font-size: 0.92rem; color: #fff; line-height: 1.25; }
.prow-spec { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.prow-avail { font-size: 0.72rem; margin-top: 2px; }
.prow-avail.ok { color: var(--green); }
.prow-avail.no { color: var(--red); }
.prow-badge { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em; vertical-align: 1px; }
.prow-badge.us { background: rgba(31, 126, 194, 0.25); color: #7cc4f0; }
.prow-badge.china { background: rgba(255, 211, 77, 0.15); color: var(--gold); }
.prow-badge.tested { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.prow-buy { text-align: right; flex: none; }
.prow-topline { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.prow-vid { flex: none; }
.prow-price { font-weight: 800; font-size: 1.02rem; color: #fff; white-space: nowrap; }
.prow-price .per { font-size: 0.68rem; color: var(--muted-2); font-weight: 400; }
.prow-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; justify-content: flex-end; }
.prow-form input[type=number] {
    width: 52px; padding: 6px 4px; text-align: center;
    background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px;
    color: var(--text); font-size: 0.88rem; font-weight: 700;
}
.prow-form input[type=number]::-webkit-outer-spin-button,
.prow-form input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add {
    padding: 7px 14px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--grad-electric); color: #02131c; font-weight: 800; font-size: 0.8rem;
    box-shadow: 0 8px 18px rgba(0, 216, 255, 0.25);
    transition: transform 140ms ease;
}
.btn-add:hover { transform: translateY(-1px); }
.btn-add:disabled { background: var(--ink-2); color: var(--muted-2); box-shadow: none; cursor: default; }

/* toast flash */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 60;
    padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
    background: rgba(74, 222, 128, 0.14); border: 1px solid rgba(74, 222, 128, 0.5); color: var(--green);
    animation: toast-fade 3.4s ease forwards; }
.toast.err { background: rgba(255, 107, 129, 0.12); border-color: rgba(255, 107, 129, 0.45); color: var(--red); }
@keyframes toast-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
