.hbp-root,
.hbp-root * {
    box-sizing: border-box;
}

.hbp-root:not(.hbp-inline) {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    pointer-events: none;
}

.hbp-root:not(.hbp-inline).is-open {
    visibility: visible;
    pointer-events: auto;
}

.hbp-overlay {
    position: absolute;
    inset: 0;
    background: var(--hbp-overlay, rgba(2,12,20,.72));
    opacity: 0;
    transition: opacity var(--hbp-duration, 350ms) ease;
}

.hbp-root.is-open .hbp-overlay {
    opacity: 1;
}

.hbp-shell {
    position: relative;
    z-index: 2;
    width: min(calc(100vw - 32px), var(--hbp-width, 760px));
    max-height: calc(100vh - 32px);
}

.hbp-panel {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--hbp-popup-bg, #fff);
    border-radius: var(--hbp-radius, 18px);
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
    opacity: 0;
    transform: translateY(0) scale(1);
    transition:
        opacity var(--hbp-duration, 350ms) ease,
        transform var(--hbp-duration, 350ms) cubic-bezier(.2,.75,.25,1);
    scrollbar-width: thin;
}

.hbp-root[data-animation="fade"] .hbp-panel {
    transform: none;
}
.hbp-root[data-animation="zoom"] .hbp-panel {
    transform: scale(.92);
}
.hbp-root[data-animation="slide-up"] .hbp-panel {
    transform: translateY(42px);
}
.hbp-root[data-animation="slide-down"] .hbp-panel {
    transform: translateY(-42px);
}
.hbp-root[data-animation="slide-left"] .hbp-panel {
    transform: translateX(48px);
}
.hbp-root[data-animation="slide-right"] .hbp-panel {
    transform: translateX(-48px);
}

.hbp-root.is-open .hbp-panel {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

.hbp-inline {
    position: relative;
    width: 100%;
}

.hbp-inline .hbp-shell {
    width: min(100%, var(--hbp-width, 760px));
    margin: 0 auto;
    max-height: none;
}

.hbp-inline .hbp-panel {
    opacity: 1;
    transform: none;
    max-height: none;
}

.hbp-close {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 20;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #123349;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
    transition: transform .2s ease, background .2s ease;
}

.hbp-close:hover {
    transform: rotate(90deg);
    background: #fff;
}

.hbp-banner {
    display: block;
    width: 100%;
    line-height: 0;
    background: #020913;
}

.hbp-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
}

.hbp-banner-placeholder {
    min-height: 230px;
    padding: 35px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 85% 30%, rgba(11,184,255,.28), transparent 28%),
        radial-gradient(circle at 15% 80%, rgba(23,231,255,.14), transparent 30%),
        linear-gradient(135deg, #020712 0%, #06152a 55%, #02263d 100%);
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

.hbp-banner-placeholder span {
    font-size: clamp(28px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -1px;
}

.hbp-banner-placeholder b {
    color: var(--hbp-accent, #0bb8ff);
}

.hbp-banner-placeholder small {
    margin-top: 12px;
    color: #49dcff;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hbp-content {
    padding: var(--hbp-padding, 30px);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--hbp-accent, #0bb8ff) 8%, transparent), transparent 30%),
        var(--hbp-popup-bg, #fff);
}

.hbp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--hbp-accent, #0bb8ff);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.hbp-eyebrow i,
.hbp-pill i {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--hbp-accent, #0bb8ff);
}

.hbp-title {
    margin: 0 0 10px;
    color: var(--hbp-heading, #0a2740);
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.8px;
}

.hbp-title span {
    color: var(--hbp-accent, #0bb8ff);
}

.hbp-description {
    margin: 0 0 20px;
    color: var(--hbp-text, #667988);
    font-size: 14px;
    line-height: 1.7;
}

.hbp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hbp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid var(--hbp-pill-border, #d9ebf4);
    border-radius: 999px;
    background: var(--hbp-pill-bg, #f1f8fc);
    color: var(--hbp-pill-text, #123349);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.hbp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hbp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: var(--hbp-button-radius, 10px);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.hbp-btn:hover {
    transform: translateY(-2px);
}

.hbp-btn-primary {
    flex: 1 1 260px;
    background: var(--hbp-button-bg, #063352);
    color: var(--hbp-button-text, #fff) !important;
    box-shadow: 0 10px 22px rgba(6,51,82,.18);
}

.hbp-btn-primary:hover {
    color: var(--hbp-button-text, #fff) !important;
    box-shadow: 0 14px 28px rgba(6,51,82,.25);
}

.hbp-btn-secondary {
    flex: 1 1 180px;
    background: var(--hbp-secondary-bg, #fff);
    color: var(--hbp-secondary-text, #0a2740) !important;
    border: 1px solid rgba(18,51,73,.15);
}

.hbp-note {
    margin: 14px 0 0;
    color: color-mix(in srgb, var(--hbp-text, #667988) 78%, #fff);
    font-size: 11px;
    line-height: 1.55;
}

.hbp-trigger {
    cursor: pointer;
}

body.hbp-lock {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .hbp-root:not(.hbp-inline) {
        padding: 10px;
        align-items: center;
    }

    .hbp-shell {
        width: min(calc(100vw - 20px), var(--hbp-width, 760px));
        max-height: calc(100vh - 20px);
    }

    .hbp-panel {
        max-height: calc(100vh - 20px);
        border-radius: min(var(--hbp-radius, 18px), 14px);
    }

    .hbp-content {
        padding: min(var(--hbp-padding, 30px), 22px);
    }

    .hbp-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .hbp-pills {
        gap: 8px;
        margin-bottom: 18px;
    }

    .hbp-pill {
        min-height: 32px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .hbp-actions {
        flex-direction: column;
    }

    .hbp-btn {
        width: 100%;
        min-height: 46px;
        font-size: 13px;
    }

    /* In the stacked (column) layout the desktop `flex: 1 1 260px/180px`
       would turn 260px/180px into each button's HEIGHT and stretch them.
       Reset so buttons size to their content instead. */
    .hbp-btn-primary,
    .hbp-btn-secondary {
        flex: 0 0 auto;
    }

    .hbp-banner-placeholder {
        min-height: 170px;
        padding: 30px 20px;
    }

    .hbp-banner-placeholder small {
        letter-spacing: 2px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hbp-overlay,
    .hbp-panel,
    .hbp-close,
    .hbp-btn {
        transition: none !important;
    }
}
