@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Chakra+Petch:wght@400;600;700&display=swap');

:root {
    --bg: #04050d;
    --panel: #0b1020;
    --panel-2: #14192f;
    --text: #f4f7ff;
    --muted: #9eb0d3;
    --neon-purple: #b21cff;
    --neon-green: #2dff7d;
    --neon-yellow: #ffe75c;
    --neon-cyan: #28f7ff;
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 26px rgba(178, 28, 255, 0.28);
    --glow: 0 0 18px rgba(40, 247, 255, 0.2);
    --font-display: 'Orbitron', 'Courier New', monospace;
    --font-body: 'Chakra Petch', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Physical neon-tube signage look (matches the XP Central logo's glass-
       tube style: thick rounded strokes, layered glass-glow, warm bloom)
       layered on top of the existing flat Tron aesthetic. */
    --tube-radius: 999px;
    --tube-glass-cyan: 0 0 3px #fff, 0 0 10px #fff, 0 0 22px var(--neon-cyan), 0 0 46px var(--neon-cyan), 0 0 90px rgba(40, 247, 255, 0.65), 0 0 140px rgba(40, 247, 255, 0.4);
    --tube-glass-purple: 0 0 3px #fff, 0 0 10px #fff, 0 0 22px var(--neon-purple), 0 0 46px var(--neon-purple), 0 0 90px rgba(178, 28, 255, 0.65), 0 0 140px rgba(178, 28, 255, 0.4);
    --tube-glass-green: 0 0 3px #fff, 0 0 10px #fff, 0 0 22px var(--neon-green), 0 0 46px var(--neon-green), 0 0 90px rgba(45, 255, 125, 0.65), 0 0 140px rgba(45, 255, 125, 0.4);
    --tube-glass-yellow: 0 0 3px #fff, 0 0 10px #fff, 0 0 22px var(--neon-yellow), 0 0 46px var(--neon-yellow), 0 0 90px rgba(255, 231, 92, 0.65), 0 0 140px rgba(255, 231, 92, 0.4);
    /* Lighter-weight glow for small/dense text (card titles, tags, price
       labels, buttons). Keeps the same bright white core + colored glow
       recipe as --tube-glass-*, but with a much tighter blur radius so
       small repeated text (e.g. "Coming Soon" on every PC Hardware card)
       stays crisp and readable instead of smearing into a blurry blob. */
    --tube-glass-cyan-sm: 0 0 1px #fff, 0 0 4px #fff, 0 0 9px var(--neon-cyan), 0 0 16px rgba(40, 247, 255, 0.6);
    --tube-glass-purple-sm: 0 0 1px #fff, 0 0 4px #fff, 0 0 9px var(--neon-purple), 0 0 16px rgba(178, 28, 255, 0.6);
    --tube-glass-green-sm: 0 0 1px #fff, 0 0 4px #fff, 0 0 9px var(--neon-green), 0 0 16px rgba(45, 255, 125, 0.6);
    --tube-glass-yellow-sm: 0 0 1px #fff, 0 0 4px #fff, 0 0 9px var(--neon-yellow), 0 0 16px rgba(255, 231, 92, 0.6);
}

/* =========================================================
   NEON TUBE SIGNAGE UTILITIES
   Reusable classes echoing the logo's physical neon-tube look:
   thick rounded "glass" borders with a bright white core and colored
   glow falloff, plus an authentic tube flicker. Applied broadly across
   headings, borders, buttons, and accents for a fully "lit up" feel.
   ========================================================= */
.neon-tube-text {
    color: #fff;
    text-shadow: var(--tube-glass-cyan);
}

.neon-tube-text.is-purple { text-shadow: var(--tube-glass-purple); }
.neon-tube-text.is-green { text-shadow: var(--tube-glass-green); }
.neon-tube-text.is-yellow { text-shadow: var(--tube-glass-yellow); }

.neon-tube-border {
    border: 3px solid #fff;
    border-radius: var(--tube-radius);
    box-shadow:
        0 0 5px #fff, 0 0 14px #fff,
        0 0 28px var(--neon-cyan), 0 0 56px var(--neon-cyan), 0 0 100px rgba(40, 247, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.65),
        inset 0 0 24px rgba(40, 247, 255, 0.45);
}

/* Authentic neon-sign flicker -- irregular, not a clean sine wave, mostly
   staying lit with a couple of quick dips (like a tube with a minor gas
   fluctuation), never fully cutting to black. */
@keyframes xpNeonFlicker {
    0%, 3%, 6%, 100% { opacity: 1; }
    4% { opacity: 0.55; }
    5% { opacity: 0.92; }
    41% { opacity: 1; }
    42% { opacity: 0.7; }
    43% { opacity: 1; }
    77% { opacity: 1; }
    78% { opacity: 0.65; }
    79% { opacity: 0.95; }
}

.neon-flicker {
    animation: xpNeonFlicker 6s linear infinite;
}

/* Faster, punchier flicker variant for smaller accent elements */
@keyframes xpNeonFlickerFast {
    0%, 4%, 8%, 100% { opacity: 1; }
    5% { opacity: 0.5; }
    6% { opacity: 0.9; }
    31% { opacity: 1; }
    32% { opacity: 0.6; }
    33% { opacity: 1; }
    62% { opacity: 1; }
    63% { opacity: 0.55; }
    64% { opacity: 0.9; }
}

.neon-flicker-fast {
    animation: xpNeonFlickerFast 3.4s linear infinite;
}

/* Pulsing glow breathing effect -- for borders/backgrounds that should
   feel "alive" without a hard flicker cut */
@keyframes xpNeonPulse {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.35) saturate(1.25); }
}

.neon-pulse {
    animation: xpNeonPulse 2.4s ease-in-out infinite;
}

/* =========================================================
   CINEMATIC INTRO OVERLAY (once per session, see intro-sequence.js)
   ========================================================= */
body.xp-intro-active {
    overflow: hidden;
}

#xp-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #010204;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.xp-intro-bootglow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 900px;
    height: 900px;
    margin: -450px;
    z-index: 5;
    background: radial-gradient(circle, rgba(45, 255, 125, 0.12), transparent 60%);
    pointer-events: none;
    animation: xpBootOut 0.7s 4.4s forwards;
}

.xp-intro-boot {
    position: absolute;
    z-index: 20;
    width: min(720px, 88%);
    font-family: var(--font-display);
    font-size: 13px;
    line-height: 2.15;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(45, 255, 125, 0.6);
    animation: xpBootOut 0.7s 4.4s forwards;
}

.xp-intro-boot div {
    opacity: 0;
    animation: xpLineIn 0.01s forwards;
}

.xp-intro-boot div:nth-child(1) { animation-delay: 0.25s; }
.xp-intro-boot div:nth-child(2) { animation-delay: 0.85s; }
.xp-intro-boot div:nth-child(3) { animation-delay: 1.45s; }
.xp-intro-boot div:nth-child(4) { animation-delay: 2.05s; }
.xp-intro-boot div:nth-child(5) { animation-delay: 2.65s; }
.xp-intro-boot div:nth-child(6) { animation-delay: 3.25s; }
.xp-intro-boot div:nth-child(7) { animation-delay: 3.85s; }

