/* Payment Notification Styles */
.payment-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.payment-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.notification-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 300px;
    max-width: 400px;
    border: 3px solid transparent;
}

.success-notification .notification-content {
    border-color: #28a745;
    background: linear-gradient(135deg, #fff 0%, #f8fff9 100%);
}

.error-notification .notification-content {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
}

.success-notification .notification-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.success-notification .notification-icon .fa-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.success-notification .notification-icon .fa-check-circle {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 1.5rem;
    background: white;
    border-radius: 50%;
    padding: 2px;
}

.error-notification .notification-icon {
    animation: shake 0.5s ease-in-out;
}

.notification-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.success-notification h4 {
    color: #28a745;
}

.error-notification h4 {
    color: #dc3545;
}

.notification-content p {
    color: #666;
    margin-bottom: 15px;
}

.notification-content .spinner-border {
    width: 2rem;
    height: 2rem;
    margin: 10px auto;
}

.notification-content .small {
    font-size: 0.875rem;
    color: #888;
}

/* Animations */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Backdrop overlay */
.payment-notification::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-content {
        margin: 20px;
        min-width: auto;
        max-width: calc(100vw - 40px);
        padding: 25px 20px;
    }
    
    .notification-icon {
        font-size: 2.5rem;
    }
}

/* Button styling for error notifications */
.error-notification .btn {
    margin-top: 10px;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.error-notification .btn:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
    transform: translateY(-1px);
}