/* TOGGLE */
#chatToggle {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #191818;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(0,0,0,.4);
}
#chatToggle img { width: 32px; }

/* WINDOW */
#chatWindow {
  position: fixed;
  top: 150px;
  right: 20px;
  width: 340px;
  height: 480px;
  background: #0b0f14;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0);
  transform-origin: top right;
  transition: .3s ease;
  z-index: 998;
}
#chatWindow.open { transform: scale(1); }

/* HEADER */
.chat-header {
  background: #eff0f2;
  padding: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
}
.chat-title img { width: 26px; }
#chatClose {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* MESSAGES */
.chat-messages {
  flex: 1;
  padding: .8rem;
  overflow-y: auto;
}
.chat-message {
  margin-bottom: .6rem;
  max-width: 85%;
}
.chat-message.user {
  margin-left: auto;
  background: #ff7f50;
  color: #f6f4f4;
  border-radius: 12px 12px 0 12px;
  padding: .6rem .8rem;
}
.chat-message.bot {
  background: #fdfdfe;
  border-radius: 12px 12px 12px 0;
  padding: .6rem .8rem;
}

/* INPUT */
.chat-input-area {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.1);
}
.chat-input-area input {
  flex: 1;
  background: none;
  border: none;
  padding: .7rem;
  color: #fff;
}
.chat-input-area button {
  background: #ff7f50;
  border: none;
  padding: .7rem 1rem;
  cursor: pointer;
}

/* ACTIONS */
.chat-actions {
  display: flex;
  justify-content: space-around;
  padding: .5rem;
  background: #121826;
}
.chat-actions button {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .3rem .6rem;
  border-radius: 6px;
  cursor: pointer;
}
.chat-actions button:hover { background: rgba(255,255,255,.1); }
