/* Rebate — cores amostradas da referência L7Rio */
.rb-screen,
body.vita-clone.rebate-open #rebateCentro,
.ofertas-panel[data-oferta-panel="rebate"]{
  --rb-bg:#262346;
  --rb-card:#2C294D;
  --rb-side:#3B3466;
  --rb-bar:#1e1b38;
  --rb-gold:#F5D147;
  --rb-label:#A8A3C8;
  --rb-text:#E8E6F0;
  --rb-muted:#7A7598;
  --rb-bar-text:#9BA1D2;
  --rb-receber:#3A3558;
  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:#262346!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:#262346;
}
.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:#8B86A8;
  font-size:13px;font-weight:500;
  padding:13px 11px 11px;cursor:pointer;white-space:nowrap;position:relative;
}
.rb-tab.is-active{color:#fff;font-weight:600}
.rb-tab.is-active::after{
  content:'';position:absolute;left:10px;right:10px;bottom:0;height:2.5px;border-radius:2px;
  background:linear-gradient(90deg,#F0B040 0%,#C45CFF 55%,#7B4DFF 100%);
  box-shadow:0 0 6px rgba(196,92,255,.5);
}

/* 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:#262346;
}
.rb-summary-line{margin:0;font-size:14px;color:#A8A3C8;flex:1;min-width:0;line-height:1.35}
.rb-summary-line-right{text-align:right}
.rb-summary-line strong{color:#F5D147;font-weight:700;font-size:16px}

/* 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:#3B3466;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:#D4CFE8;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:#3A3558;color:#9A94B0}
.rb-side-receber.is-locked,.rb-side-receber:disabled{cursor:not-allowed}
.rb-side-receber.is-on{background:linear-gradient(135deg,#8B5CF6,#F0A840);color:#fff;cursor:pointer}
.rb-side-hist{
  background:linear-gradient(110deg,#E8A030 0%,#C45CFF 42%,#7B5CFF 100%);
  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:#2C294D!important;
  border-radius:12px;
  padding:14px 10px 14px 12px;
  min-height:72px;
}
.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:14px;color:#A8A3C8;font-weight:500}
.rb-card-aposta em{font-style:normal;color:#fff;font-weight:600}
.rb-card-taxa{font-size:12px;color:#7A7598;text-align:right;flex-shrink:0}
.rb-card-taxa em{font-style:normal;color:#C8C4D8;font-weight:500}

.rb-card-bar{
  flex:1;min-width:0;max-width:55%;
  background:#1e1b38;border-radius:999px;
  padding:6px 12px;overflow:hidden;
}
.rb-card-bar-text{
  display:block;font-size:12px;color:#9BA1D2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rb-card-colet{
  flex-shrink:0;font-size:12px;color:#7A7598;
  text-align:right;margin-left:auto;padding-left:6px;
}
.rb-card-colet em{font-style:normal;color:#F5D147;font-weight:700}
.rb-card-arrow{color:#5E5880;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:#262346;
}
.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:#8B86A8;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:#2C294D;
  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:#262346;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:#2C294D;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:#2C294D;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:#F5D147;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:#2C294D;
  border-radius:10px;
  padding:12px 10px;
  margin-bottom:8px;
  flex-shrink:0;
  font-size:12px;font-weight:500;color:#8B86A8;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:168px;height:168px;object-fit:contain;display:block;
  filter:drop-shadow(0 8px 24px rgba(124,58,237,.18));
}
.rb-hist-empty p{
  margin:0;font-size:15px;font-weight:500;color:#8B86A8;
}
.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:#2C294D;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:#262346;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:#F5D147;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(38,35,70,0) 0%,#262346 28%);
}
.rb-pend-coletar{
  width:100%;border:0;border-radius:999px;
  padding:14px 16px;font-size:15px;font-weight:700;
  color:#C8C4D8;cursor:not-allowed;
  background:linear-gradient(90deg,#3A3558 0%,#4A3F72 55%,#3D3670 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.rb-pend-coletar.is-on{
  color:#fff;cursor:pointer;
  background:linear-gradient(90deg,#7B4DFF 0%,#C45CFF 55%,#E8A030 100%);
}
.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:#262346;
}
.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:#2C294D;aspect-ratio:710/260;
}
.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:#D8D4EC;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.rb-ev-status{
  flex-shrink:0;
  background:#3B3466;color:#C8C4D8;
  font-size:12px;font-weight:600;
  padding:8px 12px;border-radius:8px;white-space:nowrap;
}
.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:#262346;padding:28px 18px 32px;
}
.rb-codigo-view[hidden]{display:none!important}
.rb-codigo-form{
  display:flex;flex-direction:column;align-items:stretch;gap:18px;
  max-width:420px;width:100%;margin:8px auto 0;
}
.rb-codigo-input{
  width:100%;box-sizing:border-box;
  border:1px solid #4A4668;border-radius:12px;
  background:#2A2748;color:#E8E6F0;
  font-size:14px;padding:16px 14px;outline:none;
}
.rb-codigo-input::placeholder{color:#8B86A8}
.rb-codigo-input:focus{border-color:#7B6BB8;box-shadow:0 0 0 2px rgba(123,107,184,.2)}
.rb-codigo-btn{
  width:100%;border:0;border-radius:999px;cursor:pointer;
  padding:14px 18px;font-size:16px;font-weight:700;color:#fff;
  background:linear-gradient(90deg,#E8B890 0%,#D48CC8 38%,#9B5CFF 72%,#7B4DFF 100%);
  box-shadow:0 4px 16px rgba(123,77,255,.28);
}
.rb-codigo-btn:active{opacity:.92;transform:scale(.99)}
.rb-codigo-social{
  margin-top:auto;padding-top:56px;text-align:center;
}
.rb-codigo-social h3{
  margin:0 0 8px;font-size:16px;font-weight:700;color:#fff;
}
.rb-codigo-social p{
  margin:0 0 22px;font-size:13px;line-height:1.4;color:#8B86A8;
  max-width:280px;margin-left:auto;margin-right:auto;
}
.rb-codigo-icons{
  display:flex;align-items:flex-end;justify-content:center;gap:22px;
}
.rb-codigo-ico{
  display:block;width:72px;height:72px;border-radius:16px;overflow:visible;
  transition:transform .15s ease;
}
.rb-codigo-ico:active{transform:scale(.96)}
.rb-codigo-ico img{
  width:72px;height:72px;object-fit:contain;display:block;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.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:#fff!important}
body.pagina-ofertas .ofertas-panels{background:#262346!important}
body.pagina-ofertas .ofertas-tabs-scroll{background:#262346!important}

/* Ofertas Histórico panel — mesmo visual da referência */
.ofertas-panel[data-oferta-panel="historico"]{
  padding:10px 12px 16px!important;
  background:#262346!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:#262346!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;
}
