/* ══════════════════════════════════════════════
   Campus Connect AI — Style System
   Font: Outfit (display+body) + JetBrains Mono (code)
   Aesthetic: Dark RAG-futuristic with coral/red accents
══════════════════════════════════════════════ */

:root {
  --bg:         #070a0f;
  --bg2:        #0d1117;
  --bg3:        #111820;
  --surface:    rgba(255,255,255,0.04);
  --surface2:   rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.14);
  --red:        #e85d4a;
  --red2:       #ff7b6a;
  --coral:      #ff6b55;
  --gold:       #f5a623;
  --cyan:       #00c8e8;
  --green:      #22d68a;
  --purple:     #9b6dff;
  --text:       #e2e8f0;
  --text2:      #8b97a8;
  --text3:      #4a5568;
  --bot-bubble: rgba(232,93,74,0.08);
  --bot-border: rgba(232,93,74,0.18);
  --user-bg:    linear-gradient(135deg,#e85d4a,#c0392b);
  --shadow:     0 8px 40px rgba(0,0,0,0.5);
  --sidebar-w:  260px;
  --rp-w:       280px;
  --topbar-h:   64px;
  --radius:     16px;
  --radius-sm:  10px;
  --font:       'Outfit', sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --t:          0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg:        #f5f0eb;
  --bg2:       #ede8e2;
  --bg3:       #e5dfd8;
  --surface:   rgba(0,0,0,0.04);
  --surface2:  rgba(0,0,0,0.07);
  --border:    rgba(0,0,0,0.1);
  --border2:   rgba(0,0,0,0.16);
  --text:      #1a202c;
  --text2:     #4a5568;
  --text3:     #a0aec0;
  --bot-bubble: rgba(232,93,74,0.06);
  --bot-border: rgba(232,93,74,0.2);
  --shadow:    0 8px 40px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100vh; overflow: hidden;
  transition: background var(--t), color var(--t);
}

/* ─── Canvas Background ─── */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0.4;
}

/* ═══════════════ SPLASH ═══════════════ */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.splash.fade-out { opacity: 0; transform: scale(1.05); pointer-events: none; }

.splash-inner { text-align: center; }

.splash-logo-ring {
  width: 120px; height: 120px;
  position: relative;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 2px solid transparent;
}
.r1 {
  width: 120px; height: 120px;
  border-top-color: var(--red); border-right-color: var(--red);
  animation: spin 2s linear infinite;
}
.r2 {
  width: 90px; height: 90px;
  border-bottom-color: var(--coral); border-left-color: var(--coral);
  animation: spin 1.5s linear infinite reverse;
}
.r3 {
  width: 60px; height: 60px;
  border-top-color: var(--gold); border-right-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.splash-bot-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red), var(--coral));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 0 24px rgba(232,93,74,0.5);
  position: relative; z-index: 1;
}

.splash-title {
  font-size: 2rem; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.splash-title span { color: var(--red); }
.splash-sub { font-size: 0.9rem; color: var(--text2); margin-top: 6px; }
.splash-kanpur { font-size: 0.78rem; color: var(--text3); margin-top: 4px; font-family: var(--mono); }

.splash-bar {
  width: 200px; height: 3px;
  background: var(--surface2);
  border-radius: 100px; margin: 24px auto 12px;
  overflow: hidden;
}
.splash-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--coral), var(--gold));
  border-radius: 100px;
  animation: load-bar 2.5s ease forwards;
}
@keyframes load-bar { from{width:0} to{width:100%} }

.splash-msg {
  font-size: 0.78rem; color: var(--text3);
  font-family: var(--mono);
  animation: blink-msg 1s ease-in-out infinite;
}
@keyframes blink-msg { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ═══════════════ APP LAYOUT ═══════════════ */
.app {
  display: flex;
  height: 100vh;
  position: relative; z-index: 1;
}
.hidden { display: none !important; }

/* ═══════════════ LEFT SIDEBAR ═══════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100vh; overflow-y: auto;
  position: relative; z-index: 10;
  flex-shrink: 0;
  transition: transform var(--t), background var(--t);
}

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--red), var(--coral));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
  box-shadow: 0 4px 16px rgba(232,93,74,0.35);
  flex-shrink: 0;
  animation: brand-pulse 3s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%,100%{box-shadow:0 4px 16px rgba(232,93,74,0.35)}
  50%{box-shadow:0 4px 28px rgba(232,93,74,0.6)}
}
.brand-name { font-weight: 800; font-size: 0.9rem; color: var(--text); line-height: 1.2; }
.brand-name span { color: var(--red); }
.brand-college { font-size: 0.68rem; color: var(--text3); font-family: var(--mono); margin-top: 2px; }

.sidebar-status {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  font-size: 0.72rem; color: var(--green);
  border-bottom: 1px solid var(--border);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink-msg 2s ease-in-out infinite;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text3);
  padding: 10px 16px 6px;
}

.cat-nav { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.cat-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  background: none; border: none;
  border-radius: var(--radius-sm);
  color: var(--text2); font-family: var(--font);
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: all var(--t);
}
.cat-btn i { width: 16px; font-size: 0.8rem; color: var(--red); flex-shrink: 0; }
.cat-btn:hover { background: var(--surface2); color: var(--text); }

.sidebar-actions { padding: 0 8px; display: flex; flex-direction: column; gap: 4px; }
.action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2); font-family: var(--font);
  font-size: 0.82rem; cursor: pointer;
  transition: all var(--t); margin-bottom: 2px;
}
.action-btn:hover { border-color: var(--red); color: var(--red); background: rgba(232,93,74,0.06); }
.action-btn i { font-size: 0.8rem; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.sf-track { font-size: 0.7rem; color: var(--text3); font-family: var(--mono); }
.sf-track i { color: var(--red); margin-right: 4px; }
.sf-team { font-size: 0.68rem; color: var(--text3); margin-top: 3px; }

/* ═══════════════ MAIN CHAT ═══════════════ */
.chat-main {
  flex: 1;
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  min-width: 0;
}

/* ── TopBar ── */
.chat-topbar {
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
}
.mob-menu-btn {
  display: none; background: none; border: none;
  color: var(--text2); font-size: 1.1rem; cursor: pointer;
}
.topbar-bot-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.topbar-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--red), var(--coral));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  position: relative;
}
.pulse-ring {
  position: absolute; inset: -4px; border-radius: 16px;
  border: 2px solid var(--red);
  animation: pulse-anim 2s ease-out infinite;
}
@keyframes pulse-anim {
  0%{transform:scale(1);opacity:0.6} 100%{transform:scale(1.3);opacity:0}
}
.topbar-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.topbar-status { font-size: 0.72rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
.topbar-status i { font-size: 0.45rem; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.token-counter-badge {
  padding: 5px 12px;
  background: rgba(232,93,74,0.1);
  border: 1px solid rgba(232,93,74,0.25);
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; color: var(--red);
  display: flex; align-items: center; gap: 5px;
}
.topbar-btn {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text2); font-size: 0.9rem;
  cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
}
.topbar-btn:hover { border-color: var(--red); color: var(--red); background: rgba(232,93,74,0.08); }

/* ── Chat Body ── */
.chat-body {
  flex: 1; overflow-y: auto;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 20px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 100px; }

/* ── Messages ── */
.msg-row {
  display: flex; gap: 10px;
  animation: msg-in 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes msg-in {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}
.bot-row { align-items: flex-start; }
.user-row { align-items: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.msg-avatar.sm { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 8px; }
.bot-av { background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; }
.user-av { background: linear-gradient(135deg, #2d3748, #1a202c); color: var(--text2); }

.msg-bubble {
  max-width: 78%; padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem; line-height: 1.6;
  position: relative;
}
.bot-bubble {
  background: var(--bot-bubble);
  border: 1px solid var(--bot-border);
  border-radius: 4px var(--radius) var(--radius) var(--radius);
  color: var(--text);
}
.user-bubble {
  background: var(--user-bg);
  color: #fff;
  border-radius: var(--radius) 4px var(--radius) var(--radius);
}
.user-bubble .msg-text { color: #fff; }

/* Welcome Bubble */
.welcome-bubble { max-width: 90%; }
.welcome-header { margin-bottom: 16px; }
.welcome-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(232,93,74,0.12); border: 1px solid rgba(232,93,74,0.25);
  font-size: 0.7rem; font-weight: 700; color: var(--red);
  margin-bottom: 10px;
}
.welcome-header h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.welcome-header p { font-size: 0.85rem; color: var(--text2); }
.welcome-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.w-chip {
  padding: 5px 12px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--border2);
  font-size: 0.78rem; cursor: pointer; transition: all var(--t);
  color: var(--text2);
}
.w-chip:hover { background: rgba(232,93,74,0.12); border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.welcome-tip {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 12px;
  background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.2);
  border-radius: 10px; font-size: 0.78rem; color: var(--gold);
}

/* ── Bot Answer Bubble Internals ── */
.answer-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.answer-tag {
  padding: 2px 9px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.tag-official { background: rgba(34,214,138,0.12); border: 1px solid rgba(34,214,138,0.25); color: var(--green); }
.tag-routed   { background: rgba(155,109,255,0.12); border: 1px solid rgba(155,109,255,0.25); color: var(--purple); }
.tag-notfound { background: rgba(245,166,35,0.12); border: 1px solid rgba(245,166,35,0.25); color: var(--gold); }

.answer-body { font-size: 0.87rem; color: var(--text); line-height: 1.7; white-space: pre-wrap; }

.dept-card {
  margin-top: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border2);
  border-radius: 10px;
}
.dept-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 8px; }
.dept-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; font-size: 0.82rem; color: var(--text2); }
.dept-row:last-child { margin-bottom: 0; }
.dept-row i { color: var(--red); margin-top: 2px; flex-shrink: 0; width: 14px; }
.dept-row a { color: var(--cyan); text-decoration: none; word-break: break-all; }
.dept-row a:hover { text-decoration: underline; }
.dept-row .wa-link { color: var(--green); }

.link-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.link-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(0,200,232,0.08); border: 1px solid rgba(0,200,232,0.2);
  color: var(--cyan); font-size: 0.76rem; font-weight: 600;
  text-decoration: none; transition: all var(--t);
}
.link-pill:hover { background: rgba(0,200,232,0.15); transform: translateY(-1px); }

.msg-time { font-size: 0.65rem; color: var(--text3); margin-top: 8px; text-align: right; font-family: var(--mono); }

.follow-up-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fu-chip {
  padding: 4px 11px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border2);
  font-size: 0.75rem; color: var(--text2);
  cursor: pointer; transition: all var(--t);
}
.fu-chip:hover { border-color: var(--red); color: var(--red); background: rgba(232,93,74,0.06); }

