/* === RESET E VARIÁVEIS GLOBAIS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === NOTA IMPORTANTE SOBRE ORGANIZAÇÃO DO CSS === */
/* Este CSS foi otimizado para evitar duplicações.
   Todas as definições principais de:
   - #bot-control-btn (botão de controle)
   - .info-bar (barra de informações)
   - layout responsivo
   - .licenca-mini (caixa de informações de licenças)
   Estão concentradas no início do arquivo.
   Por favor, edite apenas nesta seção para evitar conflitos.
*/

/* === ESTILOS PARA CAIXA DE LICENÇAS === */
:root {
  /* === ESPAÇAMENTOS === */
  --espacamento-padrao: 20px;
  --espacamento-tablet: 30px;
  --espacamento-mobile: 20px;
  --borda-arredondada: 10px;
  --borda-arredondada-pequena: 5px;
  --gap-padrao: 12px;
  --gap-pequeno: 6px;
  --gap-menor: 3px;

  /* === DIMENSÕES DESKTOP === */
  --largura-maxima: 1200px;
  --largura-container: 95%;
  --largura-info-bar: 80%; /* Ajustado para padrão 80% */
  --largura-log: 80%; /* Nova variável para log */
  --largura-status: 80%; /* Nova variável para status */
  --largura-bot-control: 80%; /* Ajustado para padrão 80% */
  --largura-historico: 80%; /* Nova variável para histórico */
  --largura-rodape: 80%; /* Nova variável para rodapé */

  /* === SOMBRAS === */
  --sombra-padrao: 0 2px 8px rgba(0, 0, 0, 0.2);
  --sombra-botoes: 0 0 10px rgba(255, 255, 255, 0.05);
  --sombra-efeito: 0 0 6px rgba(0, 255, 0, 0.6);

  /* === FUNDOS === */
  --fundo-escuro: rgba(20, 20, 25, 0.8);
  --fundo-mais-escuro: rgba(15, 15, 20, 0.8);
  --fundo-botao: rgba(10, 10, 15, 0.95);

  /* === Paleta de cores === */
  /* Cinzas */
  --cinza-claro: #cccccc;
  --cinza-medio: #2c2c2c;
  --cinza-escuro: #1c1c1c;

  /* Pretos */
  --preto-fundo: #0d0d0d;
  --preto-caixa: #111111;
  --preto-texto: #000000;

  /* Brancos */
  --branco: #ffffff;
  --branco-transparente: rgba(255, 255, 255, 0.1);

  /* Vermelhos (Deriv) */
  --vermelho-claro: #ff444f;
  --vermelho-escuro: #ff1f23;

  /* Verdes (IQ Option) */
  --verde-claro: #00d67b;
  --verde-escuro: #00ff66;

  /* Amarelos */
  --amarelo-claro: #ffd700;
  --amarelo-escuro: #ffa500;

  /* Azuis */
  --azul-claro: #3f3f7a;
  --azul-escuro: #333366;

  /* Transparentes */
  --transparente-claro: rgba(255, 255, 255, 0.05);
  --transparente-escuro: rgba(0, 0, 0, 0.2);
  --brilho-verde: rgba(0, 255, 0, 0.6);
}

/* === ESTILOS GLOBAIS === */
body {
  color: var(--branco);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--preto-fundo);
  position: relative;
  overflow-x: hidden;
  z-index: 0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* === LAYOUT PRINCIPAL === */
.painel-central {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 70px);
  padding: var(--espacamento-padrao) 0 40px;
  width: 100%;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.painel-central > * {
  width: var(--largura-container);
  max-width: var(--largura-maxima);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--gap-padrao);
}

/* === COMPONENTE: NAVEGAÇÃO SUPERIOR === */
.navbar-topo {
  display: flex;
  flex-direction: column;
  width: var(--largura-container);
  margin: var(--espacamento-padrao) auto;
  padding: 0;
  z-index: 1000;
  gap: var(--gap-padrao);
  max-width: var(--largura-maxima);
}

.topo-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-bottom: var(--gap-padrao);
}

/* === COMPONENTE: CARD DE CONTA === */
.card-conta-container {
  position: relative;
  width: auto;
  max-width: 180px;
  z-index: 100;
  margin: 0;
}

.card-esquerda {
  flex-grow: 1;
}

.card-conta {
  display: flex;
  align-items: center;
  background: var(--preto-caixa);
  border-radius: var(--borda-arredondada);
  padding: 12px 10px;
  box-shadow: var(--sombra-padrao);
  width: 100%;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--verde-claro);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.status-dot.pequeno {
  width: 6px;
  height: 6px;
  margin-right: 3px;
}

.info-conta {
  flex: 1;
  overflow: hidden;
}

.tipo-conta {
  font-size: 0.9em;
  font-weight: bold;
  color: var(--branco);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.numero-conta {
  font-size: 0.8em;
  color: var(--cinza-claro);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === COMPONENTE: DROPDOWN === */
.dropdown-seta {
  font-size: 0.9em;
  color: var(--vermelho-claro);
  margin-left: 3px;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.dropdown-seta:hover {
  transform: scale(1.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--fundo-escuro);
  border-radius: var(--borda-arredondada);
  box-shadow: var(--sombra-padrao);
  padding: 10px 0;
  display: none;
  z-index: 999;
  min-width: 160px;
}

.dropdown-menu.visible {
  display: block;
}

.dropdown-btn {
  background: var(--preto-caixa);
  border: none;
  color: var(--branco);
  padding: 12px 20px;
  text-align: left;
  width: 100%;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dropdown-btn:hover {
  background: var(--cinza-medio);
  color: var(--verde-claro);
}

.dropdown-btn.sair {
  color: var(--vermelho-claro);
}

/* === COMPONENTE: BOTÕES LOGOUT E CONFIGURAÇÕES === */
.navbar-topo .logout-container {
  position: static;
  flex-shrink: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botão de configurações */
.config-btn {
  padding: 8px 10px;
  background-color: var(--cinza-medio);
  color: var(--branco);
  border: none;
  border-radius: var(--borda-arredondada);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  height: 42px;
  min-width: 42px;
}

.config-btn:hover {
  background-color: var(--cinza-escuro);
  box-shadow: var(--sombra-botoes);
  transform: scale(1.05);
}

.config-icon {
  font-size: 16px;
}

/* Botão de logout */
.logout-btn {
  padding: 8px 18px;
  background-color: var(--vermelho-claro);
  color: var(--branco);
  border: none;
  border-radius: var(--borda-arredondada);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: var(--gap-pequeno);
  cursor: pointer;
  transition: 0.3s;
  height: 42px;
}

.logout-btn:hover {
  background-color: var(--vermelho-escuro);
  box-shadow: var(--sombra-botoes);
  transform: scale(1.05);
}

/* === COMPONENTE: LICENÇA === */
.licenca-wrapper {
  width: var(--largura-info-bar);
  margin: 0 auto;
  padding: 6px 15px;
  border-radius: var(--borda-arredondada);
  background-color: var(--fundo-escuro);
  box-shadow: var(--sombra-padrao);
}

.licenca-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}

.licenca-mini-item {
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--cinza-claro);
  white-space: nowrap;
  border-left: none;
  padding-left: 0;
  transform: scale(1);
}

.licenca-mini-icone {
  font-size: 12px;
  color: var(--amarelo-claro);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
}

.licenca-mini-text {
  color: var(--cinza-claro);
  font-size: 0.6rem;
  margin-right: 1px;
}

.licenca-mini-valor {
  display: inline-block;
  width: auto;
  white-space: nowrap;
  padding: 0px 2px;
  border-radius: 3px;
  color: var(--branco);
  font-size: 0.6rem;
  font-weight: 600;
}

.licenca-mini-plano {
  display: inline-block;
  width: auto;
  white-space: nowrap;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.6rem;
}

/* Estilos dos planos */
.licenca-mini-plano.free {
  background-color: var(--verde-claro);
  color: var(--preto-texto);
}

.licenca-mini-plano.mensal {
  background-color: var(--branco);
  color: var(--preto-texto);
  padding: 2px 6px;
}

/* Estilo específico para validade de plano mensal */
.licenca-mini-item:last-child .licenca-mini-valor {
  /* Aplicar a todos os valores de validade */
  white-space: nowrap;
}

/* Quando for plano mensal, aplicar estilo especial na validade */
.licenca-mini-plano.mensal ~ .licenca-mini-item:last-child .licenca-mini-valor {
  background-color: var(--branco);
  color: var(--preto-texto);
  padding: 2px 6px;
  border-radius: 3px;
}

.licenca-mini-plano.vitalicio {
  background: linear-gradient(135deg, var(--azul-claro), var(--azul-escuro));
  color: var(--branco);
}

/* === COMPONENTE: BARRA DE INFORMAÇÕES === */
.info-bar {
  width: var(--largura-info-bar);
  height: 60px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(44, 44, 44, 0.8) 0%,
    rgba(44, 44, 44, 0.8) 50%,
    rgba(45, 35, 60, 0.8) 50%,
    rgba(45, 35, 60, 0.8) 100%
  );
  border-radius: var(--borda-arredondada);
  margin: 15px auto;
  box-shadow: var(--sombra-padrao);
  border: none;
}

.info-bar .saldo,
.info-bar .lucro {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  font-size: 1.2em;
}

.info-bar .saldo {
  align-items: flex-start;
  text-align: left;
}

.info-bar .lucro {
  align-items: flex-end;
  text-align: right;
}

.info-bar .saldo label,
.info-bar .lucro label {
  font-size: 0.7em;
  opacity: 0.8;
  font-weight: normal;
}

#saldo-valor,
#lucro-valor {
  font-size: 1.6em;
  font-weight: bold;
  font-family: inherit !important; /* Força a manter a fonte herdada */
  transition: color 0.3s ease, font-size 0.3s ease;
}

/* Garantir que nenhum script altere a fonte */
#lucro-valor {
  font-family: inherit !important;
  font-weight: bold !important;
}

