.bonus-popup {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s ease, visibility .26s ease;
}

.bonus-popup.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.bonus-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 25, 20, .86);
    backdrop-filter: blur(9px);
}

.bonus-popup__dialog {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(230px, .82fr) minmax(330px, 1.18fr);
    width: min(760px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 215, 23, .45);
    border-radius: 20px;
    background: linear-gradient(135deg, #003a31 0%, #004739 52%, #0b2547 100%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .62), 0 0 0 5px rgba(162, 0, 255, .13), 0 0 65px rgba(160, 0, 255, .35);
    transform: translateY(18px) scale(.96);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.bonus-popup.is-visible .bonus-popup__dialog {
    transform: translateY(0) scale(1);
}

.bonus-popup__dialog::before {
    position: absolute;
    z-index: -1;
    top: -130px;
    right: -110px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(177, 0, 255, .55), rgba(177, 0, 255, 0) 70%);
    content: "";
}

.bonus-popup__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
    overflow: hidden;
    padding: 26px;
    background: #002b24;
}

.bonus-popup__visual::before {
    position: absolute;
    inset: -26px;
    background: url("../images/marakumibet/first-deposit.webp") center / cover no-repeat;
    filter: blur(22px) saturate(1.3);
    opacity: .42;
    content: "";
}

.bonus-popup__visual::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 30, 24, .12), rgba(0, 25, 20, .68));
    content: "";
}

.bonus-popup__visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 240, 138, .45);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
    object-fit: contain;
}

.bonus-popup__visual-label {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(0, 48, 40, .74);
    color: #fff08a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.bonus-popup__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 42px 38px;
    color: #f7fbf8;
}

.bonus-popup__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(0, 42, 34, .72);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.bonus-popup__close:hover {
    background: #a100ff;
    transform: rotate(90deg);
}

.bonus-popup__close svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.4; }

.bonus-popup__eyebrow {
    margin: 0 0 10px;
    color: #ffd517;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
}

.bonus-popup h2 {
    max-width: 390px;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: .98;
    letter-spacing: -.035em;
}

.bonus-popup h2 span { color: #ffd517; }

.bonus-popup__description {
    max-width: 365px;
    margin: 17px 0 0;
    color: #d2e3dc;
    font-size: 16px;
    line-height: 1.52;
}

.bonus-popup__facts {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 20px 0 18px;
    padding: 0;
    list-style: none;
}

.bonus-popup__facts li {
    position: relative;
    padding-left: 20px;
    color: #e8f1ed;
    font-size: 14px;
    line-height: 1.35;
}

.bonus-popup__facts li::before {
    position: absolute;
    top: .42em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d65a;
    box-shadow: 0 0 12px rgba(0, 214, 90, .8);
    content: "";
}

.bonus-popup__timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 215, 23, .24);
    border-radius: 9px;
    background: rgba(0, 28, 23, .5);
    color: #c6d8d0;
    font-size: 12px;
}

.bonus-popup__timer strong {
    color: #fff08a;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .06em;
}

.bonus-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    background: linear-gradient(100deg, #b000f0, #7a00df);
    box-shadow: 0 10px 24px rgba(147, 0, 229, .35);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .035em;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.bonus-popup__cta:hover {
    box-shadow: 0 13px 30px rgba(177, 0, 255, .62);
    filter: brightness(1.09);
    transform: translateY(-2px);
}

.bonus-popup__cta svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; }

.bonus-popup__later {
    align-self: center;
    margin-top: 15px;
    padding: 3px 8px;
    border: 0;
    background: transparent;
    color: #a3bbb1;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.bonus-popup-open { overflow: hidden; }

@media (max-width: 620px) {
    .bonus-popup { padding: 14px; }
    .bonus-popup__dialog { grid-template-columns: 1fr; max-width: 430px; }
    .bonus-popup__visual { min-height: 150px; max-height: 180px; }
    .bonus-popup__visual { padding: 14px; }
    .bonus-popup__visual-label { display: none; }
    .bonus-popup__visual-label { bottom: 14px; left: 16px; }
    .bonus-popup__content { padding: 27px 23px 24px; }
    .bonus-popup h2 { font-size: 32px; }
    .bonus-popup__description { margin-top: 12px; font-size: 14px; }
    .bonus-popup__facts { margin: 16px 0 14px; }
}
