        :root {
            --primary: #9055FD;
            --primary-glow: rgba(144, 85, 253, 0.3);
            --success: #56CA00;
            --info: #16B1FF;
            --warning: #FFB400;
            --error: #FF4C51;
            --bg-dark: #28243d;
            --glass-bg: rgba(43, 33, 76, 0.5);
            --glass-border: rgba(255, 255, 255, 0.05);
        }

        body {
            font-family: 'Cairo', sans-serif;
            background-color: var(--bg-dark);
            color: #f9fafb;
            height: 100vh;
            overflow: hidden;
        }

        .en-font {
            font-family: 'Outfit', sans-serif;
        }

        /* Cinematic Background */
        .app-hero-bg {
            position: fixed;
            inset: 0;
            background-size: cover;
            background-position: center top;
            z-index: -2;
            transition: opacity 0.4s ease-in-out;
            background-attachment: fixed;
        }

        .app-surface-overlay {
            position: fixed;
            inset: 0;
            background: radial-gradient(circle at center, transparent 0%, rgba(7, 10, 15, 0.95) 100%);
            z-index: -1;
        }

        /* Modern Premium Navbar */
        /* --- PREMIUM NAVBAR: RECONSTRUCTED FOR RTL STABILITY --- */
        .chic-navbar {
            background: transparent !important;
            border-bottom: none !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            z-index: 1000;
            height: 90px;
            display: flex;
            align-items: center;
        }

        .navbar-content {
            width: 100%;
            max-width: 1800px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
        }

        /* Group: Nav-Left (Brand + Main Tabs) */
        .nav-left {
            display: flex;
            align-items: center;
            gap: 3rem;
            flex-shrink: 0;
        }

        /* Brand Styling */
        .brand-section {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            cursor: pointer;
            flex-shrink: 0;
        }

        .brand-logo-box {
            width: 52px;
            height: 52px;
            background: linear-gradient(135deg, #9055FD 0%, #6842EF 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 0;
            box-shadow: 0 0 25px rgba(144, 85, 253, 0.4);
        }

        .brand-info {
            display: flex;
            flex-direction: column;
            line-height: 1.1;
        }

        .brand-name {
            font-size: 1.25rem;
            font-weight: 900;
            color: #fff;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .brand-motto {
            font-size: 0.7rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 4px;
        }

        /* Navigation Links (Tabs) */
        .nav-tabs {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .tab-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.85rem 1.5rem;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            cursor: pointer;
            white-space: nowrap;
        }

        .tab-item i {
            font-size: 1.1rem;
            opacity: 0.6;
        }

        .tab-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .tab-item.active {
            background: rgba(144, 85, 253, 0.15);
            border-bottom: 2px solid #9055FD;
            color: #fff;
        }

        .tab-item.active i {
            color: #9055FD;
            opacity: 1;
        }

        /* Group: Nav-Right (Status + Actions) */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-shrink: 0;
        }

        /* Status Integrated Plate */
        .dashboard-status {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.5rem;
            gap: 0.5rem;
        }

        .status-segment {
            display: flex;
            align-items: center;
            padding: 0.5rem 1rem;
            gap: 1rem;
        }

        /* Balance Segment */
        .status-balance-badge {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .balance-title {
            font-size: 0.65rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.3);
            text-transform: uppercase;
            margin-bottom: 3px;
        }

        .balance-amount {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .balance-cur {
            font-size: 0.8rem;
            font-weight: 700;
            color: #56CA00;
        }

        .balance-val {
            font-size: 1.3rem;
            font-weight: 800;
            color: #fff;
            font-family: 'Outfit', sans-serif;
            line-height: 1;
        }

        /* User Segment */
        .status-user-badge {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .user-rect-id {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #16B1FF 0%, #0d96e0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 900;
            font-size: 0.9rem;
            box-shadow: 0 0 15px rgba(22, 177, 255, 0.3);
        }

        .user-details {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
            align-items: flex-start;
        }

        .user-details-name {
            font-size: 0.95rem;
            font-weight: 800;
            color: #fff;
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-details-rank {
            font-size: 0.65rem;
            font-weight: 700;
            color: #F97316;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Primary Action Buttons */
        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .nav-btn {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            transform: translateY(-3px);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .nav-btn.active {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid white !important;
            border-radius: 0 !important;
            color: #fff;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
        }

        .nav-btn.btn-exit:hover {
            background: rgba(255, 76, 81, 0.15);
            color: #FF4C51;
            border-color: rgba(255, 76, 81, 0.3);
        }

        /* Mobile View: Toggle Button */
        .btn-mobile-nav {
            display: none;
            width: 48px;
            height: 48px;
            align-items: center;
            justify-content: center;
            background: rgba(144, 85, 253, 0.1);
            border: 1px solid rgba(144, 85, 253, 0.3);
            color: #fff;
            cursor: pointer;
            transition: 0.3s;
        }

        .btn-mobile-nav:active { scale: 0.95; }

        /* --- GRADUAL RESPONSIVENESS --- */
        
        /* Tablet & Large Mobile Landscape */
        @media (max-width: 1400px) {
            .nav-left { gap: 1.5rem; }
            .brand-motto { display: none; }
        }

        @media (max-width: 1200px) {
            .navbar-content { padding: 0 1.5rem; }
            .tab-item span { display: none; } /* Hide text, keep icons */
            .tab-item { padding: 0.85rem 1.25rem; }
            /* Keep user text on mobile */
            .status-segment { padding: 0.5rem; gap: 0.5rem; }
        }

        @media (max-width: 1024px) {
            .nav-tabs { display: none; }
            .dashboard-status { display: none; }
            .btn-mobile-nav { display: flex; }
            .navbar-actions { gap: 0.5rem; }
        }

        @media (max-width: 480px) {
            .navbar-content { padding: 0 1rem; }
            .brand-name { font-size: 1rem; }
            .brand-logo-box { width: 44px; height: 44px; }
            .nav-btn { width: 42px; height: 42px; }
        }

        /* Mobile Fullscreen Menu */
        .nav-mobile-overlay {
            position: fixed;
            inset: 0;
            top: 90px;
            background: #080c12;
            z-index: 900;
            display: none;
            flex-direction: column;
            padding: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
        }

        .nav-mobile-overlay.active { 
            display: flex;
            opacity: 1;
        }

        .mobile-link {
            padding: 1.5rem;
            font-size: 1.25rem;
            font-weight: 800;
            color: #fff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: 0.3s;
        }

        .mobile-link:active { background: rgba(255, 255, 255, 0.05); }

        .mobile-link.current {
            color: #9055FD;
            background: rgba(144, 85, 253, 0.05);
            border-right: 4px solid #9055FD;
        }

        /* Persistent Mobile Bottom Status */
        .mobile-bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: #0a0f19;
            border-top: 2px solid rgba(255, 255, 255, 0.05);
            z-index: 800;
            display: none; /* Desktop hidden */
            align-items: center;
            justify-content: space-between;
            padding: 0 1.5rem;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        }

        @media (max-width: 1024px) {
            .mobile-bottom-bar { display: flex; }
            body { padding-bottom: 70px; } /* Space for bottom bar */
        }

        .glass-panel {
            background: var(--glass-bg);
            backdrop-filter: blur(30px);
            border: 1px solid var(--glass-border);
            border-radius: 0;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .materio-icon-box {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-center: center;
            border-radius: 8px;
            font-size: 1.25rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        /* Premium Game Card */
        .product-card-item {
            position: relative;
            aspect-ratio: 2 / 3;
            border-radius: 0;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: #0f172a;
            perspective: 1000px;
            cursor: pointer;
        }

        .card-inner {
            width: 100%;
            height: 100%;
            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            transform-style: preserve-3d;
            background-size: cover;
            background-position: center;
        }

        .product-card-item:hover .card-inner {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s;
        }

        .product-card-item:hover .card-image {
            transform: scale(1.05);
        }

        .slide-image {
            transition: opacity 0.8s ease;
        }

        .slide-title {
            transition: opacity 0.5s ease;
        }

        .package-slideshow-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(144, 85, 253, 0.8) 0%, rgba(144, 85, 253, 0.2) 50%, transparent 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.25rem;
            z-index: 5;
        }

        .slide-fade-enter {
            opacity: 0;
            transform: translateY(5px);
        }

        .slide-fade-active {
            opacity: 1;
            transform: translateY(0);
            transition: all 0.5s ease;
        }

        .card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(20, 15, 35, 0.95) 0%, rgba(20, 15, 35, 0.2) 60%, transparent 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.25rem;
            opacity: 1;
            transition: background 0.3s;
        }

        .card-actions {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s;
            opacity: 0;
        }

        .product-card-item:hover .card-actions {
            max-height: 250px;
            margin-top: 0.75rem;
            opacity: 1;
        }

        /* Custom Scrollbar - Thin with spacing */
        .custom-scroll::-webkit-scrollbar {
            width: 3px;
        }

        .custom-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .custom-scroll::-webkit-scrollbar-thumb {
            background: #CCCCCC;
            border-radius: 0;
        }

        .custom-scroll::-webkit-scrollbar-thumb:hover {
            background: #DDDDDD;
        }

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

            100% {
                background-position: 200% 0;
            }
        }

        .loading-shimmer {
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
        }

        /* Tab Visibility */
        .tab-section {
            display: none !important;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.4s ease;
        }

        .tab-section.active {
            display: block !important;
            opacity: 1;
            transform: translateY(0);
        }

        section#section-games.tab-section.active {
            display: flex !important;
        }

        /* Package Details Modal Styling */
        #package-detail-modal {
            backdrop-filter: blur(25px);
            background: rgba(7, 10, 15, 0.8);
            z-index: 1100;
        }

        .package-modal-content {
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(40px);
            box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
            animation: modalSlideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
        }

        .close-modal-btn {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            z-index: 50;
            cursor: pointer;
            width: 3rem;
            height: 3rem;
            border-radius: 0;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-modal-btn:hover {
            background: rgba(239, 68, 68, 0.2);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }

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

        .included-game-mini {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }

        .included-game-mini:hover {
            background: rgba(249, 115, 22, 0.05);
            border-color: rgba(249, 115, 22, 0.3);
            transform: translateY(-5px);
        }