.xp-intro-boot .ok { color: var(--neon-cyan); }
.xp-intro-boot .warn { color: var(--neon-yellow); }

@keyframes xpLineIn { to { opacity: 1; } }

@keyframes xpBootOut {
    to { opacity: 0; transform: scale(1.06); filter: blur(10px); }
}

.xp-cursor {
    display: inline-block;
    width: 9px;
    height: 14px;
    background: var(--neon-green);
    margin-left: 5px;
    animation: xpCursorBlink 0.85s steps(1) infinite;
}

@keyframes xpCursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.xp-intro-hint {
    position: absolute;
    bottom: 18px;
    right: 22px;
    z-index: 40;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: #4d6382;
    animation: xpBootOut 0.5s 4.4s forwards;
}

.xp-intro-topbar {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xp-intro-sound-btn,
.xp-intro-skip-btn {
    appearance: none;
    background: rgba(1, 10, 24, 0.75);
    border: 1px solid rgba(40, 247, 255, 0.4);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.xp-intro-sound-btn:hover,
.xp-intro-skip-btn:hover {
    background: rgba(40, 247, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 14px rgba(40, 247, 255, 0.5);
    transform: translateY(-1px);
}

.xp-intro-sound-btn.is-unmuted {
    border-color: rgba(45, 255, 125, 0.6);
    color: var(--neon-green);
    background: rgba(45, 255, 125, 0.12);
    box-shadow: 0 0 12px rgba(45, 255, 125, 0.35);
}

.xp-intro-sound-btn.is-muted {
    border-color: rgba(255, 231, 92, 0.7);
    color: var(--neon-yellow);
    animation: xpSoundPromptPulse 1.8s infinite ease-in-out;
}

@keyframes xpSoundPromptPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 231, 92, 0);
        border-color: rgba(255, 231, 92, 0.4);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 231, 92, 0.6);
        border-color: var(--neon-yellow);
    }
}

.xp-intro-flash {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    animation: xpSurge 0.5s 4.55s;
}

@keyframes xpSurge {
    0% { opacity: 0; }
    18% { opacity: 0.9; }
    100% { opacity: 0; }
}

.xp-intro-tunnel {
    position: absolute;
    inset: 0;
    z-index: 10;
    opacity: 0;
    animation: xpTunnelIn 0.9s 4.75s forwards;
}

@keyframes xpTunnelIn { to { opacity: 1; } }

.xp-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vmax;
    height: 120vmax;
    margin: -60vmax;
    border: 2px solid rgba(40, 247, 255, 0.5);
    border-radius: 50%;
    animation: xpRush 3.4s linear infinite;
}

.xp-ring:nth-child(even) { border-color: rgba(178, 28, 255, 0.45); }
.xp-ring:nth-child(3n) { border-color: rgba(45, 255, 125, 0.32); }
.xp-ring:nth-child(4n) { border-color: rgba(255, 231, 92, 0.28); }

@keyframes xpRush {
    0% { transform: scale(0.015); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.xp-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 34px 14px var(--neon-cyan), 0 0 100px 46px rgba(178, 28, 255, 0.65);
    animation: xpCorePulse 1.9s ease-in-out infinite;
}

@keyframes xpCorePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.9); }
}

.xp-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    width: 34vmax;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
    opacity: 0;
    animation: xpSparkOut 2.6s linear infinite;
}

@keyframes xpSparkOut {
    0% { transform: rotate(var(--a)) scaleX(0.02); opacity: 0; }
    15% { opacity: 0.85; }
    100% { transform: rotate(var(--a)) scaleX(1); opacity: 0; }
}

.xp-intro-brand {
    position: relative;
    z-index: 25;
    text-align: center;
    padding: 0 24px;
    opacity: 0;
    animation: xpBrandIn 0.8s 5.15s forwards;
}

@keyframes xpBrandIn {
    from { opacity: 0; transform: scale(0.9); filter: blur(14px); }
    to { opacity: 1; transform: none; filter: none; }
}

.xp-kick {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.55em;
    color: var(--neon-green);
    text-shadow: 0 0 12px var(--neon-green);
    margin-bottom: 18px;
}

.xp-intro-brand h1 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.94;
    font-size: clamp(42px, 8.4vw, 104px);
    position: relative;
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 12px #fff, 0 0 42px var(--neon-cyan), 0 0 110px var(--neon-purple);
}

.xp-intro-brand h1::before,
.xp-intro-brand h1::after {
    content: attr(data-t);
    position: absolute;
    inset: 0;
}

.xp-intro-brand h1::before {
    color: #ff2ec4;
    text-shadow: none;
    animation: xpGlitch1 3.3s 6s infinite steps(1);
}

.xp-intro-brand h1::after {
    color: var(--neon-cyan);
    text-shadow: none;
    animation: xpGlitch2 2.9s 6s infinite steps(1);
}

@keyframes xpGlitch1 {
    0%, 94%, 100% { transform: none; opacity: 0; }
    95% { transform: translate(-5px, 2px); opacity: 0.8; }
    97% { transform: translate(4px, -2px); opacity: 0.6; }
}

@keyframes xpGlitch2 {
    0%, 90%, 100% { transform: none; opacity: 0; }
    91% { transform: translate(6px, -1px); opacity: 0.75; }
    93% { transform: translate(-4px, 2px); opacity: 0.55; }
}

.xp-intro-brand p {
    margin: 22px auto 0;
    max-width: 540px;
    color: #a4c4ee;
    font-size: 18px;
}

/* ---------- LOGO POP-IN ---------- */
/* Sits centered over the whole intro. Hidden until .is-logo-pop is added
   (right as "ENTER THE GRID" finishes appearing), then EXPLODES to fill
   most of the screen with a bouncy overshoot + rotation, holds huge for a
   beat, then .is-logo-shrink smoothly scales it back down to its resting
   size as the tunnel warp kicks in underneath -- so the whole thing reads
   as one continuous "logo blasts in, then folds into the transition"
   moment rather than two separate effects. */
.xp-intro-logo-wrap {
    position: absolute;
    inset: 0;
    z-index: 26;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.xp-intro-logo {
    position: relative;
    z-index: 3;
    width: 14vmin;
    height: 14vmin;
    min-width: 110px;
    min-height: 110px;
    border-radius: 18%;
    opacity: 0;
    transform: scale(0.05) rotate(-45deg);
    filter: drop-shadow(0 0 0 rgba(40, 247, 255, 0));
    box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.6), 0 0 0 rgba(40, 247, 255, 0);
    will-change: transform, opacity, filter;
}

.xp-logo-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--neon-cyan) 30%, rgba(178, 28, 255, 0.6) 60%, transparent 75%);
    opacity: 0;
}

