/* ============================================
   Louisiana Law - Neo-Louisiana Legal Tech
   Aesthetic: Dark sophistication, gold accents
   Atmosphere: Authoritative yet approachable
   ============================================ */

/* Design Tokens */
:root {
  /* Colors - Deep navy with warm gold */
  --color-void: #0a0c10;
  --color-surface: #12151c;
  --color-surface-elevated: #1a1e28;
  --color-surface-hover: #222836;
  --color-border: #2a3142;
  --color-border-subtle: #1e2330;

  /* Gold spectrum */
  --color-gold: #d4a853;
  --color-gold-bright: #f0c465;
  --color-gold-dim: #a68532;
  --color-gold-muted: rgba(212, 168, 83, 0.15);

  /* Text */
  --color-text: #f0f1f4;
  --color-text-secondary: #a0a6b6;
  --color-text-muted: #6b7280;
  --color-text-inverse: #0a0c10;

  /* Semantic */
  --color-error: #ef5350;
  --color-success: #4caf50;
  --color-info: #42a5f5;

  /* Source badges */
  --color-tier1: #4ade80;
  --color-tier2: #94a3b8;
  --color-manual: #60a5fa;
  --color-handbook: #fbbf24;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --content-width: 800px;
  --header-height: 64px;

  /* Effects */
  --shadow-glow: 0 0 60px rgba(212, 168, 83, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-void);
  min-height: 100vh;
  overflow-x: hidden;
}

/* App Container */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* 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.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  transition: transform var(--transition);
}

.brand:hover .brand-icon {
  transform: scale(1.05);
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Header Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-gold-muted);
  border: 1px solid var(--color-gold-dim);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-btn:hover {
  background: rgba(212, 168, 83, 0.25);
  border-color: var(--color-gold);
}

.nav-btn svg {
  width: 18px;
  height: 18px;
}

.nav-btn-label {
  display: none;
}

.nav-btn-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  background: var(--color-gold);
  color: var(--color-void);
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .nav-btn-label {
    display: inline;
  }
}

/* Layout */
.layout {
  flex: 1;
  display: flex;
  position: relative;
  z-index: 1;
}

/* Search Panel */
.search-panel {
  flex: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: var(--space-12);
}

.hero-content {
  margin-bottom: var(--space-8);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero-title-line {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.hero-title-accent {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-gold);
  margin-top: var(--space-2);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Search Form */
.search-form {
  max-width: 640px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.search-box:focus-within {
  border-color: var(--color-gold-dim);
  box-shadow: var(--shadow-card), 0 0 0 3px var(--color-gold-muted);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-icon svg {
  width: 20px;
  height: 20px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text);
  padding: var(--space-3) var(--space-2);
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-submit {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dim) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-void);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.search-submit:hover {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
  transform: translateY(-1px);
}

.search-submit:active {
  transform: translateY(0);
}

.search-submit-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.search-submit:hover .search-submit-arrow {
  transform: translateX(3px);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.quick-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.quick-chip {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-chip:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-gold-dim);
  color: var(--color-gold);
}

/* Results Section */
.results-section {
  min-height: 300px;
}

/* Results States */
.results-empty,
.results-loading,
.results-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
}

/* Empty State */
.empty-visual {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-6);
  color: var(--color-gold);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.empty-text {
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.7;
}

/* Loading State */
.loader {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(2) {
  inset: 8px;
  animation-delay: -0.2s;
}

.loader-ring:nth-child(3) {
  inset: 16px;
  animation-delay: -0.4s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* Error State */
.error-icon {
  width: 48px;
  height: 48px;
  color: var(--color-error);
  margin-bottom: var(--space-4);
}

.error-icon svg {
  width: 100%;
  height: 100%;
}

.error-message {
  font-size: 0.9375rem;
  color: var(--color-error);
}

/* Results List */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-5);
}

.results-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.results-powered {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.results {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Result Card */
.result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: all var(--transition);
  animation: slideUp 0.4s ease backwards;
}

.result-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.result-card:nth-child(1) { animation-delay: 0ms; }
.result-card:nth-child(2) { animation-delay: 50ms; }
.result-card:nth-child(3) { animation-delay: 100ms; }
.result-card:nth-child(4) { animation-delay: 150ms; }
.result-card:nth-child(5) { animation-delay: 200ms; }
.result-card:nth-child(6) { animation-delay: 250ms; }
.result-card:nth-child(7) { animation-delay: 300ms; }
.result-card:nth-child(8) { animation-delay: 350ms; }
.result-card:nth-child(9) { animation-delay: 400ms; }
.result-card:nth-child(10) { animation-delay: 450ms; }

.result-citation {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.result-source {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
}

.result-source[data-source="tier1"] {
  background: rgba(74, 222, 128, 0.12);
  color: var(--color-tier1);
}

.result-source[data-source="tier2"] {
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-tier2);
}

.result-source[data-source="manual"] {
  background: rgba(96, 165, 250, 0.12);
  color: var(--color-manual);
}

.result-source[data-source="handbook"] {
  background: rgba(251, 191, 36, 0.12);
  color: var(--color-handbook);
}

.result-relevance {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.relevance-bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.relevance-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dim), var(--color-gold));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Related Section */
.result-related {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.related-label {
  font-weight: 600;
  color: var(--color-text-muted);
  margin-right: var(--space-2);
}

.court-badge {
  display: inline-block;
  background: rgba(66, 165, 245, 0.15);
  color: var(--color-info);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: var(--space-1);
}

.cite-link {
  display: inline;
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.more-count {
  color: var(--color-text-muted);
  font-style: italic;
}

.related-courts,
.related-cites,
.related-cited-by {
  line-height: 1.8;
}

/* Result Text Content */
.result-text {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.result-text-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.result-text-content.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.result-expand-btn:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-gold-dim);
  color: var(--color-gold);
}

.result-expand-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.result-expand-btn.expanded svg {
  transform: rotate(180deg);
}

.result-no-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Chat Panel */
.chat-panel {
  position: fixed;
  right: 0;
  top: var(--header-height);
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  z-index: 90;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.chat-panel.open {
  transform: translateX(0);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-surface-elevated);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.chat-title-icon {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
}

.chat-title-icon svg {
  width: 100%;
  height: 100%;
}

.chat-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-close:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.chat-close svg {
  width: 18px;
  height: 18px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
}

.chat-welcome {
  padding: var(--space-5);
  background: var(--color-gold-muted);
  border: 1px solid var(--color-gold-dim);
  border-radius: var(--radius-md);
  color: var(--color-gold);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  background: var(--color-surface-elevated);
}

.chat-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--color-gold-dim);
}

.chat-input::placeholder {
  color: var(--color-text-muted);
}

.chat-send {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-void);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--color-gold-bright);
}

