/* =========================================
   auroraa-ai — Global Styles & Design System
   ========================================= */

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

:root {
  --bg-base:        #080b14;
  --bg-surface:     #0f1221;
  --bg-card:        #141829;
  --bg-elevated:    #1a2035;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.15);

  --purple-400:     #a78bfa;
  --purple-500:     #8b5cf6;
  --purple-600:     #7c3aed;
  --cyan-400:       #22d3ee;
  --cyan-500:       #06b6d4;
  --pink-400:       #f472b6;

  --grad-primary:   linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-warm:      linear-gradient(135deg, #7c3aed 0%, #f472b6 100%);
  --grad-cool:      linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);

  --text-primary:   #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted:     #4a5568;

  --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:    0 0 40px rgba(124,58,237,0.25);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  --font-body:      'Inter', sans-serif;
  --font-display:   'Outfit', sans-serif;

  --sidebar-w:      280px;
  --topbar-h:       64px;
  --input-h:        140px;

  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ---- Animated Background ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: float 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.14) 0%, transparent 70%);
  bottom: -150px; right: 100px;
  animation-delay: -4s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,114,182,0.1) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- App Layout ---- */
.app-container {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(15,18,33,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 100;
}

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

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

.logo-icon {
  width: 36px; height: 36px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 4px;
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
  display: none;
}
.sidebar-toggle:hover { background: var(--bg-elevated); color: var(--text-primary); }
.sidebar-toggle svg { width: 18px; height: 18px; }

.new-chat-btn {
  margin: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.new-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}
.new-chat-btn svg { width: 18px; height: 18px; }

.sidebar-section {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.capability-list { display: flex; flex-direction: column; gap: 8px; }

.capability-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: default;
}
.capability-item:hover { background: var(--bg-elevated); }

.cap-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cap-icon svg { width: 16px; height: 16px; }
.text-cap  { background: rgba(168,85,247,0.15);  color: #a855f7; border: 1px solid rgba(168,85,247,0.25); }
.voice-cap { background: rgba(34,211,238,0.12);  color: #22d3ee; border: 1px solid rgba(34,211,238,0.25); }
.image-cap { background: rgba(244,114,182,0.12); color: #f472b6; border: 1px solid rgba(244,114,182,0.25); }

.cap-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.cap-desc  { font-size: 0.73rem; color: var(--text-secondary); margin-top: 1px; }

/* API Key Settings */
.settings-group { display: flex; flex-direction: column; gap: 8px; }

.setting-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: default;
}
.setting-icon { font-size: 0.9rem; }
.setting-label { font-weight: 500; }

.api-key-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  transition: var(--transition);
  outline: none;
}
.api-key-input::placeholder { color: var(--text-muted); }
.api-key-input:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }

.save-key-btn {
  padding: 9px 14px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: var(--radius-sm);
  color: var(--purple-400);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.save-key-btn:hover { background: rgba(124,58,237,0.35); }

.sidebar-footer {
  margin-top: auto;
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* =========================================
   MAIN AREA
   ========================================= */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Top Bar */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(8,11,20,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: var(--transition);
  display: none;
}
.menu-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.menu-btn svg { width: 20px; height: 20px; display: block; }

.topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.model-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  color: var(--purple-400);
  letter-spacing: 0.02em;
}

/* =========================================
   CHAT AREA
   ========================================= */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  scroll-behavior: smooth;
  position: relative;
}

.chat-area::-webkit-scrollbar { width: 4px; }
.chat-area::-webkit-scrollbar-track { background: transparent; }
.chat-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.chat-area::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Welcome Screen */
.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
}

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

.welcome-logo {
  position: relative;
  width: 100px; height: 100px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--grad-primary) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.ring2 {
  inset: 10px;
  animation-duration: 10s;
  animation-direction: reverse;
  border-color: rgba(6,182,212,0.4);
  background: var(--grad-cool) border-box;
}

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

.welcome-svg { width: 50px; height: 50px; z-index: 1; }

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.welcome-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 40px;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 580px;
}

.suggestion-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.4;
}
.suggestion-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(124,58,237,0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.sug-icon { font-size: 1.2rem; flex-shrink: 0; }

/* =========================================
   MESSAGES
   ========================================= */
.messages-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.message {
  display: flex;
  gap: 14px;
  animation: messageIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.message-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.user-message .message-avatar {
  background: var(--grad-warm);
  color: white;
  box-shadow: 0 2px 12px rgba(244,114,182,0.3);
}

.ai-message .message-avatar {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
}

.message-content { flex: 1; }

.message-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.user-message .message-label { color: rgba(244,114,182,0.7); }
.ai-message .message-label   { color: rgba(124,58,237,0.8); }

.message-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 100%;
}

.user-message .message-bubble {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--text-primary);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md);
}

.ai-message .message-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-md);
}

