/* Chatla — Omnichannel AI-Seller & Unified Inbox Design System
   Crafted with taste-skill discipline: intentional typography, micro-contrast, zero AI slop. */

:root {
  --bg-primary: #0a0d14;
  --bg-surface: #111622;
  --bg-surface-elevated: #161d2d;
  --bg-surface-hover: #1c2538;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Manrope", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-card: 0 4px 24px -1px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 12px 40px -4px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 12px 36px -4px rgba(0, 0, 0, 0.1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Header & Navigation */
.chatla-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(10, 13, 20, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="light"] .chatla-nav-wrap {
  background: rgba(248, 250, 252, 0.85);
}

.chatla-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatla-logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatla-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.chatla-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.chatla-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.chatla-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.chatla-nav-links a {
  transition: var(--transition);
}

.chatla-nav-links a:hover {
  color: var(--text-primary);
}

.chatla-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chatla-lang-btn, .chatla-theme-btn {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.chatla-lang-btn:hover, .chatla-theme-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

.chatla-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.chatla-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Hero Section */
.chatla-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.chatla-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-card);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.chatla-hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.chatla-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chatla-hero p.sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.chatla-hero p.sub u {
  text-decoration-color: rgba(99, 102, 241, 0.4);
  text-underline-offset: 4px;
}

/* Interactive Case Study Switcher */
.chatla-demo-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.chatla-case-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.chatla-case-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.chatla-case-tab.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}

.chatla-sim-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.chatla-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.chatla-sim-account {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.chatla-sim-badge {
  font-size: 0.75rem;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.chatla-flow-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 230px;
}

.flow-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

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

.flow-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.flow-content {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  max-width: 80%;
  font-size: 0.92rem;
}

.flow-item.system .flow-content {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flow-item.ai .flow-content {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

.flow-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chatla-sim-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Integration Strip */
.chatla-strip {
  max-width: 1240px;
  margin: 3.5rem auto 1rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.chatla-strip-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chatla-strip-item svg, .chatla-strip-item img {
  width: 22px;
  height: 22px;
}

/* Section Common */
.chatla-section {
  max-width: 1240px;
  margin: 4.5rem auto;
  padding: 0 1.5rem;
  scroll-margin-top: 90px;
}

.chatla-section-header {
  margin-bottom: 2.25rem;
}

.chatla-section-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.chatla-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.chatla-section h2 em {
  font-style: normal;
  color: var(--accent-primary);
}

/* Unified Live Inbox Table */
.chatla-inbox-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.chatla-inbox-topbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.chatla-inbox-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chatla-filter-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.chatla-filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.chatla-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.chatla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.chatla-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.chatla-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.chatla-table tr {
  cursor: pointer;
  transition: var(--transition);
}

.chatla-table tr:hover {
  background: var(--bg-surface-hover);
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.ai_replied {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-pill.needs_operator {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-pill.catalog_sent {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-pill.lead_captured {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Three Steps Section */
.chatla-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Interactive Knowledge Base Editor */
.chatla-kb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.kb-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: var(--transition);
}

.kb-row:hover {
  border-color: var(--border-focus);
}

.kb-content {
  flex: 1;
}

.kb-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kb-freq-badge {
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.kb-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.kb-confirm-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: var(--transition);
  white-space: nowrap;
}

.kb-confirm-btn.confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Live Simulator Playground */
.chatla-playground-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.playground-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.playground-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.playground-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.chatla-sim-result {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.92rem;
}

.chatla-sim-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Pricing Grid */
.chatla-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* FAQ Accordion */
.chatla-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.chatla-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 5rem;
  background: var(--bg-surface);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Modal Drawer for Thread Inspector */
.thread-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: none;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.thread-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
}

.thread-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thread-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.thread-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .chatla-nav-links {
    display: none;
  }
  .chatla-hero h1 {
    font-size: 2.2rem;
  }
  .playground-input-row {
    flex-direction: column;
  }
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The legacy sales lab has no live channel or payment transport. */
.chatla-demo-notice{max-width:1100px;margin:24px auto;padding:20px;border:1px solid var(--border-subtle);border-radius:14px;background:var(--bg-surface);color:var(--text-primary)}
.chatla-demo-notice strong{font-size:18px}.chatla-demo-notice p{font-size:15px;line-height:1.6;margin:12px 0 18px}
@media(max-width:600px){.chatla-demo-notice{margin:16px;padding:16px}}
/* Refresh: the nav tools wrap under the logo on narrow screens instead of pushing the page sideways. */
.chatla-nav{flex-wrap:wrap;row-gap:.5rem}
.chatla-nav-right{flex-wrap:wrap;min-width:0;max-width:100%;justify-content:flex-end}
@media(max-width:820px){.chatla-nav-links{display:none}}

/* Live Operational Cockpit */
.chatla-live-cockpit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.88), rgba(8, 12, 22, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 14px 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}
.cockpit-status-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Document Intelligence & A4 Print Generator */
.chatla-docscan-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.docscan-upload-area {
  border: 2px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.5rem;
  text-align: center;
  background: rgba(56, 189, 248, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.docscan-upload-area:hover, .docscan-upload-area.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.docscan-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.docscan-opt label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.docscan-opt select,
.docscan-opt input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}

.docscan-opt select:focus,
.docscan-opt input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.chatla-docscan-preview-card {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.docscan-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.docscan-preview-body {
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 16px;
  border-radius: var(--radius-md);
}