.xp-logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 14vmin;
    height: 14vmin;
    min-width: 110px;
    min-height: 110px;
    margin: -7vmin 0 0 -7vmin;
    border-radius: 18%;
    border: 3px solid var(--neon-cyan);
    opacity: 0;
}

.xp-logo-ring-2 {
    border-color: var(--neon-purple);
}

.xp-logo-impact-flash {
    position: absolute;
    inset: 0;
    z-index: 24;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(40, 247, 255, 0.4) 35%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

/* Phase 1: explosive full-screen entrance */
#xp-intro.is-logo-pop .xp-intro-logo {
    animation: xpLogoPopIn 1s cubic-bezier(0.18, 1.1, 0.32, 1) forwards;
}

@keyframes xpLogoPopIn {
    0% {
        opacity: 0;
        transform: scale(0.05) rotate(-45deg);
        filter: drop-shadow(0 0 0 rgba(40, 247, 255, 0));
        box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.6), 0 0 0 rgba(40, 247, 255, 0);
    }
    45% {
        opacity: 1;
        transform: scale(6.4) rotate(10deg);
        filter: drop-shadow(0 0 60px rgba(40, 247, 255, 1));
        box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.9), 0 0 120px 40px rgba(178, 28, 255, 0.6);
    }
    65% {
        transform: scale(5.4) rotate(-4deg);
    }
    100% {
        opacity: 1;
        transform: scale(5.8) rotate(0deg);
        filter: drop-shadow(0 0 46px rgba(40, 247, 255, 0.85));
        box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.8), 0 0 90px 26px rgba(178, 28, 255, 0.5);
    }
}

#xp-intro.is-logo-pop .xp-logo-impact-flash {
    animation: xpLogoImpactFlash 0.7s ease-out forwards;
}

@keyframes xpLogoImpactFlash {
    0% { opacity: 0; }
    38% { opacity: 1; }
    100% { opacity: 0; }
}

#xp-intro.is-logo-pop .xp-logo-flare {
    animation: xpLogoFlare 0.75s ease-out forwards;
}

@keyframes xpLogoFlare {
    0% { opacity: 0; transform: scale(0.3); }
    35% { opacity: 1; transform: scale(9); }
    100% { opacity: 0; transform: scale(13); }
}

#xp-intro.is-logo-pop .xp-logo-ring-1 {
    animation: xpLogoRing 1.1s 0.05s ease-out forwards;
}

#xp-intro.is-logo-pop .xp-logo-ring-2 {
    animation: xpLogoRing 1.1s 0.22s ease-out forwards;
}

@keyframes xpLogoRing {
    0% { opacity: 0.95; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(7); }
}

/* Phase 2: shrinks back down to its resting size, handing off into the
   tunnel warp that's starting underneath it. */
#xp-intro.is-logo-shrink .xp-intro-logo {
    animation: xpLogoShrink 0.85s cubic-bezier(0.5, 0, 0.25, 1) forwards;
}

@keyframes xpLogoShrink {
    0% {
        transform: scale(5.8) rotate(0deg);
        filter: drop-shadow(0 0 46px rgba(40, 247, 255, 0.85));
        box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.8), 0 0 90px 26px rgba(178, 28, 255, 0.5);
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(40, 247, 255, 0.7));
        box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.7), 0 0 34px 6px rgba(178, 28, 255, 0.4);
    }
}

/* Ride out with the same beat as the brand text once warping starts */
#xp-intro.is-warping .xp-intro-logo-wrap {
    animation: xpBrandWarp 0.7s ease-out forwards;
}

.xp-crt {
    position: absolute;
    inset: 0;
    z-index: 35;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0 1px, transparent 1px 3px);
}

.xp-crt-vignette {
    position: absolute;
    inset: 0;
    z-index: 36;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 100% at center, transparent 52%, rgba(0, 0, 0, 0.88) 100%);
}

/* ---------- PHASE 5: LANDING TRANSITION ---------- */
/* The tunnel rushes forward and blows out to white, which then clears to
   reveal the page -- so it reads as "flying into" the site rather than the
   animation simply being switched off. */
.xp-intro-warp {
    position: absolute;
    inset: 0;
    z-index: 34;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    animation: xpWarpFlash 0.9s 5.9s forwards;
}

@keyframes xpWarpFlash {
    0% { opacity: 0; }
    55% { opacity: 1; }
    100% { opacity: 0; }
}

#xp-intro.is-warping .xp-intro-tunnel {
    animation: xpTunnelWarp 0.9s cubic-bezier(0.7, 0, 0.9, 0.3) forwards;
}

@keyframes xpTunnelWarp {
    to { transform: scale(7); opacity: 0; filter: blur(14px); }
}

#xp-intro.is-warping .xp-intro-brand {
    animation: xpBrandWarp 0.7s ease-out forwards;
}

@keyframes xpBrandWarp {
    to { transform: scale(1.35); opacity: 0; filter: blur(10px); }
}

#xp-intro.is-done {
    opacity: 0;
    pointer-events: none;
}

/* Page content eases in underneath as the intro clears */
body.xp-intro-active header,
body.xp-intro-active main,
body.xp-intro-active footer {
    opacity: 0;
}

body.xp-intro-revealing header,
body.xp-intro-revealing main,
body.xp-intro-revealing footer {
    animation: xpPageIn 0.8s ease-out forwards;
}

