@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,255,153, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0,255,153, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,255,153, 0); }
}

     :root {
            --card-bg: #121212;
            --primary: #007bff;
            --card-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 20px;
}

        /* Estilo do pop-up */
        .strategy-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--card-bg, #121212);
            padding: 25px;
            border-radius: 16px;
            box-shadow: var(--card-shadow, 0px 4px 10px rgba(0, 0, 0, 0.1));
            z-index: 1000;
            border: 1px solid var(--primary, #007bff);
            animation: fadeIn 0.3s ease-out;
            text-align: center;
            width: 350px;
        }

        /* Título com degradê */
        .strategy-popup h2 {
            color: #007bff;
            font-size: 24px;
            margin-bottom: 20px;
            font-weight: bold;
            background: linear-gradient(45deg, #007bff, #ffffff); /* Degradê azul */
            -webkit-background-clip: text;
            color: transparent;
        }

.strategy-popup p {
    color: #007bff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left; /* Alinhamento do texto à esquerda */
}

        /* Aumentando a imagem */
        .strategy-popup img {
            width: 100%;
            max-width: 800px; /* Aumentei o tamanho máximo da imagem */
            margin-bottom: 20px;
        }

        .strategy-popup button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 8px;
            margin-top: 20px;
            font-weight: bold;
        }

        .strategy-popup button:hover {
            background-color: #0056b3;
        }

        .ranking-scroll-area {
  max-height: 360px;  /* Altura visível da caixa de conteúdo */
  overflow-y: auto;   /* Scroll só quando precisa */
  padding-right: 8px; /* Evita que conteúdo encoste na borda */
}

/* Scroll bar estilizado */
.ranking-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.ranking-scroll-area::-webkit-scrollbar-thumb {
  background-color: #16E0ED;
  border-radius: 4px;
}


        /* Estilo do botão de fechar */
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: transparent;
            border: none;
            color: #007bff;
            font-size: 22px;
            cursor: pointer;
        }

        .close-btn:hover {
            color: #0056b3;
        }

        /* Animação fadeIn */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Garantir que os elementos se comportem corretamente */
        .elementor *, .elementor :after, .elementor :before {
            box-sizing: border-box;
        }

        div {
            display: block;
            unicode-bidi: isolate;
        }
/* Estilos para o pop-up com design de app */
    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f4f7fa;
    }

    /* Estilo geral do pop-up */
    .popup {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background-color: #2d2d2d;
      color: white;
      padding: 12px 20px; /* Diminuindo o padding */
      border-radius: 10px; /* Borda mais arredondada */
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      font-size: 14px; /* Font menor */
      width: 220px; /* Diminuindo a largura */
      text-align: center;
      z-index: 1000;
      display: none;
    }

    /* Estilo do título dentro do pop-up */
    .popup h3 {
      margin-top: 0;
      font-size: 16px; /* Tamanho do título ajustado */
      font-weight: 500;
    }

    /* Estilo do botão de fechar */
    .btn-close {
      background-color: #ff4747;
      border: none;
      color: white;
      padding: 8px 16px; /* Botão menor */
      border-radius: 8px; /* Borda do botão arredondada */
      cursor: pointer;
      font-size: 12px; /* Tamanho da fonte do botão menor */
      margin-top: 10px; /* Margem ajustada */
      transition: background-color 0.3s;
    }

    .btn-close:hover {
      background-color: #ff2f2f;
    }

    /* Adiciona animação de entrada */
    .popup.show {
      animation: slideUp 0.4s ease-in-out;
    }

    /* Animação de slide do pop-up */
    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
/* Estilo do menu fixo na base */
.menu-app-container-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 0;
}

.menu-app-nav-fixed {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 460px;
  margin: auto;
}

.menu-app-item-fixed {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ccc;
  font-size: 12px;
  transition: transform 0.2s ease;
  flex: 1;
}

.menu-app-item-fixed:hover {
  transform: scale(1.1);
  color: #16E0ED;
}

.menu-app-icon-fixed {
  font-size: 22px;
  margin-bottom: 4px;
  text-shadow: 0 0 6px rgba(0, 255, 153, 0.4);
}


.menu-app-text-fixed {
    font-size: 12px;
}
/* Estilo isolado para o Menu App */
    .menu-app-container {
        background-color: #121212; /* Cor de fundo do container */
        border-radius: 16px;
        padding: 20px;
        box-shadow: none;
        max-width: 420px;
        margin: auto; /* Centraliza este container */
    }

    .menu-app-nav {
        display: flex;
        justify-content: space-around;
        background-color: #1f1f1f; /* Fundo do menu */
        border-radius: 12px; /* Bordas arredondadas */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Sombra sutil */
        padding: 10px;
        margin-top: 20px; /* Espaço superior */
        width: 100%;
    }

    .menu-app-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none; /* Remove sublinhado */
        color: #fff; /* Cor do texto */
        font-size: 14px;
        transition: all 0.3s ease;
        flex: 1;
    }

    .menu-app-item:hover {
        background-color: rgba(22, 224, 237, 0.8); /* Cor ao passar o mouse */
        border-radius: 12px; /* Bordas arredondadas */
        transform: scale(1.05); /* Efeito de zoom */
    }

    .menu-app-icon {
        font-size: 24px; /* Tamanho do ícone */
        margin-bottom: 5px; /* Espaço entre ícone e texto */
    }

    .menu-app-text {
        font-size: 14px;
    }
