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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a2332 0%, #2d3e52 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 550px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* Logo */
.logo {
    width: 140px;
    height: 40px;
    background: linear-gradient(90deg, #9b59ff 0%, #00d4ff 100%);
    border-radius: 20px;
    margin: 0 auto 30px;
}

/* Typography */
h1 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.subtitle {
    font-size: 18px;
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 15px;
}

.description {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #4a9eff 0%, #00d4ff 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.4);
}

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

/* Custom Select */
.custom-select {
    width: 100%;
    padding: 16px;
    background: #2a3544;
    border: 1px solid #3d4b5f;
    border-radius: 8px;
    color: #4a9eff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234a9eff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.custom-select:focus {
    outline: none;
    border-color: #4a9eff;
}

.custom-select option {
    background: #2a3544;
    color: white;
}

/* Loading Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #4a9eff;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; opacity: 0.3; }
.loading-dots span:nth-child(2) { animation-delay: 0.1s; opacity: 0.5; }
.loading-dots span:nth-child(3) { animation-delay: 0.2s; opacity: 0.7; }
.loading-dots span:nth-child(4) { animation-delay: 0.3s; opacity: 0.9; }
.loading-dots span:nth-child(5) { animation-delay: 0.4s; opacity: 1; }

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #d4a574 0%, #7c9ba8 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e0b886 0%, #8fb0bf 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 30px;
    border: 4px solid rgba(16, 185, 129, 0.3);
}

.success-title {
    color: #10b981;
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
}

/* Status List */
.status-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
}

.checkmark {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(74, 158, 255, 0.3);
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

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

/* Warning Box */
.warning-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.warning-icon {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.warning-title {
    color: #fbbf24;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.warning-box p {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* Screen 2 specific */
#screen2 {
    background: rgba(45, 62, 82, 0.5);
    border-radius: 16px;
    padding: 35px;
}

/* Help Text */
.help-text {
    color: #4a9eff;
    font-size: 13px;
    text-align: center;
    margin-top: -15px;
    margin-bottom: 25px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.help-text:hover {
    color: #00d4ff;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, #1a2332 0%, #2d3e52 100%);
    border-radius: 16px;
    padding: 35px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-title {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.popup-steps {
    margin-top: 20px;
}

.popup-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-step:last-of-type {
    border-bottom: none;
}

.step-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(90deg, #4a9eff 0%, #00d4ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    color: #d1d5db;
    font-size: 16px;
}

.step-text strong {
    color: white;
    font-weight: 600;
}

.popup-info {
    margin-top: 25px;
    padding: 15px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 28px;
    }
    
    .container {
        padding: 10px;
    }
    
    #screen2 {
        padding: 25px;
    }
    
    .popup-content {
        padding: 25px;
    }
    
    .popup-title {
        font-size: 20px;
    }
}
