        :root {
            --bg-color: #0a0a0a;
            --bg-secondary: #111111;
            --bg-tertiary: #1a1a1a;
            --text-color: #ffffff;
            --text-secondary: #b3b3b3;
            --text-muted: #666666;
            --header-bg: #1a1a1a;
            --primary-color: #8b5cf6;
            --primary-hover: #7c3aed;
            --primary-light: rgba(139, 92, 246, 0.1);
            --accent-color: #06d6a0;
            --accent-hover: #05c296;
            --card-bg: #1e1e1e;
            --card-hover: #2a2a2a;
            --border-color: #333333;
            --border-light: #404040;
            --search-bg: #252525;
            --section-title-color: #8b5cf6;
            --icon-color: #06d6a0;
            --active-tab-bg: rgba(139, 92, 246, 0.15);
            --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            --card-shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.3);
            --rating-color: #fbbf24;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --error-color: #ef4444;
            --android-color: #4ade80;
            --ios-color: #3b82f6;
            --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
            --gradient-secondary: linear-gradient(135deg, #06d6a0 0%, #059669 100%);
            --gradient-card: linear-gradient(145deg, #1e1e1e 0%, #2a2a2a 100%);
        }

        [data-theme="light"] {
            --bg-color: #fafafa;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f8f9fa;
            --text-color: #1a1a1a;
            --text-secondary: #4a5568;
            --text-muted: #9ca3af;
            --header-bg: #ffffff;
            --primary-color: #6366f1;
            --primary-hover: #4f46e5;
            --primary-light: rgba(99, 102, 241, 0.1);
            --accent-color: #059669;
            --accent-hover: #047857;
            --card-bg: #ffffff;
            --card-hover: #f8f9fa;
            --border-color: #e5e7eb;
            --border-light: #d1d5db;
            --search-bg: #f3f4f6;
            --section-title-color: #6366f1;
            --icon-color: #059669;
            --active-tab-bg: rgba(99, 102, 241, 0.1);
            --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
            --card-shadow-hover: 0 8px 32px rgba(99, 102, 241, 0.15);
            --rating-color: #f59e0b;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --error-color: #ef4444;
            --android-color: #22c55e;
            --ios-color: #3b82f6;
            --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            --gradient-secondary: linear-gradient(135deg, #059669 0%, #047857 100%);
            --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        
        body {
            background: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            padding-bottom: 50px;
            user-select: none;
            font-feature-settings: "kern" 1, "liga" 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            overflow: hidden;
        }
        
        header {
            background: var(--header-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 16px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid var(--border-color);
            transition: all 0.3s ease;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        
        .logo img {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .logo-text {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-color);
            letter-spacing: -0.3px;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .search-container {
            position: relative;
            flex: 1;
            max-width: 400px;
            min-width: 200px;
            order: 3;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 16px 12px 42px;
            border-radius: 16px;
            border: 2px solid var(--border-color);
            background: var(--search-bg);
            color: var(--text-color);
            font-size: 15px;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
            background: var(--bg-secondary);
        }
        
        .search-input::placeholder {
            color: var(--text-muted);
        }
        
        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 16px;
        }

        .theme-toggle {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: var(--gradient-primary);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
            flex-shrink: 0;
            order: 2;
        }

        .theme-toggle:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
        }
        
        .nav-tabs {
            display: flex;
            justify-content: center;
            margin: 20px 0;
            background: var(--card-bg);
            border-radius: 14px;
            padding: 6px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border-color);
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .nav-tabs::-webkit-scrollbar {
            display: none;
        }
        
        .nav-tab {
            padding: 12px 24px;
            margin: 0 2px;
            cursor: pointer;
            position: relative;
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 14px;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            min-width: 80px;
            text-align: center;
        }
        
        .nav-tab.active {
            color: var(--primary-color);
            background: var(--primary-light);
            transform: translateY(-1px);
        }
        
        .content-section {
            display: none;
            animation: fadeIn 0.4s ease-in-out;
        }
        
        .content-section.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 24px 0 16px;
        }
        
        .section-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--section-title-color);
            letter-spacing: -0.3px;
        }
        
        .view-all {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .view-all:hover {
            background: var(--primary-light);
            transform: translateX(2px);
        }
        
        /* Enhanced Slider */
        .slider-container {
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            margin-bottom: 32px;
            height: 240px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border-color);
        }
        
        .slider {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            height: 100%;
        }
        
        .slide {
            min-width: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform 0.6s ease;
        }
        
        .slide:hover img {
            transform: scale(1.05);
        }
        
        .slide-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            color: white;
        }
        
        .slide-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 6px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        }
        
        .slide-rating {
            display: flex;
            align-items: center;
            margin-bottom: 6px;
            gap: 4px;
        }
        
        .star-icon {
            color: var(--rating-color);
            font-size: 16px;
        }
        
        .slide-rating span {
            font-size: 16px;
            font-weight: 600;
        }
        
        .slide-desc {
            font-size: 14px;
            opacity: 0.9;
            line-height: 1.4;
            max-width: 500px;
        }
        
        .slide-dots {
            position: absolute;
            bottom: 16px;
            right: 16px;
            display: flex;
            gap: 6px;
        }
        
        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .dot.active {
            background: var(--primary-color);
            transform: scale(1.2);
        }
        
        .slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
        }
        
        .slider-nav:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: translateY(-50%) scale(1.1);
        }
        
        .prev-slide {
            left: 12px;
        }
        
        .next-slide {
            right: 12px;
        }
        
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }
        
        .card {
            background: var(--gradient-card);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            border: 1px solid var(--border-color);
        }
        
        .card:hover {
            transform: translateY(-6px);
            box-shadow: var(--card-shadow-hover);
            background: var(--card-hover);
        }
        
        .card-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--gradient-primary);
            color: white;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 6px;
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .card-image {
            height: 120px;
            overflow: hidden;
            position: relative;
        }
        
        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform 0.4s ease;
        }
        
        .card:hover .card-image img {
            transform: scale(1.1);
        }
        
        .card-content {
            padding: 14px;
        }
        
        .card-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-color);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
        }
        
        .card-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: var(--text-secondary);
        }
        
        .card-size {
            font-weight: 500;
            color: var(--accent-color);
        }
        
        .card-rating {
            display: flex;
            align-items: center;
            gap: 3px;
        }
        
        .card-rating i {
            color: var(--rating-color);
            font-size: 12px;
        }
        
        .card-rating span {
            font-weight: 600;
        }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
            padding: 16px;
        }
        
        .modal {
            background: var(--card-bg);
            border-radius: 20px;
            width: 100%;
            max-width: 500px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--border-color);
            animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        @keyframes modalSlideUp {
            from { 
                opacity: 0; 
                transform: translateY(40px) scale(0.95); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0) scale(1); 
            }
        }
        
        .modal-header {
            position: relative;
        }
        
        .modal-banner {
            height: 160px;
            overflow: hidden;
            border-radius: 20px 20px 0 0;
        }
        
        .modal-banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        
        .modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            z-index: 2;
            transition: all 0.3s ease;
        }
        
        .modal-close:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: scale(1.1);
        }
        
        .modal-icon {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            overflow: hidden;
            position: absolute;
            bottom: -40px;
            left: 20px;
            border: 3px solid var(--card-bg);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }
        
        .modal-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .modal-title {
            font-size: 26px;
            font-weight: 700;
            margin-top: 32px;
            color: var(--text-color);
            line-height: 1.2;
        }
        
        .modal-meta {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            gap: 12px;
            margin: 20px 0;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .meta-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px;
            background: var(--bg-tertiary);
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }
        
        .meta-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 6px;
            font-weight: 500;
        }
        
        .meta-value {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-color);
        }
        
        .meta-value i {
            color: var(--rating-color);
        }
        
        .platforms {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }
        
        .platform {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            border-radius: 10px;
            background: var(--bg-tertiary);
            font-size: 14px;
            font-weight: 600;
            border: 1px solid var(--border-color);
        }
        
        .platform.android i {
            color: var(--android-color);
            font-size: 16px;
        }
        
        .platform.ios i {
            color: var(--ios-color);
            font-size: 16px;
        }
        
        .download-btn {
            width: 100%;
            padding: 16px;
            border-radius: 14px;
            background: var(--gradient-primary);
            color: white;
            font-weight: 700;
            font-size: 16px;
            border: none;
            margin: 20px 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
        }
        
        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
        }
        
        .features-title {
            font-size: 20px;
            font-weight: 700;
            margin: 24px 0 12px;
            color: var(--text-color);
        }
        
        .features-list {
            list-style: none;
            display: grid;
            gap: 8px;
        }
        
        .features-list li {
            padding: 8px 0;
            position: relative;
            padding-left: 24px;
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        .features-list li:before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent-color);
            font-weight: 700;
            font-size: 16px;
        }

        /* Download and Content Locker Modals */
        .download-modal, .content-locker-modal {
            display: none;
            padding: 24px;
            text-align: center;
        }
        
        .progress-container {
            width: 160px;
            height: 160px;
            position: relative;
            margin: 0 auto 24px;
        }
        
        .progress-circle {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: conic-gradient(var(--primary-color) 0%, var(--border-color) 0%);
            position: relative;
        }
        
        .progress-circle::before {
            content: '';
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            bottom: 12px;
            background: var(--card-bg);
            border-radius: 50%;
        }
        
        .progress-info {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        
        .progress-percentage {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-color);
        }
        
        .progress-status {
            font-size: 14px;
            color: var(--text-muted);
            margin-top: 6px;
        }
        
        .download-message {
            font-size: 16px;
            color: var(--text-color);
            margin-bottom: 20px;
            font-weight: 500;
        }

        .content-locker-modal {
            border-radius: 20px;
            overflow: hidden;
            background: var(--gradient-card);
        }

        .locker-header {
            position: relative;
            height: 140px;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .locker-game-icon {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            margin-bottom: 10px;
            object-fit: cover;
        }

        .locker-game-title {
            color: white;
            font-size: 18px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .locker-content {
            padding: 20px;
        }

        .locker-message {
            color: var(--text-color);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
            background: var(--bg-tertiary);
            padding: 16px;
            border-radius: 10px;
            border-left: 3px solid var(--primary-color);
        }

        .locker-offers {
            background: var(--bg-tertiary);
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            border: 1px solid var(--border-color);
        }

        .offer-item {
            display: flex;
            align-items: center;
            background: var(--primary-light);
            border: 2px solid var(--primary-color);
            border-radius: 10px;
            padding: 16px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .offer-item:hover {
            background: var(--card-hover);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
        }

        .offer-item:last-child {
            margin-bottom: 0;
        }

        .offer-text {
            flex: 1;
            text-align: center;
            color: var(--text-color);
            font-size: 16px;
            font-weight: 500;
        }

        .offer-arabic {
            color: var(--primary-color);
            font-weight: 600;
            text-align: center;
        }

        @media (max-width: 320px) {
            .container {
                padding: 12px;
            }
            
            header {
                padding: 12px 16px;
                flex-direction: column;
                gap: 8px;
            }
            
            .logo {
                order: 1;
                align-self: flex-start;
            }
            
            .theme-toggle {
                order: 2;
                align-self: flex-end;
                position: absolute;
                top: 12px;
                right: 16px;
            }
            
            .search-container {
                order: 3;
                width: 100%;
                max-width: none;
                margin: 8px 0 0 0;
            }
            
            .logo-text {
                font-size: 16px;
            }
            
            .nav-tabs {
                padding: 4px;
                margin: 16px 0;
            }
            
            .nav-tab {
                padding: 10px 16px;
                font-size: 13px;
                min-width: 70px;
            }
            
            .grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .card-image {
                height: 100px;
            }
            
            .card-title {
                font-size: 13px;
            }
            
            .section-title {
                font-size: 20px;
            }
            
            .slider-container {
                height: 180px;
            }
            
            .slide-title {
                font-size: 18px;
            }
            
            .slide-desc {
                font-size: 12px;
            }
        }

        @media (min-width: 321px) and (max-width: 480px) {
            .container {
                padding: 14px;
            }
            
            header {
                padding: 14px 18px;
                flex-wrap: wrap;
            }
            
            .search-container {
                order: 3;
                width: 100%;
                margin: 10px 0 0 0;
            }
            
            .nav-tabs {
                margin: 18px 0;
            }
            
            .nav-tab {
                padding: 11px 18px;
                font-size: 13px;
            }
            
            .grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 14px;
            }
            
            .card-image {
                height: 110px;
            }
            
            .slider-container {
                height: 200px;
            }
            
            .slide-title {
                font-size: 20px;
            }
        }

        /* Medium Phones - 481px to 768px */
        @media (min-width: 481px) and (max-width: 768px) {
            .container {
                padding: 16px;
            }
            
            header {
                padding: 16px 20px;
            }
            
            .search-container {
                max-width: 300px;
                margin: 0 16px;
            }
            
            .nav-tab {
                padding: 12px 20px;
                font-size: 14px;
            }
            
            .grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
            }
            
            .card-image {
                height: 120px;
            }
            
            .section-title {
                font-size: 22px;
            }
            
            .slider-container {
                height: 220px;
            }
            
            .slide-title {
                font-size: 22px;
            }
        }

        /* Tablets - 769px to 1024px */
        @media (min-width: 769px) and (max-width: 1024px) {
            .grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 18px;
            }
            
            .card-image {
                height: 140px;
            }
            
            .slider-container {
                height: 260px;
            }
        }

        @media (min-width: 1025px) {
            .grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 24px;
            }
            
            .card-image {
                height: 180px;
            }
            
            .slider-container {
                height: 280px;
            }
            
            .search-container {
                max-width: 500px;
                margin: 0 20px;
            }
        }

        @media screen and (orientation: landscape) and (max-height: 600px) {
            .slider-container {
                height: 160px;
            }
            
            .slide-title {
                font-size: 18px;
            }
            
            .slide-desc {
                font-size: 12px;
            }
            
            .modal {
                max-height: 95vh;
            }
            
            .modal-banner {
                height: 120px;
            }
        }

        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .logo img, .modal-icon img, .card-image img {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }
