/* ============================================
   SERENITY — Enhanced UI Stylesheet
   Calm luxury dark theme with animations
   ============================================ */

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

:root {
  --bg: #080d12;
  --sidebar: #0a0f16;
  --card: #0e1520;
  --card2: #111c2a;
  --border: #1a2740;
  --border2: #243550;
  --teal: #2dd4bf;
  --teal2: #14b8a6;
  --blue: #38bdf8;
  --green: #4ade80;
  --gold: #f59e0b;
  --muted: #4a6080;
  --text: #e2e8f0;
  --text2: #7a9ab8;
  --user-bubble: #0f2540;
  --bot-bubble: #091a14;
  --radius: 16px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --glow: 0 0 40px rgba(45, 212, 191, 0.12);
  --glow-strong: 0 0 60px rgba(45, 212, 191, 0.25);
}

/* Mood themes */
body.mood-great { --teal: #4ade80; --teal2: #22c55e; --bot-bubble: #081a10; }
body.mood-overwhelmed { --teal: #f59e0b; --teal2: #d97706; --bot-bubble: #1a1008; }
body.mood-stressed { --teal: #38bdf8; --teal2: #0284c7; --bot-bubble: #081020; }

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

/* ══ PARTICLE CANVAS ══════════════════════════ */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ══ AUTH SCREEN ══════════════════════════════ */
.auth-screen {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-glow {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(45,212,191,.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: rgba(14, 21, 32, 0.92);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glow), 0 40px 80px rgba(0,0,0,0.5);
  animation: cardIn .6s cubic-bezier(.16,1,.3,1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.logo-orb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45,212,191,.2), rgba(56,189,248,.2));
  border: 1px solid rgba(45,212,191,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 20px rgba(45,212,191,.15);
  animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {
  0%,100% { box-shadow: 0 0 20px rgba(45,212,191,.15); }
  50% { box-shadow: 0 0 35px rgba(45,212,191,.3); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.logo-sub {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  transition: color .2s;
  position: relative;
  z-index: 1;
}

.auth-tab.active { color: var(--text); }

.tab-slider {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}

.tab-slider.right { transform: translateX(100%); }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
  border-color: rgba(45,212,191,.5);
  box-shadow: 0 0 0 3px rgba(45,212,191,.06);
}

.auth-error {
  color: #f87171;
  font-size: 13px;
  margin-bottom: 14px;
  min-height: 16px;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0f766e, #0369a1);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(15,118,110,.35); }
.btn-primary:active { transform: translateY(0); }

/* ══ BREATHING MODAL ══════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease;
}

.breathing-modal {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 40px;
  width: 360px;
  text-align: center;
  position: relative;
  box-shadow: var(--glow-strong);
}

.breathing-modal h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 8px;
}

.breathing-modal p {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 32px;
}

.breathing-ring-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 32px;
}

.breathing-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(45,212,191,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 4s ease-in-out;
}

.breathing-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(45,212,191,.08);
}

.breathing-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.08), transparent 70%);
  transition: all 4s ease-in-out;
}

.breathing-ring.inhale {
  transform: scale(1.4);
  border-color: rgba(45,212,191,.6);
  box-shadow: 0 0 40px rgba(45,212,191,.3);
}

.breathing-ring.exhale {
  transform: scale(1);
  border-color: rgba(45,212,191,.2);
  box-shadow: none;
}

.breathing-ring.hold {
  border-color: rgba(56,189,248,.5);
  box-shadow: 0 0 30px rgba(56,189,248,.2);
}

.breathing-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45,212,191,.15), rgba(56,189,248,.1));
  border: 1px solid rgba(45,212,191,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  color: var(--teal);
  font-family: var(--font-display);
}

.breathing-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.breath-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #0f766e, #0369a1);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity .15s;
}

.breath-btn.secondary {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text2);
}

.breath-btn:hover { opacity: .85; }

.breathing-tip {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  font-style: italic;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all .15s;
}

.modal-close:hover { color: var(--text); border-color: var(--border2); }

/* ══ MOOD HISTORY MODAL ═══════════════════════ */
.mood-history-modal {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 36px;
  width: 400px;
  position: relative;
}

.mood-history-modal h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 24px;
}

.mood-chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 100px;
  margin-bottom: 10px;
}

.mood-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  min-height: 20px;
  transition: height .5s cubic-bezier(.16,1,.3,1);
  position: relative;
  cursor: default;
}

.mood-bar:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
}

.mood-chart-label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ══ APP SCREEN ═══════════════════════════════ */
.app-screen {
  position: relative;
  z-index: 5;
  height: 100vh;
}

.app { display: flex; height: 100vh; }

/* ── Sidebar ─────────────────────────── */
.sidebar {
  width: 268px;
  min-width: 268px;
  background: rgba(10, 15, 22, 0.95);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

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

.logo-icon-sm { font-size: 22px; }

.logo-text-sm {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all .3s;
}

.new-chat-btn {
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text2);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all .2s;
}

.new-chat-btn:hover {
  background: rgba(45,212,191,.06);
  border-color: rgba(45,212,191,.4);
  color: var(--teal);
  box-shadow: 0 0 15px rgba(45,212,191,.08);
}

.sidebar-section {
  padding: 14px 16px 6px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
}

.mood-area { padding: 4px 12px 6px; }

.mood-row {
  display: flex;
  gap: 6px;
  margin-bottom: 7px;
}

.mood-btn {
  flex: 1;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all .2s;
}

.mood-btn:hover { transform: scale(1.1); border-color: var(--teal); }
.mood-btn.selected {
  border-color: var(--teal);
  background: rgba(45,212,191,.1);
  box-shadow: 0 0 12px rgba(45,212,191,.15);
}

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

.mood-history-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 11px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  padding: 4px;
  opacity: .7;
  font-family: var(--font-body);
  transition: opacity .15s;
}
.mood-history-btn:hover { opacity: 1; }

/* Daily tip card */
.daily-tip-card {
  margin: 8px 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(45,212,191,.06), rgba(56,189,248,.04));
  border: 1px solid rgba(45,212,191,.15);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tip-icon { font-size: 16px; margin-top: 1px; }

.tip-text {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  font-style: italic;
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
}

.sidebar-body::-webkit-scrollbar { width: 3px; }
.sidebar-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-item {
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .15s;
}

.chat-item:hover, .chat-item.active {
  background: rgba(45,212,191,.07);
  color: var(--text);
}

.chat-item.active { border-left: 2px solid var(--teal); padding-left: 10px; }

.empty-history {
  padding: 16px 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Ambient sound */
.ambient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.ambient-label { font-size: 12px; color: var(--muted); }

.ambient-toggle {
  padding: 4px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-body);
  transition: all .2s;
}

.ambient-toggle.active {
  background: rgba(45,212,191,.1);
  border-color: var(--teal);
  color: var(--teal);
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text2);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  box-shadow: 0 0 10px rgba(45,212,191,.2);
}

.logout-btn {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-body);
  transition: all .15s;
}

