/* =========================================================
PROMOTION
========================================================= */

.rb-promote-page {
    min-width: 0;
}

.rb-promote-header {
    margin-bottom: 26px;
}

.rb-promote-form {
    display: grid;
    gap: 22px;
}


/* Premium intro
--------------------------------------------------------- */

.rb-promote-intro {
    position: relative;

    display: grid;
    gap: 28px;

    margin-bottom: 22px;
    padding: 34px;

    overflow: hidden;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #111318,
            #242933
        );

    border-radius: 14px;
}

.rb-promote-intro::after {
    content: "★";

    position: absolute;
    top: -58px;
    right: -18px;

    font-size: 220px;
    font-weight: 900;
    line-height: 1;

    color:
        rgba(
            255,
            255,
            255,
            .035
        );

    pointer-events: none;
}

.rb-promote-intro__content {
    position: relative;
    z-index: 1;

    max-width: 720px;
}

.rb-promote-intro__badge {
    display: inline-flex;
    align-items: center;

    margin-bottom: 14px;
    padding: 7px 11px;

    color: #f4d47a;

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;

    background:
        rgba(
            255,
            255,
            255,
            .08
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .12
        );

    border-radius: 999px;
}

.rb-promote-intro h2 {
    max-width: 650px;

    margin: 0 0 12px;

    color: #fff;

    font-size: clamp(
        27px,
        4vw,
        40px
    );

    line-height: 1.08;
    letter-spacing: -.035em;
}

.rb-promote-intro__content > p {
    max-width: 650px;

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            .7
        );

    font-size: 15px;
    line-height: 1.65;
}


/* Benefits
--------------------------------------------------------- */

.rb-promote-benefits {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.rb-promote-benefit {
    min-width: 0;
    padding: 18px;

    background:
        rgba(
            255,
            255,
            255,
            .055
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .09
        );

    border-radius: 10px;
}

.rb-promote-benefit > span {
    display: block;

    margin-bottom: 11px;

    color: #f4d47a;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.rb-promote-benefit strong {
    display: block;

    margin-bottom: 6px;

    color: #fff;

    font-size: 14px;
}

.rb-promote-benefit p {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            .62
        );

    font-size: 12px;
    line-height: 1.55;
}


/* Kicker
--------------------------------------------------------- */

.rb-promote-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--rb-primary);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .09em;
    text-transform: uppercase;
}


/* Package selection
--------------------------------------------------------- */

.rb-promote-selection {
    padding: 30px;
}

.rb-promote-packages {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 24px;
}

.rb-promote-package {
    position: relative;

    min-width: 0;

    cursor: pointer;
}

.rb-promote-package input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.rb-promote-package > span {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 7px;

    min-height: 172px;

    padding: 20px;

    background: var(--rb-background);

    border: 2px solid var(--rb-border);
    border-radius: 11px;

    transition:
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.rb-promote-package:hover > span {
    transform: translateY(-2px);

    border-color: #b9bdc4;

    box-shadow:
        0 7px 18px
        rgba(0, 0, 0, .06);
}

.rb-promote-package input:focus-visible + span {
    outline:
        3px solid
        color-mix(
            in srgb,
            var(--rb-primary) 18%,
            transparent
        );

    outline-offset: 2px;
}

.rb-promote-package input:checked + span {
    border-color: var(--rb-primary);

    background:
        color-mix(
            in srgb,
            var(--rb-primary) 4%,
            var(--rb-background)
        );

    box-shadow:
        0 8px 22px
        color-mix(
            in srgb,
            var(--rb-primary) 10%,
            transparent
        );
}

.rb-promote-package__check {
    position: absolute;
    top: 14px;
    right: 14px;

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

    width: 25px;
    height: 25px;

    color: transparent;

    font-size: 13px;
    font-style: normal;
    font-weight: 900;

    background: var(--rb-surface);

    border: 1px solid var(--rb-border);
    border-radius: 999px;

    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease;
}

.rb-promote-package input:checked + span
.rb-promote-package__check {
    color: #fff;
    background: var(--rb-primary);
    border-color: var(--rb-primary);
}

.rb-promote-package small {
    padding-right: 34px;

    color: var(--rb-text-muted);

    font-size: 10px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rb-promote-package strong {
    padding-right: 30px;

    font-size: 18px;
    line-height: 1.25;
}

.rb-promote-package b {
    margin-top: auto;

    color: var(--rb-primary);

    font-size: 27px;
    line-height: 1;
}

.rb-promote-package em {
    color: var(--rb-text-muted);

    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}


/* Payment explanation
--------------------------------------------------------- */

.rb-promote-payment-info {
    display: grid;

    grid-template-columns:
        minmax(180px, .7fr)
        minmax(0, 1.5fr);

    gap: 26px;

    margin-top: 6px;
    padding: 22px;

    background:
        color-mix(
            in srgb,
            var(--rb-surface) 65%,
            var(--rb-background)
        );

    border: 1px solid var(--rb-border);
    border-radius: 10px;
}

.rb-promote-payment-info__heading span {
    display: block;

    margin-bottom: 6px;

    color: var(--rb-text-muted);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rb-promote-payment-info__heading strong {
    display: block;

    max-width: 240px;

    font-size: 16px;
    line-height: 1.35;
}


/* Steps
--------------------------------------------------------- */

.rb-promote-steps {
    display: grid;
    gap: 12px;
}

.rb-promote-steps > div {
    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr);

    gap: 11px;
    align-items: center;
}

.rb-promote-steps span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #fff;

    font-size: 11px;
    font-weight: 900;

    background: #23262d;

    border-radius: 999px;
}

.rb-promote-steps p {
    margin: 0;

    color: var(--rb-text-muted);

    font-size: 13px;
    line-height: 1.45;
}


/* Submit
--------------------------------------------------------- */

.rb-promote-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;

    margin-top: 24px;
    padding-top: 22px;

    border-top: 1px solid var(--rb-border);
}