#meta-valor {
  font-size: 0.7em;
  opacity: 0.8;
  font-weight: normal;
  vertical-align: top;
  position: relative;
  top: 0.2em;
}

.rs {
  font-size: 0.6em;
  opacity: 0.7;
  vertical-align: top;
}

/* === COMPONENTE: CONTROLE DO ROBÔ === */
#painel-config {
  width: 100%;
  max-width: var(--largura-maxima);
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.painel-robo {
  margin: var(--espacamento-padrao) 0 0.75rem;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modo-meta-wrapper {
  background-color: var(--fundo-escuro);
  border-radius: var(--borda-arredondada);
  padding: 18px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 45%;
  max-width: 350px;
  box-shadow: var(--sombra-padrao);
  border: none;
  height: auto;
  margin: 0 auto 20px auto;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 250px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
}

.modo-meta-wrapper.recolhido {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: translateY(-15px) !important;
  pointer-events: none !important;
}

/* Banner de Notícias e Telemetria em Tempo Real */
.banner-noticias-telemetria {
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 15px auto 10px auto;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  text-align: left;
  transition: all 0.3s ease;
}

.banner-noticias-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.banner-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.banner-badge-live.ativo {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.banner-ativo-tag {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 0.78rem;
}

.banner-score-tag {
  color: #94a3b8;
  font-size: 0.78rem;
}

.banner-score-tag strong {
  color: #f8fafc;
}

.banner-noticias-conteudo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.banner-icone {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.banner-texto-marquee {
  flex: 1;
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.35;
  word-break: break-word;
}

.banner-barra-progresso-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.banner-barra-progresso {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #ffc107, #10b981);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.painel-central > .modo-meta-wrapper {
  margin: 0 auto 20px auto;
}

#modo-container,
#meta-container {
  width: 100%;
  display: block;
  text-align: left;
}

#modo-container {
  margin-bottom: var(--gap-pequeno);
}

#modo-container label,
#meta-container label {
  display: block;
  font-weight: bold;
  color: var(--branco);
  font-size: 0.9em;
  white-space: nowrap;
  text-align: left;
  margin: 0 0 6px 0;
}

#modo-container label:after {
  content: " ✨";
  color: var(--amarelo-claro);
}

.modo-select,
.input-meta {
  width: 100%;
  min-width: 50px;
  padding: 6px 10px;
  border-radius: var(--borda-arredondada-pequena);
  border: 1px solid var(--branco-transparente);
  background-color: rgba(30, 30, 30, 0.7);
  color: var(--branco);
  font-size: 14px;
  height: 34px;
  display: block;
}

#bot-control-btn {
  width: var(--largura-bot-control);
  height: 60px;
  padding: 0 30px;
  margin: 20px auto;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: var(--borda-arredondada);
  background-color: var(--verde-claro);
  color: var(--preto-texto);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--sombra-padrao);
  text-align: center;
}

#bot-control-btn.ativo {
  background-color: var(--vermelho-claro);
  color: var(--branco);
}

/* === COMPONENTE: LOG PERSONALIZADO === */
.log-temp {
  width: var(--largura-log);
  padding: 1rem 1.5rem;
  margin: 1.2rem auto;
  border-radius: var(--borda-arredondada);
  background-color: var(--fundo-escuro);
  color: var(--branco);
  font-size: 0.9rem;
  text-align: center;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 3px solid var(--azul-claro);
  transition: all 0.3s ease;
  line-height: 1.5;
  box-shadow: var(--sombra-padrao);
}

