        :root {
            /* Glassmorphism Colors */
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-shadow: rgba(0, 0, 0, 0.3);

            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            --gradient-info: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

            /* Text */
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.7);
            --text-muted: rgba(255, 255, 255, 0.4);

            /* Accents */
            --accent-purple: #10b981;
            --accent-pink: #06b6d4;
            --accent-blue: #06b6d4;

            /* Unified card image sizing */
            --card-image-size: 100px;
            --card-image-radius: 12px;
            --card-image-placeholder-size: 42px;

            /* iOS/standalone safe-area support */
            --safe-area-top: env(safe-area-inset-top, 0px);
            --safe-area-right: env(safe-area-inset-right, 0px);
            --safe-area-bottom: env(safe-area-inset-bottom, 0px);
            --safe-area-left: env(safe-area-inset-left, 0px);
        }

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

        html {
            height: 100%;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            min-height: 100svh;
            min-height: 100dvh;
            overflow-x: hidden;
            position: relative;
        }

        .pwa-install-btn {
            display: none;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            background: var(--gradient-primary);
            color: #ffffff;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
        }

        .pwa-install-btn.visible {
            display: inline-flex;
        }

        .image-fit-mode-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .image-fit-mode-btn {
            padding: 8px 12px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.55);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .image-fit-mode-btn:hover {
            border-color: rgba(16, 185, 129, 0.45);
            color: #ffffff;
        }

        .image-fit-mode-btn.active {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.22) 100%);
            border-color: rgba(16, 185, 129, 0.65);
            color: #ffffff;
        }

        /* Animated Background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
            z-index: 0;
            pointer-events: none;
            animation: bgShift 20s ease-in-out infinite;
        }

        @keyframes bgShift {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        /* Glass Effect */
        .glass {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px var(--glass-shadow);
        }

        /* Top Navigation */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: calc(70px + var(--safe-area-top));
            padding: var(--safe-area-top) calc(24px + var(--safe-area-right)) 0 calc(24px + var(--safe-area-left));
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 1000;
            background: rgba(10, 14, 39, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
        }

        .logo {
            font-size: 34px;
            font-weight: 800;
            color: #10b981;
            background: linear-gradient(90deg, #10b981 0%, #06b6d4 25%, #10b981 50%, #06b6d4 75%, #10b981 100%);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 3s ease-in-out infinite, logoFloat 3s ease-in-out infinite;
            will-change: background-position, transform;
            letter-spacing: 1.1px;
            text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        
        .logo:hover {
            transform: scale(1.05);
        }
        
        .logo:active {
            transform: scale(0.98);
        }

        .logo::before {
            content: '';
            display: none;
        }

        .logo-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            animation: logoIconLift 4s ease-in-out infinite;
            filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
            transform-origin: center;
            will-change: transform, filter;
        }

        .logo-icon svg {
            width: 38px;
            height: 38px;
            overflow: visible;
        }

        .logo-orbit-ring {
            opacity: 0.72;
            stroke-dasharray: 2.2 2.8;
            transform-origin: 12px 12px;
            animation: logoOrbitSpin 8s linear infinite;
        }

        .logo-orbit-node {
            transform-origin: 12px 12px;
            animation: logoOrbitNodeSpin 3.2s linear infinite reverse;
        }

        .logo-orbit-dot {
            filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.75));
            animation: logoNodePulse 1.8s ease-in-out infinite;
        }

        .logo-core-hex {
            transform-box: fill-box;
            transform-origin: center;
            animation: logoCoreBreathe 2.8s ease-in-out infinite;
        }

        .logo-core-n {
            transform-box: fill-box;
            transform-origin: center;
            stroke-dasharray: 20 6;
            animation: logoCoreTrace 4.4s ease-in-out infinite;
        }

        .logo-side-node {
            animation: logoNodePulse 2.2s ease-in-out infinite;
        }

        .logo-side-link {
            opacity: 0.92;
        }

        @keyframes logoFloat {
            0%, 100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-3px);
            }
        }

        @keyframes logoIconLift {
            0%, 100% {
                transform: translateY(0) scale(1);
                filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
            }
            50% {
                transform: translateY(-1px) scale(1.05);
                filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.85));
            }
        }

        @keyframes logoOrbitSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes logoOrbitNodeSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes logoCoreBreathe {
            0%, 100% { transform: scale(1); opacity: 0.98; }
            50% { transform: scale(1.04); opacity: 1; }
        }

        @keyframes logoCoreTrace {
            0%, 100% { stroke-dashoffset: 20; opacity: 0.88; }
            50% { stroke-dashoffset: 0; opacity: 1; }
        }

        @keyframes logoNodePulse {
            0%, 100% { transform: scale(1); opacity: 0.9; }
            50% { transform: scale(1.18); opacity: 1; }
        }

        @media (prefers-reduced-motion: reduce) {
            .logo,
            .logo-icon,
            .logo-orbit-ring,
            .logo-orbit-node,
            .logo-orbit-dot,
            .logo-core-hex,
            .logo-core-n,
            .logo-side-node {
                animation: none !important;
            }
        }

        @keyframes shimmer {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        @-webkit-keyframes shimmer {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        @keyframes floatCategoryIcon {
            0%, 100% {
                transform: translate(-50%, -50%) translateY(0px);
            }
            50% {
                transform: translate(-50%, -50%) translateY(-3px);
            }
        }

        .floating-category-icon {
            animation: floatCategoryIcon 3s ease-in-out infinite;
        }

        /* Desktop Navigation */
        .desktop-nav-links {
            display: flex;
            gap: 4px;
            align-items: center;
        }

        .desktop-nav-item {
            padding: 8px 14px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .desktop-nav-item:hover {
            background: rgba(255,255,255,0.08);
            color: var(--text-primary);
        }

        .desktop-nav-item.active {
            background: rgba(16, 185, 129, 0.15);
            color: var(--accent-purple);
        }

        /* Fix custom icons grid */
        #icons-grid {
            display: flex !important;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
        }

        #icons-grid > div {
            width: 90px !important;
            flex: 0 0 90px !important;
            box-sizing: border-box;
            overflow: hidden;
        }

        /* Universal icon image wrapper - overflow:hidden is the only bulletproof size fix */
        .icon-img-wrap {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
            max-width: 40px !important;
            max-height: 40px !important;
            overflow: hidden;
            flex-shrink: 0;
            border-radius: 8px;
            background: rgba(255,255,255,0.95);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
            box-sizing: border-box;
        }

        .icon-img-wrap img {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            max-height: 100% !important;
            object-fit: contain !important;
            display: block !important;
        }

        /* Smaller icon wrapper for inline use */
        .icon-img-wrap-sm {
            width: 24px !important;
            height: 24px !important;
            min-width: 24px !important;
            min-height: 24px !important;
            max-width: 24px !important;
            max-height: 24px !important;
            overflow: hidden;
            flex-shrink: 0;
            border-radius: 6px;
            background: rgba(255,255,255,0.95);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 3px;
            box-sizing: border-box;
        }

        .icon-img-wrap-sm img {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            max-height: 100% !important;
            object-fit: contain !important;
            display: block !important;
        }

        /* Custom select dropdown styling */
        .custom-select-trigger {
            position: relative;
            padding: 12px;
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 8px;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .custom-select-trigger:hover,
        .custom-select-trigger.active {
            border-color: #10b981;
            background: rgba(30, 41, 59, 0.95);
        }

        .custom-select-arrow {
            margin-left: auto;
            transition: transform 0.2s;
        }

        .custom-select-trigger.active .custom-select-arrow {
            transform: rotate(180deg);
        }

        .custom-select-icon {
            width: 24px !important;
            height: 24px !important;
            object-fit: contain !important;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.95);
            padding: 3px;
            flex-shrink: 0;
        }

        .custom-select-options {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            max-height: 300px;
            overflow-y: auto;
            background: rgba(15, 23, 42, 0.98);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 8px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-10px);
            pointer-events: none;
            transition: all 0.2s ease;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }

        .custom-select-options.active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .custom-select-option {
            padding: 10px 12px;
            cursor: pointer;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .custom-select-option:hover {
            background: rgba(16, 185, 129, 0.15);
        }

        .custom-select-option.selected {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            font-weight: 600;
        }

        #platform-select-wrapper {
            position: relative;
        }

        #platform-select-wrapper select {
            display: none;
        }

        #icon-platform-select-wrapper {
            position: relative;
        }

        #icon-platform-select-wrapper select {
            display: none;
        }

        /* Form grid class - properly responsive */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
        }

        /* ==========================================
           IMAGE UPLOAD INTERFACE
           ========================================== */

        .image-upload-container {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 12px;
            padding: 16px;
            margin-top: 8px;
        }

        .image-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 8px;
            border-bottom: 1px solid rgba(16, 185, 129, 0.15);
            padding-bottom: 4px;
        }

        .tab-btn {
            padding: 6px 12px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .tab-btn:hover {
            background: rgba(16, 185, 129, 0.1);
            color: var(--text-primary);
        }

        .tab-btn.active {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .upload-area {
            position: relative;
            min-height: 80px;
        }

        .upload-placeholder {
            border: 2px dashed rgba(16, 185, 129, 0.3);
            border-radius: 8px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(16, 185, 129, 0.05);
            font-size: 13px;
        }

        .upload-placeholder:hover {
            border-color: rgba(16, 185, 129, 0.5);
            background: rgba(16, 185, 129, 0.1);
        }

        .upload-preview {
            position: relative;
            display: inline-block;
            width: 100%;
            max-width: 150px;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid rgba(16, 185, 129, 0.3);
        }

        .upload-preview img {
            width: 100%;
            height: auto;
            display: block;
        }

        .remove-image {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            border: none;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .remove-image:hover {
            background: rgba(239, 68, 68, 1);
            transform: scale(1.1);
        }

        .btn-search {
            padding: 6px 12px;
            background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            border: none;
            border-radius: 6px;
            color: white;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-search:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .search-results {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 6px;
            max-height: 200px;
            overflow-y: auto;
        }

        .search-result-item {
            position: relative;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s ease;
        }

        .search-result-item:hover {
            border-color: #10b981;
            transform: scale(1.05);
        }

        .search-result-item.selected {
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
        }

        .search-result-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .search-result-item::after {
            content: '✓';
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            background: #10b981;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
        }

        .search-result-item.selected::after {
            display: flex;
        }

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

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

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            cursor: pointer;
            font-size: 14px;
            overflow: hidden;
            border: 2px solid rgba(16, 185, 129, 0.4);
            transition: border-color 0.2s ease;
        }

        .user-avatar:hover {
            border-color: rgba(16, 185, 129, 0.8);
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Main Container */
        .container {
            padding: calc(90px + var(--safe-area-top)) 24px calc(100px + var(--safe-area-bottom));
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        /* Section */
        .section {
            display: none;
        }

        .section.active {
            display: block;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            padding: 24px;
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 1px solid var(--glass-border);
        }

        .stat-card:hover {
            transform: translateY(-4px);
        }

        .stat-card:hover::before {
            background: rgba(255, 255, 255, 0.08);
        }

        .stat-content {
            position: relative;
            z-index: 1;
        }

        .stat-icon {
            font-size: 32px;
            margin-bottom: 12px;
        }

        .stat-label {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-value {
            font-size: 36px;
            font-weight: 800;
            font-family: 'Space Mono', monospace;
            color: #ffffff;
        }

        /* Items Grid */
        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 24px;
            align-items: start;  /* Prevent cards from stretching to fill row height */
        }

        .games-status-layout {
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .games-list-shell,
        .gadgets-list-shell {
            display: block;
        }

        .games-status-section {
            padding: 18px;
            border-radius: 20px;
            background: rgba(15, 23, 42, 0.48);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
            backdrop-filter: blur(18px);
        }

        .games-status-section--owned {
            border-color: rgba(16, 185, 129, 0.22);
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
        }

        .games-status-section--sold {
            border-color: rgba(239, 68, 68, 0.18);
            box-shadow: 0 10px 30px rgba(239, 68, 68, 0.06);
        }

        .games-status-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .games-status-header-main {
            min-width: 0;
            flex: 1 1 auto;
        }

        .games-status-marker {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 28px;
            padding: 0 12px;
            margin-bottom: 10px;
            border-radius: 999px;
            border: 1px solid rgba(16, 185, 129, 0.24);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%);
            color: #d1fae5;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .games-status-section--sold .games-status-marker {
            border-color: rgba(248, 113, 113, 0.2);
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(251, 146, 60, 0.14) 100%);
            color: #fecaca;
        }

        .games-status-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .games-status-title {
            font-size: 24px;
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.02em;
            color: #ffffff;
        }

        .games-status-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            height: 30px;
            padding: 0 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
            border: 1px solid rgba(16, 185, 129, 0.28);
            color: #e2e8f0;
            font-size: 13px;
            font-weight: 700;
            font-family: 'Space Mono', monospace;
        }

        .games-status-section--sold .games-status-count {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(251, 146, 60, 0.16) 100%);
            border-color: rgba(248, 113, 113, 0.24);
            color: #fee2e2;
        }

        .games-status-subtitle {
            margin-top: 6px;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.5;
        }

        .games-status-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 40px;
            padding: 0 14px;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.62);
            color: #e2e8f0;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.22s ease;
        }

        .games-status-toggle:hover {
            border-color: rgba(16, 185, 129, 0.38);
            transform: translateY(-1px);
        }

        .games-status-toggle svg {
            width: 14px;
            height: 14px;
            transition: transform 0.22s ease;
        }

        .games-status-toggle.is-collapsed svg {
            transform: rotate(-90deg);
        }

        .games-status-divider {
            width: 100%;
            height: 1px;
            margin-top: 16px;
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.34) 0%, rgba(6, 182, 212, 0.18) 50%, rgba(148, 163, 184, 0.04) 100%);
        }

        .games-status-section--sold .games-status-divider {
            background: linear-gradient(90deg, rgba(239, 68, 68, 0.32) 0%, rgba(251, 146, 60, 0.18) 50%, rgba(148, 163, 184, 0.04) 100%);
        }

        .games-status-grid {
            margin-top: 18px;
        }

        .games-status-empty-wrap {
            margin-top: 18px;
        }

        .games-status-collapsed-note {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid rgba(248, 113, 113, 0.16);
            background: linear-gradient(135deg, rgba(127, 29, 29, 0.16) 0%, rgba(30, 41, 59, 0.38) 100%);
            color: #fecaca;
            font-size: 13px;
            line-height: 1.5;
        }

        .games-status-collapsed-icon {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
        }

        .games-status-collapsed-note .status-badge {
            margin: 0;
        }

        .games-status-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 180px;
            padding: 24px 18px;
            border-radius: 18px;
            border: 1px dashed rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.35);
            text-align: center;
        }

        .games-status-empty-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            border-radius: 18px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 182, 212, 0.14) 100%);
            border: 1px solid rgba(16, 185, 129, 0.16);
        }

        .games-status-empty-title {
            font-size: 17px;
            font-weight: 700;
            color: #f8fafc;
        }

        .games-status-empty-subtitle {
            max-width: 340px;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.5;
        }

        /* Expandable Card Design */
        .item-card {
            padding: 16px;
            border-radius: 16px;
            position: relative;
            transition: all 0.3s ease;
            background: rgba(30, 41, 59, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(16, 185, 129, 0.15);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            overflow: hidden;
        }

        .item-card:hover {
            background: rgba(30, 41, 59, 0.95);
            border-color: rgba(16, 185, 129, 0.4);
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
        }

        /* Card Main Content (Always Visible) */
        .card-main {
            display: flex;
            gap: 16px;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        /* Product Image */
        .product-image {
            width: var(--card-image-size);
            height: var(--card-image-size);
            border-radius: var(--card-image-radius);
            object-fit: cover;
            object-position: center;
            flex-shrink: 0;
            display: block;
            background: rgba(16, 185, 129, 0.1);
            border: 2px solid rgba(16, 185, 129, 0.2);
        }

        .product-image--cover {
            object-fit: cover;
        }

        .product-image--contain {
            object-fit: contain;
            padding: 2px;
            background: rgba(15, 23, 42, 0.35);
        }

        .product-image-placeholder {
            width: var(--card-image-size);
            height: var(--card-image-size);
            border-radius: var(--card-image-radius);
            flex-shrink: 0;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
            border: 2px solid rgba(16, 185, 129, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: var(--card-image-placeholder-size);
            overflow: hidden;
        }

        .placeholder-icon-svg {
            display: block;
            filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.18));
        }

        /* Card Info Section */
        .card-info {
            flex: 1;
            min-width: 0;
        }

        .card-top-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .expand-arrow {
            display: none;
        }

        .item-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--text-primary);
            line-height: 1.2;
            word-break: break-word;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .item-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .item-category {
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            background: rgba(16, 185, 129, 0.15);
            border-radius: 6px;
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            line-height: 1.15;
        }

        .item-category--with-icon {
            padding-left: 8px;
        }

        .item-category-icon {
            width: 14px;
            height: 14px;
            min-width: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-radius: 4px;
            overflow: hidden;
        }

        .item-category-icon svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .item-category-icon--img {
            width: 15px;
            height: 15px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.35);
            padding: 1px;
        }

        .item-category-icon--img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .item-category-icon-svg {
            width: 100%;
            height: 100%;
        }

        /* Status and Price Badges */
        .badge-row {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        .status-badge {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .status-owned {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.4);
        }

        .status-sold {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
            border: 1px solid rgba(59, 130, 246, 0.4);
        }

        .price-badge {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 700;
            background: rgba(6, 182, 212, 0.2);
            color: #06b6d4;
            border: 1px solid rgba(6, 182, 212, 0.4);
            font-family: 'Space Mono', monospace;
        }

        .rating-badge {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 16px;
            font-weight: 800;
            background: rgba(34, 197, 94, 0.3);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.5);
            min-width: 45px;
            text-align: center;
        }

        /* Expand/Collapse Arrow */
        .expand-arrow {
            font-size: 20px;
            color: var(--text-muted);
            transition: transform 0.3s ease;
        }

        .item-card.expanded .expand-arrow {
            transform: rotate(180deg);
        }

        /* Expandable Details Section */
        .card-details {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
            opacity: 0;
        }

        .item-card.expanded .card-details {
            max-height: 1000px;
            margin-top: 20px;
            opacity: 1;
            padding-top: 16px;
            border-top: 1px solid rgba(16, 185, 129, 0.15);
        }

        /* All direct children of item-card need z-index to be above ::before */
        .item-card > * {
            position: relative;
            z-index: 1;
        }

        .item-content,
        .item-info {
            position: relative;
            z-index: 1;
        }

        .share-capture-stage .item-card,
        .share-capture-stage .item-card * {
            -webkit-font-smoothing: antialiased;
            text-rendering: geometricPrecision;
        }

        .share-capture-stage .share-info-label-svg {
            display: inline-block;
            height: 13px;
            width: auto;
            max-width: 100%;
            vertical-align: middle;
        }

        .item-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 14px;
            position: relative;
            z-index: 1;
        }

        /* Info rows inside cards */
        .item-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            position: relative;
            z-index: 1;
        }

        .info-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .info-value {
            font-size: 13px;
            font-weight: 700;
            color: #ffffff;
            font-family: 'Space Mono', monospace;
        }

        .price-tag {
            font-size: 16px;
            font-weight: 800;
            color: #06b6d4;
            font-family: 'Space Mono', monospace;
        }

        /* Edit / Delete icon buttons in cards */
        .edit-icon,
        .delete-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            background: transparent;
            position: relative;
            z-index: 2;
        }

        .edit-icon {
            background: rgba(6, 182, 212, 0.15);
            color: #06b6d4;
        }

        .delete-icon {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
            font-size: 20px;
            font-weight: 700;
        }

        .edit-icon:hover { background: rgba(6, 182, 212, 0.3); transform: scale(1.1); }
        .delete-icon:hover { background: rgba(239, 68, 68, 0.3); transform: scale(1.1); }

        /* Compact status badges for dashboard recent cards */
        .status-badge--mini {
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            gap: 4px;
            line-height: 1;
            white-space: nowrap;
        }

        .status-badge--mini svg {
            width: 10px;
            height: 10px;
            flex-shrink: 0;
        }

        .game-genre-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }

        .game-genre-chip svg {
            flex-shrink: 0;
        }

        .game-genre-chip--compact {
            padding: 3px 8px;
            font-size: 11px;
        }

        .metacritic-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
            border: 1px solid rgba(245, 158, 11, 0.4);
            background: rgba(245, 158, 11, 0.14);
            color: #fbbf24;
            text-decoration: none;
        }

        .metacritic-chip svg {
            flex-shrink: 0;
        }

        .metacritic-chip:hover {
            filter: brightness(1.08);
        }

        .metacritic-chip--compact {
            padding: 3px 8px;
            font-size: 11px;
        }

        .game-catalog-hint {
            margin-top: 6px;
            font-size: 11px;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .game-catalog-search-wrap {
            position: relative;
        }

        .game-catalog-results {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 4px);
            z-index: 1000;
            max-height: 300px;
        }

        .game-catalog-result {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 40px;
        }

        .game-catalog-result-meta {
            font-size: 11px;
            color: var(--text-muted);
            margin-left: auto;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 62%;
        }

        .game-catalog-result-empty {
            font-size: 12px;
            color: var(--text-muted);
            cursor: default;
        }

        .dashboard-reminder-section {
            margin: 10px 0 18px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(45, 212, 191, 0.18);
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 41, 59, 0.62) 100%);
        }

        .dashboard-reminder-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }

        .dashboard-reminder-title {
            margin: 0;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .dashboard-reminder-summary {
            font-size: 11px;
            color: var(--text-muted);
            background: rgba(148, 163, 184, 0.12);
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 999px;
            padding: 3px 9px;
            white-space: nowrap;
        }

        .dashboard-reminder-row {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 2px;
        }

        .dashboard-reminder-row::-webkit-scrollbar {
            height: 4px;
        }

        .dashboard-reminder-row::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.35);
            border-radius: 999px;
        }

        .dashboard-reminder-chip {
            min-width: 168px;
            max-width: 228px;
            flex: 0 0 auto;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.62);
            padding: 8px 10px;
            color: inherit;
            font-family: inherit;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
        }

        .dashboard-reminder-chip:hover {
            transform: translateY(-1px);
            border-color: rgba(45, 212, 191, 0.4);
            background: rgba(15, 23, 42, 0.8);
        }

        .dashboard-reminder-chip-title {
            display: block;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .dashboard-reminder-chip-meta {
            display: block;
            margin-top: 3px;
            font-size: 11px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .dashboard-reminder-chip--success {
            border-color: rgba(16, 185, 129, 0.36);
            background: rgba(16, 185, 129, 0.13);
        }

        .dashboard-reminder-chip--warning {
            border-color: rgba(245, 158, 11, 0.36);
            background: rgba(245, 158, 11, 0.12);
        }

        .dashboard-reminder-chip--danger {
            border-color: rgba(248, 113, 113, 0.34);
            background: rgba(248, 113, 113, 0.11);
        }

        .dashboard-reminder-empty {
            padding: 8px 2px;
            font-size: 12px;
            color: var(--text-muted);
        }

        .dashboard-insight-list {
            display: grid;
            gap: 8px;
        }

        .dashboard-insight-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.5);
        }

        .dashboard-insight-item--button {
            width: 100%;
            cursor: pointer;
            text-align: left;
            font-family: inherit;
            color: inherit;
            transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
        }

        .dashboard-insight-item--button:hover {
            border-color: rgba(45, 212, 191, 0.45);
            background: rgba(15, 23, 42, 0.78);
            transform: translateY(-1px);
        }

        .dashboard-insight-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .dashboard-insight-meta {
            margin-top: 3px;
            font-size: 11px;
            color: var(--text-muted);
        }

        .dashboard-insight-pill {
            flex-shrink: 0;
            border-radius: 999px;
            padding: 4px 9px;
            font-size: 11px;
            font-weight: 700;
            border: 1px solid transparent;
        }

        .dashboard-insight-pill--success {
            color: #10b981;
            background: rgba(16, 185, 129, 0.14);
            border-color: rgba(16, 185, 129, 0.32);
        }

        .dashboard-insight-pill--warning {
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.16);
            border-color: rgba(251, 191, 36, 0.36);
        }

        .dashboard-insight-pill--danger {
            color: #f87171;
            background: rgba(248, 113, 113, 0.16);
            border-color: rgba(248, 113, 113, 0.36);
        }

        .dashboard-insight-pill--muted {
            color: var(--text-secondary);
            background: rgba(148, 163, 184, 0.14);
            border-color: rgba(148, 163, 184, 0.3);
        }

        /* Profit colors */
        .profit-positive { color: #4CAF50 !important; }
        .profit-negative { color: #f44336 !important; }

        /* Filter chips */
        .filter-chip {
            padding: 7px 16px;
            border-radius: 20px;
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .filter-chip.active,
        .filter-chip:hover {
            background: var(--gradient-primary);
            color: white;
            border-color: transparent;
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 48px 24px;
            color: var(--text-muted);
            grid-column: 1 / -1;
        }
        .empty-state-icon { font-size: 48px; margin-bottom: 12px; }

        /* Item actions row */
        .item-actions {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .action-btn.edit  { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
        .action-btn.delete { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .action-btn:hover { transform: scale(1.1); }

        /* Expandable Card Action Buttons */
        .btn-edit,
        .btn-delete,
        .btn-share {
            padding: 10px 16px;
            border-radius: 10px;
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-edit {
            background: rgba(6, 182, 212, 0.2);
            color: #06b6d4;
            border: 1px solid rgba(6, 182, 212, 0.3);
        }

        .btn-edit:hover {
            background: rgba(6, 182, 212, 0.3);
            transform: translateY(-2px);
        }

        .btn-share {
            background: rgba(16, 185, 129, 0.18);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.35);
        }

        .btn-share:hover {
            background: rgba(16, 185, 129, 0.28);
            transform: translateY(-2px);
        }

        .btn-delete {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .btn-delete:hover {
            background: rgba(239, 68, 68, 0.3);
            transform: translateY(-2px);
        }

        .btn-edit:disabled,
        .btn-delete:disabled,
        .btn-share:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .item-details { display: grid; gap: 8px; }

        .detail-row {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
        }
        .detail-label { color: var(--text-muted); }
        .detail-value { font-weight: 600; font-family: 'Space Mono', monospace; }

        /* Bottom Navigation */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: calc(70px + var(--safe-area-bottom));
            padding-bottom: var(--safe-area-bottom);
            background: rgba(10, 14, 39, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid var(--glass-border);
            z-index: 1000;
        }

        .bottom-nav-items {
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 100%;
            max-width: 600px;
            margin: 0 auto;
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 6px;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.2s;
            border-radius: 12px;
            min-width: 52px;
        }

        .bottom-nav-item.active {
            color: var(--accent-purple);
            background: rgba(16, 185, 129, 0.1);
        }

        .bottom-nav-icon {
            font-size: 24px;
        }

        .bottom-nav-icon svg {
            display: block;
        }

        .bottom-nav-label {
            font-size: 10px;
            font-weight: 600;
        }

        /* FAB */
        .fab {
            position: fixed;
            bottom: 90px;
            right: 24px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
            transition: all 0.3s ease;
            z-index: 999;
        }

        .fab:hover {
            transform: scale(1.1);
        }

        /* Buttons */
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            background: var(--gradient-primary);
            color: white;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
        }

        /* Forms */
        .add-form {
            background: rgba(30, 41, 59, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 32px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .settings-accordion-panel {
            overflow: hidden;
        }

        .settings-accordion-trigger {
            width: 100%;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            padding: 0;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            text-align: left;
            font: inherit;
            font-size: 15px;
            font-weight: 700;
        }

        .settings-accordion-trigger:focus-visible {
            outline: 2px solid rgba(16, 185, 129, 0.55);
            outline-offset: 4px;
            border-radius: 10px;
        }

        .settings-accordion-trigger-label {
            display: inline-flex;
            align-items: center;
            min-width: 0;
            color: inherit;
        }

        .settings-accordion-trigger-icon {
            flex-shrink: 0;
            color: rgba(16, 185, 129, 0.95);
            font-size: 24px;
            line-height: 1;
            transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .settings-accordion-body {
            height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-3px);
            transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, transform 0.22s ease, margin-top 0.22s ease;
            margin-top: 0;
            contain: layout paint;
            will-change: height, opacity, transform;
        }

        .settings-accordion-panel.is-open .settings-accordion-body {
            opacity: 1;
            transform: translateY(0);
            margin-top: 12px;
        }

        .settings-accordion-panel.is-open .settings-accordion-trigger-icon {
            transform: rotate(45deg);
        }

        @media (prefers-reduced-motion: reduce) {
            .settings-accordion-trigger-icon,
            .settings-accordion-body {
                transition: none !important;
            }
        }

        /* Collapsible Add Form */
        .add-form-collapsible {
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
            opacity: 0;
            margin-bottom: 0;
        }

        .add-form-collapsible.open {
            max-height: 2000px;
            opacity: 1;
            margin-bottom: 24px;
        }

        .add-toggle-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 12px;
            color: #10b981;
            font-family: 'Outfit', sans-serif;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 20px;
        }

        .add-toggle-btn:hover {
            background: rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.5);
            transform: translateY(-1px);
        }

        .add-toggle-btn.open {
            background: rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.5);
        }

        .add-toggle-btn .btn-chevron {
            transition: transform 0.3s ease;
            font-style: normal;
        }

        .add-toggle-btn.open .btn-chevron {
            transform: rotate(45deg);
        }

        .input-group {
            margin-bottom: 16px;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .input-group input,
        .input-group select,
        .input-group textarea {
            width: 100%;
            padding: 12px;
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 8px;
            color: var(--text-primary);
            font-family: inherit;
            transition: all 0.3s ease;
        }

        .input-group input:focus,
        .input-group select:focus,
        .input-group textarea:focus {
            outline: none;
            border-color: #10b981;
            background: rgba(30, 41, 59, 0.95);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

        .input-group input::placeholder,
        .input-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.3);
        }

        /* Settings Lists Grid */
        .settings-list-item {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            min-height: 44px;
        }

        .settings-list-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.4);
        }

        .settings-list-item svg {
            flex-shrink: 0;
        }

        .settings-data-tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .settings-data-tool-card {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 100%);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 12px;
            padding: 14px;
        }

        .settings-data-tool-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .settings-data-tool-actions {
            display: grid;
            gap: 8px;
        }

        .settings-data-tool-btn {
            width: 100%;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid rgba(16, 185, 129, 0.25);
            background: rgba(16, 185, 129, 0.1);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .settings-data-tool-btn:hover {
            background: rgba(16, 185, 129, 0.18);
            border-color: rgba(16, 185, 129, 0.4);
            transform: translateY(-1px);
        }

        .market-watch-inline-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 600;
            min-height: 38px;
        }

        .assistant-input-wrap textarea {
            width: 100%;
            padding: 10px 12px;
            border-radius: 9px;
            border: 1px solid rgba(148, 163, 184, 0.24);
            background: rgba(15, 23, 42, 0.72);
            color: var(--text-primary);
            font-family: inherit;
        }

        .assistant-input-wrap textarea:focus {
            outline: none;
            border-color: rgba(16, 185, 129, 0.55);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
        }

        .assistant-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

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

        .assistant-provider span {
            color: var(--text-secondary);
            font-weight: 600;
        }

        .assistant-input-wrap {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
            align-items: end;
            margin-bottom: 10px;
        }

        .assistant-input-wrap textarea {
            resize: vertical;
            min-height: 62px;
            line-height: 1.4;
        }

        .assistant-input-wrap .settings-data-tool-btn {
            width: auto;
            min-width: 120px;
            height: 42px;
        }

        .assistant-quick-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 10px;
        }

        .assistant-quick-row .settings-data-tool-btn {
            width: auto;
            padding: 8px 10px;
            min-width: 100px;
        }

        .assistant-status {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .assistant-output-wrap {
            border: 1px solid rgba(148, 163, 184, 0.24);
            background: rgba(15, 23, 42, 0.6);
            border-radius: 10px;
            min-height: 72px;
            padding: 10px;
            margin-bottom: 10px;
        }

        .assistant-output {
            display: grid;
            gap: 8px;
        }

        .assistant-output-text {
            font-size: 13px;
            color: var(--text-primary);
            line-height: 1.45;
        }

        .assistant-output ul {
            margin: 0;
            padding-left: 18px;
            display: grid;
            gap: 4px;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .assistant-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .assistant-actions .settings-data-tool-btn {
            width: auto;
            min-width: 110px;
            padding: 8px 10px;
        }

        .assistant-history-heading {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 6px;
            font-weight: 600;
        }

        .assistant-history {
            display: grid;
            gap: 8px;
        }

        .assistant-history-item {
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 9px;
            background: rgba(15, 23, 42, 0.5);
            padding: 8px 10px;
        }

        .assistant-history-query {
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .assistant-history-response {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .assistant-empty,
        .assistant-history-empty {
            color: var(--text-muted);
            font-size: 12px;
        }

        .price-checker-hero {
            margin-bottom: 14px;
        }

        .price-checker-hero-title {
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            line-height: 1.05;
        }

        .price-checker-hero-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            border-radius: 14px;
            padding: 8px;
            box-shadow: 0 8px 18px rgba(6, 182, 212, 0.25);
            flex-shrink: 0;
        }

        .price-checker-hero-subtitle {
            color: var(--text-secondary);
            margin-bottom: 18px;
        }

        .game-price-checker-panel {
            border: 1px solid rgba(16, 185, 129, 0.2);
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 100%);
        }

        .game-price-checker-panel-title {
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .game-price-checker-panel-subtitle {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .game-price-checker-controls {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            gap: 8px;
            align-items: center;
            margin-bottom: 10px;
        }

        .game-price-query-wrap {
            position: relative;
        }

        .price-checker-btn {
            white-space: nowrap;
            font-size: 13px;
            padding: 10px 12px;
        }

        .game-price-checker-advanced {
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 10px;
            padding: 8px 10px;
            margin-bottom: 8px;
            background: rgba(2, 6, 23, 0.3);
        }

        .game-price-checker-advanced > summary {
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            list-style: none;
        }

        .game-price-checker-advanced > summary::-webkit-details-marker {
            display: none;
        }

        .game-price-checker-advanced > summary::after {
            content: '▾';
            float: right;
            color: var(--text-muted);
        }

        .game-price-checker-advanced:not([open]) > summary::after {
            content: '▸';
        }

        .game-price-checker-controls input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 9px;
            border: 1px solid rgba(148, 163, 184, 0.24);
            background: rgba(15, 23, 42, 0.72);
            color: var(--text-primary);
            font-family: inherit;
        }

        .game-price-checker-controls input:focus {
            outline: none;
            border-color: rgba(16, 185, 129, 0.55);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
        }

        .game-price-checker-sources {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 8px;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .game-price-checker-sources label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .game-price-checker-status {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .game-price-checker-status.is-error {
            color: #fb7185;
        }

        .game-price-checker-status.is-success {
            color: #34d399;
        }

        .game-price-checker-provider-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
            gap: 6px;
            margin-bottom: 8px;
        }

        .game-price-checker-provider-summary {
            margin-top: 8px;
        }

        .game-price-checker-provider-summary:empty {
            display: none;
        }

        .game-price-checker-provider {
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 9px;
            padding: 7px 8px;
            background: rgba(2, 6, 23, 0.42);
            display: grid;
            gap: 2px;
        }

        .game-price-checker-provider-label {
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 600;
        }

        .game-price-checker-provider-meta {
            color: var(--text-muted);
            font-size: 10px;
        }

        .game-price-checker-offers {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 7px;
        }

        .game-price-checker-offer {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 8px;
            align-items: center;
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 10px;
            padding: 7px 8px;
            text-decoration: none;
            background: rgba(2, 6, 23, 0.4);
            min-height: 60px;
        }

        .game-price-checker-offer:hover {
            border-color: rgba(16, 185, 129, 0.38);
            background: rgba(2, 6, 23, 0.62);
        }

        .game-price-checker-offer-thumb {
            width: 34px;
            height: 34px;
            border-radius: 7px;
            object-fit: cover;
            border: 1px solid rgba(16, 185, 129, 0.28);
            background: rgba(15, 23, 42, 0.8);
        }

        .game-price-checker-offer-left {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .game-price-checker-offer-title {
            color: var(--text-primary);
            font-size: 11px;
            font-weight: 600;
            line-height: 1.25;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .game-price-checker-offer-meta {
            color: var(--text-muted);
            font-size: 10px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .game-price-checker-offer-right {
            min-width: 88px;
            display: grid;
            gap: 4px;
            justify-items: end;
        }

        .game-price-checker-offer-price {
            color: #22d3ee;
            font-size: 11px;
            font-weight: 700;
            text-align: right;
        }

        .game-price-checker-offer-stock {
            margin-top: 2px;
            font-size: 10px;
            text-align: right;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .game-price-checker-offer-action {
            border: 1px solid rgba(45, 212, 191, 0.38);
            background: rgba(20, 184, 166, 0.16);
            color: #2dd4bf;
            border-radius: 7px;
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            cursor: pointer;
            line-height: 1;
            white-space: nowrap;
        }

        .game-price-checker-offer-action:hover {
            border-color: rgba(45, 212, 191, 0.6);
            background: rgba(20, 184, 166, 0.24);
        }

        .game-price-alert-controls {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 8px;
            margin-top: 8px;
            margin-bottom: 8px;
        }

        .game-price-alert-controls input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 9px;
            border: 1px solid rgba(148, 163, 184, 0.24);
            background: rgba(15, 23, 42, 0.72);
            color: var(--text-primary);
            font-family: inherit;
        }

        .game-price-alert-controls input:focus {
            outline: none;
            border-color: rgba(16, 185, 129, 0.55);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
        }

        .game-price-alerts-list {
            display: grid;
            gap: 7px;
        }

        .game-price-alert-empty {
            border: 1px dashed rgba(148, 163, 184, 0.25);
            border-radius: 9px;
            padding: 9px;
            font-size: 12px;
            color: var(--text-muted);
        }

        .game-price-alert-item {
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 9px;
            background: rgba(2, 6, 23, 0.42);
            padding: 8px;
            display: grid;
            gap: 5px;
        }

        .game-price-alert-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .game-price-alert-query {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .game-price-alert-chip {
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 7px;
            border: 1px solid rgba(251, 191, 36, 0.36);
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.12);
            white-space: nowrap;
        }

        .game-price-alert-chip.is-hit {
            border-color: rgba(34, 197, 94, 0.44);
            color: #4ade80;
            background: rgba(34, 197, 94, 0.14);
        }

        .game-price-alert-meta {
            font-size: 11px;
            color: var(--text-secondary);
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .game-price-alert-history {
            font-size: 10px;
            color: var(--text-muted);
        }

        .game-price-alert-actions {
            display: flex;
            gap: 6px;
            justify-content: flex-end;
        }

        .game-price-alert-actions button {
            border-radius: 7px;
            border: 1px solid rgba(148, 163, 184, 0.3);
            background: rgba(15, 23, 42, 0.72);
            color: var(--text-secondary);
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            cursor: pointer;
        }

        .game-price-alert-actions button:hover {
            border-color: rgba(45, 212, 191, 0.45);
            color: #2dd4bf;
        }

        .game-price-history-heading {
            margin-top: 10px;
            margin-bottom: 6px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .game-price-history-list {
            display: grid;
            gap: 6px;
        }

        .game-price-history-item {
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 8px;
            background: rgba(15, 23, 42, 0.48);
            padding: 7px 8px;
            display: grid;
            gap: 4px;
        }

        .game-price-history-query {
            font-size: 11px;
            color: var(--text-primary);
            font-weight: 700;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .game-price-history-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 10px;
            color: var(--text-muted);
        }

        .game-price-checker-empty {
            border: 1px dashed rgba(148, 163, 184, 0.28);
            border-radius: 10px;
            padding: 10px;
            color: var(--text-muted);
            font-size: 12px;
        }

        @media (max-width: 720px) {
            .price-checker-hero-title {
                font-size: clamp(34px, 9vw, 42px);
                gap: 10px;
                margin-bottom: 8px;
            }

            .price-checker-hero-icon {
                border-radius: 12px;
                padding: 6px;
            }

            .price-checker-hero-icon svg {
                width: 30px;
                height: 30px;
            }

            .price-checker-hero-subtitle {
                font-size: 14px;
                margin-bottom: 12px;
            }

            .game-price-checker-panel-title {
                margin-bottom: 6px;
                font-size: 19px;
            }

            .game-price-checker-panel-subtitle {
                margin-bottom: 8px;
            }

            .assistant-input-wrap {
                grid-template-columns: 1fr;
            }

            .assistant-input-wrap .settings-data-tool-btn {
                width: 100%;
            }

            .game-price-checker-controls {
                grid-template-columns: 1fr 1fr;
            }

            .game-price-checker-controls input {
                grid-column: 1 / -1;
            }

            .game-price-checker-controls .btn {
                width: 100%;
            }

            .price-checker-btn {
                font-size: 12px;
                padding: 9px 10px;
            }

            .game-price-checker-offers {
                grid-template-columns: 1fr;
            }

            .game-price-checker-offer {
                grid-template-columns: auto minmax(0, 1fr);
            }

            .game-price-checker-offer-right {
                grid-column: 1 / -1;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-left: 50px;
            }

            .game-price-alert-controls {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 460px) {
            .game-price-checker-controls {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 900px) {
            input,
            select,
            textarea {
                font-size: 16px !important;
            }
        }

        .settings-gmc-panel {
            border: 1px solid rgba(16, 185, 129, 0.22);
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 100%);
            margin-bottom: 24px;
            overflow: hidden;
        }

        .settings-gmc-panel > summary {
            list-style: none;
            cursor: pointer;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .settings-gmc-panel > summary::-webkit-details-marker {
            display: none;
        }

        .settings-gmc-panel > summary::after {
            content: '+';
            color: #10b981;
            font-size: 18px;
            line-height: 1;
            flex-shrink: 0;
        }

        .settings-gmc-panel[open] > summary::after {
            content: '-';
        }

        .settings-gmc-panel-body {
            padding: 12px 14px 14px;
            border-top: 1px solid rgba(16, 185, 129, 0.16);
            display: grid;
            gap: 10px;
        }

        .settings-gmc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 8px;
        }

        .settings-gmc-card {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.9) 100%);
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 10px;
            padding: 10px;
            display: grid;
            gap: 6px;
        }

        .settings-gmc-card--active {
            border-color: rgba(16, 185, 129, 0.55);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(30, 41, 59, 0.9) 100%);
        }

        .settings-gmc-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .settings-gmc-meta {
            font-size: 11px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .settings-gmc-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .settings-gmc-btn {
            border: 1px solid transparent;
            border-radius: 6px;
            padding: 4px 10px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .settings-gmc-btn-edit {
            background: rgba(59, 130, 246, 0.15);
            border-color: rgba(59, 130, 246, 0.35);
            color: #93c5fd;
        }

        .settings-gmc-btn-delete {
            background: rgba(239, 68, 68, 0.14);
            border-color: rgba(239, 68, 68, 0.35);
            color: #fca5a5;
        }

        .settings-gmc-empty {
            grid-column: 1 / -1;
            padding: 12px;
            border: 1px dashed rgba(148, 163, 184, 0.35);
            border-radius: 8px;
            color: var(--text-muted);
            font-size: 12px;
        }

        .import-preview-modal-content {
            width: min(960px, 94vw);
            max-width: 960px;
            max-height: 88vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .import-preview-summary {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            line-height: 1.5;
        }

        .import-preview-table-wrap {
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 12px;
            overflow: auto;
            max-height: 50vh;
            background: rgba(15, 23, 42, 0.5);
        }

        .import-preview-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 700px;
            font-size: 12px;
        }

        .import-preview-table th,
        .import-preview-table td {
            text-align: left;
            padding: 10px 12px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            white-space: nowrap;
        }

        .import-preview-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            font-size: 11px;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            color: var(--text-secondary);
            background: rgba(15, 23, 42, 0.95);
        }

        .import-preview-table tbody tr:nth-child(even) {
            background: rgba(148, 163, 184, 0.05);
        }

        .import-preview-footnote {
            margin-top: 10px;
            font-size: 11px;
            color: var(--text-muted);
        }

        @media (max-width: 768px) {
            .import-preview-table {
                min-width: 560px;
            }
        }

        /* Loading */
        #loadingScreen {
            position: fixed;
            inset: 0;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        #loadingScreen,
        #loginScreen {
            width: 100%;
            height: 100dvh !important;
            min-height: 100dvh !important;
        }

        @supports not (height: 100dvh) {
            #loadingScreen,
            #loginScreen {
                height: 100vh !important;
                min-height: 100vh !important;
            }
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(16, 185, 129, 0.2);
            border-top-color: #10b981;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Sci-Fi Home Icon Animations */
        @keyframes homeHexRotate {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.1); }
            100% { transform: rotate(360deg) scale(1); }
        }
        
        @keyframes homePulseRing {
            0%, 100% { 
                r: 30;
                opacity: 0.3;
                stroke-width: 2;
            }
            50% { 
                r: 38;
                opacity: 0.6;
                stroke-width: 4;
            }
        }
        
        @keyframes homeCoreGlow {
            0%, 100% { 
                opacity: 1;
                transform: scale(1);
            }
            50% { 
                opacity: 0.8;
                transform: scale(1.05);
            }
        }
        
        @keyframes homeOrbit1 {
            0% { 
                transform: rotate(0deg) translateX(35px);
                opacity: 1;
            }
            100% { 
                transform: rotate(360deg) translateX(35px);
                opacity: 1;
            }
        }
        
        @keyframes homeOrbit2 {
            0% { 
                transform: rotate(120deg) translateX(35px);
                opacity: 1;
            }
            100% { 
                transform: rotate(480deg) translateX(35px);
                opacity: 1;
            }
        }
        
        @keyframes homeOrbit3 {
            0% { 
                transform: rotate(240deg) translateX(35px);
                opacity: 1;
            }
            100% { 
                transform: rotate(600deg) translateX(35px);
                opacity: 1;
            }
        }
        
        .home-icon-outer-hex {
            animation: homeHexRotate 6s ease-in-out infinite;
            transform-origin: 50px 50px;
        }
        
        .home-icon-pulse-ring {
            animation: homePulseRing 2s ease-in-out infinite;
        }
        
        .home-icon-core {
            animation: homeCoreGlow 2s ease-in-out infinite;
            transform-origin: 50px 50px;
        }
        
        .home-icon-orbit-dot1 {
            animation: homeOrbit1 2.5s linear infinite;
            transform-origin: 50px 50px;
        }
        
        .home-icon-orbit-dot2 {
            animation: homeOrbit2 2.5s linear infinite;
            transform-origin: 50px 50px;
        }
        
        .home-icon-orbit-dot3 {
            animation: homeOrbit3 2.5s linear infinite;
            transform-origin: 50px 50px;
        }
        
        /* Make home icon larger and more prominent when active */
        .bottom-nav-item.active .home-icon-outer-hex,
        .desktop-nav-item.active .home-icon-outer-hex {
            stroke-width: 3;
            opacity: 1;
        }
        
        .bottom-nav-item.active .home-icon-core,
        .desktop-nav-item.active .home-icon-core {
            opacity: 1;
        }
        
        /* Make desktop home icon stand out more */
        .desktop-nav-item.active {
            background: rgba(16, 185, 129, 0.15);
            color: var(--accent-purple);
        }

        /* ========== GADGETS ICON ANIMATIONS ========== */
        @keyframes gadgetPhonePulse {
            0%, 100% { opacity: 0.8; stroke-width: 2.5; }
            50% { opacity: 1; stroke-width: 3; }
        }
        
        @keyframes gadgetScreenGlow {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
        
        @keyframes gadgetPulseTravel {
            0% { cx: 35; cy: 35; opacity: 1; }
            25% { cx: 50; cy: 35; opacity: 1; }
            50% { cx: 50; cy: 50; opacity: 1; }
            75% { cx: 65; cy: 50; opacity: 1; }
            100% { cx: 65; cy: 50; opacity: 0; }
        }
        
        @keyframes gadgetNodePulse1 {
            0%, 100% { r: 3; opacity: 1; }
            50% { r: 4; opacity: 0.6; }
        }
        
        @keyframes gadgetNodePulse2 {
            0%, 100% { r: 3; opacity: 0.6; }
            50% { r: 4; opacity: 1; }
        }
        
        .gadget-icon-phone { animation: gadgetPhonePulse 3s ease-in-out infinite; }
        .gadget-icon-screen { animation: gadgetScreenGlow 2s ease-in-out infinite; }
        .gadget-icon-pulse { animation: gadgetPulseTravel 3s ease-in-out infinite; }
        .gadget-icon-node1 { animation: gadgetNodePulse1 2s ease-in-out infinite; }
        .gadget-icon-node2 { animation: gadgetNodePulse2 2s ease-in-out infinite 0.5s; }
        .gadget-icon-line1 { animation: gadgetScreenGlow 2s ease-in-out infinite; }
        .gadget-icon-line2 { animation: gadgetScreenGlow 2s ease-in-out infinite 0.3s; }
        .gadget-icon-line3 { animation: gadgetScreenGlow 2s ease-in-out infinite 0.6s; }

        /* ========== GAMES ICON ANIMATIONS ========== */
        @keyframes gameBodyFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-3px); }
        }
        
        @keyframes gameButtonPulse {
            0%, 100% { r: 3; opacity: 1; }
            50% { r: 4; opacity: 0.6; }
        }
        
        @keyframes gameWave1 {
            0%, 100% { r: 15; opacity: 0.4; }
            50% { r: 18; opacity: 0.1; }
        }
        
        @keyframes gameWave2 {
            0%, 100% { r: 20; opacity: 0.3; }
            50% { r: 25; opacity: 0.05; }
        }
        
        @keyframes gameTriggerPress {
            0%, 80%, 100% { opacity: 0.6; }
            85%, 95% { opacity: 1; }
        }
        
        .game-icon-body { animation: gameBodyFloat 3s ease-in-out infinite; }
        .game-icon-btn1 { animation: gameButtonPulse 1.5s ease-in-out infinite; }
        .game-icon-btn2 { animation: gameButtonPulse 1.5s ease-in-out infinite 0.2s; }
        .game-icon-btn3 { animation: gameButtonPulse 1.5s ease-in-out infinite 0.4s; }
        .game-icon-btn4 { animation: gameButtonPulse 1.5s ease-in-out infinite 0.6s; }
        .game-icon-wave1 { animation: gameWave1 2.5s ease-in-out infinite; }
        .game-icon-wave2 { animation: gameWave2 3s ease-in-out infinite; }
        .game-icon-trigger-l { animation: gameTriggerPress 4s ease-in-out infinite; }
        .game-icon-trigger-r { animation: gameTriggerPress 4s ease-in-out infinite 2s; }

        /* ========== DIGITAL ICON ANIMATIONS ========== */
        @keyframes digitalCardGlow {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
        }
        
        @keyframes digitalScanMove {
            0% { y1: 35; y2: 35; opacity: 0.8; }
            50% { y1: 52; y2: 52; opacity: 1; }
            100% { y1: 70; y2: 70; opacity: 0; }
        }
        
        @keyframes digitalChipPulse {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
        }
        
        @keyframes digitalParticle1 {
            0%, 100% { cy: 30; opacity: 1; }
            50% { cy: 20; opacity: 0; }
        }
        
        @keyframes digitalParticle2 {
            0%, 100% { cy: 32; opacity: 1; }
            50% { cy: 22; opacity: 0; }
        }
        
        @keyframes digitalParticle3 {
            0%, 100% { cy: 75; opacity: 1; }
            50% { cy: 85; opacity: 0; }
        }
        
        .digital-icon-card { animation: digitalCardGlow 3s ease-in-out infinite; }
        .digital-icon-scan { animation: digitalScanMove 2.5s ease-in-out infinite; }
        .digital-icon-chip { animation: digitalChipPulse 2s ease-in-out infinite; }
        .digital-icon-particle1 { animation: digitalParticle1 2s ease-in-out infinite; }
        .digital-icon-particle2 { animation: digitalParticle2 2s ease-in-out infinite 0.3s; }
        .digital-icon-particle3 { animation: digitalParticle3 2s ease-in-out infinite 0.6s; }

        /* ========== SETTINGS ICON ANIMATIONS ========== */
        @keyframes settingsGear1Rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes settingsGear2Rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(-360deg); }
        }
        
        @keyframes settingsToothPulse {
            0%, 100% { r: 3; opacity: 1; }
            50% { r: 4; opacity: 0.6; }
        }
        
        @keyframes settingsParticle1Orbit {
            0% { transform: rotate(0deg) translateX(25px); }
            100% { transform: rotate(360deg) translateX(25px); }
        }
        
        @keyframes settingsParticle2Orbit {
            0% { transform: rotate(180deg) translateX(25px); }
            100% { transform: rotate(540deg) translateX(25px); }
        }
        
        @keyframes settingsConnectPulse {
            0%, 100% { opacity: 0.5; stroke-width: 1.5; }
            50% { opacity: 1; stroke-width: 2; }
        }
        
        .settings-icon-gear1 { animation: settingsGear1Rotate 6s linear infinite; transform-origin: 50px 50px; }
        .settings-icon-gear2 { animation: settingsGear2Rotate 4s linear infinite; transform-origin: 70px 30px; }
        .settings-icon-tooth1 { animation: settingsGear1Rotate 6s linear infinite, settingsToothPulse 2s ease-in-out infinite; transform-origin: 50px 50px; }
        .settings-icon-tooth2 { animation: settingsGear1Rotate 6s linear infinite, settingsToothPulse 2s ease-in-out infinite 0.5s; transform-origin: 50px 50px; }
        .settings-icon-tooth3 { animation: settingsGear1Rotate 6s linear infinite, settingsToothPulse 2s ease-in-out infinite 1s; transform-origin: 50px 50px; }
        .settings-icon-tooth4 { animation: settingsGear1Rotate 6s linear infinite, settingsToothPulse 2s ease-in-out infinite 1.5s; transform-origin: 50px 50px; }
        .settings-icon-inner { animation: settingsGear1Rotate 6s linear infinite; transform-origin: 50px 50px; }
        .settings-icon-particle1 { animation: settingsParticle1Orbit 3s linear infinite; transform-origin: 50px 50px; }
        .settings-icon-particle2 { animation: settingsParticle2Orbit 3s linear infinite; transform-origin: 50px 50px; }
        .settings-icon-connect { animation: settingsConnectPulse 2s ease-in-out infinite; }

        /* Login Screen */
        #loginScreen {
            position: fixed;
            inset: 0;
            background: var(--bg-primary);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9998;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-y: contain;
            padding: var(--safe-area-top) var(--safe-area-right) var(--safe-area-bottom) var(--safe-area-left);
        }

        #loginScreen > div {
            min-height: calc(100dvh - var(--safe-area-top) - var(--safe-area-bottom)) !important;
            padding-top: max(24px, calc(40px + var(--safe-area-top))) !important;
            padding-bottom: max(24px, calc(40px + var(--safe-area-bottom))) !important;
            box-sizing: border-box;
        }

        .login-hero-content {
            padding: 40px 20px;
        }

        .login-brand {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 56px;
            animation: slideInLeft 0.8s ease-out;
            justify-content: flex-start;
            width: max-content;
            max-width: 100%;
        }

        .login-brand-icon {
            width: 66px;
            height: 66px;
            flex: 0 0 66px;
            display: inline-flex;
        }

        .login-brand-svg {
            width: 66px;
            height: 66px;
        }

        .login-brand-text {
            min-width: 0;
        }

        .login-brand-title {
            color: #fff;
            font-size: 26px;
            line-height: 1.05;
            font-weight: 800;
            margin: 0;
            letter-spacing: 0.5px;
            background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .login-brand-tagline {
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            margin: 0;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .login-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 48px;
            text-align: center;
            max-width: 400px;
        }

        .login-card h1 {
            font-size: 32px;
            margin-bottom: 16px;
        }

        .login-btn {
            width: 100%;
            padding: 16px;
            margin-top: 24px;
            background: var(--gradient-primary);
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            font-size: 16px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            :root {
                --card-image-size: 88px;
                --card-image-radius: 10px;
                --card-image-placeholder-size: 36px;
            }

            .bottom-nav { display: block; }
            .desktop-nav-links { display: none; }

            .container {
                padding: calc(72px + var(--safe-area-top)) 16px calc(90px + var(--safe-area-bottom)) !important;
            }

            .section h1 {
                font-size: 26px !important;
                margin-bottom: 14px !important;
            }

            .items-grid {
                grid-template-columns: 1fr !important;
                gap: 16px;
                margin-top: 10px;
            }

            .games-status-layout {
                gap: 16px;
            }

            .games-status-section {
                padding: 14px;
                border-radius: 18px;
            }

            .games-status-title {
                font-size: 20px;
            }

            .games-status-subtitle {
                font-size: 12px;
            }

            .games-status-header {
                gap: 10px;
            }

            .games-status-toggle {
                min-height: 36px;
                padding: 0 12px;
                font-size: 11px;
            }

            .games-status-collapsed-note {
                padding: 12px 14px;
                font-size: 12px;
            }

            .games-status-empty {
                min-height: 150px;
                padding: 18px 14px;
            }

            .item-card {
                padding: 16px;
                background: rgba(30, 41, 59, 0.9);
                border: 1px solid rgba(16, 185, 129, 0.2);
            }

            .item-title {
                font-size: 16px;
                margin-bottom: 6px;
            }

            .item-category {
                font-size: 12px;
                color: rgba(16, 185, 129, 0.8);
                font-weight: 600;
            }

            .info-label {
                font-size: 11px;
                font-weight: 700;
                background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
                -webkit-background-clip: text;
                background-clip: text;
                -webkit-text-fill-color: transparent;
                color: transparent;
            }

            .info-value {
                font-size: 13px;
                color: #ffffff;
                font-weight: 700;
            }

            .info-row {
                padding: 8px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            }

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

            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px;
            }

            .stat-card {
                padding: 16px;
                background: rgba(30, 41, 59, 0.9);
            }

            .stat-value {
                font-size: 24px !important;
                color: #ffffff !important;
                font-weight: 800;
            }

            .stat-label {
                font-size: 11px;
                font-weight: 700;
                background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }

            .add-form {
                padding: 16px;
                margin-bottom: 16px;
                background: rgba(30, 41, 59, 0.8);
                border: 1px solid rgba(16, 185, 129, 0.2);
            }

            /* This is the key - form-grid class collapses to single column */
            .form-grid {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
            }

            /* Settings lists - single column on mobile */
            #gadget-categories-list,
            #game-platforms-list,
            #game-genres-list,
            #digital-types-list {
                grid-template-columns: 1fr !important;
            }

            .filter-chip {
                padding: 8px 14px;
                font-size: 12px;
            }

            .fab { bottom: calc(80px + var(--safe-area-bottom)); }

            .top-nav {
                padding: var(--safe-area-top) calc(12px + var(--safe-area-right)) 0 calc(12px + var(--safe-area-left));
                height: calc(54px + var(--safe-area-top));
            }
            .logo { font-size: 17px; gap: 6px; }
            .logo-icon svg { width: 24px; height: 24px; }

            .user-avatar { width: 32px; height: 32px; font-size: 12px; border-width: 1.5px; }

            #profileMenu { right: -8px !important; min-width: 190px !important; }
        }

        /* Modals */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 32px;
            max-width: 500px;
            width: 90%;
            transform: translateY(-20px);
            transition: transform 0.2s ease;
        }

        .modal.active .modal-content {
            transform: translateY(0);
        }

        .modal-header {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 24px;
        }

        .close-modal {
            float: right;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-muted);
        }

