/* ============================================================
   Regulus World — Nemotron Interface
   Theme: Deep space glassmorphism with aurora accents
   ============================================================ */

:root {
  --bg-primary: #0b0d14;
  --bg-secondary: #11131c;
  --bg-card: rgba(20, 22, 36, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --accent-cyan: #22d3ee;
  --accent-purple: #a78bfa;
  --accent-rose: #f472b6;
  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #f472b6 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --msg-user: rgba(34, 211, 238, 0.10);
  --msg-assistant: rgba(167, 139, 250, 0.08);
  --msg-user-border: rgba(34, 211, 238, 0.25);
  --msg-assistant-border: rgba(167, 139, 250, 0.20);
  --success: #34d399;
  --error: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(34, 211, 238, 0.15);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animated starfield canvas */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.login-container {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: fadeUp 0.7s ease both;
}

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

.login-brand {
  text-align: center;
  margin-bottom: 36px;
}

.logo-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(34,211,238,0.12);
  animation: pulse 3s ease-in-out infinite;
}

.logo-ring.small { width: 36px; height: 36px; margin: 0; }
.logo-ring.large { width: 96px; height: 96px; margin-bottom: 20px; }
.logo-ring.large svg { width: 48px; height: 48px; }
.logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.logo-ring.small img,
.logo-ring.large img { width: 100%; height: 100%; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34,211,238,0.12); }
  50%      { box-shadow: 0 0 40px rgba(34,211,238,0.25); }
}

.login-brand h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.10);
}

#login-btn {
  position: relative;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: var(--accent-gradient);
  color: #0b0d14;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s;
  overflow: hidden;
}
#login-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
#login-btn:active { transform: translateY(0); }
#login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; filter: none; }

.btn-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11,13,20,0.3);
  border-top-color: #0b0d14;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  color: var(--error);
  text-align: center;
  font-size: 13px;
  margin-top: 14px;
  min-height: 20px;
  font-weight: 500;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--text-muted);
  position: relative;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--success);
  opacity: 0.4;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================================
   CHAT LAYOUT
   ============================================================ */
.chat-body {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 280px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sidebar.collapsed { transform: translateX(-100%); }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex: 1;
}
.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.new-conv-btn {
  margin: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-glass);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.new-conv-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(34,211,238,0.05);
}

.conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
}
.conv-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-item:hover { background: var(--bg-glass); color: var(--text-primary); }
.conv-item.active { background: rgba(34,211,238,0.08); color: var(--accent-cyan); border: 1px solid rgba(34,211,238,0.15); }
.conv-item svg { flex-shrink: 0; }

/* ---- Sidebar Navigation ---- */
.sidebar-nav {
  padding: 6px 14px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 10px 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .18s, color .18s, transform .15s;
}
.nav-link:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
  transform: translateX(2px);
}
.nav-link svg { flex-shrink: 0; opacity: .7; }
.nav-link:hover svg { opacity: 1; }

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.model-badge {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 20px;
  border: 1px solid var(--border);
}
.sidebar-actions {
  display: flex;
  gap: 6px;
}
.sidebar-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-actions button:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

/* Main chat area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 280px;
  height: 100vh;
  position: relative;
  z-index: 1;
  transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
}
.chat-main.full { margin-left: 0; }

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 19, 28, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-right { display: flex; align-items: center; gap: 10px; }
#user-display { color: var(--text-muted); font-size: 13px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(34,211,238,0.06);
}

/* Upload bar */
.upload-bar {
  padding: 12px 20px 0;
}
.upload-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.upload-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.upload-details summary::-webkit-details-marker { display: none; }
.upload-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
}
.upload-field { display: flex; flex-direction: column; gap: 6px; }
.upload-field label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.upload-field select,
.upload-field input[type="file"] {
  padding: 8px 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.upload-field select:focus {
  border-color: var(--accent-cyan);
}
#upload-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-rose));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.2s;
}
#upload-btn:hover { filter: brightness(1.1); }
#upload-status { font-size: 13px; margin-top: 8px; min-height: 18px; }

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar,
.conv-list::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track,
.conv-list::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb,
.conv-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-thumb:hover,
.conv-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Welcome screen */
.welcome-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.welcome-hero {
  text-align: center;
  max-width: 560px;
  animation: fadeUp 0.6s ease both;
}
.welcome-hero h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.welcome-hero p { color: var(--text-secondary); font-size: 15px; margin-bottom: 24px; }