.log-temp.info {
  border-left-color: var(--azul-claro);
}

.log-temp.aviso {
  border-left-color: var(--amarelo-claro);
}

.log-temp.erro {
  border-left-color: var(--vermelho-claro);
}

.log-temp.sucesso {
  border-left-color: var(--verde-claro);
}

.log-temp.analise {
  border-left-color: var(--azul-escuro);
}

.log-temp.contrato {
  border-left-color: var(--amarelo-escuro);
}

.log-temp.espera {
  border-left-color: #9966cc;
}

.log-temp.ganho {
  border-left-color: var(--verde-escuro);
}

.log-temp.perda {
  border-left-color: var(--vermelho-escuro);
}

.log-emoji {
  margin-right: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  text-align: center;
}

.log-entry {
  font-family: "Courier New", monospace;
  padding: 8px;
  border-left: 3px solid;
  margin: 4px 0;
}

.log-entry.success {
  border-color: #4caf50;
}
.log-entry.warning {
  border-color: #ffc107;
}
.log-entry.error {
  border-color: #f44336;
}
.log-entry.info {
  border-color: #2196f3;
}

/* === COMPONENTE: BARRA DE STATUS === */
#barra-status {
  margin: 0.8rem auto;
  padding: 0.8rem 1.5rem;
  border-radius: var(--borda-arredondada);
  background-color: var(--fundo-escuro);
  width: var(--largura-status);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: var(--sombra-padrao);
}

/* === STEPPER DE CANALETA VAZADA CONTÍNUA COM PADRÃO E TAMANHO ORIGINAL (Issue #25) === */
.stepper-canaleta-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 6px 0 4px 0;
}

.stepper-svg {
  width: 100%;
  height: 22px;
  display: block;
  overflow: visible;
}

.calha-fundo {
  fill: #1a1a22;
  stroke: #383a45;
  stroke-width: 1.2;
  transition: all 0.3s ease;
}

.calha-luz {
  filter: drop-shadow(0 0 4px rgba(255, 214, 0, 0.85)) drop-shadow(0 0 10px rgba(255, 214, 0, 0.5));
}

#progresso-luz-rect {
  transition: width 0.35s ease-out;
}

#luz-ponto-frente {
  filter: drop-shadow(0 0 6px #FFD600) drop-shadow(0 0 10px #FFF176);
  transition: cx 0.35s ease-out, opacity 0.3s ease;
}

.stepper-labels-row {
  position: relative;
  width: 100%;
  height: 18px;
  margin-top: 5px;
  box-sizing: border-box;
}

.stepper-label-item {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.75rem;
  color: #7a7e8d;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.stepper-label-item.pos-analisando {
  left: 5%;
}

.stepper-label-item.pos-abrindo {
  left: 50%;
}

.stepper-label-item.pos-finalizado {
  left: 95%;
}

.stepper-label-item.ativo span {
  color: #FFD600 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(255, 214, 0, 0.6);
}

.status-etapas {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
  height: 40px;
  margin: 12px 0;
  padding: 0;
  overflow: visible;
}

/* Ajustando precisamente os pseudo-elementos para conectar exatamente no centro das bolinhas */
.status-etapas::before,
.status-etapas::after {
  content: "";
  position: absolute;
  top: 7.5px;
  height: 3px;
  left: 35px !important;
  right: 35px !important;
  z-index: 1;
}

.status-etapas::before {
  background-color: var(--transparente-claro, rgba(255, 255, 255, 0.12));
}

.status-etapas::after {
  left: 35px !important;
  right: auto !important;
  width: 0;
  max-width: calc(100% - 70px) !important;
  background-color: #FFD600;
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.8);
  transition: width 0.4s ease-in-out;
  z-index: 2;
}

/* Container de cada etapa - largura fixa para centralizar perfeitamente as 3 bolinhas */
.status-etapas > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(204, 204, 204, 0.8);
  z-index: 5;
  position: relative;
  gap: 4px;
  width: 70px;
  text-align: center;
}

/* === BOLINHAS DE STATUS (100% SÓLIDAS E OPACAS) === */
.bolinha {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #2a2a2a;
  border: 2px solid #444;
  transition: all 0.3s ease;
  z-index: 5;
  position: relative;
  margin-bottom: 2px;
  opacity: 1 !important;
}

.bolinha.grande {
  width: 20px;
  height: 20px;
}

.bolinha.pequena {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}

.bolinha.ativo,
.bolinha.ativa {
  background-color: #FFD600 !important;
  border-color: #FFD600 !important;
  box-shadow: 0 0 10px rgba(255, 214, 0, 0.7) !important;
  opacity: 1 !important;
}

