#spm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.7);
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Active state */
#spm-overlay.active {
    opacity: 1;
    visibility: visible;
}

#spm-popup {
/*    background: linear-gradient(135deg, #c6bfff, #a18cff);*/
    background: linear-gradient(255deg, #4d7fb9, #7b61ff, #5956e9);
    width: 900px;
    max-width: 95%;
    padding: 25px;
    text-align: center;
    border-radius: 14px;
    position: relative;

    box-shadow: 0 20px 60px rgba(0,0,0,0.4);

    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
}

/* Animation */
#spm-overlay.active #spm-popup {
    transform: translateY(0) scale(1);
}

#spm-popup img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #fff;
}

/* Close Button */
#spm-close {
    position: absolute;
    top: -12px;
    right: -12px;
    cursor: pointer;
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
/*    font-weight: bold;*/
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 25px;
    font-weight: 400;
}

/* Buttons */
.spm-buttons {
    margin-top: 20px;
}

.spm-btn {
    display: inline-block;
    margin: 6px;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.primary {
    background: #F4E56D;
    border: 1px solid #111111;
    color: #000;
}

.primary:hover {
    background: #fff;
    border: 1px solid #111111;
    color: #000 !important;
}

.secondary {
    background: #FFFFFF;
    border: 1px solid #111111;
    color: #000;
}

.secondary:hover {
    background: #F4E56D;
    border: 1px solid #111111;
    color: #000 !important;
}

/* Mobile */
@media (max-width: 600px) {
    #spm-popup {
        padding: 15px;
    }

    .spm-btn {
        width: 45%;
     
    }
    .spm-btn {
    display: inline-block;
        margin: 4px;
        padding: 10px 3px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        transition: 0.3s;
        font-size: 15px;
    }
}