/* Container reserved in DOM at page load, hidden purely via CSS —
   never inserted into the DOM at trigger time, so no CLS on open. */

/* ===== Modal Wrapper ===== */
.gsb-bbp-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}
.gsb-bbp-modal.is-open {
    display: block;
}

/* ===== Overlay ===== */
.gsb-bbp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 99998;
}

/* ===== Popup Box ===== */
.gsb-bbp-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 420px);
    min-height: 240px;
    background: #183f73; /* у тон header/footer */
    border: 2px solid #0073e0;
    border-radius: 18px;
    padding: 40px 48px;
    box-sizing: border-box;
    text-align: center;
    color: #fafafa;
    box-shadow: 0 0 40px rgba(0, 115, 224, 0.7),
                0 0 80px rgba(0, 115, 224, 0.5);
    animation: popIn 0.5s ease;
    z-index: 99999;
}

/* ===== Close Button ===== */
.gsb-bbp-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
}
.gsb-bbp-close:hover {
    color: #fff;
}

/* ===== Brand Title ===== */
.gsb-bbp-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #ffd166, #ffe29a, #ffd166);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 209, 102, 0.7),
                 0 0 40px rgba(255, 209, 102, 0.5);
    margin-bottom: 18px;
}

/* ===== Bonus Text ===== */
.gsb-bbp-bonus-text {
    margin: 0 0 24px;
    font-size: 1.1rem;
    color: #fafafa;
}

/* ===== CTA Button ===== */
.gsb-bbp-cta {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 30px;
    background: linear-gradient(90deg, #0073e0, #4da6ff);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gsb-bbp-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 115, 224, 0.7),
                0 0 40px rgba(0, 115, 224, 0.5);
}

/* ===== Body Lock ===== */
body.bbp-lock {
    overflow: hidden;
}

/* ===== Animation ===== */
@keyframes popIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}