@keyframes xpPageIn {
    from { opacity: 0; transform: translateY(14px) scale(0.995); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    #xp-intro { display: none !important; }
    body.xp-intro-active { overflow: auto; }
    body.xp-intro-active header,
    body.xp-intro-active main,
    body.xp-intro-active footer { opacity: 1; }
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background:
        linear-gradient(135deg, rgba(3, 6, 18, 0.98), rgba(11, 15, 31, 0.96)),
        url('cyberpunk.png') center/cover fixed;
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    text-shadow: 0 0 1px rgba(255,255,255,0.04);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(40, 247, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 247, 255, 0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 85%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 85%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(178, 28, 255, 0.10), transparent 32%),
        radial-gradient(circle at 82% 70%, rgba(40, 247, 255, 0.08), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

header {
    background:
        linear-gradient(90deg, rgba(6, 9, 20, 0.88), rgba(14, 19, 38, 0.9)),
        url('cyberpunk.png') center 30%/cover;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid rgba(40, 247, 255, 0.85);
    box-shadow: 0 0 3px #fff, 0 2px 30px rgba(40, 247, 255, 0.5), inset 0 -1px 0 rgba(178,28,255,0.14);
    border-left: 4px solid var(--neon-purple);
    position: relative;
    overflow: hidden;
    gap: 1.5rem;
    flex-wrap: wrap;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(40, 247, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 247, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 50%, rgba(178, 28, 255, 0.18), transparent 45%),
        radial-gradient(circle at 92% 50%, rgba(40, 247, 255, 0.14), transparent 45%),
        radial-gradient(circle, #fff 0%, var(--neon-cyan) 35%, rgba(40,247,255,0) 72%),
        radial-gradient(circle, #fff 0%, var(--neon-purple) 35%, rgba(178,28,255,0) 72%),
        radial-gradient(circle, #fff 0%, var(--neon-yellow) 35%, rgba(255,231,92,0) 72%),
        radial-gradient(circle, #fff 0%, var(--neon-green) 35%, rgba(45,255,125,0) 72%);
    background-repeat: no-repeat, no-repeat, repeat-x, repeat-x, repeat-x, repeat-x;
    background-size: auto, auto, 144px 10px, 144px 10px, 144px 10px, 144px 10px;
    background-position: 8% 50%, 92% 50%, 0 bottom, 36px bottom, 72px bottom, 108px bottom;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.7));
    pointer-events: none;
    z-index: 0;
    animation: xpBulbChase 3s linear infinite, xpNeonFlickerFast 4.2s linear infinite;
}

@keyframes xpBulbChase {
    0% { background-position: 8% 50%, 92% 50%, 0 bottom, 36px bottom, 72px bottom, 108px bottom; }
    100% { background-position: 8% 50%, 92% 50%, 144px bottom, 180px bottom, 216px bottom, 252px bottom; }
}

header > * {
    position: relative;
    z-index: 1;
}

.brand-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 252px;
    height: 252px;
    border-radius: 20px;
    border: 3px solid #fff;
    background: rgba(5, 8, 22, 0.75);
    box-shadow: 0 0 4px #fff, 0 0 12px #fff, 0 0 40px var(--neon-cyan), 0 0 70px rgba(178, 28, 255, 0.4), inset 0 0 22px rgba(40, 247, 255, 0.24);
    margin-bottom: 0.2rem;
    clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
}

.brand-logo {
    width: 204px;
    height: 204px;
    display: block;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: var(--tube-glass-cyan);
    margin: 0;
    animation: xpNeonFlicker 7s linear infinite;
}

.brand-title span {
    color: var(--neon-green);
    text-shadow: var(--tube-glass-green);
    animation: blink 1s steps(1) infinite;
}

.brand-line {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-yellow), var(--neon-green));
    box-shadow: 0 0 4px #fff, 0 0 12px rgba(40, 247, 255, 0.7), 0 0 22px rgba(178, 28, 255, 0.5);
    border-radius: var(--tube-radius);
    animation: pulse-line 2.2s ease-in-out infinite;
}

.brand-block::before {
    content: "▣";
    font-size: 0.95rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(40, 247, 255, 0.5);
    margin-bottom: 0.2rem;
}

.brand-block::after {
    content: "[SYS] ONLINE";
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pulse-line {
    0%, 100% { transform: scaleX(1); opacity: 0.9; }
    50% { transform: scaleX(1.04); opacity: 1; }
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

nav li {
    margin-left: 0;
}

nav a {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: var(--tube-glass-cyan-sm);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--tube-radius);
    background: rgba(40, 247, 255, 0.08);
    box-shadow: 0 0 3px #fff, 0 0 10px var(--neon-cyan), 0 0 24px rgba(40, 247, 255, 0.5), inset 0 0 10px rgba(40, 247, 255, 0.25);
    transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

nav a:hover {
    color: #fff;
    text-shadow: var(--tube-glass-yellow-sm);
    border-color: #fff;
    background: rgba(255, 231, 92, 0.14);
    box-shadow: 0 0 4px #fff, 0 0 14px var(--neon-yellow), 0 0 40px rgba(255, 231, 92, 0.7), inset 0 0 14px rgba(255, 231, 92, 0.35);
    transform: translateY(-3px) scale(1.05);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: var(--tube-glass-cyan);
    animation: xpNeonFlicker 8s linear infinite;
}

h1 {
    color: #fff;
}

#hero {
    background:
        linear-gradient(180deg, rgba(4, 6, 16, 0.45), rgba(4, 6, 16, 0.88)),
        url('cyberpunk.png') center/cover;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4.5rem 1rem 5rem;
    border-bottom: 1px solid rgba(40, 247, 255, 0.35);
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.5), 0 0 40px rgba(40, 247, 255, 0.14);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background-image:
        linear-gradient(rgba(40, 247, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 247, 255, 0.35) 1px, transparent 1px);
    background-size: 56px 38px;
    transform: perspective(300px) rotateX(62deg);
    transform-origin: bottom;
    opacity: 0.55;
    pointer-events: none;
}

#hero h2 {
    font-size: clamp(1.6rem, 6vw, 2.7rem);
    margin-bottom: 1rem;
    position: relative;
    text-shadow: var(--tube-glass-purple);
}

#hero p {
    position: relative;
}

.cta-button {
    display: inline-block;
    background: rgba(5, 8, 22, 0.6);
    color: #fff;
    padding: 1.1rem 2.6rem;
    text-decoration: none;
    border-radius: var(--tube-radius);
    border: 4px solid #fff;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: var(--tube-glass-cyan);
    box-shadow:
        0 0 5px #fff, 0 0 14px #fff,
        0 0 32px var(--neon-cyan), 0 0 64px rgba(40, 247, 255, 0.7), 0 0 110px rgba(40, 247, 255, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.65),
        inset 0 0 28px rgba(40, 247, 255, 0.45);
    position: relative;
    animation: xpNeonPulse 2.6s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease, text-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.06);
    text-shadow: var(--tube-glass-purple);
    box-shadow:
        0 0 5px #fff, 0 0 16px #fff,
        0 0 38px var(--neon-purple), 0 0 76px rgba(178, 28, 255, 0.75), 0 0 130px rgba(178, 28, 255, 0.45),
        inset 0 0 12px rgba(255, 255, 255, 0.7),
        inset 0 0 32px rgba(178, 28, 255, 0.5);
}

#featured-games,
#rentals {
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 1.2rem 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8, 12, 24, 0.82), rgba(16, 21, 41, 0.72));
    border: 2px solid rgba(40, 247, 255, 0.55);
    box-shadow: inset 0 0 50px rgba(40, 247, 255, 0.12), 0 0 4px #fff, 0 0 40px rgba(178, 28, 255, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Responsive product grid -- fills the available width instead of leaving
   large dead margins around a few narrow centred cards. */
#featured-products,
#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 0.5rem;
    text-align: left;
}

#tournaments .tournament-card,
#featured-products .game-card,
#product-list .game-card {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#tournaments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

#tournaments h2 {
    grid-column: 1 / -1;
    text-align: center;
}

.game-card,
.tournament-card {
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.95), rgba(16, 21, 41, 0.95));
    border: 3px solid rgba(40, 247, 255, 0.75);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 3px #fff, 0 0 4px rgba(255,255,255,0.4), 0 0 30px rgba(40, 247, 255, 0.45), inset 0 0 20px rgba(40, 247, 255, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    position: relative;
}

