/* Popup Modal Styles - Smooth Animation */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup-container {
    background: white;
    border-radius: 2rem;
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.popup-overlay.active .popup-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--nb-primary), var(--nb-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulseIcon 0.5s ease 0.2s both;
}

@keyframes pulseIcon {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-icon i {
    font-size: 2rem;
    color: white;
}

.popup-container h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nb-ink);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.4s ease 0.1s both;
}

.popup-container p {
    color: var(--nb-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.4s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.4s ease 0.3s both;
}

.popup-btn {
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.popup-btn:active::before {
    width: 300px;
    height: 300px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, var(--nb-teal), var(--nb-sky));
    color: white;
    border: none;
}

.popup-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 214, 160, 0.35);
}

.popup-btn-primary:active {
    transform: translateY(0);
}

.popup-btn-secondary {
    background: var(--nb-primary);
    color: white;
    border: none;
}

.popup-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.35);
}

.popup-btn-secondary:active {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--nb-subtle);
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: var(--nb-pink);
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* Ripple effect for buttons */

.popup-btn {
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .popup-container {
        padding: 1.5rem;
    }
    .popup-buttons {
        flex-direction: column;
    }
    .popup-btn {
        padding: 0.8rem;
    }
}
