/* ================================================================
   Promo Banner – Binance Design System
   Overlay popup: poster (left) + content (right)
   ================================================================ */

/* ── Overlay ── */
.promo-banner-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 14, 17, 0.55);
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 16px;
}

.promo-banner-overlay.is-visible {
    opacity: 1;
}

/* ── Main container ── */
.promo-banner {
    position: relative;
    display: flex;
    max-width: 920px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 8px 32px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-banner-overlay.is-visible .promo-banner {
    transform: translateY(0) scale(1);
}

/* ── Single column + inline QR (no left poster) ── */
.promo-banner--inline-qr {
    flex-direction: column;
    max-width: 500px;
}

.promo-banner--inline-qr .promo-banner__content {
    flex: 1 1 auto;
    width: 100%;
}

.promo-banner__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

.promo-banner__qr-frame {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px;
    line-height: 0;
}

.promo-banner__qr-frame img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.promo-banner__qr-tip {
    margin: 10px 0 0 0;
    font-family: var(--bn-font-body, Inter, system-ui, sans-serif);
    font-size: var(--bn-fs-caption, 0.88rem);
    color: #707a8a;
    line-height: 1.4;
}

/* ── Left poster ── */
/* Smart-fill: any uploaded poster aspect ratio renders fully (contain),
   the surrounding space is filled by the same image blurred. */
.promo-banner__poster {
    flex: 0 0 40%;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    background: var(--bn-canvas-dark);
    isolation: isolate;
}

.promo-banner__poster::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-image: var(--bn-img, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(36px) saturate(1.2) brightness(.75);
    transform: scale(1.2);
    z-index: 0;
    pointer-events: none;
}

.promo-banner__poster img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ── Right content ── */
.promo-banner__content {
    flex: 1;
    position: relative;
    padding: 36px 40px;
    background: #1e2329;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

/* ── Close button ── */
.promo-banner__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #929aa5;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.promo-banner__close:hover {
    background: #2b3139;
    color: #ffffff;
}

/* ── Countdown badge ── */
.promo-banner__countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #0b0e11;
    color: #929aa5;
    padding: 6px 16px;
    border-radius: 999px;
    font-family: var(--bn-font-body, Inter, system-ui, sans-serif);
    font-size: var(--bn-fs-caption, 0.88rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 20px;
}

.promo-banner__countdown-timer {
    color: #fcd535;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ── Overline ── */
.promo-banner__overline {
    display: block;
    font-family: var(--bn-font-body, Inter, system-ui, sans-serif);
    font-size: var(--bn-fs-caption, 0.88rem);
    font-weight: 400;
    color: #707a8a;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* ── Title ── */
.promo-banner__title {
    font-family: var(--bn-font-display, Georgia, serif);
    font-size: var(--bn-fs-title-md, 1.6rem);
    font-weight: 500;
    line-height: 1.20;
    color: #ffffff;
    margin: 0 0 8px 0;
}

/* ── Highlight text ── */
.promo-banner__highlight {
    font-family: var(--bn-font-display, Georgia, serif);
    font-size: var(--bn-fs-title-sm, 1.3rem);
    font-weight: 500;
    line-height: 1.30;
    color: #fcd535;
    margin: 0 0 20px 0;
}

/* ── Feature list ── */
.promo-banner__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-banner__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--bn-font-body, Inter, system-ui, sans-serif);
    font-size: var(--bn-fs-body-md, 14px);
    font-weight: 400;
    line-height: 1.50;
    color: #eaecef;
}

.promo-banner__check {
    flex-shrink: 0;
    color: #fcd535;
    margin-top: 2px;
}

.promo-banner__feat-hl {
    font-style: normal;
    font-weight: 500;
    color: #fcd535;
}

/* ── CTA button ── */
.promo-banner .promo-banner__cta,
a.promo-banner__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: #fcd535;
    color: #0a0a0a;
    font-family: var(--bn-font-body, Inter, system-ui, sans-serif);
    font-size: var(--bn-fs-button, 14px);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--bn-radius-md, 6px);
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto;
}

.promo-banner .promo-banner__cta:hover,
a.promo-banner__cta:hover {
    background: #f0b90b;
    color: #0a0a0a;
    text-decoration: none;
}

.promo-banner .promo-banner__cta:visited,
a.promo-banner__cta:visited {
    color: #0a0a0a;
}

.promo-banner--inline-qr .promo-banner__cta,
.promo-banner--inline-qr a.promo-banner__cta {
    margin-top: 20px;
}

/* ================================================================
   Responsive
   ================================================================ */

/* Tablet */
@media (max-width: 991.98px) {
    .promo-banner__poster {
        flex: 0 0 35%;
        min-height: 380px;
    }

    .promo-banner__content {
        padding: 28px 32px;
    }

    .promo-banner__title {
        font-size: 1.4rem;
    }

    .promo-banner__highlight {
        font-size: 1.15rem;
    }
}

/* Mobile – hide poster, content only */
@media (max-width: 767.98px) {
    .promo-banner {
        flex-direction: column;
        max-width: 440px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .promo-banner__poster {
        display: none;
    }

    .promo-banner__content {
        padding: 24px 24px 28px;
    }

    .promo-banner__countdown {
        margin-bottom: 16px;
    }

    .promo-banner__title {
        font-size: 1.3rem;
    }

    .promo-banner__highlight {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .promo-banner__features {
        margin-bottom: 20px;
        gap: 8px;
    }

    .promo-banner__features li {
        font-size: var(--bn-fs-body-sm, 0.94rem);
    }

    .promo-banner--inline-qr .promo-banner__qr-frame img {
        width: 140px;
        height: 140px;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .promo-banner-overlay {
        padding: 10px;
    }

    .promo-banner {
        border-radius: 20px;
    }

    .promo-banner__content {
        padding: 20px 20px 24px;
    }

    .promo-banner__title {
        font-size: 1.15rem;
    }

    .promo-banner__highlight {
        font-size: 1rem;
    }

    .promo-banner__cta {
        padding: 12px 20px;
        font-size: var(--bn-fs-body-sm, 0.94rem);
    }
}
