/* Rebate / Promoção — cores amostradas da referência (navy escuro) */
.rb-screen,
body.vita-clone.rebate-open #rebateCentro,
.ofertas-panel[data-oferta-panel="rebate"]{
  --rb-bg:#0A0A12;
  --rb-card:#14151F;
  --rb-side:#1A1C28;
  --rb-bar:#08090F;
  --rb-gold:#F5D147;
  --rb-label:#B4B8C6;
  --rb-text:#EEF0F4;
  --rb-muted:#7E8496;
  --rb-bar-text:#9AA1B8;
  --rb-receber:#222536;
  --rb-accent:#2860B9;
  --rb-underline:#4076DE;
  background:var(--rb-bg)!important;
  color:var(--rb-label);
  font-size:12px;
  line-height:1.3;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  box-sizing:border-box;
}
.rb-screen *,
.ofertas-panel[data-oferta-panel="rebate"] *{box-sizing:border-box}

body.vita-clone.rebate-open{overflow:hidden!important}
body.home-ref.rebate-open,
body.pagina-perfil.rebate-open,
body.pagina-ofertas.rebate-open{overflow:hidden!important}
body.vita-clone.rebate-open .app-dl-banner,
body.vita-clone.rebate-open .app-sidebar,
body.vita-clone.rebate-open .sidebar-overlay,
body.vita-clone.rebate-open .vita-tg-fab,
body.vita-clone.rebate-open .header{display:none!important}
body.home-ref.rebate-open .ref-header,
body.pagina-perfil.rebate-open .ref-header,
body.pagina-perfil.rebate-open .painel-perfil,
body.pagina-ofertas.rebate-open .ref-header{display:none!important}

/* Tabbar permanece em todas as abas do Rebate / Eventos / etc. */
body.vita-clone.rebate-open .tabbar,
body.home-ref.rebate-open .tabbar,
body.pagina-perfil.rebate-open .tabbar,
body.pagina-ofertas.rebate-open .tabbar,
body.vita-clone.rebate-open #layoutFooter,
body.home-ref.rebate-open #layoutFooter,
body.pagina-perfil.rebate-open #layoutFooter,
body.pagina-ofertas.rebate-open #layoutFooter{
  display:flex!important;
  visibility:visible!important;
  z-index:100090!important;
}
body.vita-clone.rebate-open #rebateCentro,
body.home-ref.rebate-open #rebateCentro,
body.pagina-perfil.rebate-open #rebateCentro,
body.pagina-ofertas.rebate-open #rebateCentro{
  display:flex!important;
  visibility:visible!important;
  z-index:100080!important;
}
#rebateCentro.rb-screen{
  position:fixed!important;
  z-index:100080!important;
  left:50%!important;
  top:0!important;
  bottom:0!important;
  width:100%!important;
  max-width:var(--phone-w,516px)!important;
  height:auto!important;
  height:100%!important;
  height:100dvh!important;
  transform:translateX(-50%)!important;
  margin:0!important;
  padding-bottom:calc(4.35rem + env(safe-area-inset-bottom,0))!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:#0A0A12!important;
  box-sizing:border-box!important;
}
#rebateCentro.rb-screen[hidden]{display:none!important}

.ofertas-panel[data-oferta-panel="rebate"]{
  padding:0!important;
  margin:0!important;
  min-height:70vh;
}
.ofertas-panel[data-oferta-panel="rebate"].active{
  display:flex!important;
  flex-direction:column;
}

