/* Success Popup Modal Styles */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 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: #1a2332;
    border-radius: 14px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: scale(0.95);
    transition: transform 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.success-popup-overlay.show .success-popup {
    transform: scale(1);
}

.success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    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: #cbd5e1;
    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: #0f172a;
    border: 1px solid #334155;
    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: #94a3b8;
    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: #3b82f6;
    color: white;
}

.success-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.success-btn-secondary {
    background: #334155;
    color: #f1f5f9;
    border: 1px solid #475569;
}

.success-btn-secondary:hover {
    background: #475569;
    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;
    }
}