/* Estilo para o cabeçalho */
.header-slim-elegante {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 999;
  background: transparent; /* remove fundo preto */
  box-shadow: none;         /* remove sombra */
  border-bottom: none;      /* remove linha verde */
}

.header-content {
  text-align: center;
  line-height: 1.4;
}

.header-title {
  font-size: 22px; /* aumento da fonte */
  font-weight: 800;
  color: #00ffc3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.header-title span {
  color: #10b981;
}

.header-sub {
  font-size: 14px;
  color: #bbb;
  opacity: 0.9;
  margin-top: 2px;
}



/* Estilo do Popup */
.strategy-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg, #ffffff); /* Cor de fundo padrão */
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--card-shadow, 0px 4px 10px rgba(0,0,0,0.1));
    z-index: 1000;
    border: 1px solid var(--primary, #007bff); /* Cor padrão */
    animation: fadeIn 0.3s ease-out;
}

/* Conteúdo do Popup */
.popup-content {
    position: relative;
    min-width: 300px;
}

/* Título ajustável */
.strategy-title {
    font-size: 1.25em;
    color: var(--primary, #007bff);
    border: none;
    background: transparent;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    white-space: nowrap; /* Garante que o título não se quebre */
    overflow: hidden;
    text-overflow: ellipsis; /* Caso o texto seja muito longo */
}

/* Detalhes da Estratégia */
.strategy-details {
    margin: 20px 0;
    padding: 15px;
    background: #262626; /* Alterado para o fundo desejado */
    border-radius: 8px;
    color: #fff; /* Cor do texto para contraste */
}

/* Estilo dos Itens de Detalhes */
.detail-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.label {
    color: #bbb; /* Cor mais suave para os labels */
}

.value {
    color: var(--primary, #007bff);
    font-weight: bold;
}

/* Botão "Fechar Janela" */
.close-window {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary, #007bff) 0%, var(--primary-light, #00aaff) 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}

/* Botão de Fechar (X) */
.close-popup {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-bg-lighter, #f1f1f1);
    border: 1px solid var(--border-color, #ddd);
    color: var(--text, #333);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}


/* Estilo para o botão */
button {
    background-color: var(--accent-color); /* Cor de fundo */
    color: black; /* Cor do texto agora é preta */
    border: none; /* Remover borda */
    border-radius: 12px; /* Bordas arredondadas */
    padding: 10px 20px; /* Aumentando o tamanho do botão */
    font-size: 16px; /* Aumentando o tamanho da fonte */
    font-weight: bold; /* Texto em negrito */
    cursor: pointer; /* Cursor em forma de mão */
    width: auto; /* Largura ajustável ao conteúdo */
    white-space: nowrap; /* Garante que o texto fique em uma linha só */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transições suaves para cor e sombra */
    display: inline-block; /* Evita o botão se esticar */
    text-align: center; /* Alinha o texto no centro */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adicionando sombra suave para um efeito 3D */
    animation: float 4.5s ease-in-out infinite; /* Animação de flutuação */
}

/* Definindo a animação de flutuação */
@keyframes float {
    0% {
        transform: translateY(0); /* Posição inicial */
    }
    50% {
        transform: translateY(-10px); /* Move para cima */
    }
    100% {
        transform: translateY(0); /* Volta à posição inicial */
    }
}

/* Alteração do botão ao passar o mouse */
button:hover {
    background-color: var(--button-hover); /* Cor do botão ao passar o mouse */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Efeito de sombra maior ao passar o mouse */
}

        /* Estilos */
:root {
  --primary: #16E0ED;
  --primary-dark: #00a3cc;
  --accent-color: #ffffff;
  --danger: #EA0804;
  --success: #56a10d;
  --bg-dark: #121212;
  --card-bg: #1a1a1a;
  --text-color: #f2f2f2;
  --card-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


 body {
  background-color: #121212;
  font-family: Poppins, sans-serif;
  margin: 0;
  padding: 0;
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container, main, #app {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  max-width: 460px; /* default para mobile */
}

@media (min-width: 768px) {
  .container, main, #app {
    max-width: 860px; /* tablet */
  }
}

@media (min-width: 1024px) {
  .container, main, #app {
    max-width: 1180px; /* desktop */
  }
}



        h1 {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #10b981;
        }

        .crypto-selector select {
            min-width: 200px;
            padding: 12px 20px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: var(--card-bg);
            color: var(--text-color);
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 15px;
        }

        .crypto-selector select:hover {
            border-color: var(--primary-light);
        }

.info-container {
  display: flex;
  justify-content: space-between;
  gap: 0; /* <- zera espaço entre eles */
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}


.info-container div {
  flex: 1;
  background: #1e1e1e;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 10px rgba(241, 241, 241, 0.1);
  border-left: 4px solid #ffffff;
  text-align: center;
}



.info-container span {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-container div p {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

.chart-container {
  background: #1e1e1e;
  border-radius: 20px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 14px rgba(0, 255, 153, 0.2);
  padding: 20px;
  height: 300px; /* ou mais, se quiser */
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}


.bot-thinking {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  margin: 20px 0;
  position: relative;
  color: var(--text-color);
  width: 100%;
}


        .main-title {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
        }

        .bot-avatar {
            width: 50px;
            height: 50px;
            background: var(--bg-gradient);
            border-radius: 50%;
            color: white;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            box-shadow: 0 4px 12px rgba(22, 224, 237, 0.2);
        }

        .sub-title {
            font-size: 14px;
            color: var(--text-color);
            line-height: 1.5;
        }

        .pattern-message-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 20px;
        }

        .pattern-message {
            background-color: #16E0ED;
            color: white;
            font-weight: bold;
            border-radius: 12px;
            padding: 10px;
            margin-top: 20px;
            width: 100%;
            font-size: 16px;
        }

        .buy-pattern {
            background-color: #56a10d;
        }

        .sell-pattern {
            background-color: #EA0804;
        }

        .btn {
            background-color: var(--primary-light);
            color: white;
            padding: 12px 20px;
            font-size: 16px;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            background-color: rgba(22, 224, 237, 0.8);
        }

@media (max-width: 600px) {
  .info-container {
    flex-direction: row !important;
    gap: 6px;
    justify-content: space-between;
  }

  .info-container div {
    padding: 12px;
    border-radius: 12px;
  }

  .info-container span {
    font-size: 11px;
  }

  .info-container div p {
    font-size: 18px;
  }
}


/* Modal de senha */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Leve escurecimento */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--card-bg); /* Cor de fundo adaptada ao estilo */
    margin: 10% auto;
    padding: 30px;
    border-radius: 16px; /* Bordas mais arredondadas para um visual moderno */
    width: 80%;
    max-width: 400px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Sombra mais suave e grande */
    position: relative;
    text-align: center; /* Centralizar o conteúdo */
}

.modal-content h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--primary-light); /* Cor de destaque para o "fechar" */
    text-decoration: none;
}

.password-input {
    padding: 12px;
    margin: 15px 0;
    width: 100%;
    font-size: 16px;
    border-radius: 12px; /* Borda arredondada */
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
}

.password-input:focus {
    border-color: var(--primary-light); /* Cor de foco */
    outline: none;
}

.btn {
    background-color: var(--primary-light);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0;
    width: 100%;
}

.btn:hover {
    background-color: rgba(22, 224, 237, 0.8);
}

#passwordError {
    margin-top: 15px;
    font-size: 14px;
    color: red;
}

.close-btn:hover {
    color: #00c0ff;
    transform: scale(1.2);
}


.toast-alert {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #1f1f1f;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  font-size: 14px;
  animation: fadeInOut 6s ease-in-out;
  max-width: 260px;
  pointer-events: none;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}


.fake-msg {
  background-color: #2a2a2a;
  padding: 10px 15px;
  border-radius: 12px;
  color: #ccc;
  font-size: 14px;
  max-width: 90%;
  width: fit-content;
  margin: 0 auto;
  animation: fadeInMsg 0.4s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


.fake-msg .nome {
  font-weight: bold;
  color: #16E0ED;
  display: block;
  margin-bottom: 4px;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


#chatFakeBox {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

#chatFakeBox::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* Chrome/Safari */
}

#chatFakeBox {
  scroll-behavior: smooth;
  transition: all 0.3s ease;
}


body {
  background: linear-gradient(-45deg, #101010, #1c1c1c, #101010, #1a1a1a);
  background-size: 400% 400%;
  animation: moveBg 20s ease infinite;
  font-family: 'Poppins', sans-serif;
  color: #f2f2f2;
  margin: 0;
  padding-bottom: 80px;
  overflow-x: hidden;
}

.site-header {
  background: linear-gradient(90deg, #2b382d, #10b981, #0f290f);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  padding: 16px 0;
}

@keyframes moveBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-header h1 {
  font-size: 28px;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff;
  animation: pulseLive 1.8s infinite;
}


/* Selo AO VIVO */
.live-badge {
  background: #ff0033;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: bold;
  animation: pulseLive 1s infinite;
  display: inline-block;
  font-size: 12px;
  margin-top: 6px;
}

@keyframes pulseLive {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.container {
  width: 100%;
  margin: 10px auto;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
  border: 1px solid #292929;
  padding-bottom: 100px;
}


.chart-container {
  background: rgba(28, 28, 28, 0.95);
  border: 1px solid #333;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  animation: flashGlow 2s ease-in-out;
}

@keyframes flashGlow {
  0% { box-shadow: 0 0 10px #ffffff; }
  100% { box-shadow: none; }
}

.pattern-message {
  border-radius: 12px;
  font-size: 16px;
  padding: 12px;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  background-color: #262626;
  color: white;
  text-align: center;
}

.buy-pattern {
  background-color: #56a10d;
}

.sell-pattern {
  background-color: #EA0804;
}

.bot-avatar {
  background: linear-gradient(135deg, #ffffff, #33ffcc);
  box-shadow: 0 4px 12px rgba(0, 255, 153, 0.3);
}

button, .btn {
background: linear-gradient(145deg, #10b981, #10b981);

  color: black;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 14px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 255, 153, 0.3);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 4px rgba(0, 255, 153, 0.2);
}



.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
  display: none;
  z-index: 99;
}

.tooltip:hover::after {
  display: block;
}

#ultimosResultados {
    background: rgba(28, 28, 28, 0.95);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    animation: flashGlow 2s ease-in-out;
    margin-top: 20px;
}



#ultimosResultados .resultado-box {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
}
.resultado-box.green {
    background-color: #56a10d; /* CALL */
}
.resultado-box.red {
    background-color: #EA0804; /* PUT */
}



.estat-box {
  flex: 1;
  background: #1e1e1e;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  border: 1px solid #2a2a2a;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}


@keyframes glowPulse {
  0% {
    box-shadow: 0 0 6px rgba(0, 255, 153, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(0, 255, 153, 0.4);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 6px rgba(0, 255, 153, 0.2);
    transform: scale(1);
  }
}




.blur-lock {
    filter: blur(6px);
    pointer-events: none;
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
}




.blur-wrapper {
    position: relative;
}

.blur-overlay-msg {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    z-index: 999;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

#rsiCurrentValue {
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4d;
}



.delay-bar-container {
  margin-top: 10px;
}

.delay-label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.delay-bar-bg {
  width: 100%;
  height: 14px;
  background: #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 4px #000;
}

.delay-bar-fill {
  height: 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff0033, #ff4d4d);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}



.menu-live-btn {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at center, #ff2d2d, #b70000);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  border: 2px solid #fff;
  transition: transform 0.2s ease;
  text-decoration: none;
  z-index: 1000;

  display: flex; /* Centralização */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.menu-live-btn:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
}

.menu-live-btn span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}


.menu-app-container-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.6);
  padding: 14px 0 8px;
}

.menu-app-nav-fixed {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  max-width: 500px;
  margin: auto;
}

.menu-app-item-fixed {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.menu-app-item-fixed:hover {
  color: #ffffff;
  transform: scale(1.05);
}

.menu-app-icon-fixed {
  font-size: 22px;
  margin-bottom: 4px;
}

/* Espaço pro botão LIVE não empurrar o menu */
.menu-live-btn {
  position: relative; /* 🔥 tira do centro e volta pro fluxo normal */
  top: auto;
  left: auto;
  transform: none;

  padding: 6px 14px;
  background: linear-gradient(135deg, #00c853, #00e676);
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}


.menu-live-btn:hover {
  background: linear-gradient(135deg, #00b248, #00c853);
  transform: scale(1.05);
}

/* Ícone dentro do botão */
.menu-live-img {
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Texto PRO */
.menu-live-btn {
  display: none !important;
}



#historicoPopup h2 {
  font-size: 20px;
  background: linear-gradient(45deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  text-align: center;
}

#historicoDelayLista {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

#historicoDelayLista::-webkit-scrollbar-thumb {
  background-color: #16E0ED;
  border-radius: 4px;
}

.historico-lista-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.historico-lista-scroll::-webkit-scrollbar {
  width: 4px;
}
.historico-lista-scroll::-webkit-scrollbar-thumb {
  background-color: #16E0ED;
  border-radius: 4px;
}

.historico-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.4s ease-in-out;
  transition: transform 0.2s ease;
}

.historico-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,255,153,0.2);
}

.historico-info {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.historico-info .tipo {
  font-weight: bold;
  color: #16E0ED;
}

.historico-info .hora {
  color: #aaa;
  font-size: 12px;
}

.historico-card .ativo {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

.historico-card.verde {
  border-left: 4px solid #56a10d;
}
.historico-card.vermelho {
  border-left: 4px solid #EA0804;
}



.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulseDot 3.8s ease-in-out infinite;
  margin-right: 6px;
  flex-shrink: 0;
}



.status-dot.green {
  background-color: #419908;
  box-shadow: 0 0 6px rgba(86, 161, 13, 0.7);
}

.status-dot.red {
  background-color: #ff0000;
  box-shadow: 0 0 6px rgba(234, 8, 4, 0.7);
}

.status-dot.yellow {
  background-color: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.7);
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255, 0.3);
  }
  40% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255,255,255, 0.1);
  }
  80% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255, 0);
  }


}



