/* Tipografia e variáveis de cor */
:root {
  --black: #000000;
  --black-dark: #0A0A0A; /* Nova cor de destaque - preto escuro */
  --gray-900: #0b0b0b;
  --gray-800: #111111;
  --white: #ffffff;
  --green: #16a34a; /* tailwind-like emerald */
  --green-2: #00C853; /* neon alt */
  --light-gray: #b3b3b3;
  --muted-gray: #9aa0a6;
  --red: #fc1723; /* Nova cor principal - vermelho vivo */
  --red-intense: #FD0032; /* Nova cor de destaque - vermelho intenso */
  --red-legacy: #b91c1c; /* Cor anterior mantida para compatibilidade */
  --rtp-color: var(--green); /* cor dinâmica da barra RTP */
  --rtp-height: 28px; /* espessura mais destacada da barra RTP */
  --rtp-stripe-step: calc(var(--rtp-height) * 0.6);
  --rtp-stripe-gap: calc(var(--rtp-height) * 1.2);
  --rtp-stripe-move: calc(var(--rtp-height) * 3); /* deslocamento maior por ciclo */
  --rtp-stripe-speed: 10.0s; /* velocidade mais rápida das listras */
  --rtp-stripe-strong: 0.35; /* brilho mais intenso */
  --rtp-stripe-weak: 0.18;   /* brilho secundário proporcional */
  --rtp-brighten: 0.20;      /* intensidade do overlay de brilho */
  --rtp-saturate: 1.18;      /* saturação extra para vibrância */
  --rtp-contrast: 1.06;      /* contraste leve para legibilidade */
  /* Intensificação geral e harmônica para divs visuais */
  --div-saturate: 1.15;
  --div-contrast: 1.06;
  --div-brightness: 1.02;
}

* { box-sizing: border-box; }
html, body { 
  height: 100%; 
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px; /* Espaço para navegação fixa */
  scroll-behavior: smooth;
}

/* Centraliza todos os textos dentro de divs */
div {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Faixa superior */
.top-banner {
  width: 100%;
  text-align: center;
  color: var(--white);
  background: var(--red);
  border-bottom: 1px solid var(--black-dark);
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  box-shadow: 0 2px 8px rgba(252, 23, 35, 0.3);
}

/* Hero */
.hero {
  background: var(--black);
  padding: 48px 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px); /* Ajusta para considerar a faixa superior */
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

/* Ocultar stats inicialmente até gerar sinal */
.stats.hidden {
  display: none;
}

/* Ocultar iframe container inicialmente até gerar sinal */
.betting-iframe-container.hidden {
  display: none;
}

.stat {
  background: rgba(17,17,17,0.8);
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  text-align: center;
}

.stat-label {
  color: var(--white);
  opacity: 0.8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.stat-value {
  margin-top: 10px;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 8px rgba(22,163,74,0.4);
  text-align: center;
}

.currency { font-feature-settings: "tnum" on, "lnum" on; }

.hero-title {
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 48px;
  line-height: 1.05;
  margin: 18px auto 12px;
  max-width: 1000px;
}

/* Destaca apenas palavras específicas do h1 em verde */
.hero-title .text-green {
  color: var(--green);
}

.hero-subtitle {
  text-align: center;
  color: #eaeaea;
  font-size: 15px;
  opacity: 0.92;
  margin: 0 auto 24px;
}

/* Classe utilitária para aplicar texto verde quando necessário */
.text-green { color: var(--green); }

/* Regra global para deixar todos os h3 em caixa alta */
h3 {
  text-transform: uppercase;
}

.cta-wrap { display: flex; justify-content: center; margin-top: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 16px 28px;
  box-shadow: 0 10px 30px rgba(0, 200, 83, 0.35), 0 0 0 1px rgba(22,163,74,0.5) inset;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.35);
}

.btn-secondary {
  background: var(--green);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.25);
}

/* Centraliza e destaca o botão nos cards conforme o layout da imagem */
.game-card .btn-secondary {
  display: flex;               /* sobrescreve inline-flex para controle completo */
  justify-content: center;
  align-items: center;
  width: 100%;                 /* ocupa toda largura do card */
  margin: auto 0 0 0;          /* empurra para o final do container flex */
  padding: 16px 0;             /* altura mais consistente visualmente */
  border-radius: 10px;         /* acabamento mais próximo ao mock */
  font-size: 14px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  box-shadow: 0 12px 30px rgba(0, 200, 83, 0.35), 0 0 0 1px rgba(22,163,74,0.50) inset;
  text-align: center;
  flex-shrink: 0;              /* impede que o botão seja comprimido */
}

.game-card .btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06) saturate(1.05);
}

