/* Overlay */
#custom-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup box */
.popup-content {
    position: relative;
    background: #fff;
    padding: 24px;
    width: 100%;
    max-width: 640px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Title */
.popup-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #4A3E8C;
}

/* Image */
.popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Footer title */
.popup-footer-title {
    margin-top: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #444;
    text-transform: uppercase;
}

/* Raise the copyright symbol */
.popup-footer-title .copyright {
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 1px;
}

/* Buttons container */
.popup-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

/* Main buttons grow equally */
.popup-actions .popup-btn {
    flex: 1 1 0;
}

/* Close button stays compact */
.popup-actions .close-popup-btn {
    flex: 0 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}
/* Popup buttons - single class */
.popup-btn {
    flex: 1 1 calc(33.333% - 8px);
    padding: 12px 22px;
    background: #4A3E8C;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

/* Hover */
.popup-btn:hover {
    background: #322A63;
}

/* Mobile */
@media (max-width: 600px) {
    .popup-title {
        font-size: 18px;
    }

    .popup-btn {
        flex: 1 1 100%;
    }
}