.bot-button {
  background-color: #2b2b2b;
  color: #000000;
  border: 1px solid #444;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  flex: 1;
  min-width: 140px;
}

.bot-button:hover {
  background-color: #3a3a3a;
  color: #00bcd4;
  border-color: #555;
}

.bot-button:active {
  background-color: #1e1e1e;
  color: #cccccc;
  border-color: #666;
}


canvas {
  display: block;
  margin: 20px auto;
  max-width: 100%;
}

footer, .menu-inferior {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* Container principal com borda verde lateral esquerda */
#monitoringMessage.bot-thinking {
  background: #1a1a1a;
  border-left: 4px solid #ffffff;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 8px rgba(0, 255, 153, 0.2);
  max-width: 500px;
  margin: 20px auto;
  position: relative;
  font-size: 13px;
}

/* Título + ícone */
#monitoringMessage .main-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ícone com borda verde (círculo) */
#monitoringMessage .bot-avatar {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}



/* Título em verde neon */
#monitoringMessage #monitoringText {
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
}

/* Subtítulo abaixo */
#monitoringMessage .sub-title {
  color: #ccc;
  font-size: 12px;
  margin-left: 44px;
  margin-top: -2px;
  line-height: 1.2;
}

/* Delay dinâmico em vermelho */
#monitoringMessage #rsiCurrent,
#monitoringMessage #rsiCurrentValue {
  color: #ff4d4d;
  font-weight: bold;
}