/* ---- split ---- */

            .loading-spinner {
                position: absolute;
                top: 0;
                left: 0;
                width: 80px;
                height: 80px;
                border: 3px solid rgba(148, 163, 184, 0.2);
                border-top: 3px solid #10b981;
                border-radius: 50%;
                animation: spinLoader 0.6s linear infinite;
            }

            @keyframes spinLoader {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }

            .dot {
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
                animation: bounce 0.8s ease-in-out infinite;
            }

            @keyframes bounce {
                0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
                40% { transform: scale(1); opacity: 1; }
            }

/* ---- split ---- */

        @keyframes rotateRing {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        @keyframes pulseRing {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
            50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
        }

        @keyframes hexFloat {
            0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
            50% { transform: translate(-50%, -50%) translateY(-5px); }
        }

        @keyframes innerGlow {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
        }

        @keyframes orbit1 {
            0% { transform: translate(-50%, -50%) rotate(0deg) translateX(35px); }
            100% { transform: translate(-50%, -50%) rotate(360deg) translateX(35px); }
        }

        @keyframes orbit2 {
            0% { transform: translate(-50%, -50%) rotate(120deg) translateX(35px); }
            100% { transform: translate(-50%, -50%) rotate(480deg) translateX(35px); }
        }

        @keyframes orbit3 {
            0% { transform: translate(-50%, -50%) rotate(240deg) translateX(35px); }
            100% { transform: translate(-50%, -50%) rotate(600deg) translateX(35px); }
        }

        @keyframes scanLine {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 1; }
        }