/* Corner bracket accent (Tron panel detail) */
.game-card::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    border-top: 4px solid var(--neon-green);
    border-left: 4px solid var(--neon-green);
    box-shadow: 0 0 3px #fff, 0 0 12px var(--neon-green), 0 0 24px rgba(45, 255, 125, 0.6);
    opacity: 0.95;
    pointer-events: none;
}

.game-card:hover,
.tournament-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: #fff;
    box-shadow: 0 0 4px #fff, 0 0 12px #fff, 0 0 50px rgba(40, 247, 255, 0.75), 0 18px 40px rgba(0, 0, 0, 0.6), inset 0 0 28px rgba(40, 247, 255, 0.25);
}

.game-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(40, 247, 255, 0.4);
    box-shadow: 0 0 12px rgba(40, 247, 255, 0.25);
    background: #070b16;
}

.game-card h3,
.tournament-card h3 {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    text-shadow: var(--tube-glass-cyan-sm);
}

.game-card img.pd-trigger,
.game-card h3.pd-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.game-card img.pd-trigger:hover {
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(40, 247, 255, 0.6));
}

.game-card h3.pd-trigger:hover {
    color: var(--neon-cyan);
}

.game-card p,
.tournament-card p {
    font-weight: 700;
    color: var(--text);
}

.game-card button,
#event-booking-form button,
.auth-form-container button,
.quantity-button,
.remove-button {
    background: rgba(5, 8, 22, 0.65);
    color: #fff;
    border: 3px solid #fff;
    padding: 0.6rem 1.1rem;
    border-radius: var(--tube-radius);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: var(--tube-glass-cyan-sm);
    box-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 26px var(--neon-cyan), 0 0 50px rgba(40, 247, 255, 0.4), inset 0 0 10px rgba(40, 247, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, text-shadow 0.15s ease;
}

.game-card button:hover,
#event-booking-form button:hover,
.auth-form-container button:hover,
.quantity-button:hover,
.remove-button:hover {
    transform: translateY(-2px) scale(1.04);
    text-shadow: var(--tube-glass-purple-sm);
    box-shadow: 0 0 4px #fff, 0 0 12px #fff, 0 0 34px var(--neon-purple), 0 0 64px rgba(178, 28, 255, 0.5), inset 0 0 14px rgba(178, 28, 255, 0.45);
}

#tournaments {
    background: linear-gradient(90deg, rgba(14, 18, 38, 0.95), rgba(9, 12, 26, 0.95));
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 2px solid rgba(40, 247, 255, 0.6);
    border-bottom: 2px solid rgba(40, 247, 255, 0.6);
    border-radius: 12px;
    box-shadow: inset 0 0 70px rgba(178, 28, 255, 0.18), 0 0 4px #fff, 0 0 40px rgba(40, 247, 255, 0.3);
    margin: 1.2rem 0;
}

footer {
    background: linear-gradient(90deg, rgba(9, 12, 26, 0.97), rgba(14, 18, 38, 0.97));
    color: var(--muted);
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 3px solid rgba(40, 247, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 -4px 40px rgba(40, 247, 255, 0.25);
    margin-top: 1.5rem;
}


footer a {
    color: #fff;
    text-decoration: none;
    text-shadow: var(--tube-glass-cyan-sm);
}

footer a:hover {
    text-decoration: underline;
    text-shadow: var(--tube-glass-purple-sm);
}

.footer-legal-links {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.8;
    flex-wrap: wrap;
}

.footer-legal-links a {
    white-space: nowrap;
}

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    line-height: 1.7;
}

.final-sale-tag {
    display: inline-block;
    background: rgba(255, 40, 60, 0.18);
    color: #ff5468;
    border: 1px solid rgba(255, 40, 60, 0.65);
    border-radius: 4px;
    padding: 0.05em 0.5em;
    font-weight: 700;
    font-size: 0.9em;
    text-shadow: 0 0 8px rgba(255, 40, 60, 0.55);
    box-shadow: 0 0 10px rgba(255, 40, 60, 0.3);
}

.legal-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: rgba(5, 8, 22, 0.5);
    border: 1px solid rgba(40, 247, 255, 0.35);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.legal-consent-check input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--neon-cyan);
    flex-shrink: 0;
    cursor: pointer;
}

.legal-consent-check label {
    color: var(--text);
    cursor: pointer;
}

.legal-consent-check a {
    color: var(--neon-cyan);
    text-shadow: var(--tube-glass-cyan-sm);
}

.legal-consent-check a:hover {
    text-decoration: underline;
}

.legal-page h2 {
    margin-bottom: 0.25rem;
}

.legal-page h3 {
    margin-top: 1.75rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(40, 247, 255, 0.5);
}

.legal-updated {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.5rem;
}

.legal-page a {
    color: var(--neon-purple);
}

#admin-content {
    display: grid;
    gap: 1rem;
}

.user-card,
.product-card-admin,
.booking-card {
    background: linear-gradient(145deg, rgba(9, 12, 26, 0.98), rgba(15, 20, 40, 0.96));
    border: 2px solid rgba(40, 247, 255, 0.6);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 3px #fff, 0 0 24px rgba(40, 247, 255, 0.4), inset 0 0 14px rgba(40, 247, 255, 0.12);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.user-card button,
.product-card-admin button,
.booking-card button,
.status-controls button {
    background: rgba(5, 8, 22, 0.65);
    color: #fff;
    border: 2px solid #fff;
    padding: 0.55rem 0.9rem;
    border-radius: var(--tube-radius);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: var(--tube-glass-purple-sm);
    box-shadow: 0 0 3px #fff, 0 0 8px #fff, 0 0 20px var(--neon-purple), inset 0 0 8px rgba(178, 28, 255, 0.3);
    margin-top: 0.5rem;
    margin-right: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-card button:hover,
.product-card-admin button:hover,
.booking-card button:hover,
.status-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 28px var(--neon-cyan), inset 0 0 10px rgba(40, 247, 255, 0.4);
}

.status-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.status-select {
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(40, 247, 255, 0.4);
    background-color: #060914;
    color: #fff;
}

.status-filter-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.status-filter-row select {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(40, 247, 255, 0.4);
    background-color: #060914;
    color: #fff;
}

#product-management-details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

#product-management-details summary::-webkit-details-marker {
    display: none;
}

#product-management-details summary h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#product-management-details summary h3::before {
    content: '▶';
    display: inline-block;
    font-size: 0.75em;
    color: var(--neon-cyan);
    transition: transform 0.2s ease;
}

#product-management-details[open] summary h3::before {
    transform: rotate(90deg);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.8rem 0 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(178, 28, 255, 0.06);
    border: 1px solid rgba(178, 28, 255, 0.25);
}

.filter-bar input[type="text"],
.filter-bar select {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(40, 247, 255, 0.4);
    background-color: #060914;
    color: #fff;
}

.filter-bar input[type="text"] {
    flex: 1 1 200px;
    min-width: 160px;
}