.welcome-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pill {
  padding: 8px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.pill:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(167,139,250,0.06);
  transform: translateY(-1px);
}

/* Messages */
.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: msgIn 0.3s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.message.user { align-self: flex-end; }
.message.assistant { align-self: flex-start; }

.message-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.message.user .message-label { color: var(--accent-cyan); justify-content: flex-end; }
.message.assistant .message-label { color: var(--accent-purple); }

.message-content {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.7;
  word-wrap: break-word;
  border: 1px solid transparent;
  transition: box-shadow 0.3s;
}
.message.user .message-content {
  background: var(--msg-user);
  border-color: var(--msg-user-border);
  border-bottom-right-radius: 4px;
  white-space: pre-wrap;
  color: var(--text-primary);
}
.message.assistant .message-content {
  background: var(--msg-assistant);
  border-color: var(--msg-assistant-border);
  border-bottom-left-radius: 4px;
}
.message.assistant .message-content.streaming {
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { border-color: var(--msg-assistant-border); }
  50%      { border-color: rgba(167,139,250,0.45); }
}

.msg-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.msg-file-chip {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Markdown body */
.markdown-body { color: var(--text-primary); }
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 18px 0 10px;
  line-height: 1.3;
  font-weight: 600;
}
.markdown-body h1 { font-size: 1.6em; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.markdown-body h2 { font-size: 1.35em; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.markdown-body h3 { font-size: 1.15em; }
.markdown-body h4 { font-size: 1.05em; }
.markdown-body h5,
.markdown-body h6 { font-size: 1em; color: var(--text-secondary); }
.markdown-body p { margin: 10px 0; line-height: 1.75; }
.markdown-body strong { color: #fff; font-weight: 600; }
.markdown-body a { color: var(--accent-cyan); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }
.markdown-body ul,
.markdown-body ol { margin: 10px 0; padding-left: 24px; }
.markdown-body li { margin: 5px 0; line-height: 1.65; }
.markdown-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  background: rgba(34,211,238,0.08);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 5px;
}
.markdown-body pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 12px 0;
  overflow-x: auto;
}
.markdown-body pre code {
  background: none;
  color: #c8d0e0;
  padding: 0;
  font-size: 0.85em;
  line-height: 1.55;
}
.markdown-body blockquote {
  border-left: 3px solid var(--accent-purple);
  padding: 6px 16px;
  margin: 12px 0;
  color: var(--text-secondary);
  background: rgba(167,139,250,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 0.9em;
}
.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.markdown-body th {
  background: var(--bg-glass);
  font-weight: 600;
}
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.markdown-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 6px;
  animation: fadeUp 0.3s ease;
}
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--msg-assistant);
  border: 1px solid var(--msg-assistant-border);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
}
.typing-bubble span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}
.typing-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Chat input */
.chat-input-area {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: rgba(17, 19, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.file-chips {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--accent-cyan);
}
.file-chip button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.file-chip button:hover { color: var(--error); }

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input-row:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.08);
}

#message-input {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 150px;
  line-height: 1.5;
}
#message-input::placeholder { color: var(--text-muted); }

.send-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #0b0d14;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.send-btn:hover { filter: brightness(1.15); transform: scale(1.05); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

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

/* ============================================================
   VAULT GRAPH OVERLAY
   ============================================================ */
.vault-graph-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  flex-direction: column;
}
.vault-graph-overlay.open { display: flex; }

.vault-graph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(17,19,28,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.vault-graph-toolbar h2 {
  font-family: var(--font-display);
  font-size: 18px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}
.vault-graph-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
#vault-graph-filter {
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
#vault-graph-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
#vault-graph-close:hover {
  border-color: var(--error);
  color: var(--error);
}
#vault-graph-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.vault-graph-info {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  max-width: 380px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--text-primary);
  display: none;
  z-index: 1000;
  line-height: 1.6;
  white-space: pre-wrap;
  box-shadow: var(--shadow-lg);
}
.vault-graph-info .info-title {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.vault-graph-info .info-group {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .chat-main { margin-left: 0 !important; }
  .message { max-width: 92%; }
  .chat-header { padding: 10px 14px; }
  .chat-messages { padding: 14px; }
  .welcome-hero h2 { font-size: 24px; }
  .vault-graph-info { max-width: 90vw; left: 12px; bottom: 12px; }
}

@media (max-width: 480px) {
  .login-container { margin: 16px; padding: 32px 24px; }
  .welcome-pills { gap: 6px; }
  .pill { font-size: 12px; padding: 6px 10px; }
}
