/* ── Chat App Styles — FetchUp Phase 2.5D ─────────────────────────────────
   Design tokens match theme.css (green #3DA655, navy/primary #1a2820, orange #e85d20)
   Uses same --bg, --fg, --accent, --font-serif, --font-sans vars.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Auth Page ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem;
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--accent);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.success-msg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #e8f5e8;
  border: 1px solid #b8dfb8;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #2d7d42;
  font-weight: 500;
}

.dev-link {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.dev-magic-link {
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--accent);
  text-decoration: underline;
  word-break: break-word;
}

.auth-footer {
  font-size: 0.8rem;
  color: var(--fg-faint);
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

/* ── App Layout ───────────────────────────────────────────────────────────── */
.app-body {
  background: var(--bg);
  min-height: 100vh;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar Nav ──────────────────────────────────────────────────────────── */
.sidebar-nav {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-alt);
  color: var(--fg);
}

.nav-item.active {
  background: rgba(61, 166, 85, 0.1);
  color: #3DA655;
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item.active svg { opacity: 1; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.72rem;
  color: var(--fg-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Chat Main (home + history pages) ────────────────────────────────────── */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem 2rem;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.025em;
}

.btn-new-chat {
  background: var(--accent);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-new-chat:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-new-chat:active { transform: none; }

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.paw-icon-large { margin-bottom: 0.5rem; }

.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 320px;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

/* ── Conversations List ───────────────────────────────────────────────────── */
.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.conv-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  box-shadow: var(--shadow-card);
  position: relative;
}

.conv-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 93, 32, 0.2);
  transform: translateY(-1px);
}

.conv-unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DA655;
  flex-shrink: 0;
}

.conv-content {
  flex: 1;
  min-width: 0;
}

.conv-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.conv-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-date {
  font-size: 0.72rem;
  color: var(--fg-faint);
  flex-shrink: 0;
}

.conv-preview {
  font-size: 0.8rem;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.conv-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conv-count {
  font-size: 0.72rem;
  color: var(--fg-faint);
}

.conv-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-faint);
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
  opacity: 0;
}

.conv-card:hover .conv-delete { opacity: 1; }

.conv-delete:hover {
  background: #fde8e8;
  color: #e53e3e;
}

.conv-chevron {
  color: var(--fg-faint);
  flex-shrink: 0;
}

/* ── Delete Modal ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-hover);
}

.modal-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.modal-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-ghost {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--fg-muted);
}

.btn-danger {
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-danger:hover { background: #c53030; }

/* ── Active Chat Area ─────────────────────────────────────────────────────── */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--bg-alt);
  color: var(--fg);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  flex: 1;
  letter-spacing: -0.01em;
}

.chat-title svg { color: var(--accent); }

.btn-new-chat-sm {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(61, 166, 85, 0.1);
  color: #3DA655;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.btn-new-chat-sm:hover { background: rgba(61, 166, 85, 0.18); }

/* ── Upgrade Banner ───────────────────────────────────────────────────────── */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-light);
  border-bottom: 1px solid rgba(232, 93, 32, 0.2);
  padding: 0.75rem 1.5rem;
}

.upgrade-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.upgrade-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}

/* ── Messages Container ───────────────────────────────────────────────────── */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.loading-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 0.75rem;
}

/* ── Message Bubbles ─────────────────────────────────────────────────────── */
.message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 85%;
}

.message.user-message {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.message.ai-message {
  flex-direction: row;
  align-self: flex-start;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
}

.bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.65;
  word-wrap: break-word;
}

.message.user-message .bubble {
  background: var(--fg);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.ai-message .bubble {
  background: var(--white);
  color: var(--fg);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-card);
}

.bubble p { margin: 0 0 0.5rem; }
.bubble p:last-child { margin-bottom: 0; }
.bubble strong { font-weight: 600; }
.bubble br { display: block; margin: 0.2rem 0; }

.timestamp {
  font-size: 0.68rem;
  color: var(--fg-faint);
  margin-top: 0.25rem;
  display: block;
}

.message.user-message .timestamp {
  text-align: right;
}

/* ── Typing Indicator ─────────────────────────────────────────────────────── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DA655;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.typing-label {
  font-size: 0.8rem;
  color: var(--fg-faint);
  font-style: italic;
}

.typing-indicator-sm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  margin-bottom: 0.5rem;
}

.typing-indicator-sm span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DA655;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator-sm span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator-sm span:nth-child(3) { animation-delay: 0.4s; }

/* ── Input Bar ────────────────────────────────────────────────────────────── */
.input-bar {
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.message-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--fg);
  background: transparent;
  resize: none;
  line-height: 1.5;
  padding: 0.25rem 0;
  min-height: 24px;
  max-height: 120px;
}

.message-input::placeholder { color: var(--fg-faint); }

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3DA655;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.send-btn:hover { background: #2d7d42; transform: scale(1.05); }
.send-btn:active { transform: scale(0.95); }
.send-btn:disabled { background: var(--border); cursor: not-allowed; transform: none; }

.message-count {
  font-size: 0.72rem;
  color: var(--fg-faint);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Quick Questions Button ───────────────────────────────────────────────── */
.quick-questions-btn {
  position: absolute;
  bottom: 90px;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg-muted);
  box-shadow: var(--shadow-card);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quick-questions-btn:hover {
  background: var(--accent-light);
  border-color: rgba(232, 93, 32, 0.3);
  color: var(--accent);
}

/* ── Bottom Sheet (Quick Questions) ───────────────────────────────────────── */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-height: 75vh;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.sheet-content {
  position: relative;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1.5rem 2rem;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin: 0 auto 1.25rem;
}

.sheet-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.questions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.question-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-family: var(--font-sans);
}

.question-tile:hover {
  background: var(--accent-light);
  border-color: rgba(232, 93, 32, 0.3);
  transform: translateY(-1px);
}

.question-tile:active {
  transform: translateY(0);
  background: rgba(232, 93, 32, 0.12);
}

.tile-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.tile-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
}

.sheet-footer {
  font-size: 0.8rem;
  color: var(--fg-faint);
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

/* ── Search Bar (History) ─────────────────────────────────────────────────── */
.search-bar-wrap {
  margin-bottom: 1rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar svg { color: var(--fg-faint); flex-shrink: 0; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--fg);
  background: transparent;
}

.search-input::placeholder { color: var(--fg-faint); }

.clear-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-faint);
  display: flex;
  padding: 0.2rem;
  transition: color 0.15s ease;
}

.clear-search:hover { color: var(--fg); }

/* ── Filter Tabs ──────────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-tab {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-tab:hover {
  background: var(--bg-alt);
  border-color: var(--fg-muted);
}

.filter-tab.active {
  background: var(--fg);
  border-color: var(--fg);
  color: white;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-layout { flex-direction: column; }

  .sidebar-nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    gap: 0.5rem;
  }

  .nav-logo { margin-bottom: 0; flex-shrink: 0; }
  .nav-links { flex-direction: row; flex: 1; gap: 0.25rem; }
  .nav-user { border-top: none; margin-top: 0; padding: 0; flex-shrink: 0; }
  .nav-item span { display: none; }

  .chat-main { padding: 0 1rem 1rem; }

  .message { max-width: 92%; }
  .questions-grid { grid-template-columns: 1fr; }
  .modal-card { margin: 1rem; }
}

@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .upgrade-banner { flex-direction: column; gap: 0.5rem; text-align: center; }
}