:root {
    /* Deep Space Colors */
    --bg-base: #050508;
    --bg-surface: rgba(20, 20, 28, 0.4);
    --bg-surface-hover: rgba(35, 35, 50, 0.6);
    --bg-surface-solid: #13131c;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accents */
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-glow: rgba(139, 92, 246, 0.4);
    
    /* Glass Borders & Shadows */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Animation Timing */
    --transition-fast: 0.2s ease;
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ambient Background & Cyber Grid */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background-color: #06060a;
}

.ambient-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../img/bg-ambient.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.38;
    mix-blend-mode: screen;
    pointer-events: none;
    filter: saturate(1.25) contrast(1.15);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.55;
    animation: float-orb 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.purple-orb {
    top: -15%;
    right: -10%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(109, 40, 217, 0.15) 50%, transparent 70%);
}

.blue-orb {
    bottom: -20%;
    left: -15%;
    width: 75vw;
    height: 75vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.1) 50%, transparent 70%);
    animation-delay: -6s;
}

.pink-orb {
    top: 30%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(219, 39, 119, 0.08) 50%, transparent 70%);
    animation-delay: -3s;
    animation-duration: 18s;
}

.cyan-orb {
    top: 55%;
    right: 15%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(8, 145, 178, 0.06) 50%, transparent 70%);
    animation-delay: -9s;
    animation-duration: 16s;
}

/* Subtle Cyber Retro Grid Floor */
.cyber-grid-floor {
    position: absolute;
    bottom: -150px;
    left: -50%;
    width: 200%;
    height: 550px;
    background-image: 
        linear-gradient(to right, rgba(139, 92, 246, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(400px) rotateX(65deg);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    animation: gridFloorScroll 20s linear infinite;
    pointer-events: none;
}

@keyframes gridFloorScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-35px, 35px) scale(1.12); }
}

/* ==========================================================================
   Header & Navbar (Ultra-Premium Glassmorphism)
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 84px;
    background: rgba(8, 8, 14, 0.65);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    height: 72px;
    background: rgba(6, 6, 11, 0.88);
    border-bottom-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.1);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon-wrapper {
    transform: scale(1.08) rotate(-4deg);
}

.logo-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.logo-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2.8px;
    display: inline-flex;
    align-items: center;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: initial !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Star Feature: Cyberpunk / Apple Glow Catalog Button */
.btn-catalog-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6), rgba(59, 130, 246, 0.6));
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.catalog-btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #3b82f6);
    filter: blur(8px);
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.catalog-btn-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #0d0c18;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    z-index: 1;
    transition: background 0.3s ease;
}

.catalog-btn-icon-animated {
    font-size: 1rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 6px #f59e0b);
    animation: pulseIcon 2s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) rotate(6deg); }
}

.catalog-live-counter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.02em;
}

.pulse-dot-amber {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: blinkDot 1.4s infinite ease-in-out;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.btn-catalog-premium:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.55), 0 0 15px rgba(236, 72, 153, 0.4);
}

.btn-catalog-premium:hover .catalog-btn-glow {
    opacity: 0.85;
}

.btn-catalog-premium:hover .catalog-btn-inner {
    background: #131124;
}

/* Language Selector Pill */
.lang-selector-wrapper {
    position: relative;
}

.lang-selector-wrapper::after {
    content: "▾";
    font-size: 0.75rem;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.lang-select {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 9px 34px 9px 16px;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
}

.lang-select:hover, .lang-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* Apple Nav Download Button */
.btn-nav-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 9999px;
    background: #ffffff;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-download:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Hero Section (Top-Tier Gaming Masterpiece)
   ========================================================================== */

.hero {
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

/* Hero Live Badge Pill */
.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #d8b4fe;
    margin-bottom: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.18);
    transition: all 0.3s ease;
}

.hero-live-badge:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 18px #10b981;
    animation: liveGreenPulse 1.8s infinite ease-in-out;
}

@keyframes liveGreenPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.live-badge-sparkle {
    font-size: 0.9rem;
}

/* Hero Headline */
.hero-title {
    font-size: clamp(2.8rem, 5.2vw, 4.4rem);
    line-height: 1.06;
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -0.035em;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 30%, #c4b5fd 70%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 20px rgba(139, 92, 246, 0.25));
}

