#custom-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.6s ease;
    z-index: 9999;
}

#custom-popup.show {
    transform: scale(1);
}

.popup-content {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 25px;
    min-height: 220px;           /* ✅ Gives the bg image space to render */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    /* color: white; */
    overflow: hidden;            /* ✅ Keeps the overlay clipped to border-radius */
}

/* Dark overlay */
.popup-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    z-index: 0;
}

.popup-content * {
    position: relative;
    z-index: 1;
}

.popup-list {
    margin: 15px 0;
    padding-left: 20px;
}

.popup-list li {
    margin-bottom: 6px;
}

.buttons {
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-top: 15px;
}

.buttons.show {
    opacity: 1;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
}

.login {
    background: #2ecc71;
    color: white;
}

.signup {
    background: #ddd;
    color: black;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: white;
    z-index: 2;                  /* ✅ Ensures close button sits above overlay */
}

/* Mobile */
@media (max-width: 480px) {
    #custom-popup {
        width: 90%;
        right: 5%;
    }
}