.game-card .btn-secondary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* Jogos (cards) */
.games-section { 
  padding: 36px 0 60px; 
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.game-card {
  background: var(--gray-800);
  border: 1px solid #1b1b1b;
  border-radius: 14px;
  padding: 14px 14px 20px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45), 0 0 0 1px rgba(22,163,74,0.18) inset;
  text-align: center;
  height: 320px;
  width: 75%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.game-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.55), 0 0 0 1px rgba(22,163,74,0.24) inset; }

.cover {
  height: 160px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  filter: saturate(var(--div-saturate)) contrast(var(--div-contrast)) brightness(var(--div-brightness));
  transition: filter 160ms ease;
}

.cover-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* exibe integralmente sem cortes/distorções */
  object-position: center;
}

/* Capas ilustrativas com estética de tecnologia */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 60px at 20% 30%, rgba(0,200,83,0.18), transparent 50%),
              radial-gradient(120px 60px at 80% 70%, rgba(255,255,255,0.06), transparent 60%);
  mix-blend-mode: screen;
}

.cover-d { background: #161616; }
.cover-e { background: #151515; }
.cover-f { background: #141414; }
.cover-g { background: #151515; }
.cover-h { background: #141414; }
.cover-i { background: #121212; }

/* Barra RTP */
.rtp-bar {
  position: relative;
  display: block;
  height: 40px;
}

.rtp-base {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #000000;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
}

.rtp-track {
  width: 100%;
  height: var(--rtp-height);
  background: #eeeeee; /* fundo claro como referência */
  border-radius: calc(var(--rtp-height) / 2);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.rtp-fill {
  height: var(--rtp-height);
  border-radius: calc(var(--rtp-height) / 2) 0 0 calc(var(--rtp-height) / 2);
  /* base + listras diagonais translúcidas para refletir a referência */
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,var(--rtp-stripe-strong)) 0px,
      rgba(255,255,255,var(--rtp-stripe-strong)) var(--rtp-stripe-step),
      rgba(255,255,255,var(--rtp-stripe-weak)) var(--rtp-stripe-step),
      rgba(255,255,255,var(--rtp-stripe-weak)) var(--rtp-stripe-gap)
    ),
    linear-gradient(180deg, rgba(255,255,255,var(--rtp-brighten)), rgba(255,255,255,0) 60%),
    linear-gradient(90deg, var(--rtp-color) 0%, var(--rtp-color) 100%);
  background-blend-mode: normal, overlay, normal;
  /* posição inicial para permitir animação independente por camada */
  background-position: 0 0, 0 0, 0 0;
  /* animação contínua de deslocamento das listras */
  animation: rtpStripes var(--rtp-stripe-speed) linear infinite;
  will-change: background-position;
  /* aumenta vibrância e legibilidade sem estourar as cores */
  filter: saturate(var(--rtp-saturate)) contrast(var(--rtp-contrast));
}

@keyframes rtpStripes {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: var(--rtp-stripe-move) var(--rtp-stripe-move), 0 0, 0 0; }
}

/* Galeria de imagens */
.gallery-section {
  padding: 36px 0 48px;
  background: var(--black);
}

.gallery-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--light-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  background: var(--gray-800);
  border: 1px solid #1b1b1b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
  filter: saturate(var(--div-saturate)) contrast(var(--div-contrast)) brightness(calc(var(--div-brightness) - 0.01));
  transition: filter 160ms ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Preserva proporções sem distorção para imagens específicas na galeria */
.gallery-item img.contain-fit {
  object-fit: contain;
}

/* Reduz a imagem para 50% e centraliza sem distorção */
.gallery-item img.contain-fit.half-size {
  width: 50%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Reduz para 30% do tamanho visual do container e centraliza */
.gallery-item img.contain-fit.scale-30 {
  width: 30%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gallery-item:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  filter: brightness(1.05);
}

@media (max-width: 720px) {
  .gallery-grid { gap: 14px; }
  .gallery-title { font-size: 18px; }
}
/* Seção explicativa */
.rtp-info { padding: 56px 0; background: var(--black); }
.info-icon { display: flex; justify-content: center; margin-bottom: 8px; }

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin: 6px auto 14px;
  max-width: 900px;
}

/* Cor exclusiva para a palavra "RTP" no h2 da seção explicativa */
.section-title .rtp-red {
  color: #FF0000;
}

.section-text {
  color: var(--light-gray);
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 800px;
}

/* Rodapé */
.site-footer {
  background: var(--black);
  border-top: 1px solid #101010;
  padding: 28px 0 40px;
}
.footer-text, .footer-version {
  text-align: center;
  color: var(--light-gray);
  font-size: 13px;
}
.footer-version { margin-top: 8px; opacity: 0.9; }

/* (removido) Mantemos .footer-text no estilo original, sem flex */

/* Responsividade */
@media (max-width: 1024px) {
  .hero-title { font-size: 42px; }
  .games-grid { 
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
  .hero {
    min-height: calc(100vh - 100px);
    padding: 32px 0 24px;
  }
  .games-section {
    min-height: auto;
    padding: 24px 0 40px;
  }
  .game-card {
    height: 300px;
    width: 75%;
  }
  .cover {
    height: 140px;
  }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 14px; }
  .games-grid { 
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .hero {
    min-height: calc(100vh - 80px);
    padding: 24px 0 16px;
  }
  .games-section {
    min-height: auto;
    padding: 16px 0 32px;
  }
  .container {
    padding: 0 16px;
  }
  .game-card {
    height: 280px;
    width: 75%;
  }
  .cover {
    height: 120px;
  }
  /* Suaviza movimento das listras em telas pequenas para harmonia visual */
  :root { 
    --rtp-stripe-speed: 13.0s; 
    --rtp-stripe-move: calc(var(--rtp-height) * 2.2);
  }
}

/* Acessibilidade: respeita preferência de reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .rtp-fill { animation: none; }
}

/* ===== Pop-ups (notificações) ===== */
#popup-root,
.popup-root {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(90%, 480px);
  z-index: 9999;
  pointer-events: none; /* não bloqueia interações fora dos pop-ups */
}

.popup {
  pointer-events: auto; /* permite clicar no botão fechar */
  background: rgba(17,17,17,0.95);
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  color: var(--white);
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: toastIn 240ms ease-out both;
}

.popup-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 200, 83, 0.45);
}

.popup-text {
  color: #eaeaea;
  text-align: center;
}

.popup-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #cccccc;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.popup-close:hover { color: #ffffff; }
.popup-close:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }

.popup.closing { animation: toastOut 240ms ease-in both; }

@keyframes toastIn {
  0% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-12px); }
}