.hero-subtitle {
    font-size: 1.14rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
}

/* Primary TestFlight Button */
.btn-hero-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #ec4899 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45), 0 0 20px rgba(236, 72, 153, 0.3);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: lightSweep 4s infinite;
}

@keyframes lightSweep {
    0% { left: -100%; }
    25%, 100% { left: 200%; }
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.65), 0 0 30px rgba(236, 72, 153, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

/* Secondary Hero Catalog Button */
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.8);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

/* Mini Stat Chips Strip */
.hero-stats-strip {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.hero-stat-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.stat-pill-icon {
    font-size: 1.35rem;
}

.stat-pill-text {
    display: flex;
    flex-direction: column;
}

.stat-pill-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-pill-desc {
    font-size: 0.74rem;
    color: #94a3b8;
}

/* ==========================================================================
   Hero Visual Stage (3D Device Levitation & Holograms)
   ========================================================================== */

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.stage-ambient-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(236, 72, 153, 0.25) 45%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    border-radius: 50%;
    animation: glowBreathing 5s ease-in-out infinite alternate;
}

@keyframes glowBreathing {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

.device-mockup-wrapper {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero-floating-mockup {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(139, 92, 246, 0.3));
    animation: heroLevitate 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes heroLevitate {
    0% { transform: translateY(0px) rotateY(-4deg) rotateX(4deg); }
    50% { transform: translateY(-22px) rotateY(2deg) rotateX(-2deg); }
    100% { transform: translateY(0px) rotateY(-4deg) rotateX(4deg); }
}

/* Floating Holographic Glass Badges */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(13, 12, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.25);
    z-index: 10;
    transition: all 0.3s ease;
}

.float-badge:hover {
    transform: scale(1.06);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.5);
}

.float-badge-content {
    display: flex;
    flex-direction: column;
}

.float-badge-content strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.float-badge-content span {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.2;
}

.float-badge-icon {
    font-size: 1.2rem;
}

.badge-top-right {
    top: 15%;
    right: -25px;
    border-color: rgba(16, 185, 129, 0.35);
    animation: floatBadge1 5s ease-in-out infinite alternate;
}

@keyframes floatBadge1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-14px) scale(1.02); }
}

.badge-bottom-left {
    bottom: 12%;
    left: -35px;
    border-color: rgba(245, 158, 11, 0.35);
    animation: floatBadge2 6s ease-in-out infinite alternate;
    animation-delay: -2s;
}

@keyframes floatBadge2 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(16px) scale(1.02); }
}

.badge-side-right {
    bottom: 25%;
    right: -30px;
    border-color: rgba(59, 130, 246, 0.35);
    animation: floatBadge3 7s ease-in-out infinite alternate;
    animation-delay: -4s;
}

@keyframes floatBadge3 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-12px) scale(1.02); }
}

.emerald-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: liveGreenPulse 1.8s infinite;
}

/* ==========================================================================
   Responsive Breakpoints for Hero & Navbar
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding-top: 20px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats-strip {
        justify-content: center;
    }

    .badge-top-right {
        right: 0;
    }

    .badge-bottom-left {
        left: 0;
    }

    .badge-side-right {
        right: 0;
    }
}

@media (max-width: 640px) {
    .navbar {
        height: 74px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.15rem;
        letter-spacing: 1.5px;
    }

    .catalog-btn-inner {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .catalog-live-counter {
        display: none;
    }

    .btn-nav-download {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .hero {
        padding-top: 105px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-strip {
        flex-direction: column;
        width: 100%;
    }

    .hero-stat-pill {
        width: 100%;
    }

    .float-badge {
        padding: 8px 12px;
    }
}

/* Bento Section */
.bento-section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.gradient-text {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-light);
    background: var(--bg-surface-hover);
}

.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

/* Bento Content */
.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glow-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.glow-icon.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-grow: 1;
}

.console-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bento Background Accents */
.bento-bg-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(to bottom right, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom right, black, transparent);
}

.bg-gradient-mesh {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.2), transparent 50%);
}

.bento-dark {
    background: rgba(10, 10, 15, 0.6);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px;
    background: rgba(5, 5, 8, 0.3);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    max-width: 300px;
    margin-top: 16px;
}

