/* ============================================================
   畅游出境智能客服 — 奢华金色主题
   LUXURY TRAVEL · AI CONCIERGE
   ============================================================ */

/* ==================== CSS 变量 ==================== */
:root {
  /* 主色调 - 奢华暗金 */
  --color-gold: #c8960c;
  --color-gold-light: #d4a853;
  --color-gold-dark: #a07808;
  --color-gold-pale: rgba(200,150,12,0.1);
  --color-gold-glow: rgba(200, 150, 12, 0.15);

  /* 背景色系 - 深色奢华 */
  --bg-primary: #08080a;
  --bg-secondary: #0e0e12;
  --bg-tertiary: #141418;
  --bg-card: #18181d;
  --bg-elevated: #1e1e24;
  --bg-glass: rgba(20, 20, 28, 0.8);

  /* 文字色系 */
  --text-primary: #f0ede8;
  --text-secondary: #a8a49d;
  --text-muted: #6b6760;

  /* 边框 */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(200, 150, 12, 0.25);

  /* 功能色 */
  --success: #4caf84;
  --warning: #f0a04b;
  --danger: #e05555;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(200, 150, 12, 0.15);

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* 字体 */
  --font-display: 'Cormorant Garamond', 'Noto Serif SC', serif;
  --font-heading: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', sans-serif;

  /* 尺寸 */
  --sidebar-width: 300px;
  --header-height: 64px;
}

/* ==================== Reset ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 背景装饰 ==================== */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-gold), transparent 70%);
  top: -200px;
  right: -150px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 150, 12, 0.6), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(160, 140, 100, 0.5), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.9); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.15); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* ==================== Layout ==================== */
.app-container {
  position: relative;
  display: flex;
  height: calc(100vh - 60px);
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg-secondary);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  z-index: 1;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

/* ==================== Sidebar ==================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: linear-gradient(180deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform var(--transition-slow);
  z-index: 100;
  border-right: 1px solid var(--border-subtle);
}

.sidebar-header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(135deg, rgba(200, 150, 12, 0.2), rgba(200, 150, 12, 0.05));
  border: 1px solid rgba(200, 150, 12, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-gold);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--color-gold);
  margin-top: var(--space-xs);
  text-transform: uppercase;
}

/* Info Card */
.sidebar-info {
  padding: var(--space-md) var(--space-lg);
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg,
    rgba(200, 150, 12, 0.08),
    rgba(200, 150, 12, 0.02));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

.info-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-text span {
  font-size: 0.7rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  display: inline-block;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--success); }
  50% { opacity: 0.4; box-shadow: 0 0 8px var(--success); }
}

/* Sidebar Menu */
.sidebar-menu {
  padding: var(--space-sm) var(--space-lg);
}

.menu-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  padding-left: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 2px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-align: left;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
}

