 /* ===== Botão flutuante ===== */
  #chatBtn {
    position: fixed;
    top: 75px; /* 🔹 altura ajustada: logo abaixo da barra azul */
    right: 30px;
    background: rgba(0, 183, 255, 0.2);
    border: 1px solid rgba(30, 144, 255, 1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 0 13px rgba(30, 144, 255, 1);
    transition: all 0.3s;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #chatBtn img {
    filter: drop-shadow(0 0 3px rgba(30, 144, 255, 0.5));
  }

  #chatBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(30, 144, 255, 1);
  }

  /* ===== Caixa do chat ===== */
  #chatBox {
    position: fixed;
    top: 160px; /* 🔹 logo abaixo do botão */
    right: 25px;
    width: 300px;
    height: 400px;
    background: rgba(10, 20, 30, 0.92);
    border: 1px solid rgba(0, 102, 255, 0.596);
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0, 110, 255, 0.281);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    backdrop-filter: blur(10px);
  }

  .chat-header {
    background: rgba(0, 200, 255, 0.15);
    color: #ffffff;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 140, 255, 0.2);
  }

  .chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
  }

  .msg {
    margin: 8px 0;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    line-height: 1.4;
    animation: fadeIn 0.2s ease-in-out;
  }

  .msg.user {
    background: linear-gradient(135deg, #0078ff, #00c3ff);
    color: white;
    align-self: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .msg.bot {
    background: rgba(0, 60, 255, 0.288);
    color: #aeeaff;
    align-self: flex-start;
    border: 1px solid rgba(0, 195, 255, 0.39);
  }

  .chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(0, 38, 255, 0.39);
    background: rgba(10, 20, 30, 0.85);
  }

  #userInput {
    flex: 1;
    padding: 8px;
    background: rgba(20, 30, 40, 0.8);
    border: 1px solid rgba(17, 0, 255, 0.363);
    border-radius: 8px;
    color: #e6f6ff;
    outline: none;
  }

  #sendBtn {
    background: rgba(0, 38, 255, 0.26);
    color: #00e1ffd8;
    border: 1px solid rgba(0, 110, 255, 0.432);
    border-radius: 8px;
    margin-left: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.3s;
  }

  #sendBtn:hover {
    background: rgba(0, 47, 255, 0.507);
    box-shadow: 0 0 10px rgba(0, 60, 255, 0.4);
  }

  @keyframes fadeIn {
    from {opacity: 0; transform: translateY(5px);}
    to {opacity: 1; transform: translateY(0);}
  }

  .closeBtn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
  
}
