/* Cashback page + FAB — profissional */
#cashback-runtime-root {
    position: relative;
    z-index: 5;
    max-width: 920px;
    margin: 0 auto;
    padding: 12px 14px 110px;
    font-family: Montserrat, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #fff;
    min-height: 100dvh;
    background:
        radial-gradient(90% 50% at 50% -10%, color-mix(in srgb, var(--ci-primary-color, #ff6600) 18%, transparent), transparent 60%),
        #090a0f;
}

.cbx-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -12px -14px 14px;
    padding: 12px 14px;
    background: rgba(17, 19, 26, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cbx-topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cbx-topbar-title .ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ci-primary-color, #ff6600) 18%, transparent);
    color: var(--ci-primary-color, #ff6600);
    flex-shrink: 0;
}

.cbx-topbar-title strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cbx-topbar-title span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-top: 1px;
}

.cbx-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cbx-close:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.04);
}

.cbx-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px 20px 22px;
    margin-bottom: 14px;
    background:
        radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--ci-primary-color, #ff6600) 30%, transparent), transparent 55%),
        linear-gradient(160deg, #171d24 0%, #0c1014 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.cbx-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ci-primary-color, #ff6600) 14%, transparent);
    filter: blur(10px);
    pointer-events: none;
}

.cbx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ci-primary-color, #ff6600);
    margin-bottom: 10px;
}

.cbx-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cbx-hero p {
    margin: 0;
    max-width: 560px;
    color: rgba(255,255,255,0.62);
    font-size: 13.5px;
    line-height: 1.55;
}

.cbx-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cbx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
}

.cbx-chip strong { color: var(--ci-primary-color, #ff6600); }

.cbx-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (min-width: 720px) {
    .cbx-grid { grid-template-columns: repeat(4, 1fr); }
}

.cbx-stat {
    background: #12171c;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 14px 12px;
    min-height: 96px;
}

.cbx-stat .lbl {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.48);
    margin-bottom: 8px;
    font-weight: 600;
}

.cbx-stat .val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cbx-stat .hint {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.35);
}

.cbx-stat--main {
    border-color: color-mix(in srgb, var(--ci-primary-color, #ff6600) 35%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--ci-primary-color, #ff6600) 12%, #12171c), #12171c);
}

.cbx-stat--main .val { color: var(--ci-primary-color, #ff6600); }

.cbx-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.cbx-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ci-primary-color, #ff6600);
    color: #041018;
    text-decoration: none;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--ci-primary-color, #ff6600) 28%, transparent);
}

.cbx-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.cbx-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: none;
}

.cbx-panel {
    background: #12171c;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.cbx-panel h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
}

.cbx-steps {
    display: grid;
    gap: 10px;
}

@media (min-width: 720px) {
    .cbx-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
    .cbx-steps { grid-template-columns: repeat(4, 1fr); }
}

.cbx-step {
    background: #0b0f12;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}

.cbx-step .n {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    background: color-mix(in srgb, var(--ci-primary-color, #ff6600) 18%, transparent);
    color: var(--ci-primary-color, #ff6600);
}

.cbx-step strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.cbx-step span {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255,255,255,0.5);
}

.cbx-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.cbx-info-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.45;
}

.cbx-info-list i {
    color: var(--ci-primary-color, #ff6600);
    margin-top: 2px;
}

.cbx-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    background: #0b0f12;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.cbx-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.cbx-item small {
    display: block;
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    line-height: 1.4;
}

.cbx-st {
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #1a2126;
    white-space: nowrap;
}

.cbx-st[data-s="available"] { background: rgba(255, 102, 0, 0.16); color: #7dd3fc; }
.cbx-st[data-s="waiting"] { background: rgba(249,115,22,0.16); color: #fdba74; }
.cbx-st[data-s="redeemed"] { background: rgba(59,130,246,0.16); color: #60a5fa; }
.cbx-st[data-s="pending"] { background: rgba(234,179,8,0.16); color: #facc15; }
.cbx-st[data-s="forfeited"] { background: rgba(239,68,68,0.16); color: #f87171; }

.cbx-empty {
    text-align: center;
    padding: 28px 12px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

.cbx-empty i {
    font-size: 22px;
    display: inline-block;
    margin-bottom: 8px;
    opacity: 0.45;
}

.cbx-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    background: rgba(234,179,8,0.1);
    border: 1px solid rgba(234,179,8,0.25);
    color: #fde68a;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.45;
}

.cbx-alert--muted {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.cbx-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.cbx-panel-head h2 { margin: 0; }

.cbx-muted {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.cbx-toast {
    position: sticky;
    top: 64px;
    z-index: 20;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: cbx-in 0.25s ease;
}

.cbx-toast--ok {
    background: rgba(255, 102, 0, 0.16);
    border: 1px solid rgba(255, 102, 0, 0.3);
    color: #7dd3fc;
}

.cbx-toast--err {
    background: rgba(239,68,68,0.16);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

@keyframes cbx-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

body.cb-rt-active #viperpro > *:not(#cashback-runtime-root) {
    display: none !important;
}

body.cb-rt-active #cashback-fab,
body.sc-chat-open #cashback-fab,
body.pfs-open #cashback-fab {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* FAB flutuante cashback — compacto com % */
#cashback-fab {
    position: fixed !important;
    right: 12px !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2147483000 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 10px 0 9px !important;
    border-radius: 13px !important;
    border: 1.5px solid rgba(255, 102, 0, 0.5) !important;
    background: #ff6600 !important;
    background: var(--ci-primary-color, #ff6600) !important;
    color: #041018 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(255, 102, 0, 0.28) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

#cashback-fab.is-visible {
    display: inline-flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#cashback-fab:hover {
    transform: translateY(-2px) scale(1.03) !important;
}

#cashback-fab > i {
    font-size: 14px !important;
    line-height: 1 !important;
}

#cashback-fab .cb-fab-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    gap: 1px;
}

#cashback-fab .cb-fab-label {
    font-family: Montserrat, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

#cashback-fab .cb-fab-pct {
    font-family: Montserrat, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

#cashback-fab .cb-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #090a0f;
}

#cashback-fab .cb-fab-badge[hidden] {
    display: none !important;
}

#cashback-fab .cb-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 102, 0, 0.5);
    animation: cb-fab-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes cb-fab-pulse {
    0% { opacity: 0.65; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.25); }
}

/* CTA menu lateral (inject) */
.sidebar-cta--cashback {
    background: linear-gradient(135deg, #101820 0%, #13202a 100%) !important;
    border-color: color-mix(in srgb, var(--ci-primary-color, #ff6600) 35%, transparent) !important;
    color: #fff !important;
}

.sidebar-cta--cashback .sidebar-cta__eyebrow {
    color: var(--ci-primary-color, #ff6600) !important;
}

.sidebar-cta--cashback .sidebar-cta__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ci-primary-color, #ff6600) 18%, transparent);
    color: var(--ci-primary-color, #ff6600);
    font-size: 16px;
}