.message-bubble img {
  max-width: 260px;
  border-radius: 10px;
  margin-top: 8px;
  display: block;
  border: 1px solid var(--border);
}

/* Markdown-like formatting in AI messages */
.ai-message .message-bubble h1,
.ai-message .message-bubble h2,
.ai-message .message-bubble h3 {
  color: var(--text-primary);
  margin: 12px 0 6px;
  font-family: var(--font-display);
}
.ai-message .message-bubble h1 { font-size: 1.2rem; }
.ai-message .message-bubble h2 { font-size: 1.05rem; }
.ai-message .message-bubble h3 { font-size: 0.95rem; }

.ai-message .message-bubble p { margin: 6px 0; }

.ai-message .message-bubble ul,
.ai-message .message-bubble ol {
  padding-left: 20px;
  margin: 8px 0;
}
.ai-message .message-bubble li { margin: 4px 0; }

.ai-message .message-bubble code {
  background: rgba(124,58,237,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
  color: var(--cyan-400);
}

.ai-message .message-bubble pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
  margin: 10px 0;
}
.ai-message .message-bubble pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.ai-message .message-bubble strong { color: var(--purple-400); font-weight: 600; }
.ai-message .message-bubble em     { color: var(--cyan-400); font-style: italic; }

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-md);
  width: fit-content;
}
.typing-dot {
  width: 7px; height: 7px;
  background: var(--purple-500);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; background: var(--cyan-500); }
.typing-dot:nth-child(3) { animation-delay: 0.4s; background: var(--pink-400); }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-8px); opacity: 1; }
}

/* =========================================
   IMAGE PREVIEW AREA
   ========================================= */
.image-preview-area {
  padding: 10px 20px;
  background: rgba(124,58,237,0.06);
  border-top: 1px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  animation: slideUp 0.3s ease;
}

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

.image-preview-inner {
  position: relative;
  display: inline-block;
}

.image-preview-area img {
  height: 64px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(124,58,237,0.4);
  object-fit: cover;
}

.remove-image-btn {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  background: #ef4444;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.remove-image-btn:hover { background: #dc2626; transform: scale(1.1); }
.remove-image-btn svg { width: 10px; height: 10px; }

.image-label {
  font-size: 0.8rem;
  color: var(--purple-400);
  font-weight: 500;
}

/* =========================================
   INPUT AREA
   ========================================= */
.input-area {
  padding: 16px 20px 10px;
  background: rgba(8,11,20,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.input-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.tool-btn {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--purple-500);
  color: var(--purple-400);
  transform: translateY(-1px);
}
.tool-btn.active {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444;
  animation: recording-pulse 1.5s ease infinite;
}

@keyframes recording-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.input-box-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  transition: var(--transition);
}
.input-box-wrapper:focus-within {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.message-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.6;
  resize: none;
  max-height: 180px;
  overflow-y: auto;
}
.message-input::placeholder { color: var(--text-muted); }
.message-input::-webkit-scrollbar { width: 4px; }
.message-input::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.send-btn {
  width: 38px; height: 38px;
  background: var(--grad-primary);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  flex-shrink: 0;
  opacity: 0.4;
  pointer-events: none;
}
.send-btn.enabled {
  opacity: 1;
  pointer-events: auto;
}
.send-btn.enabled:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(124,58,237,0.5);
}
.send-btn svg { width: 16px; height: 16px; }

.disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* =========================================
   CAMERA MODAL
   ========================================= */
.camera-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.camera-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: min(90vw, 480px);
  box-shadow: var(--shadow-glow);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.camera-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }

.close-camera-btn {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.close-camera-btn:hover { background: rgba(239,68,68,0.3); }

#cameraVideo {
  width: 100%;
  display: block;
  background: black;
  max-height: 300px;
  object-fit: cover;
}

.camera-controls {
  padding: 20px;
  display: flex;
  justify-content: center;
  background: var(--bg-elevated);
}

.capture-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: white;
  border: 4px solid rgba(255,255,255,0.3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.5);
}
.capture-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(124,58,237,0.6); }

.capture-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  backdrop-filter: blur(12px);
}
.toast.success { background: rgba(34,197,94,0.85); border: 1px solid rgba(34,197,94,0.4); }
.toast.error   { background: rgba(239,68,68,0.85);  border: 1px solid rgba(239,68,68,0.4); }
.toast.info    { background: rgba(124,58,237,0.85);  border: 1px solid rgba(124,58,237,0.4); }

@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); }   to { opacity: 0; transform: translateX(20px); } }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: grid; }
  .menu-btn { display: grid; }

  .suggestion-grid { grid-template-columns: 1fr; max-width: 340px; }

  .chat-area { padding: 20px 14px; }
  .input-area { padding: 12px 14px 8px; }

  .welcome-title { font-size: 1.6rem; }
  .welcome-sub   { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .topbar-title span { font-size: 1rem; }
  .model-badge { display: none; }
  .message-bubble { font-size: 0.88rem; }
}
