/* Backdrop */
.popup-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-bg.active {
    opacity: 1;
    pointer-events: auto;
}

/* Popup box */
.popup-box {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: #ffffff;
    padding: 30px 26px;
    border-radius: 16px;
    text-align: center;

    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);

    /* PERFECT MODAL SHADOW */
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 28px 60px rgba(0, 0, 0, 0.35);
}

/* Animate in */
.popup-bg.active .popup-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.close-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: #ffffff;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Heading */
#popup-content h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

/* Text */
#popup-content p {
    margin: 6px 0 18px;
    color: #475569;
    font-size: 15px;
}

/* Input */
.popup-box input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    outline: none;
    font-size: 15px;
    margin-bottom: 16px;
}

/* Button */
.ok-btn,
.popup-box button {
    padding: 10px 26px;
    background: #0d6efd;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

/* Link */
.popup-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
