@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: visibility 0s linear 0.3s;
    backdrop-filter: blur(0px);
}

.success-modal.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    animation: modalFadeIn 0.4s ease-out forwards;
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.success-modal.active .modal-content {
    animation: modalContentSlideIn 0.5s ease-out 0.1s forwards;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: #2ecc71;
}

.modal-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
}

.modal-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.modal-close {
    display: inline-block;
    padding: 12px 32px;
    background: #8A2BE2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #9B4DEB;
}