.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
}

.popup-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    padding: 48px 24px 24px;
    position: relative;
    border: 1px solid var(--border-color);
    animation: popup-in 0.2s ease;
}

.popup-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #22c55e;
    display: grid;
    place-items: center;
    color: white;
    font-size: 32px;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

.popup-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.popup-message {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.popup-btn {
    width: 100%;
    border: none;
    background: #22c55e;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.popup-card.error .popup-icon {
    background: #ef4444;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.popup-card.error .popup-btn {
    background: #ef4444;
}

@keyframes popup-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
