/* HB Telecom · botões em pílula com brilho (nas cores da HB)
   ícone num círculo vermelho à esquerda, texto, seta num círculo à direita,
   borda com luz girando e brilho que aumenta no hover/toque. */
@property --hb-bt-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

html.hb-bt-on .hb-bt {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .7em !important;
  min-height: 0 !important;
  padding: .38em .42em .38em .38em !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 70, 60, .35) !important;
  background: linear-gradient(180deg, #1c0b0b 0%, #120707 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow:
    0 0 0 1px rgba(158, 0, 0, .25),
    0 0 22px -2px rgba(200, 20, 10, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease !important;
  isolation: isolate;
  overflow: visible !important;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
/* luz que percorre a borda */
html.hb-bt-on .hb-bt::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  /* cor da luz: --hb-bt-luz (vermelho claro no botão escuro, preto no botão branco) */
  background: conic-gradient(from var(--hb-bt-ang), transparent 0 70%, rgba(var(--hb-bt-luz, 255, 170, 160), .12) 76%, rgba(var(--hb-bt-luz, 255, 170, 160), var(--hb-bt-luz-a, .7)) 81%, rgba(var(--hb-bt-luz, 255, 170, 160), .12) 86%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hb-bt-gira 9s ease-in-out infinite;
  pointer-events: none;
}
html.hb-bt-on .hb-bt::after { display: none !important; } /* desliga o brilho antigo do painel nesses botões */

html.hb-bt-on .hb-bt .hb-bt-ic,
html.hb-bt-on .hb-bt .hb-bt-seta {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}
html.hb-bt-on .hb-bt .hb-bt-ic {
  width: 2.1em; height: 2.1em;
  background: radial-gradient(circle at 35% 30%, #ff5a4d 0%, #d6120a 45%, #9E0000 100%);
  box-shadow: 0 0 12px rgba(255, 40, 30, .6), inset 0 1px 1px rgba(255, 255, 255, .35);
}
html.hb-bt-on .hb-bt .hb-bt-seta {
  width: 1.75em; height: 1.75em;
  margin-left: .35em;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
html.hb-bt-on .hb-bt .hb-bt-ic svg { width: 1em !important; height: 1em !important; margin: 0 !important; color: #fff; fill: none; }
html.hb-bt-on .hb-bt .hb-bt-ic svg [fill="currentColor"] { fill: #fff; }
html.hb-bt-on .hb-bt .hb-bt-seta svg { width: .95em !important; height: .95em !important; margin: 0 !important; color: rgba(255, 255, 255, .85); }
html.hb-bt-on .hb-bt .hb-bt-txt { flex: 1 1 auto; text-align: left; letter-spacing: .01em; }

/* sem efeito ao passar o mouse: o botão fica igual (só a luz da borda continua se movendo) */
html.hb-bt-on .hb-bt:hover,
html.hb-bt-on .hb-bt:focus-visible,
html.hb-bt-on .hb-bt:active {
  transform: none !important;
  outline: none !important;
}

/* botões que ocupam a largura do cartão continuam ocupando */
html.hb-bt-on .nio-card-v2-btn.hb-bt,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt { width: 100%; }

/* a luz vai até a metade e volta; depois dá a volta completa e volta */
@keyframes hb-bt-gira {
  0%   { --hb-bt-ang: 0deg; }
  22%  { --hb-bt-ang: 180deg; }
  44%  { --hb-bt-ang: 0deg; }
  76%  { --hb-bt-ang: 360deg; }
  100% { --hb-bt-ang: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  html.hb-bt-on .hb-bt::before { animation: none; }
}

/* o site esconde/pinta ícones e muda cor/fundo no hover de alguns botões: aqui vale o nosso visual */
html.hb-bt-on .hb-bt .hb-bt-ic svg,
html.hb-bt-on .hb-bt .hb-bt-seta svg { display: block !important; visibility: visible !important; opacity: 1 !important; }
html.hb-bt-on .hb-bt:hover,
html.hb-bt-on .hb-bt:focus-visible {
  background: linear-gradient(180deg, #1c0b0b 0%, #120707 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 70, 60, .35) !important;
  box-shadow:
    0 0 0 1px rgba(158, 0, 0, .25),
    0 0 22px -2px rgba(200, 20, 10, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
html.hb-bt-on .hb-bt .hb-bt-txt,
html.hb-bt-on .hb-bt:hover .hb-bt-txt { color: #fff !important; }

/* sem o ícone da esquerda (botões dos cartões): texto com respiro normal */
html.hb-bt-on .hb-bt.hb-bt--sem-ic { padding-left: 1.3em !important; }

/* cartões de streaming: sem efeito ao passar o mouse (o "subir" cortava o cartão no carrossel) */
html.hb-bt-on .hb-streaming-carousel .hb-streaming-card:hover,
html.hb-bt-on .hb-streaming-carousel .hb-streaming-card:hover .hb-streaming-card-btn,
html.hb-bt-on .hb-streaming-carousel .hb-streaming-card:hover .hb-bt {
  transform: none !important;
  filter: none !important;
}

/* película que acinzentava o cartão (e o botão) ao passar o mouse: desligada */
html.hb-bt-on .hb-streaming-card:hover::after,
html.hb-bt-on .nio-card:hover::after { opacity: 0 !important; }

/* "Contratar agora" (planos e streaming): preto com luz vermelha na borda;
   ao passar o mouse fica branco (texto escuro, luz da borda preta). Um pouco mais alto. */
html.hb-bt-on .nio-card-v2-btn.hb-bt,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt {
  padding-top: .62em !important;
  padding-bottom: .62em !important;
  background: #0d0505 !important;
  color: #fff !important;
  border-color: rgba(255, 70, 60, .35) !important;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6), 0 0 22px -2px rgba(200, 20, 10, .55) !important;
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease !important;
}
html.hb-bt-on .nio-card-v2-btn.hb-bt .hb-bt-txt,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt .hb-bt-txt { color: #fff !important; transition: color .3s ease; }
html.hb-bt-on .nio-card-v2-btn.hb-bt .hb-bt-seta,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt .hb-bt-seta { background: rgba(255, 255, 255, .12); box-shadow: none; transition: background .3s ease; }
html.hb-bt-on .nio-card-v2-btn.hb-bt .hb-bt-seta svg,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt .hb-bt-seta svg { color: #fff !important; transition: color .3s ease; }

html.hb-bt-on .nio-card-v2-btn.hb-bt:hover,
html.hb-bt-on .nio-card-v2-btn.hb-bt:focus-visible,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:hover,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:focus-visible {
  --hb-bt-luz: 200, 10, 0;   /* no botão branco a luz é o vermelho da HB, para aparecer */
  --hb-bt-luz-a: 1;
  background: #fff !important;
  color: #1a0707 !important;
  border-color: rgba(158, 0, 0, .18) !important;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45), 0 0 18px -4px rgba(255, 60, 50, .35) !important;
}
html.hb-bt-on .nio-card-v2-btn.hb-bt:hover .hb-bt-txt,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:hover .hb-bt-txt { color: #1a0707 !important; }
html.hb-bt-on .nio-card-v2-btn.hb-bt:hover .hb-bt-seta,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:hover .hb-bt-seta { background: rgba(158, 0, 0, .1); }
html.hb-bt-on .nio-card-v2-btn.hb-bt:hover .hb-bt-seta svg,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:hover .hb-bt-seta svg { color: #9E0000 !important; }
html.hb-bt-on .nio-card-v2-btn.hb-bt:hover::before,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:hover::before { padding: 2.5px; }

/* a luz da borda passa por cima do fundo do botão (aparece também no botão branco); texto e seta ficam acima */
html.hb-bt-on .hb-bt::before { z-index: 1 !important; }
html.hb-bt-on .hb-bt > .hb-bt-ic,
html.hb-bt-on .hb-bt > .hb-bt-txt,
html.hb-bt-on .hb-bt > .hb-bt-seta { position: relative; z-index: 2; }

/* com o mouse em cima (botão branco) a luz que vai e volta some */
html.hb-bt-on .nio-card-v2-btn.hb-bt:hover::before,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:hover::before,
html.hb-bt-on .nio-card-v2-btn.hb-bt:focus-visible::before,
html.hb-bt-on .hb-streaming-card-v2-btn.hb-bt:focus-visible::before { opacity: 0 !important; }
html.hb-bt-on .hb-bt::before { transition: opacity .3s ease; }