.logout-btn:hover { border-color: #f87171; color: #f87171; }

/* ── Main chat ───────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

.top-bar {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,15,22,.9);
  backdrop-filter: blur(10px);
}

.top-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-style: italic; }

.top-actions { display: flex; gap: 8px; }

.icon-btn {
  padding: 7px 13px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text2);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
}

.icon-btn:hover {
  background: rgba(45,212,191,.07);
  border-color: rgba(45,212,191,.4);
  color: var(--teal);
  box-shadow: 0 0 12px rgba(45,212,191,.08);
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px;
  scroll-behavior: smooth;
}

.chat-area::-webkit-scrollbar { width: 4px; }
.chat-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Welcome screen ──────────────────── */
.welcome { text-align: center; padding: 50px 20px 30px; }

.welcome-animation {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.welcome-orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.12), transparent 70%);
  border: 1px solid rgba(45,212,191,.15);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 4s ease-in-out infinite;
}

.welcome-icon {
  font-size: 54px;
  position: relative;
  z-index: 1;
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .6; }
  50% { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
}

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

.welcome-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.welcome-sub {
  color: var(--text2);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.quick-btn {
  padding: 10px 18px;
  background: rgba(14,21,32,.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text2);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  transition: all .2s;
}

.quick-btn:hover {
  border-color: rgba(45,212,191,.4);
  color: var(--teal);
  background: rgba(45,212,191,.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45,212,191,.1);
}

/* ── Message bubbles ─────────────────── */
.msg-row {
  display: flex;
  gap: 13px;
  margin-bottom: 24px;
  animation: msgIn .3s cubic-bezier(.16,1,.3,1);
}

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

@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.msg-avatar.bot {
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: white;
  box-shadow: 0 0 15px rgba(45,212,191,.2);
}

.msg-avatar.user {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
}

.msg-wrap { max-width: 72%; }

.msg-bubble {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
}

.msg-bubble.bot {
  background: var(--bot-bubble);
  border: 1px solid rgba(45,212,191,.12);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.msg-bubble.user {
  background: var(--user-bubble);
  border: 1px solid rgba(56,189,248,.12);
  border-bottom-right-radius: 4px;
}

.msg-bubble strong { color: #e2e8f0; font-weight: 600; }
.msg-bubble ul, .msg-bubble ol { padding-left: 18px; margin-top: 6px; }
.msg-bubble li { margin-bottom: 4px; }
.msg-bubble em { color: var(--teal); font-style: italic; }

.msg-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  padding: 0 2px;
}

.msg-row.user .msg-time { text-align: right; }

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--teal);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink .7s step-end infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0; }
}

/* ── Typing indicator ────────────────── */
.typing-bubble {
  background: var(--bot-bubble);
  border: 1px solid rgba(45,212,191,.12);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  padding: 16px 20px;
  display: inline-block;
}

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

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: bounce .9s infinite;
  opacity: .7;
}

.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; }

@keyframes bounce {
  0%,60%,100% { transform: translateY(0); opacity: .7; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* ── Input area ──────────────────────── */
.input-area {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10,15,22,.9);
  backdrop-filter: blur(10px);
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  transition: all .2s;
}

.input-row:focus-within {
  border-color: rgba(45,212,191,.4);
  box-shadow: 0 0 0 3px rgba(45,212,191,.05), var(--glow);
}

#msg-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  resize: none;
  min-height: 22px;
  max-height: 120px;
  font-family: var(--font-body);
  line-height: 1.5;
}

#msg-input::placeholder { color: var(--muted); }

.send-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: 0 4px 15px rgba(15,118,110,.3);
}

.send-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(15,118,110,.4); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.input-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* ── Animations ──────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Responsive ──────────────────────── */
@media (max-width: 680px) {
  .sidebar { display: none; }
  .chat-area { padding: 16px; }
  .top-actions .icon-btn:not(:first-child) { display: none; }
  .breathing-modal { width: 300px; padding: 28px; }
}