  #ai-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #4f8cff, #6aa8ff);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  z-index: 9999;
  box-shadow:
    0 10px 30px rgba(79,140,255,.35),
    inset 0 0 0 1px rgba(255,255,255,.15);
}

#ai-chat-btn.has-unread::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #4f8cff;
  border-radius: 50%;
}



  #ai-chat {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 340px;
    height: 440px;
    background: #0f1218;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px) scale(.96);
    pointer-events: none;
    transition: all .35s cubic-bezier(.22,1,.36,1);
    z-index: 9999;
  }

  #ai-chat.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  #ai-chat-header {
    padding: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
#ai-chat-input input {
  font-size: 16px;
}

  #ai-chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 14px;
  }

  .msg {
  margin-bottom: 10px;
  animation: fadeIn .3s ease;
  max-width: 85%;
  line-height: 1.4;
}

.user {
  margin-left: auto;
  background: rgba(79,140,255,.15);
  padding: 10px 12px;
  border-radius: 14px 14px 4px 14px;
  color: white;
}

.bot {
  background: rgba(255,255,255,.05);
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  color: var(--text-soft);
}


  #ai-chat-input {
    display: flex;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  #ai-chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    color: white;
    outline: none;
  }

  #ai-chat-input button {
    background: none;
    border: none;
    color: #4f8cff;
    padding: 0 14px;
    cursor: pointer;
  }

  .chat-status {
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dcff4f;
  box-shadow: 0 0 8px rgba(79, 255, 79, 0.9);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #4f8cff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.send-btn:hover {
  background: #5f97ff;
}

.send-btn:active {
  transform: scale(.95);
}



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