/* Esconde a barra de delay */
#monitoringMessage .delay-bar-container {
  display: none;
}

/* Três bolinhas no canto direito */


@keyframes dotPulse {
  0%, 80%, 100% {
    opacity: 0.2;
    transform: translateY(-50%) scale(1);
  }
  40% {
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
  }
}

#monitoringMessage .bot-avatar {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}



.crypto-selector select {
  display: block;
  margin: 0 auto 15px auto; /* centralizado + espaçamento */
}





/* Título centralizado com destaque neon */
#cryptoTitle {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 0 4px rgba(0, 255, 204, 0.3);
  letter-spacing: 0.5px;
}
text-shadow: 0 0 8px rgba(0, 255, 153, 0.4);
}


/* Container do drop alinhado */
.crypto-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}


/* Estilo moderno pro select */
.crypto-selector select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #1a1a1a url("ca675dec-0248-4c47-9e67-9ea745fe4b49.png") no-repeat right 12px center;
  background-size: 14px;
  padding: 10px 40px 10px 16px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}


.crypto-selector select:hover {
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
  cursor: pointer;
}



/* Estilo específico para opções com cadeado */
.crypto-selector option[data-pro="true"] {
  color: #ffae42;
  font-weight: bold;
}




.crypto-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.crypto-header-row h1 {
  font-size: 20px;
  font-weight: bold;
  color: #10b981;
  margin: 0;
  white-space: nowrap;
  flex: 1;
}