/* Not Found Bubble */
.not-found-body { font-size: 0.87rem; color: var(--text2); line-height: 1.6; }
.not-found-body strong { color: var(--gold); }
.not-found-sug { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

/* User message */
.user-msg-text { font-size: 0.88rem; color: #fff; line-height: 1.5; }
.user-attach { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 8px; }

/* ── Typing Indicator ── */
.typing-indicator {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 8px;
  flex-shrink: 0;
}
.typing-dots {
  display: flex; gap: 4px;
  padding: 10px 14px;
  background: var(--bot-bubble); border: 1px solid var(--bot-border);
  border-radius: 12px;
}
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); display: block;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-8px)} }
.typing-label { font-size: 0.75rem; color: var(--text3); font-family: var(--mono); }

/* ── Quick Replies ── */
.quick-replies {
  padding: 0 20px 10px;
  flex-shrink: 0;
}
.qr-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.qr-label i { color: var(--red); font-size: 0.65rem; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-chip {
  padding: 6px 13px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 100px;
  color: var(--text2); font-family: var(--font);
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all var(--t);
}
.qr-chip:hover { border-color: var(--red); color: var(--red); background: rgba(232,93,74,0.08); transform: translateY(-1px); }

/* ── Input Area ── */
.chat-input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}
.input-wrapper {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 14px; padding: 8px 8px 8px 12px;
  transition: border var(--t), box-shadow var(--t);
}
.input-wrapper:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,93,74,0.12);
}
.input-attach, .input-voice {
  width: 34px; height: 34px;
  background: none; border: none;
  color: var(--text3); font-size: 0.9rem;
  cursor: pointer; border-radius: 8px;
  transition: all var(--t); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.input-attach:hover { color: var(--red); background: rgba(232,93,74,0.08); }
.input-voice:hover  { color: var(--cyan); background: rgba(0,200,232,0.08); }
.input-voice.recording { color: var(--red); animation: blink-msg 0.8s ease-in-out infinite; }
#user-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  resize: none; max-height: 140px; overflow-y: auto;
  line-height: 1.5; padding: 4px 0;
}
#user-input::placeholder { color: var(--text3); }
.input-send {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--red), var(--coral));
  border: none; border-radius: 10px;
  color: #fff; font-size: 0.9rem;
  cursor: pointer; flex-shrink: 0;
  transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(232,93,74,0.35);
}
.input-send:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(232,93,74,0.5); }
.input-send:active { transform: scale(0.97); }
.input-footer {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: var(--text3);
  margin-top: 7px; padding: 0 4px;
}
.input-footer i { color: var(--green); margin-right: 3px; }