.footer-links-group h4 {
    color: #fff;
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 150ms; }
.delay-2 { transition-delay: 300ms; }

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 1; grid-column: span 2; }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-image {
        max-width: 80%;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-wide, .bento-tall {
        grid-column: span 1;
    }
    
    .nav-actions .btn-sm {
        display: none; /* Hide download button on mobile nav */
    }
}


/* ==========================================================================
   RETRO CRT TV SPLASH INTRO (PixelDock Style)
   ========================================================================== */

#retro-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030305;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#retro-splash-overlay.splash-exit {
    opacity: 0;
    transform: scale(1.15);
    pointer-events: none;
}

#cassette-border-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}



.splash-content-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 520px;
    padding: 0 20px;
}

/* TV Display & Frame */
#tv-display-container {
    position: relative;
    width: min(88vw, 440px);
    max-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(6, 182, 212, 0.25));
    animation: tvFloating 4s ease-in-out infinite alternate;
}

@keyframes tvFloating {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

#tv-frame-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Screen Mount */
#tv-screen-mount {
    position: absolute;
    background: #08080c;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95);
}

/* Noise Canvas */
#crt-noise-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    transition: opacity 0.25s ease;
}

/* Test Card (Carta de Ajuste) */
#crt-test-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #111;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.test-card-header {
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    padding: 2px 0;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
}

.test-card-colorbars {
    flex: 1;
    display: flex;
    width: 100%;
}

.test-card-colorbars .c-bar {
    flex: 1;
    height: 100%;
}

.c-white { background: #ffffff; }
.c-yellow { background: #ffff00; }
.c-cyan { background: #00ffff; }
.c-green { background: #00ff00; }
.c-magenta { background: #ff00ff; }
.c-red { background: #ff0000; }
.c-blue { background: #0000ff; }
.c-black { background: #000000; }

.test-card-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 8, 14, 0.92);
    border: 2px solid #00f0ff;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.8), inset 0 0 8px rgba(0, 240, 255, 0.4);
    z-index: 4;
}

.test-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: -1.5px 0 #ff0055, 1.5px 0 #00ffff;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.test-card-footer {
    height: 18%;
    background: repeating-linear-gradient(90deg, #000 0px, #000 4px, #fff 4px, #fff 8px);
    border-top: 1px solid #222;
}

/* OSD Badge */
#crt-osd-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 8;
    color: #39ff14;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: 900;
    text-shadow: 0 0 6px #39ff14;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    line-height: 1.2;
    text-align: right;
}

.osd-vol {
    font-size: 7px;
    opacity: 0.9;
}

/* CRT Scanlines & Glass Shaders */
.crt-overlay-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
    background-size: 100% 3px, 6px 100%;
}

.crt-glass-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 60%);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

/* V-Hold Glitch Animation */
.v-hold-bounce {
    animation: vHoldGlitch 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes vHoldGlitch {
    0% { transform: translateY(-40%); opacity: 0.5; }
    40% { transform: translateY(15%); }
    70% { transform: translateY(-5%); }
    100% { transform: translateY(0); opacity: 1; }
}

/* Subtitle & Phrases Box */
.retro-subtitles-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 18, 0.75);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(6, 182, 212, 0.15);
    min-height: 42px;
}

#retro-phrase-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    letter-spacing: 0.5px;
}

.terminal-cursor {
    display: inline-block;
    color: #38bdf8;
    animation: blinkCursor 0.7s infinite;
    font-weight: bold;
    margin-left: 2px;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    #tv-display-container {
        width: 88vw;
    }
    .test-card-title {
        font-size: 10px;
        letter-spacing: 1px;
    }
    #retro-phrase-text {
        font-size: 11px;
    }
}

/* Brand Loading Phase Box */
#brand-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 180px;
}

#brand-title-letters {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.brand-loading-tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    animation: pulseLoading 1.2s infinite ease-in-out;
}

@keyframes pulseLoading {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* TV Initial State in Phase 1 */
#tv-display-container {
    opacity: 0;
    transform: scale(0.92);
    display: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}