@media (max-width: 720px) {
  #popup-root, .popup-root { width: min(94%, 400px); top: 10px; }
  .popup { font-size: 13px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .popup { animation: none; }
  .popup.closing { animation: none; }
}

/* ===== Container Flexível para Signal Generator e Iframe ===== */
.signal-iframe-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  margin: 20px auto;
  max-width: 1200px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Quando apenas o signal-generator está visível, centraliza perfeitamente */
.signal-iframe-container:has(.betting-iframe-container.hidden) {
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Fallback para navegadores que não suportam :has() */
.signal-iframe-container .signal-generator:only-child {
  margin: 0 auto;
  align-self: center;
}

/* Garantir centralização quando iframe está oculto */
.signal-iframe-container:has(.betting-iframe-container.hidden) .signal-generator {
  margin: 0 auto;
  align-self: center;
  width: 100%;
  max-width: 500px;
}

/* ===== Aviator Signal Generator ===== */
.signal-generator {
  background: #141414;
  border: 2px solid var(--red);
  border-radius: 20px;
  padding: 30px;
  margin: 10px auto;
  max-width: 500px;
  min-width: 450px;
  width: 500px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(252, 23, 35, 0.3), 0 0 0 1px rgba(252, 23, 35, 0.2) inset;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* ===== Container do Iframe da Casa de Aposta ===== */
.betting-iframe-container {
  flex: 1;
  min-width: 450px;
  max-width: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.iframe-placeholder {
  background: #141414;
  border: 2px solid #00C853;
  border-radius: 20px;
  padding: 0;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 200, 83, 0.3), 0 0 0 1px rgba(0, 200, 83, 0.2) inset;
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 100%;
  min-height: 700px;
  display: flex;
  flex-direction: column;
}

.iframe-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.1), transparent);
  animation: shimmerGreen 3s infinite;
}

@keyframes shimmerGreen {
  0% { left: -100%; }
  100% { left: 100%; }
}

.iframe-title {
  color: #00C853;
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
}

