.modal-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-popup.active {
    display: flex;
}

.modal-popup.visible {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-popup.visible .modal-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-popup:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-body img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-action {
    margin: 0;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: #000;
    color: #fff;
    transition: background 0.2s ease;
}

.popup-action:hover {
    background: #222;
}