.chat-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.chat-widget.open { display: flex; }
.chat-widget[hidden] { display: none; }
.chat-header {
  background: #1a1a1a;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 14px;
}
.chat-info h3 { color: #fafafa; font-size: 14px; font-weight: 600; margin: 0; }
.chat-info span { color: #a1a1aa; font-size: 12px; }
.chat-close { margin-left: auto; background: none; border: none; color: #85858f; cursor: pointer; padding: 4px; }
.chat-close:hover { color: #fafafa; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background: #1a1a1a; color: #d4d4d8; border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: #6366f1; color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.chat-suggestion {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-suggestion:hover { background: rgba(99,102,241,0.25); }
.chat-input-area { padding: 16px 20px; background: #1a1a1a; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-input-row { display: flex; gap: 10px; }
.chat-input {
  flex: 1;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fafafa;
  font-size: 14px;
  outline: none;
}
.chat-input:focus { border-color: #6366f1; }
.chat-send {
  background: #6366f1;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.chat-send:hover { background: #5558e3; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.typing-dot { width: 8px; height: 8px; background: #85858f; border-radius: 50%; animation: typing 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-typing { align-self: flex-start; display: none; margin: 0 20px 16px; }
.chat-typing.show { display: block; }
