

/* Backdrop overlay */
.popup-backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

/* Centered card */
.popup-card {
    position: relative;
    background: #1e293b;
    border-radius: 12px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    top: 30%;
    margin: 1px auto;
}

/* Icon styling */
.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#successfulTransaction .popup-icon {
    background: #22c55e;
    animation: iconScale 0.3s ease;
}

#failedTransaction .popup-icon {
    background: #ef4444;
    animation: iconShake 0.4s ease;
}

.popup-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

/* Text styling */
.popup-card h2 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.popup-card p {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #f8fafc;
    left: 50%;
    top: 50%;
}

.popup-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.popup-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

@keyframes iconScale {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes iconShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}