/* ---- split ---- */

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

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

            @keyframes float1 {
                0%, 100% {
                    transform: translate(0, 0) scale(1);
                }
                50% {
                    transform: translate(30px, -30px) scale(1.1);
                }
            }

            @keyframes float2 {
                0%, 100% {
                    transform: translate(0, 0) scale(1);
                }
                50% {
                    transform: translate(-30px, 30px) scale(1.1);
                }
            }

            @keyframes logoPulse {
                0%, 100% {
                    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
                }
                50% {
                    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.6);
                }
            }

            @keyframes shieldPulse {
                0%, 100% {
                    transform: scale(1);
                    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
                }
                50% {
                    transform: scale(1.05);
                    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
                }
            }

/* ---- split ---- */

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.85; }
    }

    body.encrypted .encryption-indicator {
        display: flex !important;
    }

    .modal .modal-content {
        animation: modalSlideIn 0.3s ease-out;
    }

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

    /* Refresh: launch + access experience */
    #loadingScreen.launch-screen {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: max(20px, calc(20px + var(--safe-area-top))) max(20px, calc(20px + var(--safe-area-right))) max(20px, calc(20px + var(--safe-area-bottom))) max(20px, calc(20px + var(--safe-area-left)));
        background:
            radial-gradient(ellipse 90% 64% at 50% -10%, rgba(16, 185, 129, 0.15), transparent 65%),
            radial-gradient(ellipse 80% 52% at 90% 100%, rgba(6, 182, 212, 0.14), transparent 70%),
            linear-gradient(145deg, #0b1428 0%, #101d35 45%, #0b1326 100%);
        z-index: 10001;
    }

    .launch-card {
        width: min(340px, 100%);
        border-radius: 20px;
        border: 1px solid rgba(148, 163, 184, 0.22);
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.86) 100%);
        backdrop-filter: blur(10px);
        box-shadow: 0 26px 56px rgba(2, 6, 23, 0.62);
        padding: 24px 22px;
        display: grid;
        gap: 16px;
        justify-items: center;
        text-align: center;
    }

    .launch-brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .launch-brand-icon {
        width: 54px;
        height: 54px;
        display: block;
        filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.35));
    }

    .launch-brand-title {
        margin: 0;
        font-size: 24px;
        line-height: 1.05;
        letter-spacing: 0.55px;
        font-weight: 800;
        background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .launch-brand-subtitle {
        margin-top: 4px;
        color: rgba(226, 232, 240, 0.62);
        font-size: 11px;
        letter-spacing: 2.2px;
        text-transform: uppercase;
    }

    .launch-spinner {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 3px solid rgba(148, 163, 184, 0.28);
        border-top-color: #10b981;
        animation: launchSpin 0.86s linear infinite;
    }

    .launch-note {
        margin: 0;
        font-size: 13px;
        color: rgba(226, 232, 240, 0.75);
        letter-spacing: 0.15px;
    }

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

    #loginScreen.access-screen {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: none;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: linear-gradient(145deg, #0b1428 0%, #101e37 48%, #0a1326 100%);
        padding: 0;
    }

    .access-bg {
        position: fixed;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .access-glow {
        position: absolute;
        border-radius: 999px;
        filter: blur(2px);
        opacity: 0.92;
        animation: accessGlowDrift 13s ease-in-out infinite;
    }

    .access-glow--one {
        width: min(52vw, 520px);
        height: min(52vw, 520px);
        left: -10vw;
        top: -14vh;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.26) 0%, rgba(16, 185, 129, 0) 70%);
    }

    .access-glow--two {
        width: min(62vw, 620px);
        height: min(62vw, 620px);
        right: -18vw;
        bottom: -25vh;
        background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0) 72%);
        animation-delay: -5s;
    }

    .access-shell {
        position: relative;
        width: min(1220px, 100%);
        margin: 0 auto;
        min-height: 100dvh;
        padding: max(34px, calc(30px + var(--safe-area-top))) max(20px, calc(20px + var(--safe-area-right))) max(24px, calc(24px + var(--safe-area-bottom))) max(20px, calc(20px + var(--safe-area-left)));
        display: flex;
        align-items: center;
    }

    .access-grid {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
        gap: clamp(22px, 4vw, 54px);
        align-items: center;
    }

    .access-hero {
        max-width: 650px;
    }

    .access-mark {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 22px;
    }

    .access-mark-icon {
        width: 64px;
        height: 64px;
        filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.34));
    }

    .access-mark-title {
        margin: 0;
        font-size: clamp(26px, 4vw, 42px);
        line-height: 1;
        letter-spacing: 1px;
        font-weight: 800;
        background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .access-mark-subtitle {
        margin: 4px 0 0;
        color: rgba(226, 232, 240, 0.56);
        font-size: 12px;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .access-headline {
        margin: 0;
        color: #f8fafc;
        font-size: clamp(38px, 6vw, 68px);
        line-height: 1.02;
        letter-spacing: -0.8px;
        font-weight: 800;
    }

    .access-headline span {
        display: block;
        background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .access-copy {
        margin: 20px 0 0;
        max-width: 560px;
        color: rgba(226, 232, 240, 0.74);
        font-size: clamp(14px, 1.8vw, 20px);
        line-height: 1.6;
    }

    .access-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 24px;
    }

    .access-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 11px;
        border: 1px solid transparent;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.55px;
        font-weight: 700;
    }

    .access-chip svg {
        width: 16px;
        height: 16px;
    }

    .access-chip--hardware {
        color: #34d399;
        background: rgba(16, 185, 129, 0.12);
        border-color: rgba(16, 185, 129, 0.3);
    }

    .access-chip--hardware svg {
        stroke: #34d399;
    }

    .access-chip--games {
        color: #a78bfa;
        background: rgba(139, 92, 246, 0.13);
        border-color: rgba(139, 92, 246, 0.34);
    }

    .access-chip--games svg {
        stroke: #a78bfa;
    }

    .access-chip--digital {
        color: #22d3ee;
        background: rgba(6, 182, 212, 0.12);
        border-color: rgba(6, 182, 212, 0.32);
    }

    .access-chip--digital svg {
        stroke: #22d3ee;
    }

    .access-panel {
        width: 100%;
    }

    .access-card {
        border-radius: 24px;
        border: 1px solid rgba(16, 185, 129, 0.24);
        background: linear-gradient(145deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 100%);
        box-shadow: 0 24px 64px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(16, 185, 129, 0.12) inset;
        backdrop-filter: blur(18px);
        padding: clamp(24px, 3.2vw, 34px);
        display: grid;
        gap: 14px;
        text-align: center;
    }

    .access-shield {
        width: 72px;
        height: 72px;
        margin: 0 auto 2px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.2) 100%);
        border: 1px solid rgba(16, 185, 129, 0.35);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.08);
    }

    .access-shield svg {
        width: 34px;
        height: 34px;
        stroke: #34d399;
    }

    .access-card-title {
        margin: 0;
        color: #f8fafc;
        font-size: clamp(28px, 3vw, 40px);
        line-height: 1.05;
        letter-spacing: -0.55px;
    }

    .access-card-copy {
        margin: 0;
        color: rgba(226, 232, 240, 0.66);
        font-size: 14px;
        line-height: 1.55;
    }

    .access-login-btn {
        margin-top: 4px;
        width: 100%;
        min-height: 56px;
        border-radius: 14px;
        text-decoration: none;
        border: 1px solid rgba(16, 185, 129, 0.42);
        background: linear-gradient(90deg, #12be8e 0%, #20c0e0 100%);
        box-shadow: 0 12px 28px rgba(16, 185, 129, 0.32);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        color: #f8fafc;
        font-size: 19px;
        font-weight: 700;
        letter-spacing: -0.2px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .access-login-btn svg {
        width: 24px;
        height: 24px;
    }

    .access-login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(16, 185, 129, 0.38);
    }

    .access-footnote {
        margin: 6px 0 0;
        color: rgba(148, 163, 184, 0.82);
        letter-spacing: 1.4px;
        text-transform: uppercase;
        font-size: 11px;
    }

    .access-error {
        margin-top: 4px;
        color: #fb7185;
        font-size: 13px;
        min-height: 18px;
        display: none;
    }

    @keyframes accessGlowDrift {
        0%, 100% {
            transform: translate3d(0, 0, 0) scale(1);
        }
        50% {
            transform: translate3d(0, -20px, 0) scale(1.04);
        }
    }

    @media (max-width: 980px) {
        .access-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .access-shell {
            align-items: flex-start;
            padding-top: max(26px, calc(18px + var(--safe-area-top)));
        }

        .access-hero {
            max-width: 100%;
        }
    }

    @media (max-width: 640px) {
        .launch-card {
            padding: 22px 18px;
        }

        .launch-brand-title {
            font-size: 20px;
        }

        .launch-brand-icon {
            width: 48px;
            height: 48px;
        }

        .access-mark {
            margin-bottom: 16px;
        }

        .access-mark-icon {
            width: 52px;
            height: 52px;
        }

        .access-mark-title {
            font-size: 32px;
            letter-spacing: 0.7px;
        }

        .access-mark-subtitle {
            font-size: 11px;
            letter-spacing: 2.2px;
        }

        .access-headline {
            font-size: 48px;
        }

        .access-copy {
            margin-top: 14px;
            font-size: 16px;
        }

        .access-chip-row {
            margin-top: 18px;
        }

        .access-card {
            border-radius: 20px;
            padding: 22px 18px;
        }

        .access-card-title {
            font-size: 42px;
        }

        .access-login-btn {
            min-height: 58px;
            font-size: 18px;
            border-radius: 15px;
            gap: 10px;
        }

        .access-login-btn svg {
            width: 22px;
            height: 22px;
        }

        .access-footnote {
            font-size: 10px;
            letter-spacing: 1.2px;
        }
    }

    @media (display-mode: standalone) {
        .access-shell {
            padding-top: max(38px, calc(18px + var(--safe-area-top)));
            min-height: 100dvh;
        }
    }

    @media (display-mode: standalone) and (max-width: 640px) {
        .access-shell {
            padding-top: max(46px, calc(24px + var(--safe-area-top)));
        }

        .access-login-btn {
            min-height: 60px;
            font-size: 18px;
        }
    }
