.chat-box {
  width: 380px;
  height: 520px;
  position: fixed;
  right: 34px;
  bottom: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  z-index: 50;
  backdrop-filter: blur(20px);
}

.chat-header {
  height: 78px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header strong {
  display: block;
  font-size: 15px;
}

.chat-header span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.85;
}

.chat-header button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 20px;
}

.chat-body {
  height: 354px;
  padding: 20px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(91,53,245,0.08), transparent 30%),
    #f8fafc;
}

.bubble {
  max-width: 78%;
  padding: 13px 15px;
  border-radius: 18px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.bubble.sent {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble.received {
  background: #fff;
  color: #334155;
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.chat-input {
  height: 88px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--border);
}

.chat-input input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
}