/* RewardBot / EventBot Promotion Tools */

.rb-promo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 22px;
    align-items: stretch;
    background: linear-gradient(135deg, #081426 0%, #14325f 100%);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    padding: clamp(26px, 4vw, 52px);
    color: #ffffff;
    margin-bottom: 24px;
}

.rb-promo-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 5vw, 86px);
    line-height: .95;
    text-transform: uppercase;
    margin: 10px 0 18px;
}

.rb-promo-hero p {
    color: rgba(255,255,255,.88);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.42;
}

.rb-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.rb-promo-hero-card {
    background: #ffffff;
    color: #061226;
    border-radius: 26px;
    padding: 26px;
    align-self: center;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.rb-promo-hero-card span {
    display: block;
    color: #536783;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.rb-promo-hero-card strong {
    display: block;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.05;
    margin-bottom: 12px;
}

.rb-promo-hero-card p {
    color: #334155;
    font-size: 16px;
}

.rb-promo-selector {
    margin-bottom: 22px;
}

.rb-promo-selector label {
    display: block;
    color: #536783;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.rb-promo-selector-row,
.rb-promo-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.rb-promo-selector select,
.rb-promo-copy-row input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 12px 13px;
    background: #ffffff;
    color: #061226;
}

.rb-promo-campaign-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
    gap: 20px;
    margin-bottom: 22px;
}

.rb-promo-campaign-card h2,
.rb-promo-ai-card h2,
.rb-promo-link-card h2,
.rb-promo-copy-card h2 {
    margin-top: 8px;
}

.rb-promo-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.rb-promo-ai-card {
    border: 2px solid #ffd000;
    box-shadow: 0 18px 54px rgba(255, 208, 0, .14);
}

.rb-promo-ai-card ul {
    color: #334155;
    line-height: 1.65;
    padding-left: 20px;
}

.rb-promo-link-card {
    margin-bottom: 22px;
}

.rb-promo-muted {
    color: #64748b;
    margin: 9px 0 0;
    font-size: 13px;
}

.rb-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.rb-promo-copy-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rb-promo-copy-card-wide {
    grid-column: 1 / -1;
}

.rb-promo-copy-text {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
    color: #061226;
    line-height: 1.45;
    resize: vertical;
    min-height: 155px;
}

.rb-promo-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.rb-promo-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999999;
    background: #061226;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 1000;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.rb-promo-notice.rb-promo-notice-show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1050px) {
    .rb-promo-hero,
    .rb-promo-campaign-grid,
    .rb-promo-next-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .rb-promo-grid,
    .rb-promo-selector-row,
    .rb-promo-copy-row {
        grid-template-columns: 1fr;
    }

    .rb-promo-copy-card-wide {
        grid-column: auto;
    }
}


/* AI Marketer Upsell Popup */

.rb-ai-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 6, 23, 0.88);
    box-sizing: border-box;
}

.rb-ai-popup-overlay.rb-ai-popup-open {
    display: flex;
}

.rb-ai-popup-box {
    width: min(96vw, 1040px);
    height: min(92vh, 880px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.rb-ai-popup-head {
    background: #081426;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.rb-ai-popup-head strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.rb-ai-popup-close {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #081426;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
}

.rb-ai-popup-frame {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    border: 0;
    background: #ffffff;
}

html.rb-ai-popup-page-open,
body.rb-ai-popup-page-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .rb-ai-popup-overlay {
        padding: 12px;
    }

    .rb-ai-popup-box {
        width: 100%;
        height: 92vh;
        border-radius: 16px;
    }

    .rb-ai-popup-head {
        padding: 12px;
    }

    .rb-ai-popup-head strong {
        font-size: 16px;
    }
}


/* AI Marketer Upsell Popup - stable launcher */

.rb-ai-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 6, 23, 0.88);
    box-sizing: border-box;
}

.rb-ai-popup-overlay.rb-ai-popup-open {
    display: flex !important;
}

.rb-ai-popup-box {
    width: min(96vw, 1040px);
    height: min(92vh, 880px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.rb-ai-popup-head {
    background: #081426;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.rb-ai-popup-head strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.rb-ai-popup-close {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #081426;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
}

.rb-ai-popup-frame {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    border: 0;
    background: #ffffff;
}

html.rb-ai-popup-page-open,
body.rb-ai-popup-page-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .rb-ai-popup-overlay {
        padding: 12px;
    }

    .rb-ai-popup-box {
        width: 100%;
        height: 92vh;
        border-radius: 16px;
    }

    .rb-ai-popup-head {
        padding: 12px;
    }

    .rb-ai-popup-head strong {
        font-size: 16px;
    }
}


/* AI Marketer Popup Hard Fix */

.rb-ai-buy-btn {
    cursor: pointer;
}

.rb-ai-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px !important;
    background: rgba(2, 6, 23, 0.90) !important;
    box-sizing: border-box !important;
}

.rb-ai-popup-overlay.rb-ai-popup-open {
    display: flex !important;
}

.rb-ai-popup-box {
    width: min(96vw, 1100px) !important;
    height: min(92vh, 880px) !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.60) !important;
    display: flex !important;
    flex-direction: column !important;
}

.rb-ai-popup-head {
    background: #081426 !important;
    color: #ffffff !important;
    padding: 14px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 0 0 auto !important;
}

.rb-ai-popup-head strong {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.rb-ai-popup-close {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #081426 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.rb-ai-popup-frame {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    border: 0 !important;
    background: #ffffff !important;
}

html.rb-ai-popup-page-open,
body.rb-ai-popup-page-open {
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .rb-ai-popup-overlay {
        padding: 12px !important;
    }

    .rb-ai-popup-box {
        width: 100% !important;
        height: 92vh !important;
        border-radius: 16px !important;
    }

    .rb-ai-popup-head {
        padding: 12px !important;
    }

    .rb-ai-popup-head strong {
        font-size: 16px !important;
    }
}
