         :root {  
            --dark-bg: #0A0E1A;  
            --primary-purple: #9061F9;
            --download-purple: #8257e6;
            --primary-blue: #1e3a8a;  
            --dark-blue: #0f172a;  
            --light-blue: #dbeafe;  
            --white: #ffffff;  
            --gray: #374151;
            --success-green: #10b981;
            --error-red: #ef4444;
        }  
        
        * {
            box-sizing: border-box;
        }
        
        body {  
            font-family: 'Poppins', Arial, sans-serif; 
            margin: 0;
            padding: 0;  
            color: var(--white);  
            background: #0c0e1c; 
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }  

        header {  
            background-color: var(--dark-bg);  
            color: var(--white);  
            padding: 15px 20px;  
            display: flex;  
            justify-content: space-between;  
            align-items: center;
            position: relative;
            z-index: 100;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }  

        .logo img {
            max-height: 40px;
        }

        nav {  
            display: flex;  
            align-items: center;  
        }  

        nav ul {  
            list-style: none;  
            margin: 0;  
            padding: 0;  
            display: flex;  
        }  

        nav ul li {  
            margin-left: 20px;  
        }  

        nav ul li a {  
            color: var(--white);  
            text-decoration: none;  
            font-size: 1rem;  
            font-weight: 400;
            transition: color 0.3s ease;
        }  
        
        nav ul li a:hover {
            color: var(--primary-purple);
        }

        .burger {  
            display: none;  
            flex-direction: column;  
            cursor: pointer;  
            z-index: 101;
        }  

        .burger div {  
            width: 25px;  
            height: 3px;  
            background-color: var(--white);  
            margin: 4px 0;  
            transition: transform 0.3s ease, opacity 0.3s ease;  
        }  

        main {
            flex: 1;
            padding: 2rem 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .tabs {
            display: flex;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 5px;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .tab {
            padding: 10px 20px;
            cursor: pointer;
            margin-right: 10px;
            position: relative;
            color: var(--white);
            font-weight: 600;
            transition: color 0.3s ease;
        }
        
        .tab.active {
            color: var(--primary-purple);
        }
        
        .tab.active::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -7px;
            width: 100%;
            height: 3px;
            background-color: var(--primary-purple);
        }
        
        .content {
            display: none;
            padding: 20px 0;
        }
        
        .content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .download-section {
            margin-bottom: 2rem;
        }
        
        h2 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: var(--white);
            line-height: 1.2;
        }
        
        p {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.5;
        }
        
        .download-btn {
            display: inline-block;
            padding: 12px 32px;
            background-color: var(--download-purple);
            color: var(--white);
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            text-decoration: none;
            margin-bottom: 1.5rem;
            position: relative;
        }
        
        .download-btn:hover {
            background-color: #6f48c9;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(144, 97, 249, 0.4);
        }
        
        .download-btn:disabled {
            background-color: var(--gray);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .info {
            margin-top: 20px;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .install-link {
            color: var(--primary-purple);
            cursor: pointer;
            text-decoration: underline;
            margin-right: 20px;
            font-weight: 500;
            display: inline-block;
            margin-bottom: 10px;
        }
        
        .popup {
            display: none;
            position: fixed;
            background: var(--dark-bg);
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            z-index: 1001;
            width: 90%;
            max-width: 500px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--white);
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .popup h3 {
            margin-top: 0;
            color: var(--primary-purple);
        }
        
        .popup ol, .popup ul {
            margin-left: 10px;
            padding-left: 15px;
        }
        
        .popup li {
            margin-bottom: 10px;
        }
        
        .popup a {
            color: var(--primary-purple);
            text-decoration: none;
        }
        
        .popup a:hover {
            text-decoration: underline;
        }
        
        .popup button {
            display: block;
            margin: 20px 0 0 auto;
            padding: 10px 20px;
            background-color: var(--primary-purple);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .popup button:hover {
            background-color: #7d52d9;
        }
        
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            backdrop-filter: blur(3px);
        }

        .container {
            background: var(--dark-bg);
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            margin-top: 2rem;
        }
        
        .title {
            font-size: 1.6rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
            line-height: 1.4;
        }
        
        .description {
            font-size: 1.1rem;
            margin: 15px 0;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.5;
        }

        /* Auth Popups Styles */
        .auth-popup {
            background: var(--dark-bg);
            border: 2px solid var(--primary-purple);
        }
        
        .auth-popup h3 {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .auth-form {
            display: flex;
            flex-direction: column;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: var(--white);
            font-weight: 500;
        }
        
        .form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
            font-size: 1rem;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: var(--primary-purple);
            box-shadow: 0 0 0 2px rgba(144, 97, 249, 0.3);
        }
        
        .auth-buttons {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .auth-buttons button {
            flex: 1;
            margin: 0;
        }
        
        .cancel-btn {
            background-color: var(--gray) !important;
        }
        
        .cancel-btn:hover {
            background-color: #4b5563 !important;
        }
        
        .auth-links {
            text-align: center;
            margin-top: 15px;
        }
        
        .auth-links a {
            color: var(--primary-purple);
            text-decoration: none;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .auth-links a:hover {
            text-decoration: underline;
        }

        .error-message {
            color: var(--error-red);
            font-size: 0.9rem;
            margin-top: 5px;
        }

        .success-message {
            color: var(--success-green);
            font-size: 0.9rem;
            margin-top: 5px;
        }

        /* User Info Display - Improved */
        .user-info {
            display: none;
            align-items: center;
            gap: 12px;
            background: rgba(144, 97, 249, 0.1);
            padding: 8px 16px;
            border-radius: 25px;
            border: 1px solid rgba(144, 97, 249, 0.3);
            transition: all 0.3s ease;
        }
        
        .user-info.logged-in {
            display: flex;
        }
        
        .user-info:hover {
            background: rgba(144, 97, 249, 0.15);
            border-color: rgba(144, 97, 249, 0.5);
        }
        
        .user-welcome {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .user-email {
            color: var(--primary-purple);
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .logout-btn {
            background: var(--primary-purple);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 500;
            transition: all 0.3s ease;
            min-width: 60px;
        }
        
        .logout-btn:hover {
            background: #7d52d9;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(144, 97, 249, 0.3);
        }

        /* Login/Register buttons for when not logged in */
        .auth-buttons-header {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .login-btn, .register-btn {
            background: transparent;
            color: var(--white);
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 6px 12px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 500;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .login-btn:hover, .register-btn:hover {
            border-color: var(--primary-purple);
            color: var(--primary-purple);
            transform: translateY(-1px);
        }
        
        .register-btn {
            background: var(--primary-purple);
            border-color: var(--primary-purple);
        }
        
        .register-btn:hover {
            background: #7d52d9;
            color: white;
        }

        /* Responsive Design */
        @media (max-width: 900px) {
            h2 {
                font-size: 2.2rem;
            }
            
            .title {
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 768px) {  
            nav ul {  
                display: none;  
                flex-direction: column;  
                width: 100%;  
                background-color: var(--dark-bg);  
                position: fixed;  
                top: 0;  
                left: 0;  
                right: 0;
                bottom: 0;
                padding: 70px 30px 30px;
                z-index: 99;
                align-items: center;
                justify-content: flex-start;
            }  

            nav ul li {  
                margin: 15px 0;  
            }
            
            nav ul li a {
                font-size: 1.3rem;
            }

            .burger {  
                display: flex;  
            }
            
            .burger.toggle div:nth-child(1) {  
                transform: rotate(-45deg) translate(-5px, 6px);  
            }  

            .burger.toggle div:nth-child(2) {  
                opacity: 0;  
            }  

            .burger.toggle div:nth-child(3) {  
                transform: rotate(45deg) translate(-5px, -6px);  
            }  

            nav ul.nav-active {  
                display: flex;
                animation: slideIn 0.3s forwards;
            }
            
            @keyframes slideIn {
                from { opacity: 0; transform: translateY(-20px); }
                to { opacity: 1; transform: translateY(0); }
            }
            
            h2 {
                font-size: 2rem;
            }
            
            .container {
                padding: 25px;
            }
            
            main {
                padding: 1.5rem 1rem;
            }
            
            .user-info {
                padding: 6px 12px;
                gap: 8px;
            }
            
            .user-welcome {
                font-size: 0.8rem;
            }
            
            .user-email {
                font-size: 0.8rem;
            }
            
            .logout-btn {
                padding: 4px 8px;
                font-size: 0.75rem;
            }
        }
        
        @media (max-width: 580px) {
            .download-section h2 {
                font-size: 1.8rem;
            }
            
            .download-section p {
                font-size: 1.1rem;
            }
            
            .content h2 {
                font-size: 1.6rem;
            }
            
            .title {
                font-size: 1.3rem;
            }
            
            .description {
                font-size: 1rem;
            }
            
            .download-btn {
                padding: 10px 25px;
                font-size: 0.95rem;
                width: 100%;
                text-align: center;
            }
            
            .user-info {
                padding: 5px 10px;
                gap: 6px;
            }
            
            .user-welcome {
                display: none; /* Hide "Welcome" text on very small screens */
            }
            
            .logout-btn {
                padding: 3px 6px;
                font-size: 0.7rem;
            }
        }
        
        @media (max-width: 480px) {
            header {
                padding: 10px 15px;
            }
            
            .logo img {
                max-height: 35px;
            }
            
            .tabs {
                flex-direction: row;
                justify-content: space-between;
                margin-left: -1rem;
                margin-right: -1rem;
                padding: 0 1rem;
                border-bottom: none;
                background-color: rgba(10, 14, 26, 0.7);
            }
            
            .tab {
                flex: 1;
                text-align: center;
                margin-right: 0;
                padding: 12px 10px;
            }
            
            .tab.active::after {
                height: 2px;
                bottom: -2px;
            }
            
            .container {
                padding: 20px;
                margin-bottom: 30px;
            }
            
            .download-section h2 {
                font-size: 1.6rem;
            }
            
            .download-section p {
                font-size: 1rem;
            }
            
            .content h2 {
                font-size: 1.4rem;
            }
            
            p {
                font-size: 1rem;
            }
            
            .info p {
                font-size: 0.9rem;
            }
            
            .install-link {
                display: block;
                margin-bottom: 10px;
                font-size: 0.9rem;
            }
            
            .popup {
                padding: 25px 20px;
                border-radius: 8px;
                width: 95%;
            }
            
            .popup h3 {
                font-size: 1.3rem;
            }
            
            .popup li {
                font-size: 0.95rem;
            }

            .auth-buttons {
                flex-direction: column;
            }
            
            .user-info {
                padding: 4px 8px;
                gap: 4px;
                max-width: 150px;
            }
            
            .user-email {
                font-size: 0.7rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 80px;
            }
            
            .logout-btn {
                padding: 2px 4px;
                font-size: 0.65rem;
                min-width: 40px;
            }
        }
        
        @media (max-width: 360px) {
            .download-section h2 {
                font-size: 1.4rem;
            }
            
            h2 {
                font-size: 1.3rem;
            }
            
            .title {
                font-size: 1.1rem;
            }
            
            .tabs {
                margin-bottom: 1.5rem;
            }
            
            .tab {
                padding: 10px 5px;
                font-size: 0.9rem;
            }
            
            .user-info {
                max-width: 120px;
            }
            
            .user-email {
                max-width: 60px;
                font-size: 0.65rem;
            }
        } 