.crypto-selector {
  flex-shrink: 0;
}

.crypto-selector select {
  margin-bottom: 0 !important;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}



.crypto-selector select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  padding-right: 40px; /* espaço pra setinha */
  background-color: #121212;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300ff99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}


@media (min-width: 768px) {
  .container {
    max-width: 860px !important;
    padding: 30px !important;
  }

  .info-container {
    flex-direction: row;
    gap: 20px;
  }

  .chart-container {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1180px !important;
  }

  .info-container div {
    font-size: 18px;
    padding: 20px;
  }

  .chart-container {
    height: 450px;
  }
}



@media (min-width: 768px) {
  .bot-thinking {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 30px;
  }

  .main-title {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }

  .sub-title {
    font-size: 16px;
    text-align: right;
  }
}

@media (min-width: 768px) {
  .main-title {
    display: flex;
    align-items: center;
    flex-direction: row;
  }

  .bot-avatar {
    margin-right: 12px;
  }
}


/* Badge AO VIVO */
.badge-ao-vivo {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #d60000;
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  z-index: 10;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

.bolinha {
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: bolinha-pulso 1.2s infinite ease-in-out;
}

.bolinha::before,
.bolinha::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  animation: ondas-pulso 1.6s infinite ease-out;
}

.bolinha::after {
  animation-delay: 0.8s; /* Segunda onda */
}


@keyframes onda-ao-vivo {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}



.chart-container {
  position: relative;
}










.chart-container.livro-ordens-container {
  padding: 16px 24px;
  border-radius: 16px;
  background-color: #1a1a1a;
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.05);
  margin-top: 24px;
}

.ordens-title {
  font-size: 16px;
  text-align: center;
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
}

.orderbook-bar-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: auto;
  margin: 0;
  padding: 0;
}


.orderbook-bar-container span {
  font-size: 13px;
  font-weight: bold;
  color: #f2f2f2;
}

.orderbook-bar {
  width: 100%;
  height: 10px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  background-color: #2a2a2a;
}

.orderbook-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.orderbook-fill.buy {
  background-color: #19c300;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.orderbook-fill.sell {
  background-color: #ff0000;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.livro-ordens-container {
  margin-top: 24px;
  padding: 16px 24px !important;
  min-height: auto !important;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.livro-ordens-container {
  min-height: 0 !important;
}

.badge-ao-vivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff0000;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  animation: glowPulseRed 1.5s infinite;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.bolinha {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 10px white;
  animation: pulseDot 1.5s infinite;
}

/* Animação da bolinha (pulsando) */
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* Animação do badge */
@keyframes glowPulseRed {
  0% { box-shadow: 0 0 6px rgba(255, 0, 0, 0.5); }
  50% { box-shadow: 0 0 12px rgba(255, 0, 0, 0.9); }
  100% { box-shadow: 0 0 6px rgba(255, 0, 0, 0.5); }
}


.badge-ao-vivo .texto {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: inline-block;
  vertical-align: middle;
}


#preloader {
  position: fixed;
  inset: 0;
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 1s forwards;
}

.preloader-content {
  text-align: center;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  position: relative;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo {
  font-size: 34px;
  font-weight: 800;
  color: #00ffd5;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-shadow: 0 0 14px rgba(0, 255, 213, 0.8);
  animation: pulse 1.8s infinite;
}

/* Canvas ocupa área do logo */
#graphCanvas {
  width: 350px;
  height: 100px;
  display: block;
  z-index: 1;
}

