/* 🔥 tło (ciemne przyciemnienie) */
#promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* aktywny */
#promo-popup.active {
    opacity: 1;
    pointer-events: all;
}

/* 🔥 box (ten sam vibe co promoblock) */
.promo-popup-content {
    position: relative;

    background: linear-gradient(180deg, rgba(30, 0, 0, 0.5), rgba(10, 0, 0, 0.8));
    border-radius: 12px;
    padding: 20px;

    border: 1px solid rgba(255, 0, 0, 0.25);

    box-shadow:
        0 0 25px rgba(255, 50, 0, 0.25),
        0 6px 25px rgba(0, 0, 0, 0.7);

    max-width: 90%;
    max-height: 90%;

    animation: popupFade 0.5s ease;
}

/* obrazek */
.promo-popup-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    display: block;
}

/* ❌ krzyżyk */
.promo-popup-close {
    position: absolute;
    top: 25px;
    right: 25px;

    font-size: 22px;
    color: #fff;
    cursor: pointer;

    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 6px 10px;

    transition: all 0.2s ease;
}

/* hover */
.promo-popup-close:hover {
    background: rgba(255, 60, 0, 0.8);
    transform: scale(1.1);
}

/* animacja wejścia */
@keyframes popupFade {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}