/* Success Modal Styles - Premium Cyberpunk Edition */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* Highest Z-Index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-top: 1px solid rgba(0, 240, 255, 0.5);
    /* Highlight Top */
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Ambient Glow Element */
.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(0, 240, 255, 0.05) 60deg,
            transparent 120deg);
    z-index: -1;
    animation: rotateAmbient 8s linear infinite;
}

@keyframes rotateAmbient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    position: relative;
}

.modal-icon i {
    font-size: 3rem;
    color: var(--accent-aqua, #00FFFF);
    animation: checkmarkPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-aqua, #00FFFF);
    opacity: 0;
    animation: ripple 1.5s infinite;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #00FFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.modal-message {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Premium Button */
.btn-modal {
    background: linear-gradient(90deg, #00F0FF, #0066FF);
    color: #FFFFFF;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    padding: 0.9rem 3rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5);
    filter: brightness(1.1);
}

.btn-modal:active {
    transform: translateY(0);
}

/* Light Mode Support */
[data-theme="light"] .modal-content {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-title {
    background: linear-gradient(135deg, #0F172A 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .modal-message {
    color: #64748B;
}

[data-theme="light"] .modal-icon {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .modal-icon i {
    color: #3B82F6;
}

[data-theme="light"] .modal-icon::after {
    border-color: #3B82F6;
}