/* ================================================================
   MAHABHARAT ORACLE — Complete CSS Design System v2
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --gold: #FFD700;
  --gold-light: #FFE566;
  --gold-dim: #997A00;
  --saffron: #FF7722;
  --saffron-dim: #8B3D0A;
  --bg: #08091A;
  --bg2: #0D1025;
  --card: #131830;
  --card2: #1A2140;
  --border: rgba(255, 215, 0, 0.12);
  --border-glow: rgba(255, 215, 0, 0.30);
  --text: #E8D5B5;
  --text-muted: #7A8BA8;
  --text-dim: #4A5568;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-gold: 0 0 40px rgba(255, 215, 0, 0.12);
  --shadow-card: 0 8px 48px rgba(0, 0, 0, 0.7);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Noto Serif', serif;
  --transition: all 0.25s ease;
  --sidebar-w: 290px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}

/* ── Utilities ── */
.hidden {
  display: none !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 99px;
}

/* ================================================================
   AMBIENT BACKGROUND
   ================================================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: orbPulse 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #FFD700, transparent);
  top: -300px;
  left: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FF7722, transparent);
  bottom: -200px;
  right: -100px;
  animation-delay: 4s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6D28D9, transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 8s;
}

@keyframes orbPulse {
  from {
    opacity: 0.10;
    transform: scale(0.9);
  }

  to {
    opacity: 0.22;
    transform: scale(1.15);
  }
}

/* ── Floating Petals ── */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(-60px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ================================================================
   LOADING SCREEN
   ================================================================ */
.upload-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.upload-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, var(--card) 0%, var(--card2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  text-align: center;
  animation: cardIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.app-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dim);
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.45));
  transition: var(--transition);
}

.app-logo:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.7));
}

.logo-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.app-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--gold), var(--saffron), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.app-subtitle {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.app-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Progress */
.parse-progress {
  margin-bottom: 32px;
  text-align: center;
}

.chakra-spinner {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
}

.chakra-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  animation: spin 1.2s linear infinite;
}

.ring-2 {
  inset: 9px;
  border-top-color: var(--saffron);
  animation-duration: 0.9s;
  animation-direction: reverse;
}

.ring-3 {
  inset: 18px;
  border-top-color: var(--gold-light);
  animation-duration: 0.6s;
}