.bolinha.processando {
  background-color: #FFC107 !important;
  border-color: #FFD600 !important;
  box-shadow: 0 0 12px rgba(255, 214, 0, 0.85) !important;
  opacity: 1 !important;
  animation: pulse 1s infinite ease-in-out;
}

.bolinha.pisca {
  animation: piscar 1.2s infinite ease-in-out !important;
  -webkit-animation: piscar 1.2s infinite ease-in-out !important;
  opacity: 1 !important;
}

/* === ANIMAÇÕES COM OPACIDADE 100% SÓLIDA (ZERO VAZAMENTO DA BARRA) === */
@keyframes piscar {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 214, 0, 0.5);
    background-color: #FFD600;
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 16px rgba(255, 214, 0, 1), 0 0 24px rgba(255, 214, 0, 0.6);
    background-color: #FFE082;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 214, 0, 0.5);
    background-color: #FFC107;
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 16px rgba(255, 214, 0, 1), 0 0 24px rgba(255, 214, 0, 0.7);
    background-color: #FFD54F;
  }
}

@keyframes brilhoResultado {
  0% {
    text-shadow: none;
    opacity: 0.7;
  }
  50% {
    text-shadow: 0 0 8px var(--verde-claro);
    color: var(--verde-escuro);
    opacity: 1;
  }
  100% {
    text-shadow: none;
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

/* === COMPONENTE: HISTÓRICO === */
.historico {
  width: var(--largura-historico);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem auto;
  border-radius: var(--borda-arredondada);
  background-color: var(--fundo-escuro);
  box-shadow: var(--sombra-padrao);
}

.linha-titulo-historico {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.titulo-historico {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--branco);
  text-align: center;
  flex-grow: 1;
}

.acoes-esquerda,
.acoes-direita {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.icone-historico {
  position: relative;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--cinza-claro);
  transition: color 0.2s, transform 0.2s, background-color 0.2s;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.icone-historico:hover {
  color: var(--branco);
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.08);
}

.icone-historico.ativo {
  color: var(--verde-claro);
  background: rgba(76, 175, 80, 0.15);
}

/* Tooltip customizado instantâneo ao passar o mouse */
.icone-historico[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #181d26;
  color: #f0f4f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  z-index: 9999;
}

.icone-historico[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #181d26 transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 9999;
}

.icone-historico[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.icone-historico[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Ajustes nas extremidades para o tooltip não cortar */
.acoes-esquerda .icone-historico:first-child[data-tooltip]::after {
  left: 0;
  transform: translateX(0) translateY(4px);
}
.acoes-esquerda .icone-historico:first-child[data-tooltip]:hover::after {
  transform: translateX(0) translateY(0);
}
.acoes-esquerda .icone-historico:first-child[data-tooltip]::before {
  left: 12px;
  transform: none;
}

.acoes-direita .icone-historico:last-child[data-tooltip]::after {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}
.acoes-direita .icone-historico:last-child[data-tooltip]:hover::after {
  transform: translateX(0) translateY(0);
}
.acoes-direita .icone-historico:last-child[data-tooltip]::before {
  left: auto;
  right: 12px;
  transform: none;
}

.tabela-wrapper {
  max-height: 250px;
  overflow-y: auto;
  border-radius: var(--borda-arredondada-pequena);
  border: 1px solid var(--branco-transparente);
}

#historico-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

#historico-tabela th,
#historico-tabela td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--branco-transparente);
}

#historico-tabela th {
  background-color: var(--fundo-mais-escuro);
  color: var(--cinza-claro);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

#historico-tabela tbody tr:last-child td {
  border-bottom: none;
}

#historico-tabela tbody tr:hover {
  background-color: var(--transparente-claro);
}

.resultado.positivo {
  color: var(--verde-claro);
  font-weight: bold;
}

.resultado.negativo {
  color: var(--vermelho-claro);
  font-weight: bold;
}

/* === COMPONENTE: RODAPÉ === */
.rodape-painel {
  width: var(--largura-rodape);
  padding: 0.8rem 1.5rem;
  margin: 1.2rem auto 0 auto;
  border-radius: var(--borda-arredondada);
  background-color: var(--fundo-escuro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--cinza-claro);
  box-shadow: var(--sombra-padrao);
}

.status-conexao {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.texto-truncado {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* === FUNDO DECORATIVO === */
.bg-mapa-mundi-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1000 500'%3E%3Cdefs%3E%3Cfilter id='f1' x='-50%' y='-50%' width='200%' height='200%'%3E%3CfeGaussianBlur stdDeviation='20' /%3E%3C/filter%3E%3C/defs%3E%3Crect width='100%' height='100%' fill='%230d0d0d'/%3E%3C!-- Continents --%3E%3Cpath d='M100,100 L150,50 L200,100 L250,50 L300,100 L350,50 L400,100 L450,50 L500,100 L550,50 L600,100 L650,50 L700,100 L750,50 L800,100 L850,50 L900,100' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3Cpath d='M100,200 L150,150 L200,200 L250,150 L300,200 L350,150 L400,200 L450,150 L500,200 L550,150 L600,200 L650,150 L700,200 L750,150 L800,200 L850,150 L900,200' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3Cpath d='M100,300 L150,250 L200,300 L250,250 L300,300 L350,250 L400,300 L450,250 L500,300 L550,250 L600,300 L650,250 L700,300 L750,250 L800,300 L850,250 L900,300' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3Cpath d='M100,400 L150,350 L200,400 L250,350 L300,400 L350,350 L400,400 L450,350 L500,400 L550,350 L600,400 L650,350 L700,400 L750,350 L800,400 L850,350 L900,400' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C!-- Glowing lines --%3E%3Cg filter='url(%23f1)'%3E%3Cpath d='M200,150 Q300,100 400,150 T600,150' fill='none' stroke='rgba(0,255,0,0.1)' stroke-width='2'/%3E%3Cpath d='M300,350 Q400,300 500,350 T700,350' fill='none' stroke='rgba(255,68,79,0.1)' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
  animation: fadeIn 2s ease-in-out;
}

/* === ESTILOS PARA TELA DE LOGIN === */
.container {
  background: #232323;
  padding: 32px 36px 28px 36px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  margin: 60px auto 0 auto;
  box-shadow: 0 0 24px rgba(255, 68, 79, 0.18);
  color: #fff;
  z-index: 10;
  position: relative;
}

.container h2 {
  color: #ff444f;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #181818;
  color: #fff;
  font-size: 15px;
}

.termos {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.termos input[type="checkbox"] {
  margin-right: 5px;
}

.termos a {
  color: #ffae42;
  text-decoration: none;
}

.termos a:hover {
  text-decoration: underline;
}

.btn-ativar {
  background: #ff444f;
  color: #fff;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255, 68, 79, 0.08);
}

.btn-ativar:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

.btn-ativar:hover:not(:disabled) {
  background: #d7373f;
}

.erro {
  background: #2a1a1a;
  color: #ff444f;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  padding: 12px;
  border-radius: 8px;
  border-left: 5px solid #ff444f;
  animation: shake 0.5s;
}

.alerta-risco {
  background: #2a1a1a;
  border-left: 5px solid #ffae42;
  color: #ffae42;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.alerta-cautela {
  background: #1e4620;
  border-left: 5px solid #00d67b;
  color: #c7f5da;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
  :root {
    --largura-info-bar: 90%;
    --largura-log: 90%;
    --largura-status: 90%;
    --largura-bot-control: 90%;
    --largura-historico: 90%;
    --largura-rodape: 90%;
  }

  .info-bar {
    height: auto;
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .info-bar .saldo,
  .info-bar .lucro {
    align-items: center;
    text-align: center;
    min-width: auto;
  }

  .modo-meta-wrapper {
    width: 60%;
  }
}

@media (max-width: 768px) {
  :root {
    --largura-info-bar: 95%;
    --largura-log: 95%;
    --largura-status: 95%;
    --largura-bot-control: 95%;
    --largura-historico: 95%;
    --largura-rodape: 95%;
    --espacamento-padrao: 15px;
  }

  .painel-central {
    padding: var(--espacamento-mobile) 0 30px;
  }

  .navbar-topo {
    margin: var(--espacamento-mobile) auto;
  }

  .topo-superior {
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
  }

  .card-conta-container {
    max-width: 150px;
  }

  .config-btn {
    padding: 6px 8px;
    font-size: 14px;
    height: 36px;
    min-width: 36px;
  }

  .logout-btn {
    padding: 6px 12px;
    font-size: 12px;
    height: 36px;
  }

  .logout-text {
    display: none;
  }

  .licenca-wrapper {
    width: 100%;
    padding: 4px 10px;
  }

  .licenca-mini {
    gap: 8px;
    justify-content: space-around;
  }

  .licenca-mini-item {
    gap: 1px;
  }

  .licenca-mini-icone {
    font-size: 10px;
    min-width: 12px;
  }

  .licenca-mini-text {
    font-size: 0.5rem;
  }

  .licenca-mini-valor {
    font-size: 0.5rem;
  }

  .licenca-mini-plano {
    font-size: 0.5rem;
    padding: 1px 3px;
  }

  .info-bar {
    padding: 10px 15px;
  }

  #saldo-valor,
  #lucro-valor {
    font-size: 1.4em;
  }

  .modo-meta-wrapper {
    width: 80%;
    padding: 15px 20px;
  }

  #bot-control-btn {
    height: 50px;
    font-size: 18px;
  }

  .log-temp {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }

  #barra-status {
    padding: 0.6rem 1rem;
  }

  .status-etapas > div {
    width: 60px;
  }

  .status-etapas > div span {
    font-size: 0.65rem;
  }

  .status-etapas::before,
  .status-etapas::after {
    left: 30px !important;
    right: 30px !important;
    top: 7px;
  }

  .status-etapas::after {
    right: auto !important;
    max-width: calc(100% - 60px) !important;
  }

  .bolinha {
    width: 16px;
    height: 16px;
  }

  .historico {
    padding: 1rem 1.2rem;
  }

  .titulo-historico {
    font-size: 1rem;
  }

  .icone-historico {
    font-size: 1.1rem;
  }

  #historico-tabela {
    font-size: 0.75rem;
  }

  #historico-tabela th,
  #historico-tabela td {
    padding: 0.5rem 0.6rem;
  }

  .rodape-painel {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
  }

  .container {
    padding: 25px 20px;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  :root {
    --largura-info-bar: 98%;
    --largura-log: 98%;
    --largura-status: 98%;
    --largura-bot-control: 98%;
    --largura-historico: 98%;
    --largura-rodape: 98%;
    --espacamento-mobile: 10px;
  }

  .navbar-topo {
    margin: var(--espacamento-mobile) auto;
  }

  .card-conta-container {
    max-width: 130px;
  }

  .card-conta {
    padding: 10px 8px;
  }

  .status-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
  }

  .tipo-conta {
    font-size: 0.8em;
  }

  .numero-conta {
    font-size: 0.7em;
  }

  .dropdown-seta {
    font-size: 0.8em;
    width: 16px;
    height: 16px;
  }

  .config-btn {
    padding: 5px 7px;
    font-size: 12px;
    height: 32px;
    min-width: 32px;
  }

  .logout-btn {
    padding: 5px 10px;
    height: 32px;
  }

  .licenca-wrapper {
    padding: 3px 8px;
  }

  .licenca-mini {
    gap: 6px;
  }

  .licenca-mini-item {
    gap: 0px;
  }

  .licenca-mini-icone {
    font-size: 9px;
    min-width: 10px;
  }

  .licenca-mini-text {
    display: none; /* Oculta texto em telas muito pequenas */
  }

  .licenca-mini-valor {
    font-size: 0.45rem;
  }

  .licenca-mini-plano {
    font-size: 0.45rem;
    padding: 1px 2px;
  }

  .info-bar {
    padding: 8px 10px;
  }

  #saldo-valor,
  #lucro-valor {
    font-size: 1.2em;
  }

  .modo-meta-wrapper {
    width: 90%;
    padding: 12px 15px;
  }

  .modo-select,
  .input-meta {
    font-size: 13px;
    height: 30px;
  }

  #bot-control-btn {
    height: 45px;
    font-size: 16px;
  }

  .log-temp {
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
  }

  #barra-status {
    padding: 0.5rem 0.8rem;
  }

  .status-etapas > div {
    width: 50px;
  }

  .status-etapas > div span {
    font-size: 0.6rem;
  }

  .status-etapas::before,
  .status-etapas::after {
    left: 25px !important;
    right: 25px !important;
    top: 6px;
  }

  .status-etapas::after {
    right: auto !important;
    max-width: calc(100% - 50px) !important;
  }

  .bolinha {
    width: 14px;
    height: 14px;
  }

  .historico {
    padding: 0.8rem 1rem;
  }

  .titulo-historico {
    font-size: 0.9rem;
  }

  .icone-historico {
    font-size: 1rem;
  }

  #historico-tabela {
    font-size: 0.7rem;
  }

  #historico-tabela th,
  #historico-tabela td {
    padding: 0.4rem 0.5rem;
  }

  .rodape-painel {
    padding: 0.5rem 0.8rem;
    font-size: 0.65rem;
  }

  .container {
    padding: 20px 15px;
    margin-top: 30px;
  }
}