.menu-item i {
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.menu-item:hover {
  background: rgba(200, 150, 12, 0.06);
  border-color: rgba(200, 150, 12, 0.15);
  color: var(--text-primary);
}

.menu-item:hover i {
  color: var(--color-gold);
}

/* Contact */
.sidebar-contact {
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.contact-item:hover {
  background: rgba(200, 150, 12, 0.04);
  border-color: var(--border-gold);
}

.contact-item i {
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-top: 2px;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.contact-item small {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.sidebar-footer {
  margin-top: auto;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.sidebar-footer p {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== Chat Main ==================== */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-primary);
  position: relative;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--space-lg);
  height: var(--header-height);
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.menu-toggle:hover {
  color: var(--color-gold);
  background: rgba(200, 150, 12, 0.08);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-text strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.online-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.header-actions {
  display: flex;
  gap: 4px;
}

.header-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover {
  background: rgba(200, 150, 12, 0.1);
  border-color: var(--border-gold);
  color: var(--color-gold);
}

/* ==================== Messages ==================== */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  scroll-behavior: smooth;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 150, 12, 0.02) 0%, transparent 70%),
    var(--bg-primary);
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Message Base */
.message {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  animation: messageIn 0.35s ease both;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.bot-message .message-avatar {
  background: linear-gradient(135deg, #2a2520, #1e1a15);
  border: 1px solid rgba(200, 150, 12, 0.2);
  color: var(--color-gold);
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #fff;
}

.message-body {
  max-width: 72%;
  min-width: 80px;
}

.user-message .message-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Bubbles */
.message-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
  position: relative;
}

.bot-message .message-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-top-left-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.user-message .message-bubble {
  background: linear-gradient(135deg, var(--color-gold-dark), #b8943a);
  color: #fff;
  border-top-right-radius: var(--radius-xs);
  box-shadow: 0 2px 12px rgba(200, 150, 12, 0.2);
}

.message-bubble strong {
  color: var(--color-gold-light);
  font-weight: 600;
}

.user-message .message-bubble strong {
  color: #fff;
}

/* Welcome Card */
.welcome-card {
  max-width: 560px;
}

.welcome-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.welcome-header i {
  font-size: 1.1rem;
}

.welcome-card p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.welcome-card .welcome-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-md);
}

.welcome-divider {
  height: 1px;
  background: linear-gradient(90deg,
    rgba(200, 150, 12, 0.2),
    transparent 60%);
  margin: var(--space-md) 0;
}

.welcome-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.welcome-topics span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(200, 150, 12, 0.04);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.welcome-topics span i {
  color: var(--color-gold);
  font-size: 0.7rem;
  width: 16px;
  text-align: center;
}

/* Agent Messages */
.agent-message .agent-label {
  font-size: 0.7rem;
  color: var(--success);
  margin-bottom: 4px;
  margin-left: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.agent-message .agent-label::before {
  content: '🎧';
  font-size: 0.7rem;
}

.agent-message .agent-bubble {
  background: rgba(76, 175, 132, 0.06);
  border-color: rgba(76, 175, 132, 0.2);
  border: 1px solid rgba(76, 175, 132, 0.15);
}

.agent-message .message-avatar {
  background: linear-gradient(135deg, #1a2a20, #152018);
  border: 1px solid rgba(76, 175, 132, 0.25);
  color: var(--success);
}

/* System Messages */
.system-message {
  text-align: center;
  margin: 16px 0;
  animation: messageIn 0.3s ease;
}

.system-message span {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(200, 150, 12, 0.06);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Card */
.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 6px;
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 14px 18px;
  background: linear-gradient(135deg,
    rgba(200, 150, 12, 0.1),
    rgba(200, 150, 12, 0.03));
  border-bottom: 1px solid var(--border-gold);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  color: var(--color-gold);
  letter-spacing: 1px;
}

.card-body {
  padding: 16px 18px;
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* ==================== Quick Replies ==================== */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.5px;
}

.quick-btn i {
  font-size: 0.75rem;
  color: var(--color-gold);
  transition: color var(--transition);
}

.quick-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200, 150, 12, 0.08);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.quick-btn:active {
  transform: scale(0.96);
}

/* ==================== Typing Indicator ==================== */
.typing-dots {
  display: flex;
  gap: 5px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  border-top-left-radius: var(--radius-xs);
  width: fit-content;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
  opacity: 0.6;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 0.8; }
}

/* ==================== Input Area ==================== */
.chat-input-area {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 10, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.message-input {
  flex: 1;
  padding: 13px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}

.message-input::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.message-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.08);
  background: var(--bg-elevated);
}

.send-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(200, 150, 12, 0.25);
}

.send-btn:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(200, 150, 12, 0.4);
}

.send-btn:active {
  transform: scale(0.94);
}

.send-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.send-btn:disabled i {
  opacity: 0.3;
}

.input-hint {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.input-hint i {
  font-size: 0.6rem;
  color: var(--color-gold);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .chat-messages {
    padding: var(--space-md);
  }

  .message-body {
    max-width: 85%;
  }

  .message-bubble {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .quick-btn {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .welcome-topics {
    grid-template-columns: 1fr;
  }

  .chat-input-area {
    padding: 12px var(--space-md) 16px;
  }

  .message-input {
    padding: 11px 16px;
    font-size: 0.85rem;
  }

  .send-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .chat-header {
    padding: 0 var(--space-md);
  }

  .header-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .header-text strong {
    font-size: 0.85rem;
  }

  .message-body {
    max-width: 90%;
  }

  .message-bubble {
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  .chat-input-area {
    padding: 10px var(--space-md) 14px;
  }

  .message-input {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .send-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .welcome-card {
    max-width: 100%;
  }

  .welcome-topics {
    grid-template-columns: 1fr;
  }

  .quick-replies {
    gap: 6px;
  }

  .quick-btn {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
}

/* ==================== Selection ==================== */
::selection {
  background: rgba(200, 150, 12, 0.3);
  color: var(--text-primary);
}

/* Phone highlight in messages */
.phone-highlight {
  color: var(--color-gold);
  letter-spacing: 1px;
}