.progress-bar {
  width: 220px;
  height: 6px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  margin: 20px auto 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ffd5, #00bfff);
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* animações */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes fadeOut { from{opacity:1} to{opacity:0} }











/* coloca os selects Ativo e Minutos lado a lado */
.container > .crypto-selector {
  display: inline-block;
  margin-right: 12px;     /* espaço entre eles */
  vertical-align: middle;
}

.container {
  display: flex;
  flex-direction: column; /* mantém o título em cima */
}

.container h1 + .crypto-selector {
  display: flex;
  gap: 12px;
}



/* pega exatamente os selects Ativo e Minutos que vêm logo depois do título */
.container h1 + .crypto-selector,
.container h1 + .crypto-selector + .crypto-selector {
  display: inline-block;
}


/* Cria um grupo flex só pros selects */
.container-selectors {
  display: flex;
  gap: 12px;             /* espaço entre Ativo e Minutos */
  justify-content: center;
  margin-top: 10px;
}

.container-selectors .crypto-selector {
  margin: 0;             /* remove margem extra */
}

/* Faz o botão Multi Tela alinhar junto */
.container-selectors .multi-toolbar {
  margin: 0;
  display: inline-block;
}




.menu-app-container-fixed {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}


.menu-app-nav-fixed {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
}

/* --- Bottom bar pro look --- */
.menu-app-container-fixed {
  background: rgba(12, 12, 12, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Ícone via SVG usando currentColor */
.menu-app-icon-fixed svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.menu-app-item-fixed {
  gap: 6px;
  color: #b8c0cc;            /* cor normal */
  text-decoration: none;
}

.menu-app-item-fixed:hover {
  color: #16E0ED;            /* cor no hover */
  transform: translateY(-2px);
}

/* título embaixo do ícone */
.menu-app-text-fixed {
  font-size: 12px;
  letter-spacing: .2px;
}
/* estilo base do botão */
.menu-live-btn {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: background .25s ease, box-shadow .25s ease;
}

/* bloqueado → vermelho pulsando */
.menu-live-btn.locked {
  background: linear-gradient(135deg, #ff4d4d, #d60000);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.6);
  animation: pulseRed 1.8s infinite;
}

/* desbloqueado → verde pulsando */
.menu-live-btn.unlocked {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  box-shadow: 0 0 16px rgba(0, 255, 153, 0.6);
  animation: pulseGreen 1.8s infinite;
}

/* animação vermelho */
@keyframes pulseRed {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6), 0 0 24px rgba(255, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.9), 0 0 32px rgba(255, 0, 0, 0.7);
  }
}

/* animação verde */
@keyframes pulseGreen {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 255, 153, 0.6), 0 0 24px rgba(0, 255, 153, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 255, 153, 0.9), 0 0 32px rgba(0, 255, 153, 0.7);
  }
}


#monitoringMessage {
  width: 100%;              /* sempre do tamanho da tela */
  box-sizing: border-box;   /* inclui padding dentro da largura */
  overflow: hidden;         /* corta conteúdo que passar */
  white-space: nowrap;      /* evita quebra feia de linha */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;        /* reduz no mobile */
  font-size: 13px;          /* fonte menor */
}
#monitoringMessage span,
#monitoringMessage p {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  #monitoringMessage {
    font-size: 12px;
    padding: 5px 8px;
  }
}


html, body {
  max-width: 100%;
  overflow-x: hidden; /* trava o scroll lateral */
}

/* todos os containers principais não passam de 100% */
.container,
.chart-container,
.info-container,
#monitoringMessage,
.menu-app-container-fixed {
  max-width: 100%;
  box-sizing: border-box;
}
/* Toggle premium */
.indicator-toggle {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
}

.switch-bb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-bb input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #2a2a2a;
  position: relative;
  outline: none;
  transition: background .2s ease;
  box-shadow: inset 0 0 0 1px #3a3a3a;
}

.switch-bb input:checked {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.switch-bb .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  transition: transform .2s ease;
}

.switch-bb input:checked + .slider::before {
  transform: translateX(20px);
}

.switch-bb .label-text {
  color: #16E0ED;
  font-size: 13px;
  letter-spacing: .2px;
  opacity: .9;
}

/* garante que o novo gráfico se adapta à largura, inclusive no mobile */
#priceChartContainer canvas {
  width: 100% !important;
  height: 100% !important;
}

.switch-macd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-macd input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #2a2a2a;
  position: relative;
  outline: none;
  transition: background .2s ease;
  box-shadow: inset 0 0 0 1px #3a3a3a;
}