.iframe-description {
  color: #B3B3B3;
  font-size: 14px;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.iframe-content {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border: none;
  border-radius: 18px;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.iframe-content iframe {
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: none;
  border-radius: 18px;
  background: #fff;
  flex: 1;
  object-fit: cover;
}

/* Responsividade */
@media (max-width: 1024px) {
  .signal-iframe-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    gap: 20px;
    margin: 15px auto;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .signal-generator,
  .betting-iframe-container {
    max-width: 480px;
    min-width: auto;
    width: 95%;
    margin: 15px auto;
  }
  
  .iframe-content iframe {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .signal-iframe-container {
    gap: 20px;
    margin: 15px auto;
    padding: 0 20px;
  }
  
  .betting-iframe-container {
    margin: 0 auto;
    padding: 15px;
    min-width: auto;
    width: 100%;
    max-width: 100%;
  }
  
  .iframe-placeholder {
    min-height: 780px;
  }
  
  .iframe-content iframe {
    min-height: 754px;
  }
}

@media (max-width: 480px) {
  .signal-iframe-container {
    gap: 15px;
    margin: 10px auto;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .betting-iframe-container {
    margin: 0 auto;
    padding: 12px;
    min-width: auto;
    width: 100%;
    max-width: 100%;
  }
  
  .iframe-placeholder {
    min-height: 650px;
  }
  
  .iframe-content iframe {
    min-height: 624px;
  }
}

.signal-generator::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.signal-header {
  margin-bottom: 25px;
}

.signal-title {
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(252, 23, 35, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(252, 23, 35, 0.5));
}

.signal-subtitle {
  color: #B3B3B3;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.signal-display {
  position: relative;
  overflow: hidden; /* Prevent any content from overflowing */
  isolation: isolate; /* Create new stacking context */
}

.candle-container {
  position: relative;
  isolation: isolate; /* Create new stacking context for candle elements */
}

/* Ensure proper stacking order for all elements */
.airplane {
  z-index: 20; /* Highest priority - airplane should be on top */
}

.candle {
  z-index: 15; /* Second priority - candle should be below airplane */
}

.signal-value {
  z-index: 10; /* Third priority - signal value below candle */
  position: relative;
}

.confidence-bar {
  z-index: 8; /* Fourth priority - confidence bar */
  position: relative;
}

.motivational-text {
  z-index: 6; /* Fifth priority - motivational text */
  position: relative;
}

/* Ensure elements don't interfere with each other during animations */
.airplane.flying,
.airplane.growing {
  z-index: 25; /* Even higher during animations */
}

.candle.growing {
  z-index: 18; /* Higher during growth animation */
}

/* Additional spacing adjustments for better visual separation */
.signal-display > * {
  margin-bottom: 15px; /* Minimum spacing between all direct children */
}

.signal-display > *:last-child {
  margin-bottom: 0; /* Remove margin from last element */
}

/* Prevent text selection during animations for better UX */
.signal-display.animating {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Ensure consistent spacing in all screen sizes */
@media (max-width: 768px) {
  .signal-display > * {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .signal-display > * {
    margin-bottom: 10px;
  }
}

@media (min-width: 1200px) {
  .signal-display > * {
    margin-bottom: 18px;
  }
}

.signal-display {
  margin: 30px 0;
  position: relative;
  min-height: 280px; /* Increased minimum height to prevent overlaps */
}

.candle-container {
  position: relative;
  height: 220px; /* Increased height for better spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 30px; /* Increased margin for better separation */
  padding: 20px; /* Added padding for internal spacing */
}

.airplane {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px; /* Moved down from top to prevent overlap with container edge */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  z-index: 15; /* Increased z-index to ensure it's above other elements */
  transition: all 1.5s ease-out;
  filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.6));
  object-fit: contain;
}

.airplane.flying {
  animation: fly 1.5s ease-out;
}

.airplane.growing {
  animation: flyAndGrow 1.5s ease-out;
}

@keyframes fly {
  0% {
    transform: translateX(-50%) translateY(160px) scale(0.5); /* Adjusted for new positioning */
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(80px) scale(0.8) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1.2) rotate(0deg);
    opacity: 1;
  }
}

@keyframes flyAndGrow {
  0% {
    transform: translateX(-50%) translateY(160px) scale(0.3); /* Adjusted for new positioning */
    opacity: 0.5;
  }
  25% {
    transform: translateX(-50%) translateY(120px) scale(0.6);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(80px) scale(0.9) rotate(3deg);
    opacity: 0.9;
  }
  75% {
    transform: translateX(-50%) translateY(40px) scale(1.1) rotate(-2deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1.3) rotate(0deg);
    opacity: 1;
  }
}

.candle {
  width: 20px;
  background: #E50914;
  border-radius: 10px 10px 0 0;
  position: absolute;
  bottom: 20px; /* Moved up from bottom to create space */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  height: 0;
  transition: height 1.5s ease-out;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.candle.growing {
  animation: candleGlow 1.5s ease-out;
}

@keyframes candleGlow {
  0% { box-shadow: 0 0 15px rgba(229, 9, 20, 0.6); }
  50% { box-shadow: 0 0 25px rgba(229, 9, 20, 0.9), 0 0 35px rgba(229, 9, 20, 0.6); }
  100% { box-shadow: 0 0 15px rgba(229, 9, 20, 0.6); }
}

.signal-value {
  display: none; /* Hide the multiplier from the chart area */
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 900;
  margin-top: 25px; /* Increased margin for better separation */
  text-shadow: 0 0 15px rgba(229, 9, 20, 0.8);
  opacity: 1; /* Changed from 0 to 1 to make it visible by default */
  transition: opacity 0.5s ease-in;
  position: relative;
  z-index: 5;
  padding: 10px; /* Added padding for better visual separation */
}

.signal-value.show {
  opacity: 1;
  animation: valueGlow 0.5s ease-in;
}

@keyframes valueGlow {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.confidence-bar {
  margin: 20px 0; /* Increased margin for better spacing */
  padding: 15px; /* Increased padding */
  background: rgba(17, 17, 17, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  position: relative;
  z-index: 5;
}

.confidence-label {
  color: #B3B3B3;
  font-size: 14px;
  margin-right: 8px;
}

.confidence-value {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.confidence-value.timer-warning {
  color: #FF6B6B;
  animation: pulse-warning 1s infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.motivational-text {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  margin: 15px 0;
  padding: 12px;
  background: rgba(229, 9, 20, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  transition: all 0.3s ease;
}

.motivational-text.pulse {
  animation: motivationalPulse 0.6s ease-in-out;
}

@keyframes motivationalPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); background: rgba(229, 9, 20, 0.25); }
  100% { transform: scale(1); }
}

.signal-controls {
  margin: 25px 0;
}

.btn-generate {
  background: var(--red);
  color: #FFFFFF;
  border: none;
  border-radius: 15px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(252, 23, 35, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-generate:hover {
  background: var(--red-intense);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(253, 0, 50, 0.6);
}

.btn-generate:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(252, 23, 35, 0.4);
}

.btn-generate:disabled {
  background: linear-gradient(180deg, #666666, #444444);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-generate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.button-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.5));
  vertical-align: middle;
}

.btn-generate:hover::before {
  left: 100%;
}

.signal-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(229, 9, 20, 0.3);
}

.signal-footer p {
  color: #B3B3B3;
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 720px) {
  .signal-generator {
    margin: 15px auto;
    padding: 20px;
    max-width: none;
    min-width: 320px;
  }
  
  .signal-title {
    font-size: 20px;
  }
  
  .signal-subtitle {
    font-size: 12px;
  }
  
  .candle-container {
    height: 150px;
  }
  
  .signal-value {
    font-size: 24px;
  }
  
  .btn-generate {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Responsive adjustments for better spacing and overlap prevention */
@media (max-width: 768px) {
  .signal-display {
    min-height: 260px;
    padding: 15px;
    margin: 15px 0;
  }

  .candle-container {
    height: 200px;
    padding: 15px;
    margin-bottom: 25px;
  }

  .airplane {
    top: 15px;
    width: 35px;
    height: 35px;
  }

  .candle {
    bottom: 15px;
    width: 25px;
  }

  .signal-value {
    margin-top: 20px;
    padding: 8px;
    font-size: 1.8rem;
  }

  .confidence-bar {
    margin: 15px 0;
    padding: 12px;
  }

  .motivational-text {
    margin: 15px 0;
    padding: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .hero {
    padding: 24px 0 16px;
    min-height: calc(100vh - 100px);
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 15px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .signal-generator {
    margin: 10px auto;
    padding: 15px;
    min-width: 280px;
    width: 95%;
    max-width: 450px;
    box-sizing: border-box;
  }

  .signal-display {
    min-height: 240px;
    padding: 12px;
    margin: 12px 0;
  }

  .candle-container {
    height: 180px;
    padding: 12px;
    margin-bottom: 20px;
  }

  .airplane {
    top: 12px;
    width: 30px;
    height: 30px;
  }

  .candle {
    bottom: 12px;
    width: 20px;
  }

  .signal-value {
    margin-top: 18px;
    padding: 6px;
    font-size: 1.6rem;
  }

  .confidence-bar {
    margin: 12px 0;
    padding: 10px;
  }

  .motivational-text {
    margin: 12px 0;
    padding: 8px;
    font-size: 0.85rem;
  }

  .btn-generate {
    margin: 15px 0;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .signal-display {
    min-height: 320px;
    padding: 25px;
  }

  .candle-container {
    height: 260px;
    padding: 25px;
    margin-bottom: 35px;
  }

  .airplane {
    top: 25px;
    width: 50px;
    height: 50px;
  }

  .candle {
    bottom: 25px;
    width: 35px;
  }

  .signal-value {
    margin-top: 30px;
    padding: 12px;
    font-size: 2.2rem;
  }

  .confidence-bar {
    margin: 25px 0;
    padding: 18px;
  }
}

/* ===== SISTEMA DE ABAS ===== */
/* ===== NAVEGAÇÃO AVIATOR - TEMA DE AVIAÇÃO ===== */
.tab-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  min-height: 70px;
  background: linear-gradient(135deg, 
    #0a0a1a 0%, 
    #1a1a2e 25%, 
    #2a2a3e 50%, 
    #1a1a2e 75%, 
    #0a0a1a 100%
  );
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, 
    transparent 0%, 
    var(--red) 20%, 
    var(--red-intense) 50%, 
    var(--red) 80%, 
    transparent 100%
  ) 1;
  z-index: 9999;
  box-shadow: 
    0 -8px 32px rgba(0, 0, 0, 0.6),
    0 -2px 8px rgba(252, 23, 35, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efeito de radar/altímetro no fundo */
.tab-navigation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 25% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(255, 167, 38, 0.03) 0%, transparent 50%);
  animation: aviatorRadar 8s linear infinite;
  pointer-events: none;
}

/* Linhas de grade do painel de instrumentos */
.tab-navigation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
  background-size: 40px 20px;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes aviatorRadar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tab-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 2;
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0e0e0;
  padding: 18px 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  overflow: hidden;
}

/* Efeito de painel de instrumentos */
.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    transparent 50%, 
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: 8px 8px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Indicador de altitude/velocidade */
.tab-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--red) 50%, 
    transparent 100%
  );
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-button:hover {
  color: #ffffff;
  transform: translateY(-3px);
  text-shadow: 0 0 8px rgba(252, 23, 35, 0.6);
}

.tab-button:hover::before {
  opacity: 1;
}

.tab-button:hover::after {
  width: 80%;
}

.tab-button.active {
  color: var(--red);
  background: linear-gradient(135deg, 
    rgba(252, 23, 35, 0.15) 0%, 
    rgba(253, 0, 50, 0.1) 50%, 
    rgba(252, 23, 35, 0.15) 100%
  );
  text-shadow: 0 0 12px rgba(252, 23, 35, 0.8);
  box-shadow: 
    inset 0 2px 4px rgba(252, 23, 35, 0.2),
    0 0 16px rgba(252, 23, 35, 0.3);
}

.tab-button.active::before {
  opacity: 1;
}

.tab-button.active::after {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--red) 0%, 
    var(--red-intense) 50%, 
    var(--red) 100%
  );
  box-shadow: 0 0 8px rgba(252, 23, 35, 0.6);
}

/* Ícones com tema de aviação */
.tab-icon {
  font-size: 30px;
  margin-bottom: 4px;
  position: relative;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  display: inline-block;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  box-sizing: border-box;
  flex-shrink: 0;
  flex-grow: 0;
  aspect-ratio: 1/1;
  
  /* Otimizações de performance para ícones pequenos */
  will-change: transform, filter;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint;
}

.tab-icon.aviator-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 4px;
  background: transparent;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: inherit;
  box-sizing: border-box;
  flex-shrink: 0;
  flex-grow: 0;
  aspect-ratio: 1/1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  
  /* Otimizações específicas para imagens pequenas */
  will-change: transform, filter;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint;
  image-orientation: from-image;
  
  /* Preload e cache otimizado */
  loading: eager;
  decoding: sync;
}

/* Garantir visibilidade do ícone de raio */
.tab-icon:not(.aviator-icon) {
  z-index: 10;
  position: relative;
  opacity: 1;
  visibility: visible;
  color: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-style: normal;
  font-variant: normal;
  text-decoration: none;
  speak: none;
  -webkit-font-feature-settings: "liga" off;
  font-feature-settings: "liga" off;
}

/* Estilo específico para emoji de raio */
.tab-icon:not(.aviator-icon):before {
  content: none;
}

.tab-icon:not(.aviator-icon):after {
  content: none;
}

.tab-button:hover .tab-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(252, 23, 35, 0.6));
}

.tab-button.active .tab-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(252, 23, 35, 0.8));
  animation: aviatorPulse 2s ease-in-out infinite;
}

