/* ==========================================================
   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(92vw, 820px);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,.9), 0 0 0 1px rgba(180,255,0,.15);
    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 {
    min-height: 340px;
    background-color: #111;
    background-image:
        radial-gradient(ellipse 70% 55% at 50% 100%, rgba(100,220,0,.28) 0%, transparent 70%),
        url(''); /* filled dynamically via JS */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wbp-banner-content {
    display: flex;
    align-items: center;
    min-height: 340px;
    padding: 40px 48px;
}

.wbp-text-block {
    max-width: 420px;
}

/* Title — heavy grunge style */
.wbp-title {
    text-transform: uppercase;
    color: #f9ff19;
    margin: 0 0 1.5rem;
    font-size: 4.5rem;
    font-family: var(--tg-berlin-font-family);
    line-height: 0.9;
    text-shadow: -1px 5px 0px rgba(100, 100, 0, 1);
}

/* Subtitle */
.wbp-subtitle {
    font-family: var(--tg-body-font-family);
    font-size: clamp(16px, 2.8vw, 22px);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 1px 1px 4px #000;
    margin: 0 0 1.5rem;
}

.wbp-highlight {
    color: #c8f000;
}

/* ---------- "Try Now" Button ---------- */
.wbp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #c8f000;
    color: #000 !important;
    text-decoration: none !important;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: filter .2s, transform .2s;
    /* The SVG shapes the button visually */
    width: 197px;
    height: 60px;
}
.wbp-btn span {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    color: #000;
}
.wbp-btn svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.wbp-btn svg .cls-1 {
    stroke: rgba(0,0,0,.35);
}
.wbp-btn svg .cls-2 {
    fill: rgba(0,0,0,.18);
}
.wbp-btn:hover {
    filter: brightness(1.12);
    transform: scale(1.04);
}
.wbp-btn:active {
    transform: scale(.97);
}

/* ============================================================
   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: #c8f000;
    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: #c8f000; }

/* 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: #c8f000;
    box-shadow: 0 0 0 2px rgba(200,240,0,.15);
}

/* Submit button */
.wbp-submit-btn {
    width: 100%;
    margin-top: 8px;
    background: #c8f000;
    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: #c8f000;
    text-decoration: none;
}
.wbp-login-link a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 580px) {
    .wbp-banner-content,
    .wbp-register-inner {
        padding: 28px 22px;
    }
    #wbp-step-banner {
        min-height: 300px;
    }
    .wbp-btn {
        width: 160px;
        height: 50px;
        font-size: 13px;
    }
}
