/* Payment Success Modal - Center Screen with Animation */

.payment-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
    opacity: 0;
}

.payment-success-overlay.show {
    opacity: 1;
}

.payment-success-modal {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(16, 185, 129, 0.2);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.8);
}

.payment-success-modal.show {
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

.success-checkmark::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    opacity: 0.3;
    animation: ripple 1.5s infinite;
}

.success-checkmark i {
    font-size: 48px;
    color: white;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Modal Content */
.payment-success-modal h2 {
    color: #10B981;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(to right, #10B981, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-success-modal .invoice-number {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 24px;
}

.payment-success-modal .amount-display {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
}

.payment-success-modal .amount-label {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 8px;
}

.payment-success-modal .amount-value {
    color: #10B981;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
}

.payment-success-modal .credits-value {
    color: #34D399;
    font-size: 18px;
    font-weight: 600;
}

.payment-success-modal .success-message {
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1.6;
    margin: 20px 0;
}

.payment-success-modal .btn-continue {
    background: linear-gradient(to right, #10B981, #059669);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
}

.payment-success-modal .btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

/* Close Button */
.payment-success-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-success-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .payment-success-modal {
        padding: 32px 24px;
        width: 95%;
    }

    .success-checkmark {
        width: 80px;
        height: 80px;
    }

    .success-checkmark i {
        font-size: 40px;
    }

    .payment-success-modal h2 {
        font-size: 24px;
    }

    .payment-success-modal .amount-value {
        font-size: 28px;
    }
}