/* ═══════════════ RIGHT PANEL ═══════════════ */
.right-panel {
  width: var(--rp-w);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100vh;
  transform: translateX(100%);
  transition: transform var(--t), background var(--t);
  position: fixed; right: 0; top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.right-panel.open { transform: translateX(0); }
.rp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.88rem;
}
.rp-header button { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 0.9rem; }
.rp-header button:hover { color: var(--text); }
.rp-content { flex: 1; overflow-y: auto; padding: 12px; }
.rp-content::-webkit-scrollbar { width: 3px; }
.rp-content::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 100px; }

.km-category { margin-bottom: 16px; }
.km-cat-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.km-cat-title i { color: var(--red); }
.km-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.km-tags span {
  padding: 3px 9px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.73rem; color: var(--text2);
  cursor: pointer; transition: all var(--t);
}
.km-tags span:hover { border-color: var(--red); color: var(--red); background: rgba(232,93,74,0.07); }

.rp-toggle-btn {
  position: fixed; right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--red), var(--coral));
  border: none; border-radius: 10px;
  color: #fff; font-size: 0.9rem;
  cursor: pointer; z-index: 40;
  box-shadow: 0 4px 16px rgba(232,93,74,0.4);
  transition: all var(--t);
}
.rp-toggle-btn:hover { transform: translateY(-50%) scale(1.08); }

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 100px; }

/* ═══════════════ LIGHT MODE ═══════════════ */
[data-theme="light"] #user-input { color: #1a202c; }
[data-theme="light"] .input-wrapper { background: #fff; }
[data-theme="light"] .chat-topbar, [data-theme="light"] .sidebar, [data-theme="light"] .chat-input-area, [data-theme="light"] .right-panel { background: #ede8e2; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 200;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .mob-menu-btn { display: flex; align-items: center; justify-content: center; }
  .chat-main { margin-left: 0; }
  .rp-toggle-btn { display: none; }
}
@media (max-width: 600px) {
  .chat-body { padding: 16px 12px; }
  .chat-input-area { padding: 10px 12px 14px; }
  .msg-bubble { max-width: 92%; }
  .token-counter-badge { display: none; }
  .welcome-bubble { max-width: 100%; }
}