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

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

.success-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

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

.success-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
}

.success-modal__close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.success-modal__icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.success-modal__icon-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.3);
}

.success-modal__icon-circle i {
    font-size: 48px;
    color: #ffffff;
    animation: checkmarkBounce 0.6s ease-out 0.3s both;
}

.success-modal__ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #28a745;
    transform: translate(-50%, -50%);
    animation: rippleEffect 1.5s ease-out infinite;
    opacity: 0;
}

.success-modal__ripple:nth-child(2) {
    animation-delay: 0.5s;
}

.success-modal__title {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.success-modal__message {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.success-modal__btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.25);
}

.success-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.35);
}

.success-modal__btn:active {
    transform: translateY(0);
}

.success-modal__confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
    opacity: 0;
}

/* Animations */
@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 10px 50px rgba(40, 167, 69, 0.5);
    }
}

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

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .success-modal {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .success-modal__icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .success-modal__icon-circle i {
        font-size: 38px;
    }
    
    .success-modal__title {
        font-size: 24px;
    }
    
    .success-modal__message {
        font-size: 15px;
    }
    
    .success-modal__btn {
        padding: 14px 35px;
        font-size: 14px;
    }
}
