/* ============================================
   Fast Cables Chatbot - Bold Distinctive Design
   Aesthetic: Glass morphism + Vibrant gradients
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Light theme - Warm & Energetic */
  --bg-start: #fef7f0;
  --bg-end: #fdf2f8;
  --bg-mesh-1: rgba(251, 146, 60, 0.08);
  --bg-mesh-2: rgba(236, 72, 153, 0.06);
  --bg-mesh-3: rgba(139, 92, 246, 0.05);
  
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.85);
  --surface: #fafafa;
  
  --text: #1f1f23;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  
  /* Vibrant accent - Coral to Rose gradient */
  --accent-1: #f97316;
  --accent-2: #ec4899;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  --accent-glow: rgba(249, 115, 22, 0.25);
  
  /* Secondary - Electric violet */
  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;
  --secondary-glow: rgba(139, 92, 246, 0.2);
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  
  /* Chat specific */
  --user-bubble: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --user-text: #ffffff;
  --assistant-bubble: rgba(255, 255, 255, 0.9);
  --assistant-border: rgba(0, 0, 0, 0.08);
}

/* Dark theme - Deep & Luxurious */
.theme-dark {
  --bg-start: #09090b;
  --bg-end: #18181b;
  --bg-mesh-1: rgba(249, 115, 22, 0.1);
  --bg-mesh-2: rgba(236, 72, 153, 0.08);
  --bg-mesh-3: rgba(139, 92, 246, 0.1);
  
  --glass: rgba(24, 24, 27, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --panel: #18181b;
  --panel-glass: rgba(24, 24, 27, 0.9);
  --surface: #27272a;
  
  --text: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #71717a;
  
  --accent-glow: rgba(249, 115, 22, 0.3);
  --secondary-glow: rgba(139, 92, 246, 0.3);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  
  --assistant-bubble: rgba(39, 39, 42, 0.95);
  --assistant-border: rgba(255, 255, 255, 0.1);
}

/* ============ Base Reset ============ */

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

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}

/* ============ Animated Mesh Background ============ */

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
  overflow: hidden;
}

.app-bg::before,
.app-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: meshFloat 25s ease-in-out infinite;
}

.app-bg::before {
  width: 60vw;
  height: 60vw;
  background: var(--bg-mesh-1);
  top: -20%;
  right: -20%;
  animation-delay: 0s;
}

.app-bg::after {
  width: 50vw;
  height: 50vw;
  background: var(--bg-mesh-2);
  bottom: -10%;
  left: -10%;
  animation-delay: -12s;
}

/* Third mesh blob via pseudo on body */
body::before {
  content: '';
  position: fixed;
  width: 40vw;
  height: 40vw;
  background: var(--bg-mesh-3);
  border-radius: 50%;
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: meshFloat 30s ease-in-out infinite reverse;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, 10%) scale(1.05); }
  50% { transform: translate(-5%, 5%) scale(0.95); }
  75% { transform: translate(3%, -8%) scale(1.02); }
}

/* ============ Header ============ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--panel-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px var(--accent-glow);
  transform: translateY(-3px);
}

/* Send button - Hero element */
.btn-send {
  position: relative;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 24px var(--accent-glow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-send::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-send:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-send:hover::before {
  opacity: 1;
}

.btn-send svg {
  transition: transform 0.3s;
}

.btn-send:hover svg {
  transform: translateX(3px);
}

/* Icon buttons */
.btn-icon {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.btn-icon:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  background: var(--secondary-glow);
  box-shadow: 0 0 20px var(--secondary-glow);
}

.btn-icon.loading {
  animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(139, 92, 246, 0); }
  50% { box-shadow: 0 0 30px var(--secondary-glow); }
}

/* Theme toggle */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s;
}

.icon-btn:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  transform: rotate(15deg);
}

.icon-btn .sun-icon { display: none; }
.icon-btn .moon-icon { display: block; }
.theme-dark .icon-btn .sun-icon { display: block; }
.theme-dark .icon-btn .moon-icon { display: none; }

/* ============ Chat Layout ============ */

.chat-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
  height: calc(100vh - 73px);
}

.chat-container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow), 
              inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}

/* Decorative gradient border */
.chat-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 29px;
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.chat-container:focus-within::before {
  opacity: 0.5;
}

/* ============ Welcome State ============ */

.welcome-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  z-index: 5;
  background: var(--panel-glass);
  animation: welcomeFade 0.6s ease;
}

.welcome-state.hidden {
  display: none;
}

@keyframes welcomeFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.welcome-icon {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: #fff;
  box-shadow: 0 20px 60px var(--accent-glow);
  animation: iconBreathe 4s ease-in-out infinite;
}

.welcome-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 40px;
  background: var(--accent-gradient);
  opacity: 0.3;
  filter: blur(20px);
  animation: iconGlow 4s ease-in-out infinite;
}

@keyframes iconBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes iconGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

.welcome-state h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-state > p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 500px;
}