.chat-send svg {
  width: 18px;
  height: 18px;
}

/* Chat Messages */
.chat-message {
  max-width: 85%;
  margin-bottom: var(--space-3);
  animation: messageIn 0.3s ease;
}

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

.chat-message-user {
  margin-left: auto;
}

.chat-message-assistant {
  margin-right: auto;
}

.chat-message-content {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-message-user .chat-message-content {
  background: var(--color-gold);
  color: var(--color-void);
  border-bottom-right-radius: 4px;
}

.chat-message-assistant .chat-message-content {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.chat-message.streaming .chat-message-content::after {
  content: '▋';
  animation: blink 0.8s infinite;
}

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

/* Chat typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.chat-typing span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing span:nth-child(2) { animation-delay: -0.16s; }
.chat-typing span:nth-child(3) { animation-delay: 0s; }

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

.chat-loading {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  width: fit-content;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border-subtle);
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-6);
  text-align: center;
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-3);
}

.disclaimer strong {
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-stat {
  color: var(--color-gold-dim);
  font-weight: 500;
}

.footer-divider {
  opacity: 0.3;
}

/* Utility: Hidden */
[hidden] {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 var(--space-4);
  }

  .search-panel {
    padding: var(--space-6) var(--space-4);
  }

  .hero {
    margin-bottom: var(--space-8);
  }

  .hero-content {
    margin-bottom: var(--space-6);
  }

  .search-box {
    flex-wrap: wrap;
    padding: var(--space-3);
  }

  .search-icon {
    display: none;
  }

  .search-input {
    flex-basis: 100%;
    padding: var(--space-3);
    font-size: 1rem;
  }

  .search-submit {
    flex: 1;
    justify-content: center;
    margin-top: var(--space-2);
  }

  .quick-actions {
    gap: var(--space-2);
  }

  .quick-label {
    width: 100%;
    text-align: center;
  }

  .result-card {
    padding: var(--space-4);
  }

  .chat-panel {
    width: 100%;
    left: 0;
    transform: translateY(100%);
  }

  .chat-panel.open {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }

  .nav-btn-badge {
    display: none;
  }

  .hero-title-line {
    font-size: 2rem;
  }

  .hero-title-accent {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* Selection */
::selection {
  background: var(--color-gold);
  color: var(--color-void);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