.switch-macd input:checked {
  background: linear-gradient(135deg, #ff9f1c, #ff4040);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.switch-macd .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  transition: transform .2s ease;
}

.switch-macd input:checked + .slider::before {
  transform: translateX(20px);
}

.switch-macd .label-text {
  color: #ff9f1c;
  font-size: 13px;
  letter-spacing: .2px;
  opacity: .9;
}
/* Colocar os toggles lado a lado */
.indicator-toggle {
  display: inline-flex;     /* ficam em linha */
  align-items: center;
  margin: 0 10px;           /* espaço lateral */
}

.indicator-toggle label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Container pai centralizado */
.indicator-toggle-container {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.multi-toolbar {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}
.multi-toolbar #btnMultiView {
  background: linear-gradient(135deg,#ffffff,#ffffff);
  color:#0b0b0b; font-weight:700; border:0;
  padding:8px 14px; border-radius:999px; cursor:pointer;
}

/* grade 2x2 */
.multi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.panel {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 8px;
  min-height: 260px;
  display: flex; flex-direction: column; gap: 6px;
}

.panel-controls {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.panel-controls select {
  background: #0c0c0c;
  color: #16E0ED;
  border: 1px solid #16E0ED;
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 120px;
}

.panel-chart { flex: 1; }
.panel-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

/* responsivo: 1 coluna em telas muito estreitas */
@media (max-width: 720px) {
  .multi-grid { grid-template-columns: 1fr; }
}
/* style.css */
.panel-status {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #16E0ED;
  margin: 4px 0;
}
.panel-status span { font-weight: 700; color: #fff; }
/* container dos sinais no painel */
.panel-pattern {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

/* alerta de compra */
.panel-pattern .buy {
  background: #00c853; /* verde */
  color: #fff;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.6);
}

/* alerta de venda */
.panel-pattern .sell {
  background: #d50000; /* vermelho */
  color: #fff;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 0 10px rgba(213, 0, 0, 0.6);
}

.switch-smaema .slider {
  background-color: #007bff; /* azul quando off */
}
.switch-smaema input:checked + .slider {
  background-color: #28a745; /* verde quando on */
}
/* Toggle SMA/EMA (segue padrão dos outros switches) */
.switch-smaema {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch-smaema input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #2a2a2a;
  position: relative;
  outline: none;
  transition: background .2s ease;
  box-shadow: inset 0 0 0 1px #3a3a3a;
}
.switch-smaema input:checked {
  background: linear-gradient(135deg, #3b82f6, #22d3ee); /* azul-ciano */
}
.switch-smaema .slider::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #111;
  transition: transform .2s ease;
}
.switch-smaema input:checked + .slider::before {
  transform: translateX(20px);
}
.switch-smaema .label-text {
  color: #80eaff;
  font-size: 13px;
  letter-spacing: .2px;
  opacity: .9;
}
/* Agrupa todos os toggles na horizontal */
.indicators-bar {
  display: flex;
  justify-content: center; /* centraliza tudo */
  align-items: center;
  gap: 20px; /* espaço entre eles */
  margin-top: 12px;
}

/* cada toggle alinhado no centro */
.indicators-bar .indicator-toggle {
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.separador-bloco {
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.livro-ordens-container {
  background-color: #111; /* ou sua cor de fundo padrão */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* -----------------------------
   🎯 Tema estilo TradingView
------------------------------ */
:root {
  --tv-bg: #0e0e0e;
  --tv-panel: #1c1c1e;
  --tv-border: #2a2a2a;
  --tv-green: #26a69a;
  --tv-red: #ef5350;
  --tv-text: #e0e0e0;
  --tv-muted: #888;
  --tv-blue: #42a5f5;
}

/* Fundo geral estilo TradingView */
body {
  background-color: var(--tv-bg) !important;
  color: var(--tv-text);
  font-family: 'Roboto', sans-serif !important;
}

/* Containers principais */
.container, .chart-container, .panel {
  background-color: var(--tv-panel) !important;
  border-radius: 4px !important;
  border: 1px solid var(--tv-border);
  box-shadow: none !important;
}

/* Cabeçalho */
.header-title {
  color: var(--tv-blue) !important;
  font-weight: 600;
  text-transform: none;
  font-size: 20px;
}

.header-sub {
  color: var(--tv-muted);
}

/* Select dropdown */
select {
  background-color: var(--tv-panel);
  color: var(--tv-text);
  border: 1px solid var(--tv-border);
  border-radius: 4px;
}

/* Botões estilo TV */
button, .btn {
  background-color: var(--tv-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
}

button:hover, .btn:hover {
  background-color: #1e88e5;
}

/* Gráfico Canvas */
canvas {
  background-color: transparent !important;
}

/* Textos de status */
.panel-status div {
  color: var(--tv-text);
}

/* Sinais */
.pattern-message {
  font-weight: bold;
  font-size: 14px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  margin-top: 10px;
}

.buy-pattern {
  background-color: var(--tv-green);
}

.sell-pattern {
  background-color: var(--tv-red);
}

/* Preloader */
#preloader {
  background-color: var(--tv-bg);
}

.logo {
  color: var(--tv-blue);
}


/* ===========================================
   TEMA COMPLETO ESTILO TRADINGVIEW - DARK
=========================================== */
:root {
  --tv-bg: #0e0e0e;
  --tv-panel: #1e1e1e;
  --tv-border: #2a2a2a;
  --tv-text: #dcdfe4;
  --tv-muted: #7f8b99;
  --tv-green: #089981;
  --tv-red: #f23645;
  --tv-blue: #2962ff;

  --primary: var(--tv-blue);
  --primary-dark: #1c44d1;
  --accent-color: var(--tv-green);
  --success: var(--tv-green);
  --danger: var(--tv-red);
  --text-color: var(--tv-text);
  --card-bg: var(--tv-panel);
  --card-shadow: none;
  --button-hover: #1a3ed1;
  --border-color: var(--tv-border);
}

body {
  background-color: var(--tv-bg) !important;
  color: var(--tv-text);
  font-family: 'Roboto', sans-serif !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container, main, #app, .chart-container, .panel, .modal-content {
  background-color: var(--tv-panel) !important;
  border-radius: 4px !important;
  border: 1px solid var(--tv-border);
  box-shadow: none !important;
}

select, .crypto-selector select, .password-input {
  background-color: var(--tv-panel) !important;
  color: var(--tv-text) !important;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
}

button, .btn, .close-btn {
  background-color: var(--tv-blue) !important;
  color: white;
  border: none;
  border-radius: 4px !important;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover, .btn:hover {
  background-color: var(--button-hover);
}

canvas {
  background-color: transparent !important;
}

.header-slim-elegante {
  background-color: var(--tv-panel) !important;
  border-bottom: 1px solid var(--tv-border);
  box-shadow: none !important;
}

.header-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--tv-blue);
  text-transform: none;
}

.header-sub {
  color: var(--tv-muted);
}

.pattern-message {
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  margin-top: 10px;
}

.buy-pattern {
  background-color: #188f00;
  color: white;
}

.sell-pattern {
  background-color: #ff0014;
  color: white;
}

.panel-status div {
  color: var(--tv-muted);
}

.strategy-popup, .popup {
  background: var(--tv-panel) !important;
  color: var(--tv-text) !important;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  box-shadow: none;
}

.strategy-popup h2, .popup h3 {
  color: var(--tv-blue);
  font-weight: bold;
  font-size: 18px;
}

/* Remove gradientes neon antigos */
body {
  background: var(--tv-bg) !important;
  animation: none !important;
}

.site-header {
  background: var(--tv-panel) !important;
  box-shadow: none !important;
}

.menu-app-container-fixed {
  background: var(--tv-panel) !important;
  border-top: 1px solid var(--tv-border);
}

.menu-app-item-fixed {
  color: var(--tv-text);
}

.menu-app-item-fixed:hover {
  color: var(--tv-blue);
}

.toast-alert, .fake-msg {
  background-color: var(--tv-panel) !important;
  color: var(--tv-text);
  border: 1px solid var(--tv-border);
}

.status-dot.green {
      background-color: #7eff00;
}
.status-dot.red {
  background-color: #ff0014;
}
.status-dot.yellow {
  background-color: #e6ff00;
}

/* Fim do tema TradingView */
select {
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px 20px;
  padding-left: 40px;
}

.logo-header {
  max-height: 100px; /* altura do header */
  margin-bottom: 6px;
}
.logo-preloader {
  max-width: 220px;       /* tamanho da logo */
  height: auto;
  animation: pulse 2s infinite; /* efeito pulsando */
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Mobile: centralizar selects e botão */
@media (max-width: 600px) {
  .container-selectors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* centraliza tudo na horizontal */
    gap: 8px;
  }

  /* Selects lado a lado e centralizados */
  .crypto-selector {
    flex: 1 1 45%;
    min-width: 120px;
    display: flex;
    justify-content: center;
  }

  .crypto-selector select {
    width: 100%;
    max-width: 140px; /* controla o tamanho do select */
  }

  /* Botão multi tela centralizado */
  .multi-toolbar {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
  }

  #btnMultiView {
    width: auto;
    min-width: 120px;
    padding: 6px 16px;
  }
}
@media (max-width: 600px) {
  .container-selectors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .crypto-selector {
    flex: 1 1 45%;
    min-width: 120px;
    display: flex;
    justify-content: center;
  }

  .crypto-selector select {
    width: 100%;
    max-width: 140px;
  }

  /* Centraliza o botão Multi Tela */
  .multi-toolbar {
    flex: 1 1 100%;
    display: flex;
    justify-content: center; /* centraliza no meio */
  }

  #btnMultiView {
    width: auto;
    min-width: 120px;
    padding: 6px 16px;
  }
}
/* Botão PRO estilo TradingView */
.menu-pro {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: none; /* tira glow exagerado */
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.menu-pro:hover {
  background: linear-gradient(135deg, #00b248, #00c853);
  transform: scale(1.05);
}

.chart-box {
  background: #1e1e1e;         /* fundo igual ao RSI */
  border: 1px solid #333;      /* borda discreta */
  border-radius: 6px;          /* cantos arredondados */
  margin-bottom: 20px;         /* espaço entre cards */
  width: 100%;
  height: 500px;               /* altura fixa do gráfico */
  padding: 0;                  /* sem padding interno */
}

#tv-candle-chart {
  width: 100%;
  height: 100%;
}

.chart-container {
  position: relative;
  overflow: hidden; /* impede que o gráfico “vaze” da borda */
}

/* Máscara na borda direita para cobrir o espaço extra */
.chart-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;               /* 🔧 ajuste fino — 30~45px conforme necessário */
  background-color: #1e1e1e; /* mesma cor do fundo do gráfico */
  pointer-events: none;      /* não interfere com o mouse/crosshair */
}

/* Esconde somente o gráfico RSI */
#rsiChart {
  display: none !important;
}

/* Esconde somente o gráfico em linhas duplicado */
.chart-box {
  display: none !important;
}

/* Some completamente o container do gráfico RSI */
.chart-container:has(#rsiChart) {
  display: none !important;
}

.badge-ao-vivo {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: red;
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-ao-vivo .bolinha {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px #fff;
}

.badge-ao-vivo .texto {
  white-space: nowrap;
}

/* Alvo genérico para remover a logo do canto */
#tvChart a[href*="tradingview"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}
/* ===== BARRA SUPERIOR FIXA ===== */
.topbar-prevision {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 9999;
}

.topbar-content {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-logo {
  height: 26px;
  width: auto;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-btn {
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.topbar-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

.topbar-suporte {
  background: #e53935;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.topbar-suporte:hover {
  background: #ff4d4d;
  transform: scale(1.05);
}

/* Adapta layout principal */
body {
  padding-top: 56px; /* evita sobreposição da barra */
}

