/* ==========================================================
   Welcome Bonus Popup — popup.css
   ========================================================== */

/* ---------- Overlay ---------- */
.wbp-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}
.wbp-overlay.wbp-visible {
    opacity: 1;
}

/* ---------- Backdrop ---------- */
.wbp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ---------- Modal shell ---------- */
.wbp-modal {
    position: relative;
    z-index: 1;

    width: min(90vw, 960px);

    aspect-ratio: 6 / 4;

    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 0 80px rgba(0,0,0,.95),
        0 0 0 1px rgba(255,255,255,.12);

    transform: translateY(30px) scale(.97);
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.wbp-overlay.wbp-visible .wbp-modal {
    transform: translateY(0) scale(1);
}

/* ---------- Close button ---------- */
.wbp-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.wbp-close:hover {
    background: rgba(180,255,0,.25);
    transform: scale(1.1);
}

/* ============================================================
   STEP 1 — Banner
   ============================================================ */

#wbp-step-banner {

    width:100%;
    height:100%;

    background-color:#111;

    background-image:
        url('');

    background-size:cover;
    background-position:center;

    background-repeat:no-repeat;

}


.wbp-banner-content {

    width:100%;
    height:100%;

    display:flex;

    justify-content:flex-end;
    align-items:center;

    padding:40px 7% 40px 40px;

    box-sizing:border-box;

}


.wbp-text-block {

    width:30%;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    text-align:center;

}


/* Title */

.wbp-title {

    text-transform:uppercase;

    color:#fff;

    margin:0 0 15px;


    font-size:clamp(36px,5vw,64px);

    font-family:var(--tg-berlin-font-family);

    line-height:.85;


    text-shadow:
        0 4px 15px rgba(0,0,0,.8);

}


/* Subtitle */

.wbp-subtitle {

    font-family:var(--tg-body-font-family);

    font-size:clamp(15px,2vw,22px);

    font-weight:700;

    text-transform:uppercase;

    color:#fff;

    line-height:1.2;

    margin:0 0 25px;

    text-shadow:
        0 2px 5px #000;

}


.wbp-highlight {

    color:#f39c12;

    font-size:1.25em;

}



/* Button */

.wbp-btn {

    display:inline-flex;

    align-items:center;
    justify-content:center;


    height:52px;

    padding:0 35px;


    background:#f39c12;

    color:#000 !important;

    border-radius:6px;


    font-family:Arial,sans-serif;

    font-size:15px;

    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;

    text-decoration:none !important;


    transition:
        transform .2s ease,
        filter .2s ease;


    box-shadow:
        0 8px 25px rgba(243,156,18,.35);

}


.wbp-btn:hover {

    transform:translateY(-2px);

    filter:brightness(1.15);

}

/* ============================================================
   STEP 2 — Registration form
   ============================================================ */
#wbp-step-register {
    background: #0e0e0e;
    padding: 0;
}

.wbp-register-inner {
    padding: 44px 48px 40px;
}

.wbp-register-title {
    font-family: var(--tg-body-font-family);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: .06em;
    color: #f39c12;
    text-shadow: 2px 2px 0 #000;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.wbp-register-sub {
    color: #aaa;
    font-size: 14px;
    margin: 0 0 28px;
    font-family: Arial, sans-serif;
}

/* Form messages */
#wbp-form-messages {
    margin-bottom: 16px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}
#wbp-form-messages.wbp-error  { color: #ff5050; }
#wbp-form-messages.wbp-success { color: #f39c12; }

/* Fields */
.wbp-field {
    margin-bottom: 16px;
}
.wbp-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
}
.wbp-field input {
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    color: #fff;
    font-size: 15px;
    padding: 11px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: Arial, sans-serif;
}
.wbp-field input:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(200,240,0,.15);
}

/* Submit button */
.wbp-submit-btn {
    width: 100%;
    margin-top: 8px;
    background: #f39c12;
    color: #000;
    border: none;
    border-radius: 3px;
    font-family: var(--tg-body-font-family);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 15px;
    cursor: pointer;
    transition: filter .2s, transform .15s;
}
.wbp-submit-btn:hover  { filter: brightness(1.1); }
.wbp-submit-btn:active { transform: scale(.98); }
.wbp-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Login link */
.wbp-login-link {
    text-align: center;
    color: #555;
    font-size: 13px;
    margin: 16px 0 0;
    font-family: Arial, sans-serif;
}
.wbp-login-link a {
    color: #f39c12;
    text-decoration: none;
}
.wbp-login-link a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
 
@media (max-width:650px){

    .wbp-modal {

        width:94vw;
        aspect-ratio:6 / 4;

    }


    #wbp-step-banner {

        min-height:380px;

        background-position:center center;

        position:relative;

    }


    /* Затемнение изображения */
    #wbp-step-banner::before {

        content:"";

        position:absolute;

        inset:0;

        background:
            rgba(0,0,0,.55);

        z-index:1;

    }


    .wbp-banner-content {

        position:relative;

        z-index:2;

        width:100%;
        height:100%;

        min-height:380px;

        display:flex;

        justify-content:center;
        align-items:center;

        padding:25px;

        box-sizing:border-box;

    }


    /* Убираем ограничение 30% */
    .wbp-text-block {

        width:100%;

        max-width:320px;

        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:center;

        text-align:center;

    }


    .wbp-title {

        font-size:42px;

        line-height:.9;

        margin-bottom:15px;

    }


    .wbp-subtitle {

        font-size:18px;

        margin-bottom:22px;

    }


    .wbp-btn {

        height:48px;

        padding:0 30px;

        font-size:14px;

    }


}