.rb-promote-submit .rb-button {
    flex: 0 0 auto;

    min-height: 50px;
    padding-right: 24px;
    padding-left: 24px;
}

.rb-promote-submit p {
    order: -1;

    max-width: 400px;
    margin: 0 auto 0 0;

    color: var(--rb-text-muted);

    font-size: 12px;
    line-height: 1.45;
}


/* Payment
--------------------------------------------------------- */

.rb-promote-payment {
    display: grid;
    gap: 20px;
}

.rb-promote-payment__body {
    display: grid;

    grid-template-columns:
        minmax(220px, .65fr)
        minmax(0, 1.35fr);

    gap: 30px;
    align-items: start;
}

.rb-promote-payment__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.rb-promote-payment__qr span {
    color: var(--rb-text-muted);

    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.rb-promote-payment__qr img {
    display: block;

    width: min(
        280px,
        100%
    );
    height: auto;

    padding: 12px;

    background: #fff;

    border: 1px solid var(--rb-border);
    border-radius: 10px;
}

.rb-promote-payment__details {
    display: grid;
    gap: 0;

    margin: 0;
}

.rb-promote-payment__details > div {
    display: grid;

    grid-template-columns:
        minmax(125px, .4fr)
        minmax(0, 1fr);

    gap: 20px;

    padding: 14px 0;

    border-bottom: 1px solid var(--rb-border);
}

.rb-promote-payment__details > div:first-child {
    padding-top: 0;
}

.rb-promote-payment__details dt {
    color: var(--rb-text-muted);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rb-promote-payment__details dd {
    min-width: 0;
    margin: 0;

    overflow-wrap: anywhere;
}

.rb-promote-payment__notice {
    margin-top: 26px;
    padding: 16px 18px;

    background:
        color-mix(
            in srgb,
            var(--rb-primary) 4%,
            var(--rb-background)
        );

    border: 1px solid var(--rb-border);
    border-left:
        3px solid
        var(--rb-primary);

    border-radius: 8px;
}

.rb-promote-payment__notice strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}

.rb-promote-payment__notice p {
    margin: 0;

    color: var(--rb-text-muted);

    font-size: 12px;
    line-height: 1.5;
}


/* Active state
--------------------------------------------------------- */

.rb-promote-active {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rb-promote-active__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    color: #f4d47a;

    font-size: 24px;

    background:
        linear-gradient(
            135deg,
            #111318,
            #30353e
        );

    border-radius: 12px;
}

.rb-promote-active .rb-account-card__heading {
    margin: 0;
}


/* Back
--------------------------------------------------------- */

.rb-promote-back {
    display: inline-flex;

    margin-top: 22px;

    color: var(--rb-text-muted);

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.rb-promote-back:hover {
    color: var(--rb-text);
}


/* =========================================================
TABLET
========================================================= */

@media (max-width: 900px) {

    .rb-promote-intro {
        padding: 28px;
    }

    .rb-promote-payment-info {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rb-promote-payment-info__heading strong {
        max-width: none;
    }

    .rb-promote-payment__body {
        grid-template-columns:
            minmax(190px, .6fr)
            minmax(0, 1.4fr);

        gap: 22px;
    }
}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 767px) {

    .rb-promote-header {
        margin-bottom: 20px;
    }

    .rb-promote-intro {
        gap: 22px;

        padding: 24px 20px;

        border-radius: 12px;
    }

    .rb-promote-intro::after {
        top: -30px;
        right: -20px;

        font-size: 150px;
    }

    .rb-promote-benefits {
        grid-template-columns: 1fr;
    }

    .rb-promote-benefit {
        padding: 15px;
    }

    .rb-promote-selection {
        padding: 20px;
    }

    .rb-promote-packages {
        grid-template-columns: 1fr;
    }

    .rb-promote-package > span {
        min-height: 145px;
    }

    .rb-promote-payment-info {
        padding: 18px;
    }

    .rb-promote-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .rb-promote-submit .rb-button {
        width: 100%;
        justify-content: center;
    }

    .rb-promote-submit p {
        order: 0;

        max-width: none;
        margin: 0;

        text-align: center;
    }

    .rb-promote-payment__body {
        grid-template-columns: 1fr;
    }

    .rb-promote-payment__details > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .rb-promote-active {
        align-items: flex-start;
    }
}


/* =========================================================
SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .rb-promote-intro {
        padding: 22px 18px;
    }

    .rb-promote-intro h2 {
        font-size: 28px;
    }

    .rb-promote-selection {
        padding: 18px;
    }

    .rb-promote-payment-info {
        padding: 16px;
    }

    .rb-promote-active {
        gap: 14px;
    }

    .rb-promote-active__icon {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }
}