@keyframes aviatorPulse {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.2); }
}

.tab-text {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.2;
  position: relative;
  transition: all 0.3s ease;
}

.tab-button:hover .tab-text {
  letter-spacing: 1.2px;
}

.tab-button.active .tab-text {
  letter-spacing: 1.5px;
}

/* ===== RESPONSIVIDADE AVIATOR NAVIGATION ===== */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
  .tab-navigation {
    min-height: 75px;
  }
  
  .tab-container {
    max-width: 800px;
  }
  
  .tab-button {
    padding: 20px 16px;
    gap: 8px;
  }
  
  .tab-icon {
    font-size: 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
  
  .tab-icon.aviator-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
  
  .tab-text {
    font-size: 12px;
  }
  
  body {
    padding-bottom: 85px;
  }
}

/* Desktop (1024px-1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .tab-navigation {
    min-height: 72px;
  }
  
  .tab-container {
    max-width: 700px;
  }
  
  .tab-button {
    padding: 18px 14px;
    gap: 7px;
  }
  
  .tab-icon {
    font-size: 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
  
  .tab-icon.aviator-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
  
  .tab-text {
    font-size: 11.5px;
  }
  
  body {
    padding-bottom: 82px;
  }
}

/* Tablets (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .tab-navigation {
    min-height: 70px;
    box-shadow: 
      0 -6px 24px rgba(0, 0, 0, 0.5),
      0 -1px 6px rgba(255, 107, 53, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  
  .tab-navigation::after {
    background-size: 35px 18px;
  }
  
  .tab-container {
    max-width: 600px;
    padding: 0 20px;
  }
  
  .tab-button {
    padding: 16px 12px;
    gap: 6px;
  }
  
  .tab-icon {
    font-size: 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    margin-bottom: 3px;
  }
  
  .tab-icon.aviator-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
  
  .tab-text {
    font-size: 10.5px;
    letter-spacing: 0.8px;
  }
  
  .tab-button:hover .tab-text {
    letter-spacing: 1px;
  }
  
  .tab-button.active .tab-text {
    letter-spacing: 1.2px;
  }
  
  body {
    padding-bottom: 80px;
  }
}

/* Smartphones Large (481px-767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .tab-navigation {
    min-height: 65px;
    box-shadow: 
      0 -5px 20px rgba(0, 0, 0, 0.4),
      0 -1px 5px rgba(255, 107, 53, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  
  .tab-navigation::after {
    background-size: 30px 15px;
  }
  
  .tab-container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .tab-button {
    padding: 14px 10px;
    gap: 5px;
  }
  
  .tab-icon {
    font-size: 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    margin-bottom: 3px;
  }
  
  .tab-icon.aviator-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
  
  .tab-text {
    font-size: 10px;
    letter-spacing: 0.7px;
  }
  
  .tab-button:hover .tab-text {
    letter-spacing: 0.9px;
  }
  
  .tab-button.active .tab-text {
    letter-spacing: 1.1px;
  }
  
  body {
    padding-bottom: 75px;
  }
}

/* Smartphones Small (até 480px) */
@media (max-width: 480px) {
  .tab-navigation {
    min-height: 60px;
    box-shadow: 
      0 -4px 16px rgba(0, 0, 0, 0.3),
      0 -1px 4px rgba(255, 107, 53, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .tab-navigation::after {
    background-size: 25px 12px;
    opacity: 0.2;
  }
  
  .tab-container {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .tab-button {
    padding: 12px 8px;
    gap: 4px;
  }
  
  .tab-icon.aviator-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
  
  .tab-icon {
    font-size: 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    margin-bottom: 2px;
  }
  
  .tab-text {
    font-size: 9px;
    letter-spacing: 0.5px;
    line-height: 1.1;
  }
  
  .tab-button:hover .tab-text {
    letter-spacing: 0.7px;
  }
  
  .tab-button.active .tab-text {
    letter-spacing: 0.9px;
  }
  
  body {
    padding-bottom: 70px;
  }
}

/* ===== OTIMIZAÇÕES PARA SCROLL E PERFORMANCE ===== */

/* Otimização para scroll suave em diferentes velocidades */
.tab-navigation {
  /* Força aceleração de hardware */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  
  /* Otimização para scroll em iOS */
  -webkit-overflow-scrolling: touch;
  
  /* Previne flickering durante scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  
  /* Melhora performance em scroll rápido */
  contain: layout style paint;
}

/* Suporte para navegadores WebKit (Safari, Chrome) */
@supports (-webkit-backdrop-filter: blur(10px)) {
  .tab-navigation {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Fallback para navegadores sem suporte a backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .tab-navigation {
    background: linear-gradient(135deg, 
      rgba(10, 10, 26, 0.95) 0%, 
      rgba(26, 26, 46, 0.95) 25%, 
      rgba(42, 42, 62, 0.95) 50%, 
      rgba(26, 26, 46, 0.95) 75%, 
      rgba(10, 10, 26, 0.95) 100%
    );
  }
}

/* Otimização para Firefox */
@-moz-document url-prefix() {
  .tab-navigation {
    background: linear-gradient(135deg, 
      rgba(10, 10, 26, 0.98) 0%, 
      rgba(26, 26, 46, 0.98) 25%, 
      rgba(42, 42, 62, 0.98) 50%, 
      rgba(26, 26, 46, 0.98) 75%, 
      rgba(10, 10, 26, 0.98) 100%
    );
  }
}

/* Otimização para Edge */
@supports (-ms-accelerator: true) {
  .tab-navigation {
    background: linear-gradient(135deg, 
      rgba(10, 10, 26, 0.97) 0%, 
      rgba(26, 26, 46, 0.97) 25%, 
      rgba(42, 42, 62, 0.97) 50%, 
      rgba(26, 26, 46, 0.97) 75%, 
      rgba(10, 10, 26, 0.97) 100%
    );
  }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .tab-navigation::before {
    animation: none;
  }
  
  .tab-button.active .tab-icon {
    animation: none;
  }
  
  .tab-button {
    transition: color 0.2s ease, background 0.2s ease;
  }
  
  .tab-button::after {
    transition: width 0.2s ease;
  }
  
  body {
    scroll-behavior: auto;
  }
}

/* Suporte para temas escuros do sistema */
@media (prefers-color-scheme: dark) {
  .tab-navigation {
    background: linear-gradient(135deg, 
      #050510 0%, 
      #0f0f1e 25%, 
      #1f1f2e 50%, 
      #0f0f1e 75%, 
      #050510 100%
    );
  }
}

/* Otimização para dispositivos com alta densidade de pixels */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .tab-navigation {
    border-top-width: 2px;
  }
  
  .tab-navigation::after {
    background-size: 20px 10px;
  }
}

/* Prevenção de problemas em orientação landscape em mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .tab-navigation {
    min-height: 50px;
  }
  
  .tab-button {
    padding: 8px 6px;
    gap: 2px;
  }
  
  .tab-icon {
    font-size: 16px;
    margin-bottom: 1px;
  }
  
  .tab-text {
    font-size: 8px;
    letter-spacing: 0.3px;
  }
  
  body {
    padding-bottom: 60px;
  }
}

/* ===== CALCULADORA DE GESTÃO DE BANCA ===== */
.calculator-section {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  min-height: calc(100vh - 80px);
  padding: 40px 0 100px;
  color: #ffffff;
}

.calculator-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 23, 35, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calculator-title {
  text-align: center;
  color: var(--red);
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(252, 23, 35, 0.3);
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.input-group input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 12px;
  padding: 15px;
  color: #ffffff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-calculate {
  background: linear-gradient(135deg, #ff6b35 0%, #ffa726 100%);
  border: none;
  border-radius: 15px;
  padding: 18px 30px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-calculate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.btn-calculate:active {
  transform: translateY(-1px);
}

.results-container {
  background: rgba(255, 107, 53, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.results-container h3 {
  color: #ff6b35;
  margin-bottom: 20px;
  font-size: 1.4rem;
  text-align: center;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: #ffffff;
  font-weight: 600;
}

.result-value {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}

.tips-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  margin-top: 30px;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.tips-container h4 {
  color: var(--red);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  color: #ffffff;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* ===== RESPONSIVIDADE PARA ABAS ===== */
@media (max-width: 768px) {
  .calculator-container {
    margin: 0 20px;
    padding: 20px;
  }
  
  .calculator-title {
    font-size: 1.8rem;
  }
  
  .tab-text {
    font-size: 11px;
  }
  
  .tab-icon {
    font-size: 18px;
  }
  
  .tab-button {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .calculator-container {
    margin: 0 15px;
    padding: 15px;
  }
  
  .calculator-title {
    font-size: 1.6rem;
  }
  
  .tab-text {
    font-size: 10px;
  }
  
  .tab-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .signal-display {
    min-height: 240px;
    padding: 12px;
    margin: 12px 0;
  }

  .candle-container {
    height: 180px;
    padding: 12px;
    margin-bottom: 20px;
  }

  .airplane {
    top: 12px;
    width: 30px;
    height: 30px;
  }

  .candle {
    bottom: 12px;
    width: 20px;
  }

  .signal-value {
    margin-top: 18px;
    padding: 6px;
    font-size: 1.6rem;
  }

  .confidence-bar {
    margin: 12px 0;
    padding: 10px;
  }

  .motivational-text {
    margin: 12px 0;
    padding: 8px;
    font-size: 0.85rem;
  }

  .btn-generate {
    margin: 15px 0;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .signal-display {
    min-height: 320px;
    padding: 25px;
  }

  .candle-container {
    height: 260px;
    padding: 25px;
    margin-bottom: 35px;
  }

  .airplane {
    top: 25px;
    width: 50px;
    height: 50px;
  }

  .candle {
    bottom: 25px;
    width: 35px;
  }

  .signal-value {
    margin-top: 30px;
    padding: 12px;
    font-size: 2.2rem;
  }

  .confidence-bar {
    margin: 25px 0;
    padding: 18px;
  }
}