@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Slate + Copper + Off-white — premium legal technology palette */
  --bg-primary: #15191C;
  --bg-secondary: #202529;
  --surface: #202529;
  --surface-elevated: #272D31;
  --glass-bg: #202529;
  --glass-border: #353B40;
  --glass-highlight: #272D31;
  --text-primary: #F1EFEA;
  --text-secondary: #A0A6AA;
  --text-muted: #7F878C;
  /* Copper accent (kept old var names so existing references recolor) */
  --accent-purple: #B56E4A;
  --accent-blue: #607F91;
  --accent-cyan: #607F91;
  --accent-gradient: #B56E4A;
  --primary: #B56E4A;
  --primary-hover: #C47C56;
  --primary-dark: #98583B;
  --border: #353B40;
  --border-subtle: #2B3034;
  --danger: #A95757;
  --success: #4F8A6A;
  --warning: #B58A4A;
  --info: #607F91;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --shadow-glow: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(39, 45, 49, 0.6), transparent),
    var(--bg-primary);
}

.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.nav-title {
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-user-name {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #15191C;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--primary);
}

.btn-danger {
  background: rgba(169, 87, 87, 0.15);
  color: #d99a9a;
  border: 1px solid rgba(169, 87, 87, 0.4);
}

.btn-danger:hover {
  background: rgba(169, 87, 87, 0.25);
  border-color: var(--danger);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card-header {
  margin-bottom: 24px;
}

.glass-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.glass-card-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(181, 110, 74, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-file {
  position: relative;
}

.form-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-file-label:hover {
  border-color: var(--accent-purple);
  background: rgba(181, 110, 74, 0.05);
}

.form-file-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.form-file-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-file-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.loading {
  background: rgba(96, 127, 145, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(96, 127, 145, 0.2);
}

.form-status.success {
  background: rgba(79, 138, 106, 0.1);
  color: #86efac;
  border: 1px solid rgba(79, 138, 106, 0.2);
}

.form-status.error {
  background: rgba(169, 87, 87, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(169, 87, 87, 0.2);
}

.form-status.warning {
  background: rgba(181, 138, 74, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(181, 138, 74, 0.2);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 60px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(181, 110, 74, 0.1);
  border: 1px solid rgba(181, 110, 74, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: #c4b5fd;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #A0A6AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FEATURES GRID ===== */
.features {
  padding: 40px 0 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== AUTH SECTION ===== */
.auth-section {
  padding: 40px 0 80px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.auth-card {
  padding: 32px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(181, 138, 74, 0.08);
  border: 1px solid rgba(181, 138, 74, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.disclaimer-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.disclaimer-text {
  font-size: 0.875rem;
  color: #fde68a;
  line-height: 1.5;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-full {
  grid-column: 1 / -1;
}

/* ===== DOCUMENT LIST ===== */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.doc-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-highlight);
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-actions {
  display: flex;
  gap: 8px;
}

.doc-empty {
  text-align: center;
  padding: 48px 24px;
}

.doc-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  opacity: 0.3;
}

.doc-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.doc-empty-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto;
}

.doc-icon {
  width: 40px;
  height: 40px;
  background: var(--glass-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-purple);
}

.doc-status {
  font-size: 0.75rem;
  font-weight: 500;
}

.doc-status-ready {
  color: var(--success);
}

.doc-status-processing {
  color: var(--warning);
}

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

.doc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== CHAT LAYOUT ===== */
.chat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.chat-message {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
}

.chat-message.user {
  border-left: 3px solid var(--accent-cyan);
}

.chat-message.assistant {
  border-left: 3px solid var(--accent-purple);
}

.chat-message-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chat-message-content {
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.context-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}

.context-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.context-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 8px;
}

.context-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ===== ANALYSIS OUTPUT ===== */
.analysis-card {
  padding: 24px;
}

.analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.analysis-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.analysis-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.analysis-snippet {
  margin: 16px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  border-left: 3px solid var(--accent-purple);
}

.analysis-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.analysis-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.analysis-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-low {
  background: rgba(79, 138, 106, 0.15);
  color: #86efac;
}

.badge-medium {
  background: rgba(181, 138, 74, 0.15);
  color: #fcd34d;
}

.badge-high {
  background: rgba(169, 87, 87, 0.15);
  color: #fca5a5;
}

.badge-score {
  background: var(--accent-gradient);
  color: #15191C;
  font-size: 0.875rem;
  padding: 8px 16px;
}

/* ===== GENERATOR ===== */
.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.preview-card {
  padding: 24px;
}

.preview-content {
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 500px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}

.preview-content::-webkit-scrollbar {
  width: 6px;
}

.preview-content::-webkit-scrollbar-track {
  background: transparent;
}

.preview-content::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.preview-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  .dashboard-grid,
  .chat-grid,
  .generator-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .doc-actions {
    width: 100%;
  }
  
  .doc-actions .btn {
    flex: 1;
  }
}

/* ===== VALIDATION WARNINGS ===== */
.validation-warning {
  background: linear-gradient(135deg, rgba(181, 138, 74, 0.1) 0%, rgba(181, 138, 74, 0.05) 100%);
  border: 1px solid rgba(181, 138, 74, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.validation-warning .warning-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.validation-warning h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 16px;
}

.validation-warning p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.validation-warning p strong {
  color: var(--text-primary);
}

.warning-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.missing-info-list {
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 16px 16px 32px;
  margin: 16px 0;
}

.missing-info-list li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.missing-info-list li:last-child {
  margin-bottom: 0;
}

/* ===== NAVIGATION LINKS ===== */
.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--glass-highlight);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  text-align: center;
  padding: 40px 0 48px;
}

.welcome-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #A0A6AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ===== WORKFLOW CARDS ===== */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.workflow-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.workflow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.workflow-card:hover::before {
  opacity: 1;
}

.workflow-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.workflow-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.workflow-icon-blue {
  background: var(--primary);
}

.workflow-icon-cyan {
  background: var(--primary);
}

.workflow-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.workflow-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.workflow-action {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 4px;
}

.workflow-card:hover .workflow-action {
  color: #c4b5fd;
}

/* ===== DASHBOARD SECTIONS ===== */
.dashboard-section {
  margin-bottom: 48px;
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.action-buttons .btn {
  flex: 1;
}

/* ===== ANALYSIS EMPTY STATE ===== */
.analysis-empty {
  text-align: center;
  padding: 48px 24px;
}

.analysis-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  opacity: 0.4;
}

.analysis-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.analysis-empty-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #A0A6AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== DOCUMENT TYPE CARDS ===== */
.doc-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.doc-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.doc-type-card:hover {
  border-color: var(--glass-highlight);
  background: rgba(255, 255, 255, 0.05);
}

.doc-type-card.active {
  border-color: var(--accent-purple);
  background: rgba(181, 110, 74, 0.1);
}

.doc-type-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.doc-type-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.doc-type-icon-orange {
  background: var(--warning);
}

.doc-type-icon-blue {
  background: var(--primary);
}

.doc-type-icon-cyan {
  background: var(--primary);
}

.doc-type-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.doc-type-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== SUGGESTED PROMPTS ===== */
.suggested-prompts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

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

.suggested-btn {
  padding: 8px 14px;
  background: rgba(181, 110, 74, 0.1);
  border: 1px solid rgba(181, 110, 74, 0.2);
  border-radius: 999px;
  color: #c4b5fd;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggested-btn:hover {
  background: rgba(181, 110, 74, 0.2);
  border-color: rgba(181, 110, 74, 0.4);
}

/* ===== FORM ENHANCEMENTS ===== */
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-textarea-lg {
  min-height: 180px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* ===== PREVIEW EMPTY STATE ===== */
.preview-empty {
  text-align: center;
  padding: 48px 24px;
}

.preview-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  opacity: 0.3;
}

.preview-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.preview-empty-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto;
}

/* ===== CONTEXT EMPTY STATE ===== */
.context-empty {
  text-align: center;
  padding: 32px 24px;
}

.context-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--text-muted);
  opacity: 0.3;
}

.context-empty p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== CONVERSATION HEADER ===== */
.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE WORKFLOW ===== */
@media (max-width: 1024px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  
  .workflow-card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 24px;
  }
  
  .workflow-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .workflow-desc {
    margin-bottom: 0;
  }
  
  .workflow-action {
    display: none;
  }
  
  .doc-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .doc-type-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .suggested-prompts {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== LAW REFERENCE STYLES ===== */
.context-section {
  margin-bottom: 20px;
}

.context-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.context-location {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.context-meta {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.law-reference {
  border-left: 3px solid var(--accent-blue);
  background: rgba(96, 127, 145, 0.05);
}

.law-reference.exact-match {
  border-left-color: var(--accent-purple);
  background: rgba(181, 110, 74, 0.08);
}

.law-badge {
  font-size: 0.75rem;
  font-weight: 600;
}

.law-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.law-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.law-punishment {
  font-size: 0.8rem;
  color: var(--warning);
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(181, 138, 74, 0.1);
  border-radius: var(--radius-sm);
}

.law-mapping {
  font-size: 0.8rem;
  color: var(--accent-purple);
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(181, 110, 74, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.query-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ===== CHAT UPLOAD SECTION ===== */
.chat-upload-section {
  margin-bottom: 16px;
}

.upload-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.upload-divider::before,
.upload-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.form-file.form-file-compact {
  padding: 0;
  position: relative;
}

.form-file.form-file-compact .form-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.form-file.form-file-compact .form-file-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  min-height: auto;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-file.form-file-compact .form-file-label:hover {
  border-color: var(--accent-purple);
  background: rgba(181, 110, 74, 0.05);
}

.form-file-icon-sm {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.form-file-text-sm {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== NEW LANDING PAGE STYLES ===== */

/* Fixed Glassy Navbar */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(21, 25, 28, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.navbar-fixed.scrolled {
  background: rgba(21, 25, 28, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-fixed .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-wrapper {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav-logo-icon {
  font-size: 1.2rem;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-active {
  color: var(--text-primary);
  background: rgba(181, 110, 74, 0.12);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-link-active:hover {
  background: rgba(181, 110, 74, 0.18);
}

.nav-link-icon {
  width: 18px;
  height: 18px;
}

.nav-logout {
  color: var(--danger);
}

.nav-logout:hover {
  background: rgba(169, 87, 87, 0.1);
  color: var(--danger);
}

.btn-nav {
  margin-left: 8px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Landing Container with padding for fixed navbar */
.landing-container {
  padding-top: 80px;
}

/* Page Container for inner pages (dashboard, chat, generator) */
.page-container {
  padding-top: 80px;
}

/* Hero Spotlight Section */
.hero-spotlight {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 60px;
  position: relative;
}

/* Dashboard Hero - smaller version */
.dashboard-hero {
  min-height: auto;
  padding: 40px 0 60px;
}

.hero-content {
  max-width: 700px;
  margin-bottom: 40px;
}

.hero-spotlight .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-spotlight .hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* Ask Bar Section */
.ask-bar-section {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.glass-card-prominent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.glass-card-prominent:hover {
  border-color: var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ask-bar-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ask-bar-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 4px 4px 4px 16px;
  transition: all 0.2s ease;
}

.ask-bar-input-wrapper:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(181, 110, 74, 0.15);
}

.ask-bar-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ask-bar-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 12px 0;
}

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

.ask-bar-submit {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ask-bar-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ask-bar-submit svg {
  width: 20px;
  height: 20px;
  color: #15191C;
}

.ask-bar-extras {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-option {
  cursor: pointer;
}

.upload-option-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.upload-option-btn:hover {
  background: rgba(181, 110, 74, 0.1);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

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

.upload-file-name {
  font-size: 0.85rem;
  color: var(--accent-purple);
  font-weight: 500;
}

.ask-bar-suggestions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.suggestion-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-chip:hover {
  background: rgba(181, 110, 74, 0.15);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Features Section New */
.features-section {
  padding: 80px 0;
}

.features-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card-new {
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card-new:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 110, 74, 0.3);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(181, 110, 74, 0.2) 0%, rgba(96, 127, 145, 0.2) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
  color: var(--accent-purple);
}

.feature-icon-chat svg { color: var(--accent-blue); }
.feature-icon-search svg { color: var(--accent-cyan); }
.feature-icon-warning svg { color: var(--warning); }
.feature-icon-generate svg { color: #ec4899; }
.feature-icon-lock svg { color: var(--success); }

.feature-icon-chat { background: linear-gradient(135deg, rgba(96, 127, 145, 0.2) 0%, rgba(96, 127, 145, 0.2) 100%); }
.feature-icon-search { background: linear-gradient(135deg, rgba(96, 127, 145, 0.2) 0%, rgba(79, 138, 106, 0.2) 100%); }
.feature-icon-warning { background: linear-gradient(135deg, rgba(181, 138, 74, 0.2) 0%, rgba(169, 87, 87, 0.2) 100%); }
.feature-icon-generate { background: linear-gradient(135deg, rgba(181, 110, 74, 0.2) 0%, rgba(181, 110, 74, 0.2) 100%); }
.feature-icon-lock { background: linear-gradient(135deg, rgba(79, 138, 106, 0.2) 0%, rgba(96, 127, 145, 0.2) 100%); }

.feature-title-new {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-description-new {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Why Section */
.why-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(181, 110, 74, 0.03) 50%, transparent 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 110, 74, 0.3);
}

.why-icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(181, 110, 74, 0.15) 0%, rgba(96, 127, 145, 0.15) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon-wrapper svg {
  width: 30px;
  height: 30px;
  color: var(--accent-purple);
}

.why-icon-security svg { color: var(--success); }
.why-icon-smart svg { color: var(--warning); }

.why-icon-security { background: linear-gradient(135deg, rgba(79, 138, 106, 0.15) 0%, rgba(96, 127, 145, 0.15) 100%); }
.why-icon-smart { background: linear-gradient(135deg, rgba(181, 138, 74, 0.15) 0%, rgba(181, 110, 74, 0.15) 100%); }

.why-content {
  flex: 1;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.why-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.why-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.why-benefits li::before {
  content: '✓';
  color: var(--success);
  font-weight: 600;
}

/* How It Works Section */
.how-section {
  padding: 80px 0;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.step-card {
  flex: 1;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 110, 74, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #15191C;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.step-content {
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: rgba(181, 110, 74, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-visual svg {
  width: 36px;
  height: 36px;
  color: var(--accent-purple);
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  color: var(--text-muted);
}

.step-connector svg {
  width: 24px;
  height: 24px;
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.cta-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Auth Section Updates */
.auth-section {
  padding: 80px 0;
}

.auth-section .section-header {
  margin-bottom: 40px;
}

/* Footer Updates */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-logo {
  font-size: 1.3rem;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Disclaimer Updates */
.disclaimer {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 24px;
  background: rgba(181, 138, 74, 0.08);
  border: 1px solid rgba(181, 138, 74, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .features-grid-new,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-container {
    flex-wrap: wrap;
  }
  
  .step-connector {
    display: none;
  }
  
  .step-card {
    max-width: none;
    width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(21, 25, 28, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .btn-nav {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 8px;
  }
  
  .features-grid-new,
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .step-card {
    width: 100%;
  }
  
  .hero-spotlight {
    min-height: auto;
    padding: 60px 0 40px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .ask-bar-suggestions {
    justify-content: center;
  }
  
  .why-card {
    text-align: center;
  }
  
  .why-icon-wrapper {
    margin: 0 auto;
  }
  
  .why-benefits {
    align-items: center;
  }
}

/* ===== EXPANDABLE CHATBOT STYLES ===== */
.expandable-chatbot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.expandable-chatbot.collapsed {
  padding: 0;
}

/* Collapsed State */
.chatbot-collapsed {
  display: block;
}

.expandable-chatbot.expanded .chatbot-collapsed {
  display: none;
}

.collapsed-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.collapsed-input-wrapper:hover {
  background: rgba(255, 255, 255, 0.03);
}

.collapsed-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.collapsed-placeholder {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.collapsed-send-hint {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  color: white;
  flex-shrink: 0;
}

.collapsed-send-hint svg {
  width: 16px;
  height: 16px;
}

/* Expanded State */
.chatbot-expanded {
  display: none;
  flex-direction: column;
}

.expandable-chatbot.expanded .chatbot-expanded {
  display: flex;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.chatbot-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.chatbot-collapse-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.chatbot-collapse-btn svg {
  width: 16px;
  height: 16px;
}

/* Suggestions Area */
.chatbot-suggestions-area {
  padding: 20px;
}

.suggestions-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.suggestion-card:hover {
  background: rgba(181, 110, 74, 0.1);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.suggestion-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-purple);
}

.suggestion-card span {
  flex: 1;
}

@media (max-width: 600px) {
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
}

/* Expanded chatbot messages area */
.expandable-chatbot .chatbot-messages {
  min-height: 150px;
  max-height: 300px;
  padding: 16px 20px;
  display: none;
}

.expandable-chatbot.has-messages .chatbot-messages {
  display: flex;
}

.expandable-chatbot.has-messages .chatbot-suggestions-area {
  display: none;
}

.expandable-chatbot .chatbot-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
}

/* ===== MODERN CHATBOT STYLES ===== */
.chatbot-box {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-height: 600px;
}

.chatbot-box .chatbot-messages {
  flex: 1;
  min-height: 200px;
  max-height: 400px;
  margin-bottom: 16px;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 16px;
}

.chatbot-input-area {
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}

.chatbot-input-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbot-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.chatbot-input-wrapper:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(181, 110, 74, 0.1);
}

.chatbot-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 8px 0;
}

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

.chatbot-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.chatbot-upload-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

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

.chatbot-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary);
  border: none;
  cursor: pointer;
  color: #15191C;
  transition: all 0.2s ease;
}

.chatbot-send-btn:hover {
  background: var(--primary-hover);
}

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

/* Chat page specific styles */
.chat-page-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  margin-bottom: 40px;
}

.chat-page-box {
  min-height: 500px;
  max-height: 700px;
}

.chat-page-box .chatbot-messages {
  flex: 1;
  min-height: 300px;
  max-height: 500px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chat-doc-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.chat-doc-select {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.chat-doc-select:focus {
  border-color: var(--accent-purple);
}

.chat-doc-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.chat-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.chat-upload-label:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
}

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

@media (max-width: 900px) {
  .chat-page-layout {
    grid-template-columns: 1fr;
  }
}

.chatbot-message {
  display: flex;
  width: 100%;
}

.chatbot-message-user {
  justify-content: flex-end;
}

.chatbot-message-assistant {
  justify-content: flex-start;
}

.chatbot-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.chatbot-bubble-user {
  background: var(--primary);
  color: #15191C;
  border-bottom-right-radius: 6px;
}

.chatbot-bubble-assistant {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 6px;
}

.chatbot-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chatbot-text.chatbot-markdown { white-space: normal; }
.chatbot-markdown p { margin: 0 0 0.6em; }
.chatbot-markdown p:last-child { margin-bottom: 0; }
.chatbot-markdown strong { color: var(--text-primary); font-weight: 700; }
.chatbot-markdown em { font-style: italic; }
.chatbot-markdown h1, .chatbot-markdown h2, .chatbot-markdown h3 {
  font-size: 1em;
  font-weight: 700;
  margin: 0.75em 0 0.3em;
  color: var(--accent-purple);
}
.chatbot-markdown ul, .chatbot-markdown ol {
  padding-left: 1.4em;
  margin: 0.4em 0;
}
.chatbot-markdown li { margin-bottom: 0.25em; }
.chatbot-markdown code {
  background: rgba(181, 110, 74, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}
.chatbot-markdown pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  margin: 0.5em 0;
}
.chatbot-markdown pre code { background: none; padding: 0; }
.chatbot-markdown blockquote {
  border-left: 3px solid var(--accent-purple);
  margin: 0.5em 0;
  padding-left: 0.75em;
  color: var(--text-secondary);
}
.chatbot-markdown hr { border: none; border-top: 1px solid var(--glass-border); margin: 0.75em 0; }

.chatbot-streaming::after {
  content: '▋';
  display: inline-block;
  animation: blink-cursor 0.7s step-end infinite;
  opacity: 1;
  margin-left: 1px;
}

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

.chatbot-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
  font-size: 0.9rem;
}

/* Scrollbar styling for chat */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--glass-highlight);
}
