#chat-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: linear-gradient(180deg, rgba(11,11,15,.98), rgba(7,7,10,.98));
  color: #fff;
  border-radius: 20px;
  padding: 0;
  z-index: 9999;
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

#chat-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(216,177,95,.10), rgba(255,255,255,.02));
}

#chat-header img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(216,177,95,.35);
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chat-header-text strong {
  font-size: 14px;
}

.chat-header-text small {
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

#messages {
  height: 290px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(600px 200px at 10% 0%, rgba(216,177,95,.05), transparent 50%);
}

.msg {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 85%;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user {
  background: linear-gradient(180deg, rgba(216,177,95,.95), rgba(216,177,95,.85));
  color: #111;
  margin-left: auto;
}

.msg.bot {
  background: rgba(255,255,255,.07);
  color: #fff;
  margin-right: auto;
  border: 1px solid rgba(255,255,255,.06);
}

#chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

#chat-input input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  caret-color: #fff;
}

#chat-input input::placeholder {
  color: rgba(255,255,255,.45);
}

#chat-input input:focus {
  border-color: rgba(216,177,95,.45);
  box-shadow: 0 0 0 3px rgba(216,177,95,.12);
}

#chat-input button {
  border: 1px solid rgba(216,177,95,.45);
  background: linear-gradient(180deg, rgba(216,177,95,.22), rgba(216,177,95,.08));
  color: #fff;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  min-width: 88px;
}