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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #000;
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            text-align: center;
            max-width: 400px;
            width: 100%;
        }

        .logo {
            margin-bottom: 20px;
        }

        .logo-text {
            font-size: 64px;
            font-weight: 300;
            letter-spacing: -2px;
            position: relative;
            display: inline-block;
        }

        .logo-accent {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 120px;
            font-weight: bold;
            color: #ff4d2a;
            z-index: -1;
            opacity: 0.9;
        }

        .welcome {
            font-size: 48px;
            font-weight: 300;
            margin-bottom: 60px;
            letter-spacing: -1px;
        }

        .instruction {
            font-size: 18px;
            margin-bottom: 40px;
            opacity: 0.8;
            line-height: 1.4;
        }

        .form-container {
            margin-bottom: 40px;
        }

        .input-field {
            width: 100%;
            padding: 20px 24px;
            font-size: 16px;
            background: #1a1a1a;
            border: 2px solid #333;
            border-radius: 12px;
            color: #fff;
            margin-bottom: 24px;
            transition: all 0.3s ease;
            outline: none;
        }

        .input-field::placeholder {
            color: #666;
        }

        .input-field:focus {
            border-color: #4285f4;
            background: #222;
            box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
        }

        .activate-btn {
            width: 100%;
            background: #4285f4;
            color: white;
            border: none;
            padding: 20px 24px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .activate-btn:hover {
            background: #3367d6;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
        }

        .activate-btn:active {
            transform: translateY(0);
        }

        .activate-btn:disabled {
            background: #333;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .error-message {
            color: #ff4444;
            font-size: 14px;
            margin-top: 12px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .error-message.show {
            opacity: 1;
        }

        .success-message {
            color: #4caf50;
            font-size: 16px;
            margin-top: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .success-message.show {
            opacity: 1;
        }

        @media (max-width: 480px) {
            .logo-text {
                font-size: 48px;
            }
            
            .logo-accent {
                font-size: 90px;
            }
            
            .welcome {
                font-size: 36px;
            }
            
            .instruction {
                font-size: 16px;
            }
        }

        /* Loading animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
        }

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


        /* Auto open styling */

        
        .redirect-message {
            text-align: center;
            max-width: 500px;
            padding: 40px;
            background: #1a1a1a;
            border-radius: 16px;
            border: 1px solid #333;
        }

        .redirect-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .redirect-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 16px;
            color: #4285f4;
        }

        .redirect-description {
            font-size: 16px;
            color: #ccc;
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .manual-open-btn {
            background: #4285f4;
            color: white;
            border: none;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 8px;
        }

        .manual-open-btn:hover {
            background: #3367d6;
            transform: translateY(-2px);
        }

        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #4285f4;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
        }

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

        .hidden {
            display: none;
        }

/* Popup Modal Styles */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.9);
    transition: all 0.3s ease;
    position: relative;
}

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

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.modal-icon.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.modal-icon.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.modal-icon.loading {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.modal-title.success {
    color: #4caf50;
}

.modal-title.error {
    color: #f44336;
}

.modal-title.loading {
    color: #4285f4;
}

/* Modal Body */
.modal-body {
    text-align: center;
    margin-bottom: 32px;
}

.modal-message {
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

.modal-details {
    font-size: 14px;
    color: #888;
    background: #222;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
    text-align: left;
    font-family: 'Courier New', monospace;
}

/* Modal Footer */
.modal-footer {
    text-align: center;
}

.modal-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
    min-width: 80px;
}

.modal-btn:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.modal-btn.secondary {
    background: #333;
    color: #ccc;
}

.modal-btn.secondary:hover {
    background: #444;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #333;
    color: #fff;
}

/* Loading animation for modal */
.modal-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Success checkmark animation */
.modal-checkmark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4caf50;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.modal-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.modal-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4caf50;
    }
}

/* Error X animation */
.modal-error-x {
    width: 28px;
    height: 28px;
    position: relative;
}

.modal-error-x::before,
.modal-error-x::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
}

.modal-error-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-error-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .modal {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-message {
        font-size: 14px;
    }
}