/* Controls top right (Mute & Skip) */
.splash-controls-top {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.splash-ctrl-btn {
    height: 38px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(16, 16, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.splash-ctrl-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.splash-mute-btn.sound-on {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.15);
}

.splash-mute-btn.pulse-sound {
    animation: soundButtonPulse 2s infinite ease-in-out;
}

@keyframes soundButtonPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

/* C64 Phrase Typography (Exact Match with iOS App) */
.c64-phrase-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 6px 12px;
    text-align: center;
    user-select: none;
}

#retro-phrase-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 600;
    color: rgb(157, 144, 229); /* C64 Foreground color */
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.c64-cursor {
    display: inline-block;
    color: rgb(157, 144, 229);
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 600;
    margin-left: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    transition: opacity 0.1s ease;
}

/* ==========================================================================
   PIXELDOCK Multicolor SMPTE Branding (Idéntico a RetroTestCardText en iOS)
   ========================================================================== */
.pixeldock-rainbow-text,
.logo-text.pixeldock-rainbow-text {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    text-transform: uppercase !important;
    background: transparent !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: initial !important;
}

.pixeldock-rainbow-text span,
.logo-text.pixeldock-rainbow-text span {
    display: inline-block !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: 900 !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 12px currentColor, 0 1px 3px rgba(0,0,0,0.8) !important;
}

.pixeldock-rainbow-text .char-0 { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; } /* P - Blanco */
.pixeldock-rainbow-text .char-1 { color: #ffff00 !important; -webkit-text-fill-color: #ffff00 !important; } /* I - Amarillo */
.pixeldock-rainbow-text .char-2 { color: #00f0ff !important; -webkit-text-fill-color: #00f0ff !important; } /* X - Cian */
.pixeldock-rainbow-text .char-3 { color: #00cc00 !important; -webkit-text-fill-color: #00cc00 !important; } /* E - Verde */
.pixeldock-rainbow-text .char-4 { color: #ff00ff !important; -webkit-text-fill-color: #ff00ff !important; } /* L - Magenta */
.pixeldock-rainbow-text .char-5 { color: #ff2626 !important; -webkit-text-fill-color: #ff2626 !important; } /* D - Rojo */
.pixeldock-rainbow-text .char-6 { color: #3366ff !important; -webkit-text-fill-color: #3366ff !important; } /* O - Azul */
.pixeldock-rainbow-text .char-7 { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; } /* C - Blanco */
.pixeldock-rainbow-text .char-8 { color: #ffff00 !important; -webkit-text-fill-color: #ffff00 !important; } /* K - Amarillo */

.hero-title .pixeldock-highlight {
    background: linear-gradient(135deg, #00f0ff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* ==========================================================================
   Systems Showcase Carousel Section
   ========================================================================== */
.systems-showcase-section {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.systems-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.systems-badge {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}

.systems-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Category Filter Bar */
.systems-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.system-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 8px 18px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.system-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.system-filter-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
    border-color: rgba(139, 92, 246, 0.8);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

/* Carousel Container & Track */
.systems-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.systems-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    padding: 10px 40px;
    cursor: grab;
    user-select: none;
}

.systems-track::-webkit-scrollbar {
    display: none;
}

/* Categorías cuyo catálogo filtrado no llena el ancho visible (ej. Sony con 2 sistemas) --
   en vez de quedar pegadas a la izquierda con hueco vacío a la derecha, se centran y el
   track deja de comportarse como carrusel arrastrable (nada que arrastrar). */
.systems-track.centered {
    justify-content: center;
    cursor: default;
}

/* System Glassmorphism Card */
.system-card {
    flex: 0 0 270px;
    width: 270px;
    height: 350px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: rgba(20, 20, 30, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.system-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--sys-color, rgba(139, 92, 246, 0.6));
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 30px -5px var(--sys-color, rgba(139, 92, 246, 0.35));
}

.sys-glow-halo {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(35px);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.system-card:hover .sys-glow-halo {
    opacity: 0.9;
}

.sys-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.sys-maker-badge {
    padding: 3px 9px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.sys-gen-badge {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.sys-img-container {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin: 6px 0;
}

.sys-img {
    max-width: 90%;
    max-height: 125px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.75));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover .sys-img {
    transform: scale(1.08) translateY(-4px);
}

.sys-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.sys-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sys-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sys-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Nav Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.carousel-nav-btn.prev { left: 24px; }
.carousel-nav-btn.next { right: 24px; }

/* Categorías pequeñas (ej. Sony con 2 sistemas) que no llenan el ancho visible: las flechas
   sobran sin nada que desplazar -- se ocultan suaves reutilizando la transición ya definida
   arriba en vez de desaparecer de golpe. */
.carousel-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.85);
}

.carousel-nav-btn:hover {
    background: rgba(139, 92, 246, 0.6);
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    transform: translateY(-50%) scale(1.08);
}

/* Stats Metrics Grid */
.systems-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.stat-card {
    text-align: center;
    padding: 18px 12px;
    border-radius: 18px;
    background: rgba(20, 20, 28, 0.35);
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .systems-showcase-section {
        padding: 50px 0 40px;
    }
    .system-card {
        flex: 0 0 230px;
        width: 230px;
        height: 320px;
        padding: 16px;
    }
    .sys-img-container {
        height: 120px;
    }
    .sys-img {
        max-height: 105px;
    }
    .carousel-nav-btn {
        display: none;
    }
    .systems-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Game & Cheats Catalog Modal & Explorer
   ========================================================================== */

/* Navbar Catalog Button */
.btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.btn-catalog:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.catalog-btn-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-catalog:hover .catalog-btn-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Catalog Modal Backdrop */
.catalog-modal-backdrop,
.detail-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 5, 8, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* El catálogo tiene una rejilla scrolleable con cientos/miles de tarjetas e imágenes encima --
   2026-09-03, bug real reportado por el usuario ("la página es un error de optimización desde
   el primer momento"): `backdrop-filter: blur()` obliga al navegador a recalcular el desenfoque
   de TODO lo de detrás en cada fotograma de scroll/carga de imagen, y con este modal en concreto
   eso competía de verdad con el propio scroll infinito. Se quita SOLO aquí (el resto de la web,
   incluida la ficha de juego `.detail-modal-backdrop`, conserva el cristal esmerilado).
   `rgba(5,5,8,0.82)` ya de por sí es un fondo bastante opaco, así que se sigue viendo un fondo
   oscuro sólido detrás, solo que sin el desenfoque real. */
.detail-modal-backdrop {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.catalog-modal-backdrop.active,
.detail-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Window */
.catalog-modal-container {
    width: 100%;
    max-width: 1140px;
    height: 88vh;
    max-height: 860px;
    background: #0d0d14;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 45%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 45%),
                #0e0e16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-modal-backdrop.active .catalog-modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.catalog-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(13, 13, 20, 0.7);
    backdrop-filter: blur(10px);
}

.catalog-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.catalog-modal-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #ffffff;
}

.catalog-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.catalog-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.catalog-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Toolbar */
.catalog-toolbar {
    padding: 16px 28px;
    background: rgba(15, 15, 24, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-search-wrapper {
    position: relative;
    width: 100%;
}

.catalog-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.6;
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    padding: 12px 38px 12px 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.catalog-search-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.catalog-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
}

.catalog-filters-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-select-wrapper select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e2e8f0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.catalog-select-wrapper select:focus {
    border-color: var(--accent-purple);
}

.catalog-select-wrapper select option {
    background: #12121c;
    color: #ffffff;
}

.catalog-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.catalog-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-purple);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.catalog-switch-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.catalog-results-stats {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.catalog-results-stats span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Content Area */
.catalog-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    scroll-behavior: smooth;
}

/* Games Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

/* Game Card */
.catalog-game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.catalog-game-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
}

.card-cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #171724;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.catalog-game-card:hover .card-cover-img {
    transform: scale(1.05);
}

.card-cover-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.card-system-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    color: #fff;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-cheats-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 34px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.card-genre {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-view-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-game-card:hover .card-view-btn {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
}

/* System Tag Variants */
.tag-nintendo-purple { background: rgba(139, 92, 246, 0.85); }
.tag-nintendo-red    { background: rgba(239, 68, 68, 0.85); }
.tag-nintendo-gold   { background: rgba(245, 158, 11, 0.85); }
.tag-sega-blue       { background: rgba(2, 132, 199, 0.85); }
.tag-sony-teal       { background: rgba(20, 184, 166, 0.85); }
.tag-atari-orange    { background: rgba(249, 115, 22, 0.85); }
.tag-retro-green     { background: rgba(16, 185, 129, 0.85); }
.tag-default         { background: rgba(100, 116, 139, 0.85); }

/* Loading & Empty States */
.catalog-loading,
.catalog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 14px;
    color: var(--text-secondary);
}

.catalog-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-icon {
    font-size: 48px;
    opacity: 0.7;
}

/* Scroll infinito */
.catalog-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.catalog-load-more .catalog-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.catalog-end-of-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 30px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Detail & Cheats Sheet (Ficha Emergente)
   ========================================================================== */

.detail-modal-container {
    width: 100%;
    max-width: 960px;
    height: 82vh;
    max-height: 760px;
    background: #0f0f18;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 50%),
                #10101a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(59, 130, 246, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal-backdrop.active .detail-modal-container {
    transform: scale(1) translateY(0);
}

.detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 26, 0.85);
    backdrop-filter: blur(10px);
}

.detail-badge-title {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 85%;
}

.detail-badge-title .system-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    max-width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-badge-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Detail Sidebar */
.detail-sidebar {
    width: 260px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(255, 255, 255, 0.015);
    overflow-y: auto;
}

.detail-boxart-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #161622;
}

.detail-boxart-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boxart-glass-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.detail-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-meta-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.meta-value-mono {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.detail-description-wrap {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-description-wrap .meta-label {
    display: block;
    margin-bottom: 6px;
}

.detail-description-wrap p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

/* Detail Cheats Section */
.detail-cheats-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(14, 14, 22, 0.5);
}

.detail-cheats-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cheats-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheats-title-wrap h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.badge-count {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.cheats-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cheat-filter-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px;
    outline: none;
    width: 170px;
    transition: all 0.2s ease;
}

.cheat-filter-input:focus {
    border-color: var(--accent-purple);
    width: 200px;
}

.btn-primary-glass {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-glass:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.6);
}

.detail-cheats-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cheat-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.cheat-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.cheat-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cheat-index {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.cheat-desc {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    flex: 1;
    margin: 0;
}

.btn-copy-cheat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-cheat:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-purple);
    color: #ffffff;
}

.btn-copy-cheat.copied {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #6ee7b7;
}

.cheat-code-box {
    background: #09090e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 12px;
    color: #38bdf8;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.no-cheats-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ==========================================================================
   Custom Dropdown (Select Personalizado con Glassmorphism)
   ========================================================================== */
.custom-select-container {
    position: relative;
    user-select: none;
    min-width: 230px;
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 14px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.custom-select-trigger:hover,
.custom-select-container.open .custom-select-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.custom-select-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.custom-select-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-arrow {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.custom-select-container.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-height: 380px;
    background: rgba(16, 16, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(139, 92, 246, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-container.open .custom-select-menu {
    display: flex;
}

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

.custom-select-search-box {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-select-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
}

.custom-select-search-input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    outline: none;
}

.custom-select-search-input:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.09);
}

.custom-select-options-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    max-height: 310px;
}

.custom-select-options-list::-webkit-scrollbar {
    width: 5px;
}
.custom-select-options-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.custom-optgroup-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 8px 10px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-optgroup-label span.group-count {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
}

.custom-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-option-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff;
}

.custom-option-item.selected {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.25));
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.custom-option-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.custom-option-badge {
    font-size: 10px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 6px;
}

/* ==========================================================================
   Cyber Switch Toggle (Interruptor Luminoso)
   ========================================================================== */
.catalog-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.cyber-switch-input {
    display: none;
}

.cyber-switch-track {
    position: relative;
    width: 38px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #94a3b8;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cyber-switch-input:checked + .cyber-switch-track {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-color: #a78bfa;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.cyber-switch-input:checked + .cyber-switch-track .cyber-switch-thumb {
    left: 20px;
    background: #ffffff;
}

.cyber-switch-label-text {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

/* ==========================================================================
   Game Card: Badge de Versiones
   ========================================================================== */
.card-variants-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ==========================================================================
   Detail Modal: Sección Interactiva de Variantes
   ========================================================================== */
.detail-variants-section {
    padding: 16px 22px;
    background: rgba(15, 15, 24, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-variants-header {
    margin-bottom: 12px;
}

.variants-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.variants-title-wrap h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.detail-variants-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.detail-variants-grid::-webkit-scrollbar {
    width: 4px;
}
.detail-variants-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.variant-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.variant-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
}

.variant-card.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.15));
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.variant-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.variant-info {
    flex: 1;
    min-width: 0;
}

.variant-title {
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variant-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

.variant-serial-badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 9px;
}

/* ==========================================================================
   Toast Notifications System
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    background: rgba(16, 16, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-item.toast-leave {
    animation: toastFadeOut 0.25s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastFadeOut {
    to { opacity: 0; transform: translateY(8px) scale(0.9); }
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px;
}

.toast-message {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    width: 100%;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ==========================================================================
   Catalog Loading & Progress Modal (Diálogo Emergente de Carga y Cancelar)
   ========================================================================== */
.catalog-loading-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: rgba(8, 8, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.3s;
}

.catalog-loading-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

.catalog-loading-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.95), rgba(12, 12, 22, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.25);
    padding: 36px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-loading-backdrop.active .catalog-loading-card {
    transform: scale(1) translateY(0);
}

.catalog-loading-icon-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.catalog-loading-icon {
    font-size: 32px;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
    animation: arcadeIconFloat 2s ease-in-out infinite alternate;
}

@keyframes arcadeIconFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-4px) scale(1.08); }
}

