/* Payment Waiting Overlay */
.payment-waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-waiting-overlay.show {
    opacity: 1;
}

.waiting-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
}

/* Animated Spinner */
.waiting-spinner {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #667eea;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #10b981;
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #764ba2;
    animation-delay: 0.6s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.waiting-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.waiting-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.invoice-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 2rem 0;
    color: #667eea !important;
}

.invoice-info strong {
    color: #667eea;
    font-size: 1.2rem;
}

/* Waiting Steps */
.waiting-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step i {
    font-size: 2rem;
    color: #667eea;
}

.step span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.waiting-note {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 2rem;
    color: #fbbf24 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Success State */
.waiting-content.success .success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 0.6s ease;
}

.success-icon i {
    font-size: 4rem;
    color: white;
}

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

.license-key-box {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.license-key-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.key-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #667eea;
    letter-spacing: 2px;
    font-weight: 700;
}

.redirect-msg {
    color: #10b981 !important;
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* Failed State */
.waiting-content.failed .failed-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: failedShake 0.6s ease;
}

.failed-icon i {
    font-size: 4rem;
    color: white;
}

@keyframes failedShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-retry {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
}

/* Timeout State */
.waiting-content.timeout .timeout-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeout-icon i {
    font-size: 4rem;
    color: white;
}

.btn-account {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-account:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .waiting-content {
        padding: 2rem 1rem;
    }
    
    .waiting-steps {
        gap: 1rem;
    }
    
    .step i {
        font-size: 1.5rem;
    }
    
    .step span {
        font-size: 0.8rem;
    }
}
