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

        :root {
            --primary: #000000;
            --secondary: #0a0a0a;
            --tertiary: #111111;
            --accent: #ffffff;
            --text-primary: #ffffff;
            --text-secondary: #71717a;
            --text-muted: #52525b;
            --border: #27272a;
            --border-subtle: #18181b;
            --blue-link: #ffffff;
            --gradient-1: linear-gradient(135deg, #18181b 0%, #000000 100%);
            --gradient-2: linear-gradient(135deg, #18181b 0%, #09090b 100%);
            --gradient-3: linear-gradient(135deg, #09090b 0%, #000000 100%);

            /* Minimal shadows */
            --glow-primary: rgba(255, 255, 255, 0.05);
            --glow-secondary: rgba(255, 255, 255, 0.03);
            --shadow-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.5);
            --shadow-elevation-2: 0 4px 12px rgba(0, 0, 0, 0.5);
            --shadow-elevation-3: 0 8px 24px rgba(0, 0, 0, 0.6);
            --transition-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
            --transition-bounce: cubic-bezier(0.16, 1, 0.3, 1);
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            max-width: 100vw;
            width: 100%;
            /* Prevent layout shift from scrollbar appearing/disappearing */
            scrollbar-gutter: stable;
            overflow-y: scroll;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--primary);
            color: var(--text-primary);
            overflow-x: hidden;
            line-height: 1.6;
            max-width: 100vw;
            width: 100%;
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #27272a;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #3f3f46;
        }

        /* Background System */
        .bg-system {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -10;
            overflow: hidden;
            max-width: 100vw;
        }

        .grid-bg {
            display: none;
        }

        /* Christmas Full Page Glow Background - Disabled for minimalist design */
        .christmas-glow-bg {
            display: none;
        }

        /* Floating Shapes - Disabled for minimalist design */
        .floating-shapes,
        .shape,
        .gradient-orbs,
        .orb {
            display: none;
        }

        /* Snowflakes & Decorations - Disabled for minimalist design */
        .snowflakes,
        .snowflake,
        .floating-decorations,
        .floating-decoration {
            display: none;
        }

/* Glass Navbar - Pill Navigation */
        .pill-nav-container {
            position: fixed;
            top: 1rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 99;
            width: max-content;
            will-change: transform;
            backface-visibility: hidden;
        }

        @media (max-width: 768px) {
            .pill-nav-container {
                width: calc(100% - 2rem);
                left: 1rem;
                right: 1rem;
                transform: none;
                top: 1rem;
                max-width: calc(100vw - 2rem);
                padding: 0;
                margin: 0;
                box-sizing: border-box;
            }
        }

        .pill-nav {
            --nav-h: 42px;
            --logo: 36px;
            --pill-pad-x: 18px;
            --pill-gap: 3px;
            width: max-content;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            gap: 12px;
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-radius: 9999px;
            padding: 6px;
            border: none;
            box-shadow: none;
        }

        @media (max-width: 768px) {
            .pill-nav {
                width: 100%;
                justify-content: space-between;
                gap: 8px;
                flex-wrap: nowrap;
                background: #000000;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                border: 1px solid #27272a;
                box-shadow: none;
                padding: 8px 12px;
            }
        }

        .pill-logo {
            width: var(--nav-h);
            height: var(--nav-h);
            border-radius: 50%;
            background: var(--base, #000);
            padding: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            text-decoration: none;
            color: var(--pill-bg);
            font-weight: 700;
            font-size: 18px;
            transition: all 0.3s ease;
            flex-shrink: 0;
            position: relative;
        }

        .pill-logo:hover {
            transform: scale(1.1);
            transition: transform 0.3s ease;
        }

        .pill-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            display: block;
        }

        .pill-nav-items {
            position: relative;
            display: flex;
            align-items: center;
            height: var(--nav-h);
            background: var(--base, #000);
            border-radius: 9999px;
            overflow: visible;
        }

        .pill-list {
            list-style: none;
            display: flex;
            align-items: stretch;
            gap: var(--pill-gap);
            margin: 0;
            padding: 3px;
            height: 100%;
        }

        .pill-list > li {
            display: flex;
            height: 100%;
        }

        .pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: 0 var(--pill-pad-x);
            background: var(--pill-bg, #fff);
            color: var(--pill-text, var(--base, #000));
            text-decoration: none;
            border-radius: 9999px;
            box-sizing: border-box;
            font-weight: 600;
            font-size: 15px;
            line-height: 0;
            text-transform: uppercase;
            letter-spacing: 0.2px;
            white-space: nowrap;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border: none;
            transition: transform 0.3s ease;
            contain: layout style paint;

        }

        .pill:hover {
            transform: scale(1.05);
        }

        .pill .hover-circle {
            position: absolute;
            left: 50%;
            bottom: 0;
            border-radius: 50%;
            background: var(--base, #000);
            z-index: 1;
            display: block;
            pointer-events: none;

            width: 60px;
            height: 60px;
            opacity: 0;
            transform: translateX(-50%) translateY(50%) scale(0);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .pill:hover .hover-circle {
            opacity: 1;
            transform: translateX(-50%) translateY(50%) scale(1);
        }

        .pill .label-stack {
            position: relative;
            display: inline-block;
            line-height: 1;
            z-index: 2;
        }

        .pill .pill-label {
            position: relative;
            z-index: 2;
            display: inline-block;
            line-height: 1;

            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
            opacity: 1;
        }

        .pill .pill-label-hover {
            position: absolute;
            left: 0;
            top: 0;
            color: var(--hover-text, #fff);
            z-index: 3;
            display: inline-block;

            opacity: 0;
            transform: translateY(100%);
            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        }

        .pill:hover .pill-label {
            transform: translateY(-100%);
            opacity: 0;
        }

        .pill:hover .pill-label-hover {
            opacity: 1;
            transform: translateY(0);
        }

        .pill.is-active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 8px;
            height: 8px;
            background: var(--base, #000);
            border-radius: 50%;
            z-index: 4;
            opacity: 0;
        }

        .pill.is-active.show-indicator::after {
            opacity: 1;
        }

        .desktop-only {
            display: block;
        }

        .mobile-only {
            display: none;
        }

        @media (max-width: 768px) {
            .desktop-only {
                display: none;
            }

            .mobile-only {
                display: flex;
            }
        }

        .mobile-menu-button {
            width: var(--nav-h);
            height: var(--nav-h);
            border-radius: 50%;
            background: var(--base, #000);
            border: none;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            padding: 0;
            position: relative;
            flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .mobile-menu-button {
                display: flex;
            }
        }

        .hamburger-line {
            width: 18px;
            height: 2px;
            background: var(--pill-bg, #fff);
            border-radius: 1px;
            transition: all 0.3s ease;
            transform-origin: center;
        }

        .mobile-menu-popover {
            position: fixed;
            top: 5rem;
            left: 1rem;
            right: 1rem;
            background: #000000;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-radius: 16px;
            border: 1px solid #27272a;
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transform-origin: top center;
            max-width: calc(100vw - 2rem);
            box-shadow: none;
            transition: all 0.2s ease;
        }

        .mobile-menu-popover.show {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu-list {
            list-style: none;
            margin: 0;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .mobile-menu-popover .mobile-menu-link {
            display: block;
            padding: 12px 16px;
            color: #a1a1aa;
            background-color: #18181b;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.2px;
            border-radius: 50px;
            transition: all 0.15s ease;
            text-align: center;
            border: 1px solid transparent;
        }

        .mobile-menu-popover .mobile-menu-link:hover,
        .mobile-menu-popover .mobile-menu-link.is-active {
            background-color: #ffffff;
            color: #000000;
            border-color: #ffffff;
        }

        /* Profile Picture in Navbar */
        .profile-pic-nav {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #27272a;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            overflow: hidden;
            border: 1px solid #3f3f46;
            transition: all 0.15s ease;
        }

        .profile-pic-nav img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Keep old nav styles for backwards compatibility if needed */
        .nav {
            display: none;
        }

        .nav-container,
        .nav-links,
        .nav-link {
            display: none;
        }

        /* Profile Dropdown Card */
        .profile-dropdown {
            position: fixed;
            top: 70px;
            left: 50%;
            transform: translateX(-50%);
            background: #000000;
            backdrop-filter: none;
            border: 1px solid #27272a;
            border-radius: 16px;
            padding: 20px;
            min-width: 280px;
            z-index: 10000;
            display: none;
            box-shadow: none;
            animation: slideDown 0.2s ease;
        }

        .profile-dropdown.show {
            display: block;
        }

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

        /* Pro User Badge */
        .pro-user-badge {
            position: fixed;
            top: 1.5rem;
            right: 2rem;
            color: #c0c0c0;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.5px;
            z-index: 98;
            pointer-events: none;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        @media (max-width: 768px) {
            .pro-user-badge {
                top: 1rem;
                right: 1rem;
                font-size: 12px;
            }
        }

        .profile-dropdown-header {
            display: flex;
            align-items: center;
            gap: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #27272a;
            margin-bottom: 15px;
        }

        .profile-dropdown-pic {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #18181b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 20px;
            overflow: hidden;
            border: 1px solid #27272a;
        }

        .profile-dropdown-pic img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-dropdown-info {
            flex: 1;
        }

        .profile-dropdown-name {
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 2px;
        }

        .profile-dropdown-username {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .profile-dropdown-menu {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .profile-dropdown-item {
            padding: 10px 15px;
            background: #18181b;
            border: 1px solid #27272a;
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.15s ease;
            cursor: pointer;
        }

        .profile-dropdown-item:hover {
            background: #27272a;
            border-color: #3f3f46;
        }

        .profile-dropdown-item svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        .profile-dropdown-item.logout {
            color: #ef4444;
        }

        .profile-dropdown-item.logout:hover {
            background: #18181b;
            border-color: #ef4444;
        }

        /* Hero Section */
        .hero {
            height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        /* Christmas Snowflakes */
        .snowflakes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
            z-index: 2;
        }

        .snowflake {
            position: absolute;
            top: 0;
            color: #fff;
            font-size: 1em;
            user-select: none;
            animation-name: snowfall;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
            will-change: transform;
            backface-visibility: hidden;
            transform: translate3d(0, 0, 0);
        }

        /* Individual snowflake animations */
        .snowflake:nth-child(1) {
            left: 10%;
            animation-duration: 10s;
            animation-delay: 0s;
            font-size: 1.2em;
            opacity: 0.8;
        }

        .snowflake:nth-child(2) {
            left: 20%;
            animation-duration: 12s;
            animation-delay: 1s;
            font-size: 1.5em;
            opacity: 0.6;
        }

        .snowflake:nth-child(3) {
            left: 30%;
            animation-duration: 9s;
            animation-delay: 2s;
            font-size: 1em;
            opacity: 0.9;
        }

        .snowflake:nth-child(4) {
            left: 40%;
            animation-duration: 11s;
            animation-delay: 0.5s;
            font-size: 1.3em;
            opacity: 0.7;
        }

        .snowflake:nth-child(5) {
            left: 50%;
            animation-duration: 13s;
            animation-delay: 1.5s;
            font-size: 1.1em;
            opacity: 0.8;
        }

        .snowflake:nth-child(6) {
            left: 60%;
            animation-duration: 10s;
            animation-delay: 2.5s;
            font-size: 1.4em;
            opacity: 0.6;
        }

        .snowflake:nth-child(7) {
            left: 70%;
            animation-duration: 12s;
            animation-delay: 0.8s;
            font-size: 1.2em;
            opacity: 0.9;
        }

        .snowflake:nth-child(8) {
            left: 80%;
            animation-duration: 11s;
            animation-delay: 1.8s;
            font-size: 1em;
            opacity: 0.7;
        }

        .snowflake:nth-child(9) {
            left: 90%;
            animation-duration: 9s;
            animation-delay: 3s;
            font-size: 1.3em;
            opacity: 0.8;
        }

        .snowflake:nth-child(10) {
            left: 95%;
            animation-duration: 13s;
            animation-delay: 0.3s;
            font-size: 1.5em;
            opacity: 0.6;
        }

        @keyframes snowfall {
            0% {
                transform: translate3d(0, -10vh, 0);
            }
            100% {
                transform: translate3d(50px, 110vh, 0);
            }
        }

        .hero-content {
            text-align: center;
            max-width: 900px;
            padding: 0 20px;
            position: relative;
            z-index: 1;
        }

        .hero-title-container {
            position: relative;
            display: inline-block;
            margin-bottom: 30px;
        }

        .metallic-canvas {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            mix-blend-mode: overlay;
            pointer-events: none;
            z-index: 5;
        }

        .hero-title {
            font-family: 'Inter', sans-serif;
            font-size: clamp(2rem, 7vw, 6rem);
            font-weight: 700;
            margin-bottom: 0;
            color: #ffffff;
            letter-spacing: -0.03em;
            animation: fadeInUp 0.8s ease 0.2s both;
            position: relative;
            z-index: 1;
            white-space: nowrap;
        }

        /* Santa Hat on Hero Title - Hidden for minimal design */
        .santa-hat-hero {
            display: none;
        }

        .hero-title span {
            padding-top: 40px;
            display: inline-block;
            min-height: 60px;
        }

        @media (max-width: 768px) {
            .santa-hat-hero {
                width: 30px !important;
                height: 30px !important;
                top: -25px !important;
            }

            .hero-title span {
                padding-top: 30px;
                min-height: 50px;
            }
        }

        @media (max-width: 480px) {
            .santa-hat-hero {
                width: 22px !important;
                height: 22px !important;
                top: -20px !important;
            }

            .hero-title span {
                padding-top: 25px;
                min-height: 40px;
            }
        }

        .hero-subtitle {
            font-size: clamp(0.9rem, 1.5vw, 1.1rem);
            color: var(--text-secondary);
            margin-bottom: 40px;
            animation: fadeInUp 0.8s ease 0.3s both;
            font-weight: 400;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        .hero-cta {
            animation: fadeInUp 0.8s ease 0.4s both;
            margin-bottom: 0px;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .cta-button, .cta-btn {
            padding: 14px 28px;
            border: 1px solid var(--border);
            background: #ffffff;
            color: #000000;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            border-radius: 50px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .cta-button::before, .cta-btn::before {
            display: none;
        }

        .cta-button:hover, .cta-btn:hover {
            transform: translateY(-2px);
            background: #f4f4f5;
            border-color: #ffffff;
        }

        .cta-button:active, .cta-btn:active {
            transform: translateY(0);
            transition: all 0.1s ease;
        }

        .cta-button i, .cta-btn i {
            font-size: 16px;
        }

        /* Section */
        .section {
            padding: 0px 5% 100px;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Search */
        .controls {
            display: flex;
            justify-content: center;
            margin-bottom: 48px;
        }

        .search-container {
            position: relative;
            width: 100%;
            max-width: 480px;
            z-index: 200;
        }

        .search-input-wrapper {
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 14px 48px 14px 48px;
            background: #0a0a0a;
            border: 1px solid var(--border);
            border-radius: 50px;
            color: var(--text-primary);
            font-size: 14px;
            outline: none;
            transition: all 0.2s ease;
        }

        .search-input::placeholder {
            color: var(--text-muted);
        }

        .search-input:focus {
            border-color: #3f3f46;
            background: #09090b;
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 14px;
            pointer-events: none;
        }

        /* Filter Menu Button - Inside search box */
        .filter-menu-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            z-index: 10;
            border-radius: 6px;
        }

        .filter-menu-btn:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .filter-menu-btn.active .filter-menu-icon span {
            background: var(--accent);
        }

        .filter-menu-icon {
            display: flex;
            flex-direction: column;
            gap: 3px;
            width: 14px;
        }

        .filter-menu-icon span {
            width: 100%;
            height: 1.5px;
            background: var(--text-muted);
            border-radius: 1px;
            transition: all 0.15s ease;
        }

        .filter-menu-btn:hover .filter-menu-icon span {
            background: var(--text-primary);
        }

        /* Filter Dropdown Menu */
        .filter-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: #0a0a0a;
            border: 1px solid var(--border);
            border-radius: 16px;
            min-width: 180px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 300;
            overflow: hidden;
        }

        .filter-dropdown.show {
            display: block;
            animation: slideDown 0.15s ease;
        }

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

        .filter-dropdown-section {
            padding: 8px 0;
        }

        .filter-dropdown-section:not(:last-child) {
            border-bottom: 1px solid var(--border);
        }

        .filter-dropdown-label {
            padding: 6px 12px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
        }

        .filter-dropdown-item {
            padding: 10px 12px;
            cursor: pointer;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-primary);
        }

        .filter-dropdown-item:hover {
            background: var(--tertiary);
            color: var(--accent);
        }

        .filter-dropdown-item.active {
            background: rgba(255, 255, 255, 0.05);
            color: var(--accent);
            font-weight: 500;
        }

        .filter-dropdown-item i {
            width: 14px;
            font-size: 12px;
        }

        .filter-dropdown-item.active::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            margin-left: auto;
            color: var(--accent);
            font-size: 11px;
        }

        .search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid var(--border);
            border-top: none;
            border-radius: 0 0 20px 20px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 201;
            display: none;
        }

        .search-dropdown.show {
            display: block;
        }

        .search-section {
            padding: 15px 20px 10px;
        }

        .search-section-title {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .search-item {
            padding: 8px 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }

        .search-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
        }

        .search-item i {
            font-size: 12px;
            color: var(--text-secondary);
            width: 16px;
        }

        .search-item .search-text {
            flex: 1;
            color: var(--text-primary);
        }

        .search-item .search-category {
            font-size: 10px;
            color: var(--text-secondary);
            background: var(--tertiary);
            padding: 2px 6px;
            border-radius: 12px;
        }

        .clear-history {
            padding: 8px 20px;
            font-size: 12px;
            color: var(--text-secondary);
            cursor: pointer;
            border-top: 1px solid var(--border);
            text-align: center;
            transition: all 0.3s ease;
        }

        .clear-history:hover {
            color: var(--accent);
        }

        /* Character search styling */
        .character-show-name {
            display: block;
            font-size: 10px;
            color: var(--accent);
            font-weight: 600;
            margin-top: 2px;
        }

        .character-season {
            font-size: 10px;
            color: #00ffcc;
            font-weight: 600;
            background: rgba(0, 255, 204, 0.15);
            padding: 1px 5px;
            border-radius: 4px;
            margin: 0 2px;
            display: inline-block;
        }

        /* Character ALL SCP styling */
        .character-all-item {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
            border-left: 3px solid var(--accent) !important;
            padding-left: 17px !important;
        }

        .character-all-item:hover {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
        }

        .character-all-badge {
            font-size: 11px;
            color: #00ffff;
            font-weight: 700;
            background: rgba(0, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 12px;
            margin: 0 4px;
            display: inline-block;
            border: 1px solid rgba(0, 255, 255, 0.4);
        }

        /* Character filter notice */
        .character-filter-notice {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px;
            background: rgba(0, 255, 255, 0.08);
            border: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 12px;
            margin-bottom: 20px;
            font-size: 13px;
            color: var(--text-primary);
        }

        .character-filter-notice i {
            color: var(--accent);
            font-size: 14px;
        }

        .clear-filter-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px 8px;
            margin-left: auto;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-size: 12px;
        }

        .clear-filter-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--accent);
        }


        /* Scenepacks Grid - Clean Minimal Style */
        .scenepacks-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 16px;
            margin-top: 0;
        }

        /* YouTube-style grid for Other category - bigger cards */
        .scenepacks-grid.youtube-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .scenepack-card, .card {
            background: #09090b;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-subtle);
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
            backface-visibility: hidden;
            aspect-ratio: 2 / 3;
            contain: layout style paint;
            transform: translate3d(0, 0, 0);
        }

        .scenepack-card::before, .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0) 50%,
                rgba(0, 0, 0, 0.8) 100%
            );
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
            z-index: 1;
        }

        .scenepack-card::after {
            display: none;
        }

        .scenepack-card:hover, .card:hover {
            transform: translate3d(0, -4px, 0);
            border-color: var(--border);
            z-index: 10;
        }

        .scenepack-card:hover::before, .card:hover::before {
            opacity: 1;
        }

        /* YouTube-style landscape cards for Other category */
        .scenepack-card.youtube-style {
            aspect-ratio: 16 / 9;
        }

        .scenepack-card.youtube-style .scenepack-card-content {
            padding: 12px 14px;
        }

        .scenepack-card.youtube-style .scenepack-card-title {
            font-size: 13px;
            line-height: 1.4;
            -webkit-line-clamp: 2;
        }

        /* View More Button */
        .view-more-container {
            grid-column: 1 / -1;
            display: flex;
            justify-content: center;
            margin-top: 32px;
            margin-bottom: 16px;
        }

        .view-more-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 12px 24px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .view-more-btn:hover {
            border-color: var(--text-secondary);
            color: var(--text-primary);
        }

        .view-more-btn:active {
            transform: scale(0.98);
        }

        .view-more-btn i {
            transition: transform 0.15s ease;
            font-size: 12px;
        }

        .view-more-btn:hover i {
            transform: translateY(2px);
        }

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

        /* Skeleton Loader - Minimal Style */
        .skeleton-card {
            background: #09090b;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-subtle);
            position: relative;
            animation: cardFadeIn 0.5s ease both;
            aspect-ratio: 2 / 3;
        }

        .skeleton-thumbnail {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background: linear-gradient(
                110deg,
                #09090b 0%,
                #18181b 50%,
                #09090b 100%
            );
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite ease-in-out;
        }

        .skeleton-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 14px;
            background: transparent;
        }

        .skeleton-category {
            width: 50px;
            height: 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .skeleton-title {
            width: 70%;
            height: 16px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
            margin-bottom: 6px;
        }

        .skeleton-preview {
            width: 90%;
            height: 12px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 4px;
        }

        /* Shimmer animation - using background-position (only during loading) */
        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        .scenepack-thumbnail {
            width: 100%;
            height: 100%;
            background: var(--gradient-1);
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 0;
            left: 0;
            overflow: hidden;
        }

        .scenepack-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            filter: brightness(0.9);
        }

        .scenepack-card:hover .scenepack-thumbnail img {
            filter: brightness(1.1);
        }

        .scenepack-thumbnail .placeholder {
            font-size: 3rem;
            color: rgba(255,255,255,0.3);
        }

        /* Image Fallback - Black cover with logo */
        .image-fallback {
            width: 100%;
            height: 100%;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 0;
            left: 0;
        }

        .image-fallback img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            opacity: 0.7;
        }

        /* Logo overlay - top right corner - Apple TV style */
        .scenepack-card-logo {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 50px;
            height: 50px;
            z-index: 4;
            opacity: 0.6;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            mix-blend-mode: screen;
        }

        .scenepack-card:hover .scenepack-card-logo {
            opacity: 0.75;
            transform: scale(1.05);
        }

        .scenepack-card-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: brightness(1.2) contrast(0.9) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
        }

        .scenepack-card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 0 16px 20px 16px;
            z-index: 3;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
        }

        .scenepack-card:hover .scenepack-card-content {
            opacity: 1;
            transform: translateY(0);
        }

        .scenepack-category {
            display: none;
        }

        .scenepack-card-title {
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 4px;
            line-height: 1.2;
            color: #ffffff;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
            letter-spacing: -0.2px;
        }

        .scenepack-card-preview {
            color: rgba(255, 255, 255, 0.85);
            font-size: 11px;
            line-height: 1.4;
            margin-bottom: 8px;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-weight: 400;
        }

        .scenepack-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            align-items: center;
        }

        .tag {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.9);
            background: rgba(255, 255, 255, 0.15);
            padding: 4px 8px;
            border-radius: 4px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            font-weight: 500;
            letter-spacing: 0.2px;
        }

        .tag:first-child {
            background: rgba(255, 255, 255, 0.22);
            font-weight: 600;
        }

        /* PERFECT PROFESSIONAL MODAL - TWO COLUMN LAYOUT */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            /* backdrop-filter: blur(4px); DISABLED - causes 0fps lag */
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .modal.show {
            opacity: 1;
        }

        .modal-content {
            background: #09090b;
            border: 1px solid var(--border);
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);

            width: 90%;
            height: 85vh;
            max-width: 1200px;
            margin: 7.5vh auto;
            display: flex;
            transform: scale(0.98) translateY(10px);
            opacity: 0;
            transition: transform 0.15s ease, opacity 0.15s ease;
            border-radius: 20px;
            overflow: hidden;
            backface-visibility: hidden;
            position: relative;
        }
        
        /* Optimize modal animations for mobile */
        @media (max-width: 768px) {
            .modal-content {
                /* backdrop-filter: blur(3px); DISABLED - causes lag */
                /* -webkit-backdrop-filter: blur(3px); DISABLED - causes lag */
                transition: transform 0.15s ease, opacity 0.15s ease;
            }
        }

        .modal.show .modal-content {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        /* LEFT COLUMN - 35% width - Poster + Metadata */
        .modal-left {
            width: 35%;
            padding: 32px 24px;
            overflow-y: auto;
            background: #000000;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--border-subtle);
            position: relative;
            z-index: 1;
        }

        /* PERFECT 1:1 SQUARE POSTER - Fixed size, won't shrink */
        .modal-poster {
            width: 100%;
            aspect-ratio: 1;
            max-width: 220px;
            margin: 0 auto 24px auto;
            border-radius: 12px;
            overflow: hidden;
            background: #18181b;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .modal-poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .modal-poster .placeholder {
            font-size: 2rem;
            color: var(--text-muted);
        }

        /* YouTube-style landscape poster for Other category */
        .modal-poster.youtube-style {
            aspect-ratio: 16 / 9;
            max-width: 100%;
        }

        /* Back Button for Cast View */
        .back-to-scenepack-btn {
            position: absolute;
            top: 16px;
            left: 16px;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
            transition: all 0.15s ease;
        }

        .back-to-scenepack-btn:hover {
            background: var(--border);
            color: var(--text-primary);
        }

        .back-to-scenepack-btn.show {
            display: flex;
        }

        .back-to-scenepack-btn i {
            font-size: 12px;
        }

        /* METADATA SECTION - Can grow, won't affect poster size */
        .modal-metadata {
            text-align: center;
            margin-top: 20px;
            flex-grow: 1;
            overflow-y: auto; /* Allow scrolling if content is too long */
            min-height: 0; /* Allow shrinking if needed */
        }

        .modal-category {
            display: inline-block;
            background: #ffffff;
            color: #000000;
            font-size: 10px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 50px;
            margin-bottom: 12px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .modal-title {
            font-family: 'Inter', sans-serif;
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: #ffffff;
            line-height: 1.3;
            letter-spacing: -0.02em;
        }

        .modal-meta-list {
            text-align: left;
        }

        .meta-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-subtle);
        }

        .meta-row:last-child {
            border-bottom: none;
        }

        .meta-label {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
            min-width: 70px;
        }

        .meta-value {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 400;
            text-align: right;
            flex: 1;
            margin-left: 15px;
            line-height: 1.4;
        }

        /* RIGHT COLUMN - 65% width - Scenepacks List */
        .modal-right {
            width: 65%;
            background: #0a0a0a;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 1;
        }

        .scenepacks-header {
            padding: 24px 24px 12px 24px;
        }

        .scenepacks-title {
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 4px;
        }

        .scenepacks-subtitle {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.4;
            margin-bottom: 0;
        }

        .total-downloads-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: 12px;
            padding: 4px 10px;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 50px;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .total-downloads-badge i {
            font-size: 10px;
        }

        /* Creator's Note Button */
        .creators-note-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 8px;
            padding: 0;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: opacity 0.15s ease;
            vertical-align: middle;
        }

        .creators-note-btn svg {
            width: 16px;
            height: 16px;
            color: #a1a1aa;
            transition: color 0.15s ease;
        }

        .creators-note-btn:hover {
            opacity: 1;
        }

        .creators-note-btn:hover svg {
            color: #ffffff;
        }

        /* Language Toggle Buttons */
        .language-toggle-container {
            padding: 12px 24px 16px 24px;
            border-bottom: 1px solid var(--border-subtle);
            display: none;
        }

        .language-toggle-container.show {
            display: block;
        }

        .language-toggle-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .language-toggle-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 6px 12px;
            border-radius: 50px;
            font-weight: 500;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .language-toggle-btn.active,
        .language-toggle-btn:hover {
            background: #ffffff;
            border-color: #ffffff;
            color: #000000;
        }

        /* Made by attribution */
        .made-by-section {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid var(--border-subtle);
            text-align: center;
        }

        .made-by-text {
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 400;
        }

        .made-by-creator {
            color: var(--text-secondary);
            font-weight: 500;
            cursor: pointer;
            transition: color 0.15s ease;
        }

        .made-by-creator:hover {
            color: #ffffff;
        }

        .scenepacks-container {
            flex: 1;
            overflow-y: auto;
            padding: 16px 24px 24px 24px;
            background: transparent;
            will-change: scroll-position;
            transform: translateZ(0);
            backface-visibility: hidden;
            contain: layout style paint;
        }

        .scenepack-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid var(--border-subtle);
            transition: background 0.1s ease;
            position: relative;
            contain: layout style;
        }

        .scenepack-item:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        /* Disable hover effects on touch devices for better performance */
        @media (hover: none) {
            .scenepack-item:hover {
                background: transparent;
            }
        }

        .scenepack-item:last-child {
            border-bottom: none;
        }

        /* Modal Search Links Container - Professional Design */
        .modal-search-container {
            position: relative;
            width: 100%;
            margin-bottom: 16px;
            z-index: 50;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .modal-search-input-wrapper {
            position: relative;
            flex: 1;
        }

        .modal-search-input {
            width: 100%;
            padding: 12px 44px 12px 44px;
            background: #000000;
            border: 1px solid var(--border);
            border-radius: 50px;
            color: var(--text-primary);
            font-size: 13px;
            outline: none;
            transition: all 0.15s ease;
            font-family: 'Inter', sans-serif;
        }

        .modal-search-input:focus {
            border-color: #3f3f46;
        }

        .modal-search-input::placeholder {
            color: var(--text-muted);
        }

        .modal-search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 14px;
            pointer-events: none;
            transition: color 0.15s ease;
        }

        .modal-search-input:focus ~ .modal-search-icon {
            color: var(--text-secondary);
        }

        .modal-search-results-info {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 6px;
            text-align: center;
            min-height: 14px;
        }

        /* Cast Toggle Button - Clean Style */
        .cast-toggle-btn, .trailer-toggle-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .cast-toggle-btn:hover, .trailer-toggle-btn:hover {
            background: var(--border);
            border-color: var(--text-muted);
            color: var(--text-primary);
        }

        .cast-toggle-btn.active, .trailer-toggle-btn.active {
            background: #ffffff;
            border-color: #ffffff;
            color: #000000;
        }

        .cast-toggle-btn i, .trailer-toggle-btn i {
            font-size: 14px;
        }

        .cast-toggle-btn span, .trailer-toggle-btn span {
            display: none;
        }

        /* Cast & Trailer Display Container */
        .cast-container, .trailer-container {
            background: #000000;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            border: 1px solid var(--border-subtle);
            animation: fadeIn 0.2s ease;
        }

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

        /* Trailer Video Container */
        .trailer-video-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            border-radius: 12px;
            overflow: hidden;
            background: #000;
        }

        .trailer-video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .cast-header {
            margin-bottom: 16px;
        }

        .cast-title {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            margin: 0;
        }

        /* Cast Grid - Clean Style */
        .cast-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 16px;
        }

        .cast-member {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 8px;
            transition: all 0.15s ease;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
        }

        .cast-member:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .cast-member-photo {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            overflow: hidden;
            background: #18181b;
            border: 1px solid var(--border-subtle);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cast-member-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .cast-member-photo .placeholder-icon {
            font-size: 24px;
            color: var(--text-muted);
        }

        .cast-member-name {
            font-size: 12px;
            font-weight: 500;
            color: #fff;
            line-height: 1.3;
        }

        .cast-member-character {
            font-size: 10px;
            color: var(--text-muted);
            line-height: 1.3;
        }

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

        .scenepack-name {
            font-size: 14px;
            font-weight: 500;
            color: #ffffff;
            margin-bottom: 2px;
            line-height: 1.3;
            cursor: pointer;
            text-decoration: none;
            display: block;
            transition: color 0.15s ease;
        }

        .scenepack-name:hover {
            color: var(--text-secondary);
        }

        .scenepack-details {
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.4;
        }

        .scenepack-download-btn {
            background: #ffffff;
            color: #000000;
            padding: 8px 16px;
            border: none;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 500;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            transition: all 0.15s ease;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .scenepack-download-btn:hover {
            background: #e4e4e7;
            transform: translateY(-1px);
        }

        /* Simplified mobile interactions */
        @media (hover: none) {
            .scenepack-download-btn:hover {
                transform: none;
            }

            .scenepack-download-btn:active {
                background: #d4d4d8;
                transform: scale(0.98);
            }
        }

        .scenepack-download-btn i {
            font-size: 10px;
        }

        /* Close Button */
        .close {
            position: absolute;
            right: 16px;
            top: 16px;
            color: var(--text-muted);
            font-size: 16px;
            cursor: pointer;
            transition: all 0.15s ease;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            z-index: 2001;
            border: 1px solid var(--border);
        }

        .close:hover {
            color: var(--text-primary);
            background: var(--border);
        }

        .copy-link-btn {
            position: absolute;
            right: 56px;
            top: 16px;
            color: var(--text-muted);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.15s ease;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            z-index: 2001;
            border: 1px solid var(--border);
            padding: 0;
        }

        .copy-link-btn:hover {
            color: var(--text-primary);
            background: var(--border);
        }

        .copy-link-btn.copied {
            color: #22c55e;
            border-color: #22c55e;
        }

        /* Modal Skeleton Loaders - Instant feedback while content loads */
        .modal-skeleton-left,
        .modal-skeleton-right {
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        .modal-skeleton-left.hidden,
        .modal-skeleton-right.hidden {
            opacity: 0;
            pointer-events: none;
        }

        /* Left column skeleton */
        .skeleton-poster {
            width: 100%;
            max-width: 250px;
            aspect-ratio: 1;
            margin: 0 auto 30px auto;
            border-radius: 12px;
            background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s ease-in-out infinite;
        }

        .skeleton-metadata {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .skeleton-line {
            height: 20px;
            border-radius: 4px;
            background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s ease-in-out infinite;
        }

        .skeleton-category {
            width: 30%;
            height: 16px;
        }

        .skeleton-title {
            width: 80%;
            height: 28px;
        }

        .skeleton-meta {
            width: 60%;
            height: 18px;
        }

        /* Right column skeleton */
        .skeleton-header {
            padding: 30px 30px 20px 30px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .skeleton-title-right {
            width: 50%;
            height: 24px;
        }

        .skeleton-subtitle {
            width: 70%;
            height: 16px;
        }

        .skeleton-search {
            margin: 20px 30px;
            height: 42px;
            border-radius: 12px;
            background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s ease-in-out infinite;
        }

        .skeleton-scenepack-item {
            margin: 15px 30px;
            height: 80px;
            border-radius: 12px;
            background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s ease-in-out infinite;
            animation-delay: calc(var(--i, 0) * 0.1s);
        }

        .skeleton-scenepack-item:nth-child(4) { --i: 1; }
        .skeleton-scenepack-item:nth-child(5) { --i: 2; }
        .skeleton-scenepack-item:nth-child(6) { --i: 3; }
        .skeleton-scenepack-item:nth-child(7) { --i: 4; }

        @keyframes skeleton-shimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        /* Discord Modal Styles */
        .discord-modal-content {
            background: linear-gradient(135deg, 
                rgba(88, 101, 242, 0.1) 0%, 
                rgba(114, 137, 218, 0.05) 50%,
                rgba(0, 0, 0, 0.1) 100%);
            backdrop-filter: blur(10px) saturate(1.4);
            -webkit-backdrop-filter: blur(10px) saturate(1.4);
            border: 1px solid rgba(88, 101, 242, 0.3);
            box-shadow: 
                0 8px 32px rgba(88, 101, 242, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 0 1px rgba(88, 101, 242, 0.1);
            
            width: 90%;
            max-width: 450px;
            margin: 10vh auto;
            padding: 0;
            transform: scale(0.85) translateY(40px);
            opacity: 0;
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            border-radius: 20px;
            overflow: hidden;

            position: relative;
        }

        .discord-modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                rgba(88, 101, 242, 0.1) 0%, 
                transparent 50%, 
                rgba(0, 0, 0, 0.05) 100%);
            pointer-events: none;
            border-radius: inherit;
        }

        .modal.show .discord-modal-content {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        .discord-modal-header {
            background: linear-gradient(145deg, 
                rgba(88, 101, 242, 0.2) 0%, 
                rgba(88, 101, 242, 0.1) 100%);
            backdrop-filter: blur(8px);
            padding: 30px 30px 25px;
            text-align: center;
            border-bottom: 1px solid rgba(88, 101, 242, 0.2);
        }

        .discord-modal-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .discord-modal-title i {
            color: #4dabf7;
            font-size: 1.4rem;
        }

        .discord-modal-subtitle {
            color: rgba(255, 255, 255, 0.8);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
            font-size: 14px;
            line-height: 1.4;
            margin: 0;
        }

        .discord-widget-container {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .discord-widget-container iframe {
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(88, 101, 242, 0.2);
        }

        .discord-modal-footer {
            padding: 20px 30px 30px;
            text-align: center;
            background: linear-gradient(145deg, 
                rgba(0, 0, 0, 0.1) 0%, 
                rgba(88, 101, 242, 0.05) 100%);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(88, 101, 242, 0.1);
        }

        .discord-join-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(145deg, #4dabf7 0%, #339af0 100%);
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            padding: 12px 24px;
            border-radius: 50px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 
                0 4px 16px rgba(88, 101, 242, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .discord-join-btn:hover {
            background: linear-gradient(145deg, #339af0 0%, #3c4fb8 100%);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 
                0 8px 24px rgba(88, 101, 242, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .discord-join-btn i {
            font-size: 16px;
        }

        /* Mobile responsiveness for Discord modal */
        @media (max-width: 768px) {
            .discord-modal-content {
                width: 95%;
                margin: 5vh auto;
            }
            
            .discord-modal-header {
                padding: 25px 20px 20px;
            }
            
            .discord-modal-title {
                font-size: 1.3rem;
            }
            
            .discord-widget-container {
                padding: 15px;
            }
            
            .discord-widget-container iframe {
                width: 300px;
                height: 400px;
            }
            
            .discord-modal-footer {
                padding: 15px 20px 25px;
            }
        }

        @media (max-width: 480px) {
            .discord-widget-container iframe {
                width: 280px;
                height: 350px;
            }
            
            .discord-modal-title {
                font-size: 1.2rem;
            }
        }

        /* Creator's Notes Modal Styles */
        .creators-note-modal {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            transition: opacity 0.2s ease;
            z-index: 2500;
        }

        .creators-note-modal-content {
            background: #000000;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: 1px solid #27272a;
            box-shadow: none;
            width: 90%;
            max-width: 500px;
            max-height: 70vh;
            margin: 15vh auto;
            padding: 24px;
            transform: scale(0.95) translateY(10px);
            opacity: 0;
            transition: transform 0.2s ease-out, opacity 0.2s ease-out;
            border-radius: 16px;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .creators-note-modal.show .creators-note-modal-content {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        .creators-note-modal .close {
            position: absolute;
            top: 16px;
            right: 16px;
            color: #a1a1aa;
            font-size: 24px;
            cursor: pointer;
            transition: color 0.15s ease;
            background: none;
            border: none;
        }

        .creators-note-modal .close:hover {
            color: #ffffff;
        }

        .creators-note-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #27272a;
            flex-shrink: 0;
        }

        .creators-note-header svg {
            width: 20px;
            height: 20px;
            color: #ffffff;
            flex-shrink: 0;
        }

        .creators-note-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #ffffff;
        }

        .creators-note-body {
            color: #a1a1aa;
            font-size: 14px;
            line-height: 1.7;
            white-space: pre-wrap;
            word-wrap: break-word;
            overflow-wrap: break-word;
            overflow-y: auto;
            max-height: calc(70vh - 120px);
            padding-right: 8px;
        }

        .creators-note-body::-webkit-scrollbar {
            width: 4px;
        }

        .creators-note-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .creators-note-body::-webkit-scrollbar-thumb {
            background: #27272a;
            border-radius: 2px;
        }

        /* NordVPN Modal Styles - Optimized for Performance */
        .nordvpn-modal {
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: opacity 0.3s ease;
            z-index: 3000; /* Higher than scenepack modal (2000) */
        }

        .nordvpn-modal-content {
            background: linear-gradient(135deg,
                rgba(79, 172, 254, 0.15) 0%,
                rgba(0, 242, 254, 0.08) 50%,
                rgba(0, 0, 0, 0.15) 100%);
            backdrop-filter: blur(12px) saturate(1.4);
            -webkit-backdrop-filter: blur(12px) saturate(1.4);
            border: 1px solid rgba(79, 172, 254, 0.25);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);

            width: 90%;
            max-width: 900px;
            margin: 7.5vh auto;
            padding: 40px;
            transform: scale(0.9) translate3d(0, 20px, 0);
            opacity: 0;
            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
            border-radius: 24px;
            overflow: hidden;
            position: relative;
            will-change: transform, opacity;
        }

        .nordvpn-modal.show .nordvpn-modal-content {
            transform: scale(1) translate3d(0, 0, 0);
            opacity: 1;
        }

        .nordvpn-close {
            position: absolute;
            top: 20px;
            right: 25px;
            color: #ffffff;
            font-size: 32px;
            font-weight: 300;
            cursor: pointer;
            z-index: 10;
            transition: background 0.2s ease, transform 0.2s ease;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nordvpn-close:hover {
            background: rgba(159, 180, 204, 0.6);
            transform: rotate(90deg);
        }

        .nordvpn-container {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 25px;
        }

        .nordvpn-image-link {
            display: block;
            width: 100%;
            max-width: 800px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            transition: transform 0.2s ease;
            cursor: pointer;
            will-change: transform;
        }

        .nordvpn-image-link:hover {
            transform: scale3d(1.01, 1.01, 1);
        }

        .nordvpn-image {
            width: 100%;
            height: auto;
            display: block;
            aspect-ratio: 16/9;
            object-fit: cover;
            backface-visibility: hidden;
        }

        .nordvpn-user-info {
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(79, 172, 254, 0.3);
            border-radius: 16px;
            padding: 20px 30px;
            width: 100%;
            max-width: 600px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .nordvpn-info-line {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(79, 172, 254, 0.2);
        }

        .nordvpn-info-label {
            font-weight: 600;
            color: #4facfe;
            font-size: 14px;
        }

        .nordvpn-info-value {
            font-weight: 500;
            color: #ffffff;
            font-size: 14px;
            margin-right: 8px;
        }

        .nordvpn-info-separator {
            color: rgba(79, 172, 254, 0.5);
            font-weight: 300;
            font-size: 14px;
            margin: 0 4px;
        }

        .nordvpn-status-unprotected {
            color: #ff4444 !important;
            font-weight: 700;
            text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
        }

        .nordvpn-message {
            margin: 0;
            padding-top: 15px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 13px;
            line-height: 1.5;
            text-align: center;
        }

        .nordvpn-continue-btn {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: #000000;
            font-weight: 700;
            font-size: 16px;
            padding: 16px 40px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.2s ease;
            box-shadow: 0 4px 16px rgba(79, 172, 254, 0.4);
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
            will-change: transform;
        }

        .nordvpn-continue-btn:hover {
            transform: translate3d(0, -2px, 0);
        }

        .nordvpn-continue-btn i {
            font-size: 18px;
        }

        /* Responsive styles for NordVPN modal */
        @media (max-width: 768px) {
            .nordvpn-modal-content {
                width: 95%;
                padding: 25px 20px;
                margin: 5vh auto;
                backdrop-filter: blur(8px) saturate(1.3);
                -webkit-backdrop-filter: blur(8px) saturate(1.3);
            }

            .nordvpn-user-info {
                backdrop-filter: blur(5px);
                -webkit-backdrop-filter: blur(5px);
            }

            .nordvpn-close {
                top: 15px;
                right: 15px;
                width: 35px;
                height: 35px;
                font-size: 28px;
            }

            .nordvpn-image-link {
                max-width: 100%;
            }

            .nordvpn-user-info {
                padding: 15px 20px;
            }

            .nordvpn-continue-btn {
                width: 100%;
                justify-content: center;
                padding: 14px 30px;
                font-size: 15px;
            }
        }


        /* Notification Dropdown Styles */
        .notification-modal-content {
            background: var(--secondary);
            backdrop-filter: blur(25px) saturate(1.5);
            border: 1px solid var(--border);
            border-radius: 15px;
            box-shadow:
                0 15px 35px rgba(0, 0, 0, 0.5),
                0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            width: 380px;
            max-height: 500px;
            padding: 0;
            opacity: 0;
            transform: translateY(-20px);
            transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            overflow: hidden;

            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            z-index: 10001;
        }

        #notificationModal {
            position: fixed !important;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: none !important;
            backdrop-filter: none !important;
            z-index: 10000;
            pointer-events: none;
        }

        #notificationModal.show {
            pointer-events: auto;
        }

        #notificationModal.show .notification-modal-content {
            opacity: 1;
            transform: translateY(0);
        }

        .notification-modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%);
            pointer-events: none;
            border-radius: inherit;
        }

        .notification-modal-header {
            padding: 20px 25px 15px;
            border-bottom: 1px solid var(--border);
        }

        .notification-modal-footer {
            padding: 15px 25px 20px;
            border-top: 1px solid var(--border);
            text-align: center;
        }

        .notification-modal-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .notification-modal-title i {
            color: var(--accent);
            margin-right: 8px;
        }

        .mark-all-read-btn {
            background: var(--accent);
            color: var(--primary);
            border: 1px solid var(--border);
            padding: 10px 20px;
            border-radius: 12px;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .mark-all-read-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
        }

        .notification-content-container {
            max-height: 350px;
            overflow-y: auto;
            padding: 0;
        }

        .notifications-list {
            padding: 0;
        }

        .notification-item {
            padding: 20px 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            opacity: 0;
            transform: translateX(-20px);
            animation: slideIn 0.5s ease forwards;
        }

        .notification-item:nth-child(1) { animation-delay: 0.1s; }
        .notification-item:nth-child(2) { animation-delay: 0.2s; }
        .notification-item:nth-child(3) { animation-delay: 0.3s; }
        .notification-item:nth-child(4) { animation-delay: 0.4s; }
        .notification-item:nth-child(5) { animation-delay: 0.5s; }

        @keyframes slideIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .notification-item:hover {
            background: var(--tertiary);
            transform: translateX(5px);
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .notification-item.unread {
            background: rgba(255, 255, 255, 0.02);
            border-left: 3px solid var(--accent);
        }

        .notification-item.unread::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
            animation: pulse 2s infinite;
        }

        .notification-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .notification-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .notification-time {
            font-size: 11px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .notification-message {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.4;
            margin: 0;
        }

        .notification-type {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            margin-top: 8px;
        }

        .notification-type.update {
            background: var(--tertiary);
            color: var(--blue-link);
            border: 1px solid rgba(74, 144, 226, 0.3);
        }

        .notification-type.new-scenepack {
            background: var(--tertiary);
            color: var(--accent);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .notification-type.achievement {
            background: var(--tertiary);
            color: #ffd700;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }

        .notification-type.announcement {
            background: var(--tertiary);
            color: #00ff88;
            border: 1px solid rgba(0, 255, 136, 0.3);
        }

        .no-notifications {
            padding: 60px 30px;
            text-align: center;
            color: var(--text-secondary);
        }

        .no-notifications-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--text-secondary);
            opacity: 0.5;
        }

        .no-notifications-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 10px;
        }

        .no-notifications-text {
            font-size: 14px;
            margin: 0;
        }

        /* Mobile responsiveness for Notification dropdown */
        @media (max-width: 768px) {
            .notification-modal-content {
                width: calc(100vw - 20px);
                right: 10px !important;
                max-height: 70vh;
            }

            .notification-modal-header {
                padding: 15px 20px 12px;
            }

            .notification-modal-footer {
                padding: 12px 20px 15px;
            }

            .notification-modal-title {
                font-size: 1.3rem;
            }

            .notification-item {
                padding: 15px 20px;
            }

            .notification-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            .notification-time {
                align-self: flex-end;
            }

            .notification-content-container {
                max-height: calc(70vh - 120px);
            }
        }

        @media (max-width: 480px) {
            .notification-modal-content {
                width: calc(100vw - 10px);
                right: 5px !important;
                max-height: 60vh;
            }

            .notification-modal-header {
                padding: 12px 15px 10px;
            }

            .notification-modal-footer {
                padding: 10px 15px 12px;
            }

            .notification-item {
                padding: 12px 15px;
            }

            .notification-content-container {
                max-height: calc(60vh - 100px);
            }
        }

        /* Tooltip */
        .card-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-8px);
            background: rgba(0, 0, 0, 0.95);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 12px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 1000;
            border: 1px solid var(--border);
            pointer-events: none;
        }

        .card-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: rgba(0, 0, 0, 0.95);
        }

        .scenepack-card:hover .card-tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-12px);
        }

        .tooltip-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 3px 0;
        }

        .tooltip-row i {
            width: 14px;
            font-size: 11px;
            color: var(--accent);
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 44px;
            height: 44px;
            background: #18181b;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.15s ease;
            z-index: 999;
            font-size: 14px;
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: #27272a;
            color: var(--text-primary);
            border-color: #3f3f46;
        }

        .back-to-top:active {
            transform: scale(0.95);
        }

        /* Footer */
        .footer {
            background: #000000;
            padding: 48px 5% 32px;
            text-align: center;
            border-top: 1px solid var(--border-subtle);
        }

        .footer-nav {
            display: flex;
            justify-content: center;
            gap: 32px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .footer-nav a {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 400;
            font-size: 13px;
            transition: color 0.15s ease;
        }

        .footer-nav a:hover {
            color: var(--text-primary);
        }

        .footer-text {
            color: var(--text-muted);
            font-size: 12px;
        }

        /* No Results */
        .no-results {
            grid-column: 1/-1;
            text-align: center;
            padding: 60px 20px;
        }

        .no-results-content {
            max-width: 500px;
            margin: 0 auto;
        }

        .no-results-icon {
            font-size: 4rem;
            color: var(--text-secondary);
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .no-results-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .no-results-text {
            color: var(--text-secondary);
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .request-scenepack-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            padding: 12px 24px;
            border-radius: 50px;
            transition: all 0.4s ease;
            margin-bottom: 12px;
        }

        .request-scenepack-btn:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            transform: translateY(-3px);
            box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
        }

        .discord-request-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #4dabf7;
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            padding: 12px 24px;
            border-radius: 50px;
            transition: all 0.4s ease;
        }

        .discord-request-btn:hover {
            background: #339af0;
            transform: translateY(-3px);
        }

        /* Loading */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000000;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            transition: opacity 0.4s ease;
        }

        .loader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loader-content {
            text-align: center;
        }

        .loader-text {
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.1em;
            margin-bottom: 24px;
            opacity: 0;
            color: var(--text-secondary);
            animation: fadeInUp 0.5s ease 0.1s forwards;
        }

        .loader-bar-container {
            width: 200px;
            height: 2px;
            background: var(--border-subtle);
            margin: 0 auto;
            border-radius: 1px;
            overflow: hidden;
        }

        .loader-progress {
            width: 100%;
            height: 100%;
            background: #ffffff;
            border-radius: 1px;
            transform: scaleX(0);
            transform-origin: left;
            animation: loadProgress 1.5s ease forwards;
        }

        @keyframes loadProgress {
            0% { transform: scaleX(0); }
            100% { transform: scaleX(1); }
        }

        /* Responsive Design - Mobile First */
        @media (max-width: 1400px) {
            .scenepacks-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        @media (max-width: 1200px) {
            .scenepacks-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 1024px) {
            .scenepacks-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }

            .scenepacks-grid.youtube-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .scenepacks-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }

            .scenepacks-grid.youtube-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 968px) {
            /* MOBILE: Stack columns vertically - Poster/metadata on top, scenepacks below */
            .modal-content {
                flex-direction: column;
                width: 95%;
                height: 90vh;
                margin: 5vh auto;
            }

            .modal-left {
                width: 100%;
                padding: 30px 20px 20px 20px;
                max-height: 50%;
                overflow-y: auto;
            }

            .modal-right {
                width: 100%;
                border-left: none;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                flex: 1;
                overflow-y: auto;
            }

            .modal-poster {
                max-width: 180px;
                margin-bottom: 20px;
            }

            .modal-title {
                font-size: 1.3rem;
            }

            .language-toggle-container {
                padding: 10px 20px 15px 20px;
            }

            .scenepacks-header {
                padding: 20px 20px 5px 20px;
            }

            .scenepacks-container {
                padding: 10px 20px 20px 20px;
            }
        }

        @media (max-width: 768px) {
            .hero {
                height: 70vh;
            }

            .nav {
                padding: 15px 3%;
            }

            .section {
                padding: 5px 5% 80px;
            }

            .scenepacks-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }

            .view-more-btn {
                padding: 14px 32px;
                font-size: 14px;
            }

            .footer {
                padding: 40px 5% 30px;
            }
            
            .modal-left {
                padding: 20px 15px 15px 15px;
            }
            
            .modal-poster {
                max-width: 180px;
            }
            
            .modal-title {
                font-size: 1.2rem;
            }
            
            .scenepacks-header {
                padding: 20px 20px 15px 20px;
            }
            
            .scenepacks-container {
                padding: 15px 20px 20px 20px;
            }
        }

        @media (max-width: 480px) {
            .nav-link span {
                display: none;
            }
            
            .nav-link {
                padding: 8px;
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.05);
            }

            .modal-left {
                padding: 15px 10px;
            }
            
            .modal-poster {
                max-width: 160px;
            }
            
            .modal-title {
                font-size: 1.1rem;
            }
            
            .scenepacks-header {
                padding: 15px 15px 10px 15px;
            }
            
            .scenepacks-container {
                padding: 10px 15px 15px 15px;
            }
            
            .scenepack-item {
                padding: 12px 5px;
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .scenepack-item .scenepack-info {
                width: 100%;
            }
            
            .scenepack-download-btn {
                align-self: flex-end;
            }
        }

        .hidden {
            display: none !important;
        }

        /* Ensure smooth animations */
        * {
            box-sizing: border-box;
        }
        
        /* Prevent horizontal overflow */
        body {
            overflow-x: hidden;
        }

        /* CSS Animations - Replace GSAP */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }

        /* Global animation optimization - reduce all animation speeds for better performance */
        /* All devices benefit from slower animations for smoother 60fps */
        .grid-bg {
            animation: gridMove 100s linear infinite !important;
        }

        .orb {
            animation: orbFloat 40s ease-in-out infinite !important;
        }

        .shape {
            animation: float 25s ease-in-out infinite !important;
        }

        .floating-decoration {
            animation: float 25s ease-in-out infinite !important;
        }

        /* Global transition optimization */
        * {
            transition-duration: 0.3s !important;
            transition-timing-function: ease !important;
        }

        .card, .modal-content, button, a {
            transition: all 0.25s ease !important;
        }

        /* Initial states for animated elements */
        .hero h1,
        .hero .subtitle,
        .hero .cta-btn,
        .card {
            animation-fill-mode: both;
        }

        .hero h1 {
            animation: fadeInUp 1.2s ease-out 0.3s;
        }

        .hero .subtitle {
            animation: fadeInUp 1s ease-out 0.5s;
        }

        .hero .cta-btn {
            animation: scaleIn 0.8s ease-out 0.7s;
        }

        .nav {
            animation: fadeInDown 1s ease-out 0.3s;
        }

        .card {
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Card hover effects */
        .card:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
        }

        /* Ripple effect animation */
        @keyframes ripple {
            0% {
                width: 0;
                height: 0;
                opacity: 1;
            }
            100% {
                width: 300px;
                height: 300px;
                opacity: 0;
            }
        }

        .ripple-effect {
            animation: ripple 0.8s ease-out;
        }

@keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        /* =========================================
           SMART PERFORMANCE OPTIMIZATION
           Zero visual compromise, maximum speed
           ========================================= */

        /* 1. REDUCE PAINT OPERATIONS */
        /* Use opacity instead of display for faster rendering */
        .modal {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .modal.show {
            opacity: 1;
            pointer-events: auto;
        }

        /* 2. GPU ACCELERATION FOR ALL TRANSFORMS */
        /* Every transform gets GPU acceleration */
        .shape, .orb, .floating-decoration, .snowflake, .grid-bg {
            transform: translateZ(0) translate3d(0, 0, 0);
            backface-visibility: hidden;
            perspective: 1000px;
        }

        /* 3. REDUCE FILTER COMPLEXITY */
        /* Heavy filters = CPU load. Use transform instead when possible */
        .orb {
            filter: blur(20px);
        }

        /* 4. CONTAIN LAYOUT CALCULATIONS */
        /* Tell browser which elements are independent */
        .card, .scenepack-item, .modal-content {
            contain: layout style paint;
        }

        .floating-shapes, .gradient-orbs, .snowflakes, .floating-decorations {
            contain: layout;
        }

        /* 5. OPTIMIZE OVERFLOW & CLIPPING */
        /* Reduce repaint areas */
        /* DISABLED: contain on body causes white page */
        /* body, html {
            contain: size layout style;
        } */

        /* 6. DISABLE ANIMATIONS ON LOW-END DEVICES */
        /* Respect user's motion preferences */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }

            .grid-bg {
                animation: none !important;
            }

            .orb {
                animation: none !important;
            }

            .shape {
                animation: none !important;
            }

            .snowflake {
                animation: none !important;
            }

            .floating-decoration {
                animation: none !important;
            }
        }

        /* 7. OPTIMIZE HOVER STATES */
        /* Prevent unnecessary reflows on hover */
        .card:hover {
            transform: translateY(-12px) scale(1.02) translateZ(0);
        }

        button:hover, a:hover {
            opacity: 0.8;
        }

        /* 8. LAZY LOAD HEAVY CONTENT */
        /* Defer loading images and heavy content */
        img {
            loading: lazy;
            decoding: async;
        }

        /* 9. OPTIMIZE SCROLLING PERFORMANCE */
        /* Make scroll smoother on all devices */
        html {
            scroll-behavior: smooth;
            scroll-timeline: auto;
        }

        /* 10. REDUCE COMPOSITE LAYERS */
        /* Minimize number of rendering layers */
        .bg-system, .floating-shapes, .gradient-orbs, .snowflakes {
            transform: translateZ(0);

        }

        /* 11. FONTS - DISPLAY IMMEDIATELY */
        /* Prevent Flash of Invisible Text (FOIT) */
        @font-face {
            font-display: swap;
        }

        /* 12. ANTI-ALIAS TEXT */
        /* Better text rendering on all devices */
        body, h1, h2, h3, h4, h5, h6 {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        /* 13. OPTIMIZE BOX SHADOWS */
        /* Use simpler shadows where possible */
        .card:hover {
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        /* 14. OPTIMIZE BACKDROP FILTERS */
        /* Heavy blur = CPU intensive. Use will-change */
        .modal-content {
            backdrop-filter: blur(10px);

        }

        /* 15. AVOID FORCED REFLOWS */
        /* Read then write to prevent layout thrashing */
        .animation-element {
            transform: translateZ(0);
        }

        /* 16. REDUCE SHADOW COMPLEXITY */
        /* Single shadow instead of multiple */
        .modal-content {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        /* 17. OPTIMIZE Z-INDEX STACKING */
        /* Reduce z-index complexity */
        .bg-system { z-index: -10; }
        .floating-shapes { z-index: -8; }
        .gradient-orbs { z-index: -9; }
        .snowflakes { z-index: -7; }
        .floating-decorations { z-index: -4; }
        .nav { z-index: 1000; }
        .modal { z-index: 5000; }
        .profile-dropdown { z-index: 10000; }

        /* 18. ENABLE WILL-CHANGE WISELY */
        /* Only on elements that actually animate */
        .grid-bg, .orb, .shape, .snowflake, .floating-decoration {

        }

        /* 19. REDUCE CSS RECOMPUTE */
        /* Use CSS containment */
        @supports (contain: layout) {
            .card, .modal-content, .scenepack-item {
                contain: layout style paint;
            }
        }

        /* 20. OPTIMIZE MEDIA QUERIES */
        /* Load CSS only when needed */
        @media (max-width: 768px) {
            /* Heavy effects disabled on mobile */
            .orb {
                filter: blur(20px);
            }

            .floating-decoration {
                filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
            }
        }

        @media (max-width: 480px) {
            /* Ultra-lightweight on small phones */
            .orb {
                filter: blur(10px);
                opacity: 0.05;
            }

            .floating-shapes, .gradient-orbs, .snowflakes {
                opacity: 0.3;
            }
        }

        /* ============================================ */
        /* OVERLAY QT - Character Overlays */
        /* ============================================ */

        .overlay-qt {
            position: fixed;
            bottom: 0;
            z-index: 999;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .overlay-qt.bottom-left {
            left: 0;
        }

        .overlay-qt.bottom-right {
            right: 0;
        }

        .overlay-qt img {
            display: block;
            max-width: 400px;
            max-height: 500px;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        /* Responsive sizing for overlays */
        @media (max-width: 1200px) {
            .overlay-qt img {
                max-width: 300px;
                max-height: 400px;
            }
        }

        @media (max-width: 768px) {
            .overlay-qt img {
                max-width: 200px;
                max-height: 300px;
            }
        }

        @media (max-width: 480px) {
            .overlay-qt img {
                max-width: 150px;
                max-height: 250px;
            }
        }