.filter-bar button {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    color: #050816;
    border: none;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.filter-count {
    font-size: 0.85rem;
    color: var(--muted);
    margin-left: auto;
}

/* Per-platform inventory sections inside Product Management */
#product-platform-sections {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.5rem 0 1.25rem;
}

details.platform-section {
    border: 1px solid rgba(40, 247, 255, 0.3);
    border-radius: 8px;
    background: rgba(6, 9, 20, 0.7);
    overflow: hidden;
}

details.platform-section summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--neon-cyan);
    background: rgba(40, 247, 255, 0.06);
}

details.platform-section summary::-webkit-details-marker {
    display: none;
}

.platform-section-title::before {
    content: '▶';
    display: inline-block;
    font-size: 0.75em;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

details.platform-section[open] .platform-section-title::before {
    transform: rotate(90deg);
}

.platform-section-count {
    background: rgba(178, 28, 255, 0.18);
    color: var(--neon-purple);
    border: 1px solid rgba(178, 28, 255, 0.3);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
}

.platform-section-list {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.status-pill {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 231, 92, 0.14);
    color: var(--neon-yellow);
    border: 2px solid rgba(255, 231, 92, 0.5);
    box-shadow: 0 0 3px #fff, 0 0 10px rgba(255, 231, 92, 0.5);
}

.status-pill.pending {
    background: rgba(255, 231, 92, 0.16);
    color: var(--neon-yellow);
    border-color: rgba(255, 231, 92, 0.32);
}

.status-pill.confirmed {
    background: rgba(40, 247, 255, 0.15);
    color: var(--neon-cyan);
    border-color: rgba(40, 247, 255, 0.28);
}

.status-pill.completed {
    background: rgba(45, 255, 125, 0.16);
    color: var(--neon-green);
    border-color: rgba(45, 255, 125, 0.28);
}

.status-pill.cancelled {
    background: rgba(255, 92, 92, 0.16);
    color: #ff8c8c;
    border-color: rgba(255, 92, 92, 0.28);
}

.status-pill.account-type-free {
    background: rgba(40, 247, 255, 0.15);
    color: var(--neon-cyan);
    border-color: rgba(40, 247, 255, 0.28);
}

.status-pill.account-type-subscription {
    background: rgba(178, 28, 255, 0.16);
    color: var(--neon-purple);
    border-color: rgba(178, 28, 255, 0.3);
}

.status-pill.account-type-admin {
    background: rgba(45, 255, 125, 0.16);
    color: var(--neon-green);
    border-color: rgba(45, 255, 125, 0.28);
}

#product-management,
#orders-management,
#rental-booking-management,
#private-event-booking-management,
#agent-inquiry-management,
#tournament-management,
#station-management {
    display: none;
    margin: 2rem 0;
    padding: 1rem 0;
}

#product-management.is-visible,
#orders-management.is-visible,
#rental-booking-management.is-visible,
#private-event-booking-management.is-visible,
#agent-inquiry-management.is-visible,
#tournament-management.is-visible,
#station-management.is-visible {
    display: block;
}

.admin-feedback {
    display: none;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
}

.admin-feedback.show {
    display: block;
}

.admin-feedback.success {
    background: rgba(45, 255, 125, 0.16);
    color: var(--neon-green);
    border: 1px solid rgba(45, 255, 125, 0.28);
}

.admin-feedback.error {
    background: rgba(255, 92, 92, 0.16);
    color: #ff8c8c;
    border: 1px solid rgba(255, 92, 92, 0.28);
}

.empty-state {
    color: var(--muted);
    font-style: italic;
    padding: 0.75rem 0;
}

#coming-soon-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(90deg, rgba(178, 28, 255, 0.9), rgba(40, 247, 255, 0.9));
    color: #04050d;
    font-weight: 700;
    text-align: center;
    border-bottom: 3px solid #fff;
    box-shadow: 0 0 3px #fff, 0 2px 30px rgba(178, 28, 255, 0.6), 0 2px 50px rgba(40, 247, 255, 0.4);
}

.coming-soon-banner__text {
    flex: 1 1 auto;
    max-width: 900px;
}

.coming-soon-banner__close {
    flex: 0 0 auto;
    background: rgba(4, 5, 13, 0.15);
    border: 1px solid rgba(4, 5, 13, 0.35);
    color: #04050d;
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}

.coming-soon-banner__close:hover {
    transform: scale(1.1);
    background: rgba(4, 5, 13, 0.3);
}

@media (max-width: 640px) {
    #coming-soon-banner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

.section-intro {
    max-width: 700px;
    margin: 0.5rem auto 1.5rem;
    text-align: center;
    color: var(--muted);
}

.category-filter-container {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
}

.category-tab {
    background: rgba(6, 9, 20, 0.85);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.55rem 1.2rem;
    border-radius: var(--tube-radius);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    cursor: pointer;
    text-shadow: var(--tube-glass-cyan-sm);
    box-shadow: 0 0 3px #fff, 0 0 8px var(--neon-cyan), 0 0 20px rgba(40, 247, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.category-tab:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #fff;
    box-shadow: 0 0 4px #fff, 0 0 12px #fff, 0 0 30px rgba(40, 247, 255, 0.65);
}

.category-tab.is-active {
    background: rgba(5, 8, 22, 0.75);
    color: #fff;
    border-color: #fff;
    text-shadow: var(--tube-glass-purple-sm);
    box-shadow: 0 0 4px #fff, 0 0 12px #fff, 0 0 32px var(--neon-purple), 0 0 60px rgba(178, 28, 255, 0.5), inset 0 0 14px rgba(178, 28, 255, 0.4);
}

.product-subcategory {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: var(--tube-glass-cyan-sm);
    background: rgba(40, 247, 255, 0.12);
    border: 1px solid rgba(40, 247, 255, 0.5);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    margin: 0.4rem 0 0;
}

.price-coming-soon {
    font-weight: 700;
    color: #fff;
    text-shadow: var(--tube-glass-yellow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-card button[disabled] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    text-shadow: none;
}

.cart-feedback {
    min-height: 1.5rem;
    margin: 0.5rem 0 1rem;
    color: #fff;
    text-shadow: var(--tube-glass-green-sm);
    font-weight: 700;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-feedback.visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(40, 247, 255, 0.5);
    border-radius: 8px;
    background: rgba(6, 9, 20, 0.85);
    box-shadow: 0 0 3px #fff, 0 0 20px rgba(40, 247, 255, 0.3);
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex: 1;
}

.cart-quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.quantity-button,
.remove-button {
    border: 2px solid #fff;
    border-radius: var(--tube-radius);
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    background: rgba(5, 8, 22, 0.6);
    color: #fff;
    text-shadow: var(--tube-glass-cyan-sm);
    box-shadow: 0 0 3px #fff, 0 0 8px #fff, 0 0 16px var(--neon-cyan), inset 0 0 8px rgba(40, 247, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, text-shadow 0.15s ease;
}

.quantity-button:hover,
.remove-button:hover {
    transform: translateY(-1px);
}

.remove-button {
    text-shadow: var(--tube-glass-purple-sm);
    box-shadow: 0 0 3px #fff, 0 0 8px #fff, 0 0 16px var(--neon-purple), inset 0 0 8px rgba(178, 28, 255, 0.3);
}

#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 330px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 40px);
    background: rgba(9, 12, 26, 0.96);
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 0 4px #fff, 0 0 14px var(--neon-cyan), 0 0 40px rgba(40, 247, 255, 0.5), 0 0 70px rgba(178, 28, 255, 0.35);
    overflow: hidden;
    z-index: 2147483647 !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#chatbot-container.is-minimized {
    display: none !important;
}

#chatbot-header {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: #050816;
    padding: 0.65rem 0.85rem;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

#chatbot-header-title {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.agent-minimize-toggle {
    background: rgba(5, 8, 22, 0.3);
    border: 1px solid rgba(5, 8, 22, 0.5);
    color: #050816;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.agent-minimize-toggle:hover {
    background: rgba(5, 8, 22, 0.6);
    color: #fff;
    transform: scale(1.1);
}

