/* ============== IB BRAND PANEL — gold-tinted variant ============== */
.ib-brand {
    background: linear-gradient(135deg, #0a0a14 0%, #1a1530 55%, #2c2350 100%) !important;
}

.ib-brand::before {
    background: radial-gradient(720px 480px at 90% 10%, rgba(245, 183, 60, .24), transparent 60%),
    radial-gradient(620px 440px at 10% 95%, rgba(74, 144, 255, .18), transparent 60%) !important;
}

.ib-brand h2 .grad {
    background: linear-gradient(90deg, #f5d77a, #f5b73c, #f5d77a);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineText 4s linear infinite;
}

.ib-brand .auth-eyebrow {
    background: rgba(245, 183, 60, .10);
    border-color: rgba(245, 183, 60, .30);
    color: #f5d77a;
}

.ib-brand .auth-benefits li .b-ic {
    background: rgba(245, 183, 60, .14);
    border-color: rgba(245, 183, 60, .24);
    color: #f5d77a;
}

.ib-brand .auth-testimonial .av {
    background: linear-gradient(135deg, #f5b73c, #d4901c);
    color: #fff;
}

/* Floating cards positioning */
.af-1 {
    top: 70px;
    right: 40px;
    animation-delay: 0s;
}

.af-1 .af-ic {
    background: linear-gradient(135deg, #f5d77a, #d4901c);
    color: #4a3300 !important;
}

.af-2 {
    bottom: 100px;
    right: 50px;
    animation-delay: -2s;
}

.af-2 .af-ic {
    background: linear-gradient(135deg, #1abc88, #0d8a5f);
}

.af-3 {
    /* right-hand column with af-1 / af-2 so it never sits on top of the benefits text */
    top: 46%;
    right: 44px;
    animation-delay: -4s;
}

.af-3 .af-ic {
    background: linear-gradient(135deg, #4f8cff, #2950bd);
}

/* Commission highlight callout */
.commission-callout {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 183, 60, .18), rgba(245, 183, 60, .06));
    border: 1px solid rgba(245, 183, 60, .32);
    display: flex;
    align-items: center;
    gap: 16px;
}

.commission-callout .cc-ic {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5d77a, #d4af37);
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #4a3300;
    box-shadow: 0 8px 20px rgba(245, 183, 60, .35);
    flex-shrink: 0;
}

.commission-callout .cc-meta {
    flex: 1;
    min-width: 0;
}

.commission-callout .cc-eye {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f5d77a;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.commission-callout .cc-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.commission-callout .cc-title strong {
    color: #f5d77a;
    font-size: 19px;
}

/* Tier selector cards */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

@media (max-width: 560px) {
    .tier-grid {
        grid-template-columns: 1fr;
    }
}

.tier-card {
    position: relative;
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .25s var(--ease);
}

.tier-card:hover {
    border-color: var(--brand-2);
}

.tier-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tier-card.selected {
    background: linear-gradient(135deg, rgba(245, 183, 60, .10), rgba(245, 183, 60, .04));
    border-color: #d4901c;
    box-shadow: 0 6px 16px rgba(245, 183, 60, .18);
}

.tier-card .tc-ic {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: transform .25s var(--ease);
}

.tier-card.silver .tc-ic {
    background: linear-gradient(135deg, #a8b3c5, #6b7589);
}

.tier-card.gold .tc-ic {
    background: linear-gradient(135deg, #f5d77a, #d4af37);
    color: #4a3300;
}

.tier-card.platinum .tc-ic {
    background: linear-gradient(135deg, #4f8cff, #2950bd);
}

.tier-card.selected .tc-ic {
    transform: scale(1.06);
}

.tier-card .tc-nm {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.tier-card .tc-sub {
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 2px;
    line-height: 1.3;
}

.tier-card .tc-rate {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--brand-2);
    margin-top: 6px;
}

.tier-card.gold .tc-rate {
    color: #d4901c;
}

.tier-card.silver .tc-rate {
    color: #6b7589;
}

.tier-card.platinum .tc-rate {
    color: var(--brand-2);
}

/* Auth card */
.auth-card.wider {
    max-width: 540px;
}

/* Background animated chart */
.brand-chart-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    pointer-events: none;
    opacity: .22;
    z-index: 0;
}

.brand-chart-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-chart-bg .line {
    fill: none;
    stroke: #f5b73c;
    stroke-width: 2;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: drawLine 4s ease-out forwards;
}

.brand-chart-bg .area {
    fill: url(#ibAreaGrad);
    opacity: 0;
    animation: fadeArea 2s 1.5s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeArea {
    to {
        opacity: 1;
    }
}

/* Make sure brand head sits above the bg chart */
.auth-brand-head, .auth-benefits, .auth-testimonial,
.commission-callout {
    position: relative;
    z-index: 1;
}

/* Marketing channel chips */
.channel-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.channel-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: all .2s var(--ease);
    user-select: none;
}

.channel-chip:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
}

.channel-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.channel-chip i {
    font-size: 12px;
}

.channel-chip.selected {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(14, 55, 137, .25);
}

/* Flip register layout: form left, brand right */
.auth-grid.flipped {
    grid-template-columns: 1fr 1.05fr;
}

.auth-grid.flipped .auth-brand {
    order: 2;
}

.auth-grid.flipped .auth-form-wrap {
    order: 1;
}

@media (max-width: 980px) {
    .auth-grid.flipped {
        grid-template-columns: 1fr;
    }

    .auth-grid.flipped .auth-brand {
        order: 1;
    }

    .auth-grid.flipped .auth-form-wrap {
        order: 2;
    }
}