/* === MODAL DE CONFIGURAÇÕES === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--cor-fundo-escuro);
  border-radius: 16px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--cinza-escuro);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cinza-escuro);
}

.modal-header h3 {
  margin: 0;
  color: var(--branco);
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--cinza-claro);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--cinza-escuro);
  color: var(--branco);
}

.modal-body {
  padding: 24px;
}

.config-section {
  margin-bottom: 24px;
}

.config-section:last-child {
  margin-bottom: 0;
}

.config-section h4 {
  margin: 0 0 12px 0;
  color: var(--cinza-claro);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-option {
  width: 100%;
  background: var(--cinza-escuro);
  border: 1px solid var(--cinza-medio);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
  color: var(--branco);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.config-option:hover {
  background: var(--cinza-medio);
  border-color: var(--azul-claro);
  transform: translateY(-1px);
}

.config-option:last-child {
  margin-bottom: 0;
}

.config-option .config-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.progress-bar {
  display: flex;
  align-items: center;
  height: 30px;
}

.logs-container {
  margin: 20px 0;
  font-family: "Courier New", monospace;
}

.logs-wrapper {
  background: #1e1e1e;
  border-radius: 8px;
  border: 1px solid #333;
  margin-top: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.logs-header {
  padding: 15px;
  border-bottom: 1px solid #333;
}

.logs-header h3 {
  margin: 0 0 10px 0;
  color: #fff;
}

.progress-bar {
  background: #252525;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.step-dot {
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.progress-step.active .step-dot {
  background: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.progress-step span {
  font-size: 12px;
  color: #888;
}

.progress-step.active span {
  color: #2ecc71;
}

.logs-content {
  max-height: 300px;
  overflow-y: auto;
  padding: 15px;
}

.log-entry {
  padding: 8px;
  margin: 4px;
  border-left: 3px solid;
  font-size: 12px;
}

.log-entry.success {
  border-color: #4caf50;
}
.log-entry.warning {
  border-color: #ffc107;
}
.log-entry.error {
  border-color: #f44336;
}
.log-entry.info {
  border-color: #2196f3;
}

.log-entry .timestamp {
  color: #888;
  margin-right: 8px;
}

.log-entry .message {
  color: #fff;
}

/* ==============================================================
   ESTILOS ISSUE #23: CONFLUÊNCIA VISUAL, FINANCEIRA E OPERACIONAL
   ============================================================== */