/* Floating re-open bubble, shown only while the chat is minimized */
#chatbot-reopen {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483647 !important;
    padding: 0.65rem 1.1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 4px #fff, 0 0 30px rgba(40, 247, 255, 0.75), 0 0 60px rgba(178, 28, 255, 0.5), 0 0 0 2px rgba(5, 8, 22, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    color: #050816;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#chatbot-reopen:hover {
    transform: scale(1.05);
    box-shadow: 0 0 28px rgba(40, 247, 255, 0.8);
}

#chatbot-reopen.is-visible {
    display: flex !important;
}

#chatbot-messages {
    height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
}

#chatbot-input {
    width: calc(100% - 1rem);
    border: 1px solid rgba(40, 247, 255, 0.4);
    padding: 0.6rem;
    margin: 0.5rem;
    border-radius: 6px;
    background-color: #060914;
    color: #fff;
}

.agent-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    margin-left: 0.35rem;
    animation: pulse-line 2.2s ease-in-out infinite;
}

.agent-typing {
    padding: 0 0.75rem 0.4rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-style: italic;
}

.agent-typing span {
    animation: xpCursorBlink 1.1s infinite;
}

.agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.agent-typing span:nth-child(3) { animation-delay: 0.3s; }

.agent-product-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    margin: 0.4rem 0;
    background: rgba(6, 9, 20, 0.85);
    border: 1px solid rgba(40, 247, 255, 0.3);
    border-radius: 6px;
}

.agent-product-card img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.agent-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: 0.8rem;
    gap: 0.15rem;
    min-width: 0;
}

.agent-product-info strong {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-product-tag {
    font-size: 0.65rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agent-product-price {
    color: var(--neon-yellow);
    font-weight: 700;
    font-size: 0.75rem;
}

.agent-add-to-cart {
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: #050816;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
}

.agent-add-to-cart[disabled] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    cursor: not-allowed;
}

.message {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
}

.user-message {
    background: rgba(45, 255, 125, 0.12);
    text-align: right;
}

.bot-message {
    background: rgba(178, 28, 255, 0.16);
}

#event-booking-form,
.auth-form-container,
#user-info,
.history-section {
    background: linear-gradient(145deg, rgba(9, 12, 26, 0.96), rgba(15, 20, 40, 0.94));
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 500px;
    border: 1px solid rgba(40, 247, 255, 0.35);
    box-shadow: inset 0 0 28px rgba(40, 247, 255, 0.08), 0 0 22px rgba(178, 28, 255, 0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

#event-booking-form h3,
.auth-form-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
}

#event-booking-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

#event-booking-form input,
#event-booking-form button,
.auth-form-container input[type="email"],
.auth-form-container input[type="password"],
#edit-profile-form input[type="text"],
#edit-profile-form input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(40, 247, 255, 0.35);
    background: linear-gradient(180deg, rgba(4, 6, 16, 0.95), rgba(9, 12, 26, 0.95));
    color: #fff;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
    font-family: var(--font-body);
}

.auth-form-container button:hover {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-yellow));
}

.auth-form-container p {
    text-align: center;
    margin-top: 1rem;
    color: #fff;
}

.auth-form-container a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.auth-form-container a:hover {
    text-decoration: underline;
}

#user-info p {
    margin: 0;
    font-size: 1.1rem;
}

#user-info strong {
    color: var(--neon-green);
    text-shadow: 0 0 6px rgba(45, 255, 125, 0.5);
}

#user-info span {
    color: var(--text);
}

#profile-picture {
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 14px rgba(40, 247, 255, 0.4);
}

#edit-profile-form {
    margin-top: 1rem;
}

#edit-profile-form button {
    margin-right: 0.5rem;
}

.history-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(6, 9, 20, 0.88);
    border: 1px solid rgba(40, 247, 255, 0.3);
}

.history-card {
    padding: 0.9rem 1rem;
    border-radius: 6px;
    background: rgba(9, 12, 26, 0.9);
    border: 1px solid rgba(40, 247, 255, 0.24);
    margin-bottom: 0.75rem;
}

.history-card p {
    margin: 0.25rem 0;
}

/* =========================================================
   PRODUCT DETAIL MODAL (product-detail.js)
   ========================================================= */
#product-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(2, 3, 8, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

#product-detail-overlay.is-open {
    display: flex;
}

body.pd-modal-open {
    overflow: hidden;
}

#product-detail-modal {
    position: relative;
    width: min(880px, 100%);
    max-height: min(85vh, 900px);
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(9, 12, 26, 0.98), rgba(14, 18, 36, 0.98));
    border: 1px solid rgba(40, 247, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(40, 247, 255, 0.35), 0 0 0 1px rgba(178, 28, 255, 0.25);
    padding: 1.75rem;
}

#product-detail-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid rgba(40, 247, 255, 0.4);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

#product-detail-close:hover {
    background: rgba(178, 28, 255, 0.5);
    transform: scale(1.08);
}

#pd-body {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 1.75rem;
}

#pd-media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #070b16;
    box-shadow: 0 0 22px rgba(40, 247, 255, 0.2);
}

#pd-info h2 {
    margin: 0.35rem 0 0.15rem;
    font-family: var(--font-display);
    color: #fff;
    text-shadow: 0 0 10px rgba(40, 247, 255, 0.6);
}

#pd-rating {
    color: var(--neon-yellow);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#pd-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(45, 255, 125, 0.5);
    margin: 0.25rem 0 0.75rem;
}

#pd-description {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 1rem;
}

#pd-quantity-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

#pd-quantity-row label {
    font-weight: 700;
    color: var(--muted);
}

#pd-qty-decrease,
#pd-qty-increase {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(40, 247, 255, 0.4);
    background: rgba(9, 12, 26, 0.9);
    color: var(--neon-cyan);
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pd-quantity {
    min-width: 2ch;
    text-align: center;
    font-weight: 700;
    color: #fff;
}