.chip {
  padding: 12px 22px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--accent-glow);
}

/* ============ Messages ============ */

.messages {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.messages::-webkit-scrollbar {
  width: 6px;
}

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

.messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  max-width: 80%;
  animation: msgPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes msgPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.msg .avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}

.msg .bubble {
  padding: 16px 20px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
  unicode-bidi: plaintext;
}

/* User messages */
.msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-user .avatar {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.msg-user .bubble {
  background: var(--user-bubble);
  color: var(--user-text);
  border-radius: 20px 20px 6px 20px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Assistant messages */
.msg-assistant {
  align-self: flex-start;
}

.msg-assistant .avatar {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.msg-assistant .bubble {
  background: var(--assistant-bubble);
  color: var(--text);
  border: 1px solid var(--assistant-border);
  border-radius: 20px 20px 20px 6px;
  backdrop-filter: blur(10px);
}

/* Links */
.msg .bubble a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.msg .bubble a:hover {
  opacity: 0.7;
}

/* Typing indicator */
.typing-bubble {
  padding: 18px 24px !important;
}

.typing {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  animation: dotWave 1.4s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.15s; }
.dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotWave {
  0%, 60%, 100% { 
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  30% { 
    transform: translateY(-12px) scale(1.1);
    opacity: 1;
  }
}

/* ============ Composer ============ */

.composer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--panel-glass);
  border-top: 1px solid var(--border);
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.composer input {
  width: 100%;
  height: 54px;
  padding: 0 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.composer input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.composer input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px var(--accent-glow),
              0 8px 24px var(--accent-glow);
  background: var(--panel);
}

/* ============ Utility Classes ============ */

.session-id {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
}

.status { font-size: 12px; color: var(--text-muted); }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }

/* ============ Cards & Forms ============ */

.card {
  background: var(--panel-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field input,
.select,
textarea {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  padding: 14px 18px;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.field input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ============ Admin Preserved ============ */

.admin-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 20px;
}

.admin-card {
  background: var(--panel-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.stat .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat .value {
  font-family: 'Fira Code', monospace;
  font-size: 28px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Login card */
#loginCard {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background: var(--panel-glass);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px;
  min-width: 420px;
  max-width: 500px;
  width: 90vw;
  box-shadow: 0 32px 64px rgba(0,0,0,0.2);
}

#loginCard h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 36px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ Grid Utilities ============ */

.row { display: flex; flex-direction: column; gap: 12px; }
.row.horizontal { flex-direction: row; align-items: center; }
.row.horizontal.center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.full-width { grid-column: 1 / -1; }

/* ============ Modal / Toast ============ */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  pointer-events: none;
}

.modal.active { display: block !important; }

.modal-content {
  background: var(--panel-glass);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  overflow: hidden;
  pointer-events: auto;
  margin: 0 auto;
  animation: modalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.modal-body {
  padding: 24px;
  text-align: center;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Progress & Spinner */
.progress {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0;
}

.progress .bar {
  height: 100%;
  background: var(--accent-gradient);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ Logs ============ */

.logs {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.8;
  overflow: auto;
  white-space: pre-wrap;
}

/* Select */
.select {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
}

select.select option {
  background: var(--panel);
  color: var(--text);
}

/* File upload */
#uploadCard input[type="file"] {
  width: 100%;
  padding: 14px;
  background: var(--glass);
  border: 2px dashed var(--border);
  border-radius: 16px;
  color: var(--text);
  transition: all 0.2s;
}

#uploadCard input[type="file"]:hover {
  border-color: var(--accent-1);
  background: var(--accent-glow);
}

#uploadCard input[type="file"]::file-selector-button {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  margin-right: 14px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* ============ Responsive ============ */

@media (max-width: 768px) {
  .chat-layout {
    padding: 12px;
    height: calc(100vh - 65px);
  }
  
  .chat-container {
    border-radius: 24px;
  }
  
  .messages {
    padding: 20px;
    gap: 16px;
  }
  
  .msg {
    max-width: 88%;
  }
  
  .composer {
    padding: 16px;
    gap: 10px;
  }
  
  .composer input {
    height: 50px;
    font-size: 16px;
  }
  
  .btn-send span {
    display: none;
  }
  
  .btn-send {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 14px;
  }
  
  .welcome-state {
    padding: 32px 20px;
  }
  
  .welcome-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
  }
  
  .welcome-state h2 {
    font-size: 26px;
  }
  
  .suggestion-chips {
    flex-direction: column;
    width: 100%;
  }
  
  .chip {
    width: 100%;
  }
  
  .brand h1 {
    font-size: 18px;
  }
  
  .btn-ghost span {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 12px 16px;
  }
  
  .brand .logo {
    width: 38px;
    height: 38px;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .btn-icon {
    width: 44px;
    height: 44px;
  }
  
  .msg .avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  
  .msg .bubble {
    padding: 14px 16px;
    border-radius: 16px;
  }
}

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
