:root {
    /* Canvas — deep, near-black with a faint cool cast for a premium feel */
    --bg: #08090B;
    --bg-deep: #050506;
    --bg-elevated: rgba(255, 255, 255, 0.045);
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    /* Hairlines */
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* Type */
    --text: #FAFAFA;
    --text-muted: rgba(255, 255, 255, 0.64);
    --text-faint: rgba(255, 255, 255, 0.40);

    /* White is the primary brand color */
    --accent: #FFFFFF;
    --accent-hover: #FFFFFF;
    --accent-soft: rgba(255, 255, 255, 0.10);
    --accent-line: rgba(255, 255, 255, 0.22);
    --glow-rgb: 255, 255, 255;

    /* Status — desaturated so white stays the hero */
    --success: #7CF2A0;
    --error: #FF8A8A;
    --warning: #FFD27A;
    --discord: #5865F2;

    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 50px rgba(0, 0, 0, 0.35);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI Variable", "Segoe UI", -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.1px;
}

/* Ambient backdrop: soft top spotlight + subtle vignette, fixed behind content */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
        var(--bg);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

a:hover {
    color: #fff;
    text-decoration: none;
}

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

.page {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 28px 96px;
    position: relative;
    z-index: 1;
}

/* ---------- Top bar — floating glass pill ---------- */

.topbar {
    position: sticky;
    top: 18px;
    z-index: 50;
    padding: 0 20px;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 20px;
    background: rgba(16, 16, 18, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.2px;
    color: var(--text);
}

.brand .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #fff;
    color: #08090B;
    font-size: 16px;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 550;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.nav-links a.active {
    color: #08090B;
    background: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted) !important;
    font-size: 16px;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #fff;
    color: #08090B;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.cart-badge.hidden {
    display: none;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
    font-weight: 650;
    margin: 0;
    letter-spacing: -0.4px;
}

.display {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 680;
    line-height: 1.04;
    letter-spacing: -1.4px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.62) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 22px;
    font-weight: 640;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.body-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.caption {
    font-size: 12px;
    color: var(--text-faint);
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

/* Bento — asymmetric premium grid (opt-in via .bento on a container) */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.bento > .card { grid-column: span 2; }
.bento > .card.span-3 { grid-column: span 3; }
.bento > .card.span-4 { grid-column: span 4; }
.bento > .card.span-6 { grid-column: span 6; }

@media (max-width: 860px) {
    .bento { grid-template-columns: 1fr; }
    .bento > .card,
    .bento > .card.span-3,
    .bento > .card.span-4,
    .bento > .card.span-6 { grid-column: auto; }
}

/* Hero — full-width feature panel */
.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(32px, 5vw, 64px);
    background:
        radial-gradient(600px 300px at 85% -20%, rgba(255, 255, 255, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: var(--shadow-card);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 56px 0 4px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 640;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), opacity 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    --mx: 50%;
    --my: 50%;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.30), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
    pointer-events: none;
}

.btn:hover::after { opacity: 1; }

.btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--border-strong);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-primary {
    background: #fff;
    border-color: #fff;
    color: #08090B;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    color: #08090B;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.22);
}

.btn-primary::after {
    background: radial-gradient(120px circle at var(--mx) var(--my), rgba(8, 9, 11, 0.18), transparent 60%);
}

.btn-discord {
    background: var(--discord);
    border-color: var(--discord);
    color: white;
}

.btn-discord:hover {
    background: #6c75f5;
    border-color: #6c75f5;
}

.btn-lg {
    font-size: 15px;
    padding: 14px 28px;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-faint);
    font-size: 12px;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn:disabled, .btn.disabled {
    opacity: 0.40;
    cursor: not-allowed;
}

.btn-block { width: 100%; }

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

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text-muted);
}

label:first-of-type { margin-top: 0; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    outline: none;
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, textarea:focus, select:focus {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ---------- Info bar / messages ---------- */

.info-bar {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    display: none;
}

.info-bar.show { display: block; }

.info-bar.success {
    border-color: rgba(124, 242, 160, 0.35);
    background: rgba(124, 242, 160, 0.08);
    color: var(--success);
}

.info-bar.error {
    border-color: rgba(255, 138, 138, 0.35);
    background: rgba(255, 138, 138, 0.08);
    color: var(--error);
}

.info-bar.warning {
    border-color: rgba(255, 210, 122, 0.35);
    background: rgba(255, 210, 122, 0.08);
    color: var(--warning);
}

/* ---------- Glow effect (mouse-tracking, mirrors GlowBehavior.cs) ---------- */

.glow-fx {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    will-change: transform, opacity;
    z-index: 0;
    border-radius: 50%;
}

[data-glow] {
    position: relative;
    overflow: hidden;
    --mx: 50%;
    --my: 50%;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

[data-glow] > :not(.glow-fx) {
    position: relative;
    z-index: 1;
}

/* Glossy highlight that tracks the cursor on top of the card surface */
[data-glow]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
    z-index: 2;
}

[data-glow]:hover::after { opacity: 1; }

.card[data-glow]:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

[data-glow][data-tilt="false"] { will-change: auto; }
[data-glow]:not([data-tilt="false"]) { will-change: transform; }

/* Ambient page-wide glow following the cursor, like the setup window */
#page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ---------- Shift loader (page load + navigation) ---------- */

/* Full-screen overlay shown while a page loads or during navigation. */
.shift-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background:
        radial-gradient(600px 360px at 50% 38%, rgba(255, 255, 255, 0.06), transparent 60%),
        var(--bg-deep);
    opacity: 1;
    transition: opacity 0.45s var(--ease);
    will-change: opacity;
}

/* Hidden state — faded out and click-through, removed from flow after the transition. */
.shift-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.shift-loader.is-gone {
    display: none;
}

.shift-loader-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 680;
    letter-spacing: -0.6px;
    color: var(--text);
    animation: shift-loader-rise 0.6s var(--ease) both;
}

.shift-loader-brand .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: #08090B;
    font-size: 22px;
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.28);
}

/* The animated progress track. */
.shift-loader-track {
    position: relative;
    width: 220px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    animation: shift-loader-rise 0.6s var(--ease) both;
}

/* Indeterminate sliding highlight that sweeps the track. */
.shift-loader-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
    animation: shift-loader-sweep 1.15s var(--ease) infinite;
}

.shift-loader-caption {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    animation: shift-loader-rise 0.6s var(--ease) both;
}

@keyframes shift-loader-sweep {
    0%   { left: -40%; }
    100% { left: 100%; }
}

@keyframes shift-loader-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Gentle fade/rise for page content once it is ready. */
.page {
    animation: shift-page-in 0.5s var(--ease) both;
}

@keyframes shift-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .shift-loader-track::before { animation-duration: 2s; }
    .shift-loader-brand,
    .shift-loader-track,
    .shift-loader-caption,
    .page { animation: none; }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.02em;
    background: var(--accent-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.pill-discord {
    background: rgba(88, 101, 242, 0.18);
    color: #9aa3ff;
    border-color: rgba(88, 101, 242, 0.30);
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    border: 1px solid var(--border-strong);
}

.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-strong);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}

th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-faint);
    font-weight: 650;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.price {
    font-weight: 750;
    color: var(--text);
}

.row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stars {
    color: #FFD27A;
    letter-spacing: 2px;
}

hr.sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}