#pd-add-to-cart {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: #050816;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(40, 247, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#pd-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(178, 28, 255, 0.5);
}

#pd-add-to-cart[disabled] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#pd-feedback {
    min-height: 1.4rem;
    margin-top: 0.5rem;
    color: var(--neon-green);
    font-weight: 700;
}

#product-detail-modal hr {
    border: none;
    border-top: 1px solid rgba(40, 247, 255, 0.2);
    margin: 1.25rem 0;
}

#pd-reviews-section h3 {
    margin-top: 0;
    color: #fff;
    font-family: var(--font-display);
}

#pd-reviews-list .review {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    background: rgba(6, 9, 20, 0.75);
    border: 1px solid rgba(40, 247, 255, 0.2);
    margin-bottom: 0.6rem;
}

#pd-review-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#pd-review-form input,
#pd-review-form textarea {
    background: rgba(5, 8, 22, 0.8);
    border: 1px solid rgba(40, 247, 255, 0.35);
    border-radius: 6px;
    padding: 0.55rem;
    color: var(--text);
    font-family: var(--font-body);
}

#pd-review-form button {
    align-self: flex-start;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    border: none;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    color: #050816;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 700px) {
    #pd-body {
        grid-template-columns: 1fr;
    }

    #product-detail-modal {
        padding: 1.25rem;
        max-height: 90vh;
    }
}

/* =========================================================
   RESPONSIVE / MOBILE
   The site was originally desktop-only (a single width-based
   media query existed). These layers fix header/nav crowding,
   oversized type, the fixed-width chatbot, cramped cart rows,
   and the intro sequence on small screens.
   ========================================================= */

/* --- Tablets and narrow laptops --- */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    nav ul {
        gap: 0.4rem 0.65rem;
    }

    #featured-products,
    #product-list {
        gap: 1rem;
    }
}

/* --- Phones --- */
@media (max-width: 700px) {
    header {
        padding: 0.85rem 1rem;
    }

    .brand-title {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
    }

    .brand-logo-wrap {
        width: 46px;
        height: 46px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    /* Nav becomes a horizontally scrollable strip rather than
       wrapping into a tall stack that pushes content off-screen. */
    nav {
        width: 100%;
    }

    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav a {
        white-space: nowrap;
        font-size: 0.72rem;
        padding: 0.3rem 0.45rem;
    }

    #hero {
        padding: 2.75rem 1rem 3.25rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.8rem;
    }

    #featured-games,
    #rentals,
    #tournaments {
        padding: 1.5rem 0.85rem;
        border-radius: 8px;
    }

    #featured-products,
    #product-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
        padding: 0;
    }

    .game-card,
    .tournament-card {
        padding: 0.7rem;
    }

    .game-card h3,
    .tournament-card h3 {
        font-size: 0.82rem;
    }

    .game-card p,
    .tournament-card p {
        font-size: 0.8rem;
    }

    .game-card button {
        font-size: 0.7rem;
        padding: 0.5rem 0.6rem;
    }

    .product-subcategory {
        font-size: 0.65rem;
    }

    /* Cart rows stack instead of squeezing image + text + controls
       into one cramped line. */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .cart-item img {
        width: 100%;
        height: auto;
        max-height: 190px;
        object-fit: contain;
    }

    /* Chatbot was a fixed 320px panel pinned bottom-right, which
       covered content on small screens. Make it a full-width,
       collapsed-by-default strip. */
    #chatbot-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    #chatbot-messages {
        height: 130px;
    }

    /* Forms and panels shouldn't have desktop-sized padding. */
    #event-booking-form,
    .auth-form-container,
    #user-info,
    .history-section {
        padding: 1.25rem;
        margin: 1.25rem auto;
        max-width: none;
    }

    .legal-page {
        padding: 1.5rem 1rem;
    }

    .category-filter-container {
        gap: 0.4rem;
    }

    .category-tab {
        padding: 0.45rem 0.8rem;
        font-size: 0.7rem;
    }

    .status-filter-row,
    .status-controls {
        gap: 0.4rem;
    }

    /* Admin add-product form: stack fields full-width instead of
       letting them run inline off the edge of the screen. */
    #add-product-form {
        display: grid;
        gap: 0.55rem;
    }

    #add-product-form input,
    #add-product-form select,
    #add-product-form button {
        width: 100%;
    }

    .user-card,
    .product-card-admin,
    .booking-card {
        padding: 0.85rem;
    }

    /* Intro sequence: keep the boot log readable and stop the
       brand text from overflowing on narrow screens. */
    .xp-intro-boot {
        font-size: 10px;
        line-height: 1.95;
        width: 94%;
    }

    .xp-kick {
        font-size: 9px;
        letter-spacing: 0.32em;
    }

    .xp-intro-brand p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .xp-intro-hint {
        font-size: 8px;
        right: 12px;
        bottom: 12px;
    }

    /* Logo wrap/ring/flare already scale responsively via vmin units;
       just dial back the explosion's peak scale a bit on phones so the
       logo doesn't overshoot past the visible viewport edges. */
    @keyframes xpLogoPopIn {
        0% {
            opacity: 0;
            transform: scale(0.05) rotate(-45deg);
            filter: drop-shadow(0 0 0 rgba(40, 247, 255, 0));
            box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.6), 0 0 0 rgba(40, 247, 255, 0);
        }
        45% {
            opacity: 1;
            transform: scale(3.6) rotate(10deg);
            filter: drop-shadow(0 0 40px rgba(40, 247, 255, 1));
            box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.9), 0 0 80px 24px rgba(178, 28, 255, 0.6);
        }
        65% {
            transform: scale(3.1) rotate(-4deg);
        }
        100% {
            opacity: 1;
            transform: scale(3.3) rotate(0deg);
            filter: drop-shadow(0 0 32px rgba(40, 247, 255, 0.85));
            box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.8), 0 0 60px 16px rgba(178, 28, 255, 0.5);
        }
    }

    @keyframes xpLogoShrink {
        0% {
            transform: scale(3.3) rotate(0deg);
            filter: drop-shadow(0 0 32px rgba(40, 247, 255, 0.85));
            box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.8), 0 0 60px 16px rgba(178, 28, 255, 0.5);
        }
        100% {
            transform: scale(1) rotate(0deg);
            filter: drop-shadow(0 0 20px rgba(40, 247, 255, 0.7));
            box-shadow: 0 0 0 2px rgba(40, 247, 255, 0.7), 0 0 34px 6px rgba(178, 28, 255, 0.4);
        }
    }
}

/* --- Very small phones --- */
@media (max-width: 400px) {
    #featured-products,
    #product-list {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    }

    .brand-block::after {
        display: none; /* hide "[SYS] ONLINE" to save vertical space */
    }

    .xp-intro-boot {
        font-size: 9px;
    }
}
