.chat-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 20px; align-items: start; }
.chat-card { overflow: hidden; }
.chat-header { padding: 16px 20px; display: flex; align-items: center; gap: 12px; color: #fff; background: linear-gradient(135deg,#1249c7,#2563eb); }
.bot-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); font-size: 20px; }
.chat-header b, .chat-header small { display: block; }
.chat-header small { margin-top: 4px; color: #dbeafe; font-size: 12px; }
.chat-header small i { width: 6px; height: 6px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #4ade80; }
.chat-header > span { margin-left: auto; color: #bfdbfe; font-size: 12px; }
.chat-log { height: 420px; overflow-y: auto; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #f4f7fc; }
.chat-message { display: flex; align-items: flex-start; gap: 12px; }
.avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #e8eef8; }
.message { max-width: 72%; padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: #fff; color: #475569; box-shadow: 0 1px 3px rgba(15,23,42,.05); font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.message.message-loading { padding: 14px 16px; }
.typing-dots { display: inline-flex; align-items: center; gap: 4px; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: typing-bounce 1.2s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%,80%,100% { transform: scale(.6); opacity:.4; } 40% { transform: scale(1); opacity:1; } }
.user-message { flex-direction: row-reverse; justify-content: flex-start; }
.user-message .message { border-radius: 14px 14px 4px 14px; background: #1a56db; color: #fff; }
.quick-replies { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #eef2f8; background: #fafbff; }
.quick-replies small { width: 100%; color: #94a3b8; font-size: 12px; }
.quick-replies button { padding: 6px 12px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1a56db; font-size: 12px; }
.quick-replies button:hover { background: #1a56db; color: #fff; }
.chat-row { padding: 16px 20px; display: flex; gap: 12px; }
.chat-row input { flex: 1; min-width: 0; }
.chat-side { display: grid; gap: 16px; }
.side-card { padding: 20px; }
.side-card > b { display: block; margin-bottom: 12px; }
.contact-item { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.contact-item > span { grid-row: span 2; font-size: 18px; }
.contact-item small { color: #94a3b8; font-size: 12px; }
.contact-item b { font-size: 14px; font-weight: 500; }
.side-card ul { margin: 0; padding-left: 18px; color: #64748b; font-size: 12px; line-height: 2; }
@media (max-width: 767px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-header > span { display: none; }
  .chat-log { height: 360px; }
  .chat-row { gap: 8px; }
}