/* Abas */
.rb-tabs-scroll{
  flex-shrink:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  background:#0A0A12;
}
.rb-tabs-scroll::-webkit-scrollbar{display:none}
.rb-tabs{display:flex;min-width:max-content;padding:0 2px;margin:0}
.rb-tab{
  border:0;background:transparent;color:#8B91A3;
  font-size:13px;font-weight:500;
  padding:13px 11px 11px;cursor:pointer;white-space:nowrap;position:relative;
}
.rb-tab.is-active{color:#5EC8FF;font-weight:600}
.rb-tab.is-active::after{
  content:'';position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:1px;
  background:#5EC8FF;
  box-shadow:none;
}

/* Resumo — numa linha só */
.rb-summary{
  display:flex;justify-content:space-between;align-items:baseline;
  gap:10px;padding:14px 14px 12px;flex-shrink:0;background:#0A0A12;
}
.rb-summary-line{margin:0;font-size:13px;color:#E8EAEE;flex:1;min-width:0;line-height:1.35}
.rb-summary-line-right{text-align:right}
.rb-summary-line strong{color:#F5A623;font-weight:700;font-size:15px}

/* Corpo */
.rb-layout{
  flex:1;min-height:0;display:flex;gap:10px;
  padding:4px 10px 14px;align-items:stretch;
}
.ofertas-panel[data-oferta-panel="rebate"] .rb-layout{min-height:480px}
#rebateCentro .rb-layout{flex:1;min-height:0}

/* Sidebar */
.rb-side{
  flex:0 0 64px;width:64px;
  display:flex;flex-direction:column;gap:10px;
}
.rb-side-slot{
  border:0;background:#1A1C28;border-radius:12px;
  padding:10px 4px 8px;min-height:76px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;cursor:pointer;
}
.rb-slot-ico{width:42px;height:42px;display:block;object-fit:contain}
.rb-slot-ico svg{width:42px;height:42px;display:block}
.rb-slot-label{font-size:13px;font-weight:600;color:#C8CDD8;margin-top:1px}
.rb-side-receber,.rb-side-hist{
  border:0;border-radius:9px;padding:12px 2px;font-size:13px;font-weight:600;
  cursor:pointer;text-align:center;line-height:1.15;min-height:44px;
  display:flex;align-items:center;justify-content:center;width:100%;
}
.rb-side-receber{background:#2B6CB0;color:#fff}
.rb-side-receber.is-locked,.rb-side-receber:disabled{cursor:not-allowed;opacity:.85}
.rb-side-receber.is-on{background:#2B6CB0;color:#fff;cursor:pointer}
.rb-side-hist{
  background:#E056A0;
  color:#fff;
}

/* Lista */
.rb-list{
  flex:1;min-width:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;gap:10px;padding-bottom:8px;
}

/* Card — grid: logo | main | seta */
.rb-card{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 12px;
  column-gap:10px;
  align-items:center;
  background:#1A1F2E!important;
  border-radius:10px;
  padding:12px 10px 12px 12px;
  min-height:68px;
}
.rb-card-logo-box{
  width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  align-self:start;margin-top:2px;
}
.rb-card-logo{
  width:34px;height:34px;border-radius:5px;
  display:flex;align-items:center;justify-content:center;
  font-size:9px;font-weight:800;color:#C4BED8;
  background:rgba(255,255,255,.07);letter-spacing:-.03em;
}
.rb-card-logo-img{
  width:34px;height:34px;object-fit:contain;display:block;
  border-radius:5px;background:transparent;
  filter:brightness(1.15) saturate(.35);
}

.rb-card-main{min-width:0;display:flex;flex-direction:column;gap:9px}
.rb-card-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.rb-card-row-bot{align-items:center}

.rb-card-aposta,.rb-card-taxa,.rb-card-colet{
  margin:0;font-style:normal;white-space:nowrap;
}
.rb-card-aposta{font-size:13px;color:#C8CDD8;font-weight:500}
.rb-card-aposta em{font-style:normal;color:#F5A623;font-weight:700}
.rb-card-taxa{font-size:12px;color:#9AA0B0;text-align:right;flex-shrink:0}
.rb-card-taxa em{font-style:normal;color:#F5A623;font-weight:600}

.rb-card-bar{
  flex:1;min-width:0;max-width:58%;
  background:transparent;border-radius:0;
  padding:0;overflow:hidden;
}
.rb-card-bar-text{
  display:block;font-size:11px;color:#9AA0B0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rb-card-bar-text em{font-style:normal;color:#F5A623;font-weight:600}
.rb-card-colet{
  flex-shrink:0;font-size:12px;color:#9AA0B0;
  text-align:right;margin-left:auto;padding-left:6px;
}
.rb-card-colet em{font-style:normal;color:#F5A623;font-weight:700}
.rb-card-arrow{color:#6B7280;font-size:13px;text-align:center;line-height:1}
.rb-card{cursor:pointer}
.rb-card:active{opacity:.92}

/* View switcher */
.rb-main-view{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;
}
.rb-main-view[hidden]{display:none!important}
.ofertas-panel[data-oferta-panel="rebate"] .rb-main-view{min-height:480px}
#rebateCentro .rb-main-view{flex:1}

/* Detalhe Taxa de reembolso */
.rb-taxa-view{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:#0A0A12;
}
.rb-taxa-view[hidden]{display:none!important}
#rebateCentro.is-taxa .rb-tabs-scroll{display:none}
body.rebate-taxa-open .ofertas-tabs-scroll{display:none!important}
.rb-taxa-header{
  display:grid;grid-template-columns:2.5rem 1fr 2.5rem;
  align-items:center;padding:10px 8px 8px;flex-shrink:0;
}
.rb-taxa-header h2{
  margin:0;text-align:center;font-size:1.15rem;font-weight:600;color:#eceaf4;
}
.rb-taxa-back{
  width:2.5rem;height:2.5rem;border:0;background:transparent;color:#c9c5d8;
  font-size:1.35rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;
}
.rb-taxa-spacer{display:block}
.rb-taxa-cols{
  display:grid;
  grid-template-columns:72px 72px 1fr 1fr;
  gap:4px;
  padding:6px 12px 8px;
  font-size:11px;color:#8B91A3;font-weight:500;flex-shrink:0;
}
.rb-taxa-cols span:nth-child(3),
.rb-taxa-cols span:nth-child(4){text-align:right}
.rb-taxa-list{
  flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:0 8px 16px;display:flex;flex-direction:column;gap:8px;
}
.rb-taxa-row{
  display:grid;
  grid-template-columns:72px 72px 1fr 1fr;
  gap:4px;
  align-items:center;
  background:#14151F;
  border-radius:10px;
  padding:12px 10px;
  font-size:12px;
}
.rb-taxa-cat{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  color:#D4CFE8;font-size:11px;font-weight:600;
}
.rb-taxa-slot-ico{width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.rb-taxa-slot-ico svg{width:28px;height:28px}
.rb-taxa-prov{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  color:#D4CFE8;font-size:11px;font-weight:700;
}
.rb-taxa-prov em{font-style:normal}
.rb-taxa-prov-logo{
  width:28px;height:28px;border-radius:4px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.07);overflow:hidden;
  font-size:8px;font-weight:800;color:#C4BED8;
}
.rb-taxa-prov-logo img{width:100%;height:100%;object-fit:contain;display:block;filter:brightness(1.15) saturate(.35)}
.rb-taxa-aposta{text-align:right;color:#E8E6F0;font-weight:600;font-size:12px}
.rb-taxa-pct{text-align:right;color:#F5D147;font-weight:700;font-size:13px}

/* Histórico */
.rb-hist-view{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:#0A0A12;padding:10px 12px 16px;
}
.rb-hist-view[hidden]{display:none!important}
.rb-hist-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-shrink:0;padding:4px 2px 12px;
}
.rb-hist-date{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  background:#14151F;border-radius:999px;padding:8px 28px 8px 14px;
  color:#E8E6F0;font-size:13px;font-weight:500;cursor:pointer;min-width:0;
}
.rb-hist-date-prefix{color:#E8E6F0;white-space:nowrap}
.rb-hist-date select{
  appearance:none;-webkit-appearance:none;border:0;background:transparent;
  color:#fff;font-size:13px;font-weight:700;padding:0 2px;cursor:pointer;
  outline:none;max-width:7.5rem;
}
.rb-hist-date select option{background:#14151F;color:#fff}
.rb-hist-date > i{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  font-size:10px;color:#B8B3D0;pointer-events:none;
}
.rb-hist-bonus{
  margin:0;font-size:14px;color:#E8E6F0;font-weight:500;white-space:nowrap;
}
.rb-hist-bonus strong{color:#F5A623;font-weight:700}
.rb-hist-head{
  display:grid;
  grid-template-columns:0.85fr 1.15fr 1.35fr 0.7fr;
  gap:4px;
  align-items:center;
  background:#14151F;
  border-radius:10px;
  padding:12px 10px;
  margin-bottom:8px;
  flex-shrink:0;
  font-size:12px;font-weight:500;color:#8B91A3;text-align:center;
}
.rb-hist-body{
  flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;
}
.rb-hist-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:40px 16px 80px;text-align:center;
}
.rb-hist-empty img{
  width:140px;height:140px;object-fit:contain;display:block;
  opacity:.85;filter:none;
}
.rb-hist-empty p{
  margin:0;font-size:15px;font-weight:500;color:#8B91A3;
}
.rb-hist-rows{display:flex;flex-direction:column;gap:8px}
.rb-hist-row{
  display:grid;
  grid-template-columns:0.85fr 1.15fr 1.35fr 0.7fr;
  gap:4px;align-items:center;
  background:#14151F;border-radius:10px;padding:12px 10px;
  font-size:12px;color:#D4CFE8;text-align:center;
}

.ofertas-panel[data-oferta-panel="rebate"] .rb-hist-view{min-height:480px}
#rebateCentro .rb-hist-view{flex:1}

/* Pendente */
.rb-pend-view{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:#0A0A12;padding:10px 12px 0;
}
.rb-pend-view[hidden]{display:none!important}
.rb-pend-toolbar{
  display:flex;align-items:center;justify-content:flex-end;
  flex-shrink:0;padding:4px 2px 12px;
}
.rb-pend-spacer{flex:1}
.rb-pend-bonus{
  margin:0;font-size:14px;color:#E8E6F0;font-weight:500;white-space:nowrap;
}
.rb-pend-bonus strong{color:#F5A623;font-weight:700}
.rb-pend-body{
  flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;
}
.rb-pend-footer{
  flex-shrink:0;padding:12px 0 16px;
  background:linear-gradient(180deg,rgba(10,10,18,0) 0%,#0A0A12 28%);
}
.rb-pend-coletar{
  width:100%;border:0;border-radius:10px;
  padding:14px 16px;font-size:15px;font-weight:700;
  color:#fff;cursor:not-allowed;opacity:.72;
  background:#3B82F6;
  box-shadow:none;
}
.rb-pend-coletar.is-on{
  color:#fff;cursor:pointer;opacity:1;
  background:#3B82F6;
}
.ofertas-panel[data-oferta-panel="rebate"] .rb-pend-view{min-height:480px}
#rebateCentro .rb-pend-view{flex:1}

/* Eventos */
.rb-eventos-view{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:#0A0A12;
}
.rb-eventos-view[hidden]{display:none!important}
.rb-eventos-list{
  flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:10px 12px 20px;display:flex;flex-direction:column;gap:14px;
}
.rb-ev-card{
  background:transparent;border:0;margin:0;padding:0;
  display:flex;flex-direction:column;gap:8px;
}
.rb-ev-card[data-rb-evento]{cursor:pointer}
.rb-ev-media{
  position:relative;border-radius:12px;overflow:hidden;
  background:#14151F;aspect-ratio:1164/378;
}
.rb-ev-media img{
  width:100%;height:100%;object-fit:cover;object-position:center top;display:block;
  image-rendering:auto;
}
.rb-ev-foot{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:0 2px 2px;
}
.rb-ev-title{
  margin:0;flex:1;min-width:0;
  font-size:13px;font-weight:500;color:#D6DAE4;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.rb-ev-status{
  flex-shrink:0;
  background:#2860B9;color:#fff;
  font-size:12px;font-weight:600;
  padding:7px 14px;border-radius:6px;white-space:nowrap;
  box-shadow:none;
}
.ofertas-panel[data-oferta-panel="rebate"] .rb-eventos-view{min-height:480px}
#rebateCentro .rb-eventos-view{flex:1}

/* Código de Resgate */
.rb-codigo-view{
  flex:1;min-height:0;display:flex;flex-direction:column;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:#0A0A12;padding:12px 16px 28px;
}
.rb-codigo-view[hidden]{display:none!important}
.rb-codigo-banner{
  display:block;width:100%;max-width:420px;margin:0 auto 16px;
  border-radius:12px;overflow:hidden;aspect-ratio:710/260;
  background:#14151F;text-decoration:none;
}
.rb-codigo-banner img{
  width:100%;height:100%;object-fit:cover;object-position:center;display:block;
}
.rb-codigo-form{
  display:flex;flex-direction:column;align-items:stretch;gap:14px;
  max-width:420px;width:100%;margin:0 auto;
}
.rb-codigo-input{
  width:100%;box-sizing:border-box;
  border:1px solid #3A3F50;border-radius:10px;
  background:#14151F;color:#EEF0F4;
  font-size:14px;padding:15px 14px;outline:none;
}
.rb-codigo-input::placeholder{color:#6B7280}
.rb-codigo-input:focus{border-color:#4A90E2;box-shadow:0 0 0 2px rgba(74,144,226,.22)}
.rb-codigo-btn{
  width:100%;border:0;border-radius:10px;cursor:pointer;
  padding:14px 18px;font-size:16px;font-weight:700;color:#fff;
  background:linear-gradient(90deg,#4A90E2 0%,#D35D90 100%);
  box-shadow:0 4px 14px rgba(74,144,226,.22);
}
.rb-codigo-btn:active{opacity:.92;transform:scale(.99)}
.rb-codigo-social{
  margin-top:36px;padding-top:0;text-align:center;
  max-width:420px;width:100%;margin-left:auto;margin-right:auto;
}
.rb-codigo-social h3{
  margin:0 0 8px;font-size:15px;font-weight:700;color:#F5A623;
}
.rb-codigo-social p{
  margin:0 0 18px;font-size:12px;line-height:1.4;color:#8B91A3;
  max-width:300px;margin-left:auto;margin-right:auto;
}
.rb-codigo-icons{
  display:flex;align-items:center;justify-content:center;gap:18px;
}
.rb-codigo-ico{
  display:flex;align-items:center;justify-content:center;
  width:56px;height:56px;border-radius:12px;overflow:hidden;
  transition:transform .15s ease;background:#1A1C28;
}
.rb-codigo-ico:active{transform:scale(.96)}
.rb-codigo-ico img{
  width:56px;height:56px;object-fit:contain;display:block;
}
.rb-codigo-ico-ig{
  background:linear-gradient(135deg,#f58529 0%,#dd2a7b 45%,#8134af 75%,#515bd4 100%);
}
.rb-codigo-ico-ig svg{width:28px;height:28px;display:block}
.rb-codigo-tips{
  margin:28px auto 0;max-width:420px;padding:0 4px;
  font-size:11px;line-height:1.55;color:#8B91A3;
}
.rb-codigo-tips ol{margin:0;padding-left:1.1em}
.rb-codigo-tips li{margin:0 0 6px}
.rb-codigo-tips strong{color:#C8CDD8;font-weight:600}
.ofertas-panel[data-oferta-panel="rebate"] .rb-codigo-view{min-height:480px}
#rebateCentro .rb-codigo-view{flex:1}

/* Ofertas page: match tabs underline when rebate active */
body.pagina-ofertas .ofertas-tab[data-oferta-tab="rebate"].active,
body.pagina-ofertas .ofertas-tab.active[data-oferta-tab="rebate"]{color:#5EC8FF!important}
body.pagina-ofertas .ofertas-panels{background:#0A0A12!important}
body.pagina-ofertas .ofertas-tabs-scroll{background:#0A0A12!important}

/* Ofertas Histórico panel — mesmo visual da referência */
.ofertas-panel[data-oferta-panel="historico"]{
  padding:10px 12px 16px!important;
  background:#0A0A12!important;
  min-height:70vh;
  display:none;
  flex-direction:column;
}
.ofertas-panel[data-oferta-panel="historico"].active{
  display:flex!important;
}
.ofertas-panel[data-oferta-panel="historico"] .ofertas-subtabs{display:none!important}
.ofertas-panel[data-oferta-panel="historico"] .ofertas-hist-main-panel{display:none!important}
.ofertas-panel[data-oferta-panel="historico"] .rb-hist-standalone{display:flex;flex-direction:column;flex:1;min-height:0}

/* Ofertas Pendente (recompensas) — visual da referência */
.ofertas-panel[data-oferta-panel="recompensas"]{
  padding:10px 12px 0!important;
  background:#0A0A12!important;
  min-height:70vh;
  display:none;
  flex-direction:column;
}
.ofertas-panel[data-oferta-panel="recompensas"].active{
  display:flex!important;
}
.ofertas-panel[data-oferta-panel="recompensas"] .ofertas-saldo-row,
.ofertas-panel[data-oferta-panel="recompensas"] .ofertas-empty,
.ofertas-panel[data-oferta-panel="recompensas"] #ofertas-recompensas-list{display:none!important}
.ofertas-panel[data-oferta-panel="recompensas"] .rb-pend-standalone{
  display:flex;flex-direction:column;flex:1;min-height:0;
}
