/* Success Popup Modal Styles */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 7, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.success-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-popup {
    background: #002244;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    border: 1px solid #01348f;
}

.success-popup-overlay.show .success-popup {
    transform: scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #01348f 0%, #000716 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(1, 52, 143, 0.3);
}

.success-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.success-message {
    font-size: 1rem;
    color: #cccccc;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.success-details {
    background: #000716;
    border: 1px solid #01348f;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 0 1.5rem 0;
    text-align: left;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.success-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 400;
}

.success-detail-item:last-child {
    margin-bottom: 0;
}

.success-detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.success-buttons {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.success-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.success-btn-primary {
    background: linear-gradient(135deg, #01348f 0%, #000716 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(1, 52, 143, 0.3);
}

.success-btn-primary:hover {
    background: linear-gradient(135deg, #000716 0%, #01348f 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(1, 52, 143, 0.4);
}

.success-btn-secondary {
    background: #002244;
    color: #ffffff;
    border: 1px solid #01348f;
}

.success-btn-secondary:hover {
    background: #01348f;
    transform: translateY(-1px);
}

/* Animations */
@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkDraw {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(0.8) rotate(-20deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .success-popup {
        padding: 2rem;
        margin: 1rem;
        max-width: 95%;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .success-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .success-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .success-message {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .success-details {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .success-detail-item {
        font-size: 0.95rem;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .success-detail-icon {
        font-size: 1.25rem;
    }
    
    .success-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .success-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .success-popup {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .success-title {
        font-size: 1.375rem;
    }
    
    .success-message {
        font-size: 0.95rem;
    }
    
    .success-detail-item {
        font-size: 0.9rem;
    }
}