/* Badges e Status das Operações Ativas */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-call {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.badge-put {
  background: rgba(244, 67, 54, 0.2);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.4);
}

.badge-turbo {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.4);
}

.badge-status-op {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-status-op.monitorando {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.badge-status-op.vendendo {
  background: rgba(33, 150, 243, 0.18);
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.linha-operacao-ativa {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #2196F3;
  transition: background 0.2s ease;
}

.linha-operacao-ativa:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Animações financeiras progressivas (#23.D) */
.glow-gain {
  animation: pulseGain 0.8s ease-out;
}

.flash-loss {
  animation: pulseLoss 0.8s ease-out;
}

@keyframes pulseGain {
  0% { text-shadow: 0 0 14px rgba(76, 175, 80, 0.95); transform: scale(1.03); color: #00E676; }
  100% { text-shadow: none; transform: scale(1); }
}

@keyframes pulseLoss {
  0% { text-shadow: 0 0 14px rgba(244, 67, 54, 0.95); transform: scale(1.03); color: #FF5252; }
  100% { text-shadow: none; transform: scale(1); }
}

/* Card Glow e Iluminância Fixa em TODOS os cards (#23) */
/* Leve iluminância fixa e borda sutil para contrastar e destacar cada card do fundo escuro */
.card-conta,
.licenca-wrapper,
.info-bar,
.modo-meta-wrapper,
.banner-noticias-telemetria,
#barra-status,
.historico,
.rodape-painel {
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.06), 0 0 2px rgba(255, 255, 255, 0.16), 0 8px 24px rgba(0, 0, 0, 0.55) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.card-conta:hover,
.licenca-wrapper:hover,
.info-bar:hover,
.modo-meta-wrapper:hover,
.banner-noticias-telemetria:hover,
#barra-status:hover,
.historico:hover,
.rodape-painel:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.10), 0 0 3px rgba(255, 255, 255, 0.24), 0 10px 28px rgba(0, 0, 0, 0.65) !important;
}

/* Garante que o container recolhido não exiba bordas ou iluminância fantasma */
.modo-meta-wrapper.recolhido {
  border: none !important;
  box-shadow: none !important;
}