.loading-icon-radar {
    position: absolute;
    inset: -6px;
    border: 2px solid transparent;
    border-top-color: #8b5cf6;
    border-right-color: #3b82f6;
    border-radius: 50%;
    animation: radarSpin 1.2s linear infinite;
}

@keyframes radarSpin {
    to { transform: rotate(360deg); }
}

.catalog-loading-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.catalog-loading-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 24px;
    min-height: 20px;
    line-height: 1.4;
}

.catalog-loading-bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-loading-bar-fill {
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #3b82f6);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.catalog-loading-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmerProgress 1.4s infinite;
}

@keyframes shimmerProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.btn-cancel-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.btn-cancel-loading:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 860px) {
    .catalog-modal-container {
        height: 96vh;
        max-height: none;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    /* Cabecera compacta */
    .catalog-modal-header {
        padding: 16px 18px 14px;
        gap: 10px;
    }
    .catalog-title-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .catalog-modal-badge {
        font-size: 9px;
        padding: 2px 7px;
    }
    .catalog-modal-header h2 {
        font-size: 1.15rem;
        line-height: 1.25;
    }
    .catalog-subtitle {
        font-size: 11px;
    }
    .catalog-close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        flex-shrink: 0;
    }

    /* Toolbar vertical en móvil */
    .catalog-toolbar {
        padding: 12px 16px;
        gap: 12px;
    }
    .catalog-search-input {
        padding: 11px 36px 11px 38px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Fila de filtros: selector arriba, switch + stats abajo */
    .catalog-filters-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .custom-select-container {
        min-width: unset;
        width: 100%;
    }
    .custom-select-trigger {
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
    }
    .custom-select-menu {
        width: 100%;
        max-width: none;
        left: 0;
        right: 0;
    }

    /* Switch + Stats: fila horizontal compacta */
    .catalog-switch-stats-row {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    .catalog-results-stats {
        margin-left: auto;
        font-size: 12px;
    }

    /* Cuadrícula de juegos: 2 columnas fijas */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Content area con menos padding */
    .catalog-content-area {
        padding: 14px 14px;
    }

    /* Detail modal */
    .detail-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }
    .detail-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 16px;
    }
    .detail-boxart-wrapper {
        width: 110px;
        margin: 0 auto;
    }
    .detail-main-content {
        padding: 16px;
    }
    .detail-modal-header {
        padding: 14px 16px;
    }

    /* Toasts */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* Extra small - Pantallas ≤ 430px (iPhone Plus, Android estándar) */
@media (max-width: 430px) {
    .catalog-modal-container {
        height: 100vh;
        border-radius: 0;
    }
    .catalog-modal-header {
        padding: 14px 14px 12px;
    }
    .catalog-modal-header h2 {
        font-size: 1.05rem;
    }
    .catalog-toolbar {
        padding: 10px 12px;
        gap: 10px;
    }
    .catalog-content-area {
        padding: 10px 10px;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .catalog-game-card {
        border-radius: 10px;
    }
    .card-game-title {
        font-size: 11px;
        padding: 8px 8px;
    }
}

