/* .chat-header {
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 16px;
}
.chat-header .active-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.chat-header .active-info h2 { font-size: 1rem; font-weight: 600; }
.chat-header .active-info p { font-size: 0.75rem; color: var(--text-dim); }
.emotion-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  color: var(--accent);
  transition: all 0.3s;
}

.messages {
  flex: 1; overflow-y: auto;
  padding: 24px 32px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.messages::-webkit-scrollbar { width: 6px; }
.messages::-webkit-scrollbar-track { background: transparent; }
.messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.msg {
  max-width: 75%;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.6;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom-left-radius: 4px;
}
.msg.bot.trina { border-left: 3px solid var(--trina-primary); }
.msg.bot.sue { border-left: 3px solid var(--sue-primary); }

.msg .source-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'Space Mono', monospace;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 8px;
  opacity: 0.7;
}
.msg .source-tag.faq { background: rgba(74,222,128,0.15); color: var(--success); }
.msg .source-tag.escalated { background: rgba(255,107,157,0.15); color: var(--trina-primary); }
.msg .source-tag.ai { background: rgba(167,139,250,0.15); color: var(--accent); }

.typing {
  display: none;
  align-self: flex-start;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
}
.typing.active { display: flex; gap: 6px; align-items: center; }
.typing span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  animation: bounce 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.input-area {
  padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-surface);
}
.input-wrap {
  display: flex; gap: 12px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s;
}
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.input-wrap input::placeholder { color: var(--text-dim); }
.send-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  font-size: 1.2rem;
}
.send-btn:hover { transform: scale(1.05); }
.send-btn:active { transform: scale(0.95); } */
/* Chat header — Festava hero-bar vibe */
.chat-header {
  padding: 22px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-deep);
}

/* Removed active-avatar emoji and emotion-badge entirely */
.chat-header .active-avatar { display: none; }
.emotion-badge { display: none !important; }

.chat-header .active-info { flex: 1; }
.chat-header h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.chat-header p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Messages area */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
  background: var(--bg-surface);
}
.messages::-webkit-scrollbar { width: 6px; }
.messages::-webkit-scrollbar-track { background: transparent; }
.messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.msg {
  max-width: 72%;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.94rem;
  line-height: 1.65;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}
.msg.bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 2px;
}
.msg.bot.trina { border-left: 3px solid var(--trina-primary); }
.msg.bot.sue   { border-left: 3px solid var(--sue-primary); }

.msg .source-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-top: 10px;
  letter-spacing: 0.03em;
  font-family: var(--sans);
}
.msg .source-tag.faq       { background: rgba(74,222,128,0.15); color: var(--success); }
.msg .source-tag.escalated { background: var(--accent-soft); color: var(--accent); }
.msg .source-tag.ai        { background: rgba(255,255,255,0.08); color: var(--text-dim); }

/* Typing indicator */
.typing {
  display: none;
  align-self: flex-start;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 2px;
  margin: 0 40px;
}
.typing.active { display: flex; gap: 6px; align-items: center; }
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input area */
.input-area {
  padding: 20px 40px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.input-wrap {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s;
}
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  padding: 10px 0;
}
.input-wrap input::placeholder { color: var(--text-muted); }

.send-btn {
  padding: 0 28px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.send-btn:hover { background: var(--accent-hover); }
.send-btn:active { transform: scale(0.98); }