/* Black Friday 2026 (assets/black-friday.js): faixa no topo e aviso nos planos com o cupom e as regras, piscando.
   O piscar é lento (1 vez por segundo) e para em quem pediu menos movimento no aparelho. */
.bf-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(90deg, #000 0%, #1b1b1b 25%, #000 50%, #1b1b1b 75%, #000 100%);
  background-size: 200% 100%;
  border-bottom: 2px solid #c9f562;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 24px color-mix(in srgb, #c9f562 35%, transparent);
  animation: bf-shine 3s linear infinite;
}
.bf-bar[hidden] {
  display: none;
}
.bf-bar p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  margin: 0;
  text-align: center;
}
.bf-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 1.05em;
  border-radius: 6px;
  background: #c9f562;
  color: #000;
  font-weight: 900;
  letter-spacing: 0.08em;
  animation: bf-blink 1s steps(1, end) infinite;
}
.bf-offer {
  font-weight: 800;
}
.bf-left {
  color: #c9f562;
  font-weight: 700;
}
.bf-cta {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #c9f562;
  color: #000 !important;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  animation: bf-pulse 1.2s ease-in-out infinite;
}
.bf-cta:hover,
.bf-cta:focus-visible {
  background: #fff;
}
.bf-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin: 0 auto 22px;
  padding: 18px 20px;
  max-width: 980px;
  border: 2px solid #c9f562;
  border-radius: 16px;
  background: #000;
  color: #fff;
  animation: bf-glow 1.2s ease-in-out infinite;
}
.bf-ribbon p {
  margin: 8px 0 0;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.5;
}
.bf-code {
  padding: 3px 10px;
  font-size: 1.15em;
  animation: bf-code 1s steps(1, end) infinite;
  border: 2px dashed #c9f562;
  border-radius: 6px;
  color: #c9f562;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.bf-bar button.bf-cta,
.bf-ribbon button {
  width: auto;
  margin: 0;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.bf-rules-link {
  color: #e8e8e8 !important;
  font-size: 12px;
  text-decoration: underline;
}
.bf-ribbon-title {
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.5 !important;
  font-weight: 800;
}
.bf-ribbon-copy {
  flex: 1 1 320px;
}
.bf-ribbon-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bf-copy {
  padding: 7px 14px;
  border: 2px solid #c9f562 !important;
  border-radius: 999px;
  background: none;
  color: #c9f562;
  font-weight: 800;
}
.bf-rules {
  flex: 1 1 100%;
  color: #cfcfcf;
  font-size: 12.5px;
}
.bf-rules summary {
  color: #c9f562;
  font-weight: 700;
  cursor: pointer;
}
.bf-rules ol {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.55;
}
@keyframes bf-blink {
  50% {
    background: #000;
    color: #c9f562;
    box-shadow: inset 0 0 0 2px #c9f562;
  }
}
@keyframes bf-code {
  50% {
    background: #c9f562;
    color: #000;
  }
}
@keyframes bf-pulse {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 18px #c9f562;
  }
}
@keyframes bf-glow {
  50% {
    box-shadow: 0 0 28px color-mix(in srgb, #c9f562 55%, transparent);
  }
}
@keyframes bf-shine {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 640px) {
  /* No celular a faixa fica só no começo da página (fixa, tamparia o conteúdo). */
  .bf-bar {
    position: relative;
    font-size: 14px;
    padding: 12px;
  }
  .bf-cta {
    padding: 6px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bf-bar,
  .bf-badge,
  .bf-code,
  .bf-cta,
  .bf-ribbon {
    animation: none;
  }
}