.chakra-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.parse-status {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.progress-bar-wrap {
  background: var(--card2);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
  margin: 0 auto 10px;
  max-width: 85%;
  border: 1px solid var(--border);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--saffron));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upload-features {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-icon {
  font-size: 1.4rem;
}

/* ================================================================
   CHAT SCREEN
   ================================================================ */
.chat-screen {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 10;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(19, 24, 48, 0.98) 0%, rgba(8, 9, 26, 0.98) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.sidebar.collapsed {
  transform: translateX(calc(-1 * var(--sidebar-w)));
  position: absolute;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.sidebar-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

/* PDF Info */
.pdf-info {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-val {
  color: var(--gold);
  font-weight: 600;
  max-width: 140px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Filter Select */
.filter-section {
  padding: 12px 18px;
}

.filter-select {
  width: 100%;
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.filter-select option {
  background: var(--card2);
}

/* Suggestions */
.suggested-section {
  padding: 10px 18px;
  flex: 1;
  overflow-y: auto;
}

.suggested-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.suggest-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.79rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 5px;
  font-family: var(--font-body);
}

.suggest-btn:hover {
  background: rgba(255, 215, 0, 0.10);
  border-color: var(--gold-dim);
  color: var(--gold-light);
  transform: translateX(3px);
}

.sidebar-bottom {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-new-chat {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  border: 1px solid var(--border);
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
}

.btn-new-chat:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold-dim);
}

/* ── Chat Panel ── */
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(90deg, rgba(19, 24, 48, 0.95), rgba(8, 9, 26, 0.95));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.sidebar-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
}

.chat-header-title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-chakra {
  font-size: 1.3rem;
  animation: gentleSpin 10s linear infinite;
  display: inline-block;
}

@keyframes gentleSpin {
  to {
    transform: rotate(360deg);
  }
}

.result-count-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.result-count-select {
  background: var(--card2);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.76rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.result-count-select:focus {
  outline: none;
  border-color: var(--gold-dim);
}

/* Messages */
.messages-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.welcome-msg {
  text-align: center;
  padding: 44px 24px;
  color: var(--text-muted);
  animation: fadeIn 0.8s ease;
}

.welcome-chakra {
  font-size: 3.5rem;
  color: var(--gold-dim);
  margin-bottom: 16px;
  animation: gentleSpin 14s linear infinite;
  display: inline-block;
}

.welcome-msg h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.welcome-msg p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* Message rows */
.msg-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: msgIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.msg-row.user {
  flex-direction: row-reverse;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.msg-row.user .msg-avatar {
  background: linear-gradient(135deg, var(--saffron-dim), var(--saffron));
  border-color: var(--saffron);
}

.msg-row.bot .msg-avatar {
  background: linear-gradient(135deg, var(--gold-dim), #6B5000);
  border-color: var(--gold-dim);
}

.msg-content {
  max-width: 76%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg-bubble {
  padding: 13px 17px;
  border-radius: var(--radius);
  font-size: 0.89rem;
  line-height: 1.65;
}

.msg-row.user .msg-bubble {
  background: linear-gradient(135deg, rgba(255, 119, 34, 0.14), rgba(255, 119, 34, 0.07));
  border: 1px solid rgba(255, 119, 34, 0.22);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.msg-row.bot .msg-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Passage Cards */
.passage-card {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-serif);
  font-size: 0.87rem;
  line-height: 1.85;
  color: var(--text);
  transition: var(--transition);
  max-width: 700px;
}

.passage-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.07);
}

.passage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.passage-rank {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.07);
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 215, 0, 0.13);
}

.passage-parva-badge {
  font-size: 0.65rem;
  color: var(--saffron);
  padding: 3px 9px;
  background: rgba(255, 119, 34, 0.08);
  border: 1px solid rgba(255, 119, 34, 0.2);
  border-radius: 99px;
}

.passage-section-label {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.passage-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.passage-text .highlight {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold-light);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

.passage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.passage-source {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.btn-view-more {
  font-family: var(--font-body);
  font-size: 0.73rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 99px;
  padding: 4px 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-more:hover {
  background: rgba(255, 215, 0, 0.14);
  border-color: var(--gold-dim);
}

.no-results {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text-muted);
  font-size: 0.87rem;
  text-align: center;
  max-width: 500px;
}

/* Typing */
.typing-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 13px 17px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-dim);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    background: var(--gold-dim);
  }

  30% {
    transform: translateY(-7px);
    background: var(--gold);
  }
}

/* Input Bar */
.chat-input-bar {
  padding: 14px 22px;
  background: linear-gradient(0deg, var(--card), var(--bg2));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: var(--card2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 9px 9px 9px 16px;
  transition: var(--transition);
}

.input-wrap:focus-within {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.07);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.91rem;
  font-family: var(--font-body);
  line-height: 1.55;
  resize: none;
  outline: none;
  max-height: 130px;
  overflow-y: auto;
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--saffron-dim));
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.send-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--bg);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
}

.send-btn:active {
  transform: scale(0.95);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.send-btn svg {
  width: 20px;
  height: 20px;
}

.input-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 7px;
}

/* ================================================================
   CONTEXT MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  animation: msgIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.modal-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  font-family: var(--font-serif);
  font-size: 0.91rem;
  line-height: 1.95;
  color: var(--text);
  white-space: pre-wrap;
}

.modal-body .highlight {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold-light);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    height: 100%;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
  }

  .upload-card {
    padding: 32px 24px;
  }

  .app-title {
    font-size: 2rem;
  }

  .messages-wrap {
    padding: 14px;
  }

  .chat-input-bar {
    padding: 12px 14px;
  }

  .msg-content {
    max-width: 92%;
  }

  .result-count-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .upload-features {
    gap: 16px;
  }

  .chat-header {
    padding: 10px 14px;
  }
}