:root {
  /* ==================================================== */
  /* 💎 AUTHENTIC LINEAR.APP DESIGN SYSTEM TOKENS         */
  /* ==================================================== */
  --bg-linear: #08090c;
  --bg-surface: #0d0e12;
  --bg-surface-elevated: #12141a;
  --bg-surface-glass: rgba(13, 14, 18, 0.8);
  --bg-input: rgba(18, 20, 26, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(94, 106, 210, 0.4);
  
  --linear-indigo: #5e6ad2;
  --linear-indigo-hover: #6875e2;
  --linear-purple: #8b5cf6;
  --linear-cyan: #0091ff;
  --linear-emerald: #46a758;
  --linear-amber: #f5d90a;
  --linear-rose: #e5484d;
  
  --text-pure: #f7f8f8;
  --text-primary: #d0d6e0;
  --text-body: #8a8f98;
  --text-muted: #62666d;
  
  --grad-hero-text: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.65) 100%);
  --grad-linear-badge: linear-gradient(90deg, rgba(94, 106, 210, 0.15), rgba(139, 92, 246, 0.15));
  --grad-btn-primary: linear-gradient(180deg, #6875e2 0%, #5e6ad2 100%);
  
  --shadow-linear-card: 0 1px 1px rgba(0, 0, 0, 0.4), 0 24px 68px -18px rgba(0, 0, 0, 0.9);
  --shadow-btn-glow: 0 0 20px rgba(94, 106, 210, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-linear);
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

body {
  /* Linear.app Signature Top Volumetric Light Cone & Starry Micro-Grid */
  background-image: 
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(94, 106, 210, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(139, 92, 246, 0.08), transparent 60%),
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed;
}

.apollo-app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* ==================================================== */
/* 🧭 LINEAR SIDEBAR RAIL (Desktop)                     */
/* ==================================================== */
.apollo-nav-rail {
  width: 76px;
  background: rgba(8, 9, 12, 0.85);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  flex-shrink: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
}

.nav-rail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.app-brand-logo-3d {
  width: 40px;
  height: 40px;
  background: #0d0e12;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--linear-indigo);
  font-size: 18px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-brand-logo-3d:hover {
  border-color: var(--linear-indigo);
  color: #ffffff;
  transform: translateY(-1px);
}

.rail-divider {
  width: 32px;
  height: 1px;
  background: var(--border-subtle);
  margin: 2px 0 4px;
}

.rail-btn-3d {
  width: 60px;
  height: 52px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.rail-btn-3d span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rail-btn-3d:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.rail-btn-3d.active {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: var(--border-medium);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.active-indicator-pill {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--linear-indigo);
  box-shadow: 0 0 6px var(--linear-indigo);
}

.rail-btn-3d.active .active-indicator-pill { display: block; }

.live-orbital-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
}

.live-dot-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--linear-emerald);
  box-shadow: 0 0 8px var(--linear-emerald);
}

/* ==================================================== */
/* 🔝 LINEAR TOPBAR HEADER                              */
/* ==================================================== */
.apollo-main-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.apollo-topbar-3d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(8, 9, 12, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  height: 52px;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-title-box .brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
}

.glow-cyan { color: var(--linear-indigo); }

.search-box-3d {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  width: 340px;
  transition: all 0.2s;
}

.search-box-3d:focus-within {
  border-color: var(--border-highlight);
  background: var(--bg-surface-elevated);
}

.search-box-3d input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 12px;
  width: 100%;
}

.search-shortcut {
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-social-proof {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-body);
  white-space: nowrap;
}

.pulse-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--linear-emerald);
}

.credit-pill-3d {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(70, 167, 88, 0.08);
  border: 1px solid rgba(70, 167, 88, 0.25);
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--linear-emerald);
  white-space: nowrap;
}

.btn-upgrade-3d {
  background: var(--grad-btn-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-btn-glow);
  white-space: nowrap;
}

.btn-upgrade-3d:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ==================================================== */
/* 🚀 LINEAR HERO & SCANNER SECTION                     */
/* ==================================================== */
.apollo-pane {
  display: none;
  flex: 1;
  height: calc(100vh - 52px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.apollo-pane.active {
  display: flex;
  flex-direction: column;
}

.audit-hero-layout-3d {
  padding: 48px 40px 80px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.audit-hero-header-3d {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Linear Release Badge */
.hologram-badge {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}

.hologram-badge:hover {
  border-color: var(--border-highlight);
}

.hologram-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--linear-indigo);
  box-shadow: 0 0 8px var(--linear-indigo);
}

.hero-title-3d {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: #ffffff;
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(180deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc-3d {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
}

/* Linear Capsule Search Bar */
.audit-input-bar-3d {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  margin-top: 6px;
  transition: all 0.2s ease;
}

.audit-input-bar-3d:focus-within {
  border-color: var(--linear-indigo);
  box-shadow: 0 0 0 1px var(--linear-indigo), 0 20px 50px rgba(0, 0, 0, 0.9);
}

.globe-icon-glow {
  color: var(--text-muted);
  margin-right: 10px;
}

.audit-input-bar-3d input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-sans);
}

.btn-3d-glow {
  background: var(--grad-btn-primary);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-btn-glow);
}

.btn-3d-glow:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.quick-try-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.try-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.chip-sample {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-sample:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  color: #ffffff;
}

/* ==================================================== */
/* 🗃️ LINEAR BENTO SHOWCASE CARDS                       */
/* ==================================================== */
.hero-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-linear-card);
  transition: all 0.2s ease;
  position: relative;
}

.showcase-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.showcase-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 2px;
}

.showcase-icon-box.blue { background: rgba(94, 106, 210, 0.12); color: #818cf8; border: 1px solid rgba(94, 106, 210, 0.25); }
.showcase-icon-box.purple { background: rgba(139, 92, 246, 0.12); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.25); }
.showcase-icon-box.green { background: rgba(70, 167, 88, 0.12); color: #46a758; border: 1px solid rgba(70, 167, 88, 0.25); }

.showcase-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.showcase-card p {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.55;
}

.showcase-stat-badge {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* ==================================================== */
/* 📊 LINEAR SCORECARD & DIAGNOSTIC GRID                */
/* ==================================================== */
.audit-results-container-3d {
  width: 100%;
}

.scorecard-wrapper-3d {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-3d-tilt {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-linear-card);
  position: relative;
  overflow: hidden;
}

.scorecard-top-grid-3d {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}

.score-dial-card-3d { padding: 22px; }
.dial-layout-flex { display: flex; align-items: center; gap: 18px; }

.gauge-ring-container {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(94, 106, 210, 0.5));
}

.gauge-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.gauge-center-text strong {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.gauge-center-text span {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.gauge-info-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 3px 0;
}

.gauge-info-text p {
  font-size: 11.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.badge-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge-tag.cyan { background: rgba(94, 106, 210, 0.12); color: #818cf8; border: 1px solid rgba(94, 106, 210, 0.3); }
.badge-tag.rose { background: rgba(229, 72, 77, 0.12); color: #f87171; border: 1px solid rgba(229, 72, 77, 0.3); }

.leak-est-card-3d { padding: 22px; }
.leak-card-inner { display: flex; flex-direction: column; gap: 8px; }
.leak-header-flex { display: flex; justify-content: space-between; align-items: center; }
.pulse-warning-icon { color: var(--linear-rose); }
.leak-val-3d { font-size: 30px; font-weight: 800; color: #f87171; }
.leak-sub-3d { font-size: 11.5px; color: var(--text-body); }

.recovery-meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.recovery-fill {
  height: 100%;
  background: var(--linear-emerald);
  box-shadow: 0 0 8px rgba(70, 167, 88, 0.6);
}

.leak-items-grid-3d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.leak-card-3d {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leak-head-3d {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.leak-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leak-icon-box.red { background: rgba(229, 72, 77, 0.12); color: #f87171; }
.leak-icon-box.yellow { background: rgba(245, 217, 10, 0.12); color: #fbbf24; }
.leak-icon-box.green { background: rgba(70, 167, 88, 0.12); color: #46a758; }

.leak-card-3d p {
  font-size: 11.5px;
  color: var(--text-body);
  line-height: 1.55;
}

.fix-pill-3d {
  margin-top: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: #818cf8;
  background: rgba(94, 106, 210, 0.08);
  border: 1px solid rgba(94, 106, 210, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.unlock-banner-3d {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-color: rgba(245, 217, 10, 0.25);
  background: #0f1118;
  gap: 18px;
}

.banner-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 2px;
}

.banner-content-flex h2 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.banner-content-flex p {
  font-size: 11.5px;
  color: var(--text-body);
}

.btn-gold-3d {
  background: #f59e0b;
  color: #000000;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-gold-3d:hover { opacity: 0.95; transform: translateY(-1px); }

/* ==================================================== */
/* 👥 PROSPECTS & TABLES (Linear Issues Style)          */
/* ==================================================== */
.apollo-metrics-ribbon-3d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-linear);
  border-bottom: 1px solid var(--border-subtle);
}

.metric-card-3d {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
}

.metric-label { font-size: 10.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 3px; }
.metric-val { font-size: 17px; font-weight: 800; color: white; }
.text-success { color: #46a758 !important; }
.text-accent { color: #818cf8 !important; }
.text-warning { color: #fbbf24 !important; }

.apollo-body-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  flex: 1;
  overflow: hidden;
}

.apollo-filter-drawer-3d {
  background: var(--bg-linear);
  border-right: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.drawer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header-row h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.link-btn-sm { background: transparent; border: none; color: #818cf8; font-size: 11px; cursor: pointer; font-weight: 600; }

.filter-form { display: flex; flex-direction: column; gap: 10px; }
.filter-group label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-body); margin-bottom: 4px; }
.filter-group input, .filter-group textarea, .filter-group select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  color: white;
  font-size: 12px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
}
.filter-group input:focus, .filter-group textarea:focus, .filter-group select:focus {
  border-color: var(--linear-indigo);
}

.preset-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.filter-preset-pill {
  font-size: 9.5px;
  font-weight: 500;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-preset-pill:hover {
  background: rgba(94, 106, 210, 0.15);
  color: white;
  border-color: var(--linear-indigo);
}

.full-width { width: 100%; justify-content: center; }

.apollo-table-canvas-3d { display: flex; flex-direction: column; overflow: hidden; }
.table-toolbar-3d { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--bg-linear); border-bottom: 1px solid var(--border-subtle); font-size: 11.5px; color: var(--text-muted); }
.toolbar-left-flex { display: flex; align-items: center; gap: 8px; }
.btn-action-3d { background: var(--bg-surface); border: 1px solid var(--border-subtle); color: white; padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; transition: all 0.15s; }
.btn-action-3d:hover { background: rgba(255, 255, 255, 0.06); }
.btn-action-3d.danger { color: #f87171; }

.table-scroll-wrapper { flex: 1; overflow-x: auto; overflow-y: auto; }
.apollo-table-3d { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-size: 12px; }
.apollo-table-3d th { position: sticky; top: 0; background: #0b0c10; color: var(--text-muted); font-weight: 700; font-size: 10.5px; text-transform: uppercase; padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); z-index: 10; }
.apollo-table-3d td { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.apollo-table-3d tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.prospect-cell { display: flex; align-items: center; gap: 10px; }
.avatar-badge { width: 30px; height: 30px; border-radius: 50%; background: #1a1c24; border: 1px solid var(--border-medium); color: white; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prospect-name-box strong { display: block; font-size: 12px; color: white; }
.prospect-name-box span { font-size: 10px; color: var(--text-muted); }
.company-cell strong { display: block; font-size: 12px; color: white; }
.company-cell span { font-size: 9.5px; color: var(--linear-emerald); font-weight: 700; }
.badge-verified-email { display: inline-flex; align-items: center; gap: 4px; color: var(--linear-emerald); font-size: 11px; font-family: var(--font-mono); }
.phone-tag { color: var(--text-muted); font-size: 10px; display: inline-flex; align-items: center; gap: 4px; }
.intent-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 9.5px; font-weight: 700; background: rgba(94, 106, 210, 0.12); color: #818cf8; border: 1px solid rgba(94, 106, 210, 0.25); }

.btn-view-dossier { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); color: #ffffff; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn-view-dossier:hover { background: var(--linear-indigo); border-color: var(--linear-indigo); color: #ffffff; }

/* ==================================================== */
/* 🪟 LINEAR SLIDE-OVER DRAWER                          */
/* ==================================================== */
.prospect-drawer-modal { display: none; position: fixed; inset: 0; z-index: 100; }
.prospect-drawer-modal.active { display: flex; justify-content: flex-end; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); }
.drawer-panel-3d { position: relative; width: 480px; max-width: 100vw; height: 100%; background: #0a0b0f; border-left: 1px solid var(--border-medium); display: flex; flex-direction: column; z-index: 10; animation: slideLeft 0.2s ease; box-shadow: -20px 0 60px rgba(0,0,0,0.9); }
.drawer-top-3d { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); }
.prospect-profile-badge { display: flex; align-items: center; gap: 10px; }
.avatar-circle-3d { width: 38px; height: 38px; border-radius: 50%; background: #1a1c24; border: 1px solid var(--border-medium); color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.drawer-body-3d { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.dossier-card-3d { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.dossier-row { display: flex; justify-content: space-between; font-size: 11.5px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.dossier-row span { color: var(--text-muted); }
.dossier-row strong { color: white; font-family: var(--font-mono); }
.pitch-content-box { background: #000000; border: 1px solid var(--border-subtle); padding: 12px; border-radius: 6px; font-size: 11.5px; line-height: 1.6; color: #f8fafc; white-space: pre-line; }
.whatsapp-content { background: rgba(70, 167, 88, 0.08); border: 1px solid rgba(70, 167, 88, 0.2); padding: 12px; border-radius: 6px; font-size: 11.5px; line-height: 1.5; color: #46a758; }
.btn-copy-sm { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); color: white; font-size: 10.5px; padding: 4px 8px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-weight: 600; }

/* ==================================================== */
/* 💳 LINEAR PRICING MODAL                              */
/* ==================================================== */
.pricing-modal-panel-3d { position: relative; width: 840px; max-width: 95vw; max-height: 90vh; overflow-y: auto; background: #0a0b0f; border: 1px solid var(--border-medium); border-radius: 16px; margin: auto; display: flex; flex-direction: column; z-index: 10; padding: 28px; gap: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95); }
.pricing-cards-grid-3d { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card-3d { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan-card-3d.featured { border-color: rgba(94, 106, 210, 0.4); background: #0f1118; box-shadow: 0 0 25px rgba(94, 106, 210, 0.15); }
.plan-badge-3d { position: absolute; top: -10px; right: 14px; background: var(--linear-indigo); color: white; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.plan-price-3d { font-size: 28px; font-weight: 800; color: white; }
.plan-price-3d span { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.btn-checkout-3d { margin-top: auto; background: var(--grad-btn-primary); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px; border-radius: 6px; font-weight: 700; font-size: 11.5px; cursor: pointer; }

/* ==================================================== */
/* 🤖 SUB-PANES (AI Closer, Doc Vault, SEO Writer)      */
/* ==================================================== */
.sub-pane-layout-3d { display: grid; grid-template-columns: 280px 1fr; flex: 1; height: 100%; min-height: 0; overflow: hidden; }
.sub-sidebar-3d { background: var(--bg-linear); border-right: 1px solid var(--border-subtle); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.sub-main-chat-3d, .crew-output-canvas-3d { display: flex; flex-direction: column; height: 100%; min-height: 0; background: transparent; position: relative; overflow: hidden; }
.chat-thread, .booking-chat-thread { flex: 1 1 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.message { display: flex; gap: 10px; max-width: 800px; }
.message-avatar-3d { width: 30px; height: 30px; border-radius: 6px; background: #1a1c24; border: 1px solid var(--border-subtle); color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.message-body-3d { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px 16px; line-height: 1.6; font-size: 12px; }
.chat-form-floating-3d { margin: 10px 16px; display: flex; align-items: center; background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: 8px; padding: 6px 12px; flex-shrink: 0; }
.chat-form-floating-3d textarea, .chat-form-floating-3d input { flex: 1; background: transparent; border: none; outline: none; color: white; padding: 6px; font-family: var(--font-sans); font-size: 12px; }
.btn-send-3d { background: var(--linear-indigo); border: none; color: white; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.chat-panel-container-3d, .crm-ledger-container-3d { display: flex; flex-direction: column; height: 100%; min-height: 0; border-right: 1px solid var(--border-subtle); background: var(--bg-linear); }
.panel-header-bar-3d { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.ledger-list { flex: 1 1 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.crew-top-row-3d { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.crew-stages-3d { display: flex; gap: 6px; padding: 8px 18px; background: var(--bg-linear); border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.stage-pill-3d { flex: 1; padding: 6px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; font-size: 10.5px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--text-muted); font-weight: 600; transition: all 0.2s ease; }
.stage-pill-3d.active { color: #ffffff; border-color: var(--linear-indigo); background: rgba(94, 106, 210, 0.15); }
.stage-pill-3d.completed { color: var(--linear-emerald); border-color: rgba(70, 167, 88, 0.3); background: rgba(70, 167, 88, 0.08); }
.crew-output-area-3d { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 18px; line-height: 1.7; font-size: 12.5px; }

.btn-preview-hub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(94, 106, 210, 0.12);
  border: 1px solid rgba(94, 106, 210, 0.3);
  color: #818cf8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-preview-hub:hover { background: var(--linear-indigo); color: #ffffff; }

.quick-agent-tools { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.tool-btn-3d { background: var(--bg-surface); border: 1px solid var(--border-subtle); color: white; padding: 8px 10px; border-radius: 6px; font-size: 10.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; text-align: left; transition: all 0.15s; }
.tool-btn-3d:hover { background: rgba(255, 255, 255, 0.05); }
.dropzone-3d { border: 1px dashed var(--border-medium); border-radius: 8px; padding: 16px; text-align: center; cursor: pointer; background: rgba(255, 255, 255, 0.02); }
.url-scraper-bar-3d { display: flex; align-items: center; gap: 6px; }
.url-scraper-bar-3d input { flex: 1; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 7px 10px; color: white; font-size: 10.5px; }

.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; font-size: 10.5px; color: white; }

.directory-pane-layout-3d { padding: 24px 32px; height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.directory-header-card-3d { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; gap: 16px; }
.header-icon-3d { width: 40px; height: 40px; border-radius: 10px; background: var(--linear-indigo); color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.directory-grid-3d { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dir-card { padding: 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 8px; transition: all 0.15s; cursor: pointer; }
.dir-card:hover { border-color: var(--border-medium); transform: translateY(-1px); }
.dir-card h4 { font-size: 12px; font-weight: 700; color: white; }
.dir-card p { font-size: 10.5px; color: var(--text-body); line-height: 1.5; }
.dir-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.04); font-size: 10px; }

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; }

.badge-pro-3d { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(70, 167, 88, 0.12); color: var(--linear-emerald); }
.badge-subtle { font-size: 9.5px; padding: 2px 6px; background: rgba(255, 255, 255, 0.05); border-radius: 999px; color: var(--text-muted); }
.empty-state { text-align: center; padding: 36px; color: var(--text-muted); }
.btn-icon { background: transparent; border: none; color: var(--text-muted); cursor: pointer; }
.btn-icon:hover { color: white; }

@keyframes slideLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==================================================== */
/* 📱 100% RESPONSIVE MOBILE OPTIMIZATION (< 768px)    */
/* ==================================================== */
@media (max-width: 768px) {
  .apollo-app-layout {
    flex-direction: column-reverse;
    height: 100vh;
    overflow: hidden;
  }

  /* Linear Glass Bottom Navigation Bar */
  .apollo-nav-rail {
    width: 100vw;
    height: 58px;
    flex-direction: row;
    padding: 0 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid var(--border-subtle);
    background: rgba(8, 9, 12, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .nav-rail-top {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 2px;
  }

  .app-brand-logo-3d, .rail-divider, .nav-rail-bottom, .desktop-only { display: none !important; }

  .rail-btn-3d {
    width: auto;
    flex: 1;
    height: 48px;
    gap: 2px;
    padding: 3px 0;
    border-radius: 8px;
  }

  .rail-btn-3d i { width: 17px; height: 17px; }
  .rail-btn-3d span { font-size: 8.5px; font-weight: 600; }

  .apollo-main-canvas {
    height: calc(100vh - 58px);
    width: 100vw;
  }

  /* Header Clean Alignment for Mobile */
  .apollo-topbar-3d {
    padding: 0 16px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .topbar-left {
    display: flex;
    align-items: center;
  }

  .brand-title-box .brand-name {
    font-size: 15px;
    font-weight: 800;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .credit-pill-3d { display: none !important; }

  .btn-upgrade-3d {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: var(--grad-btn-primary) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-btn-glow) !important;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap;
  }

  .apollo-pane {
    height: calc(100vh - 108px);
  }

  .audit-hero-layout-3d {
    padding: 24px 16px 40px;
    gap: 20px;
  }

  .hero-title-3d {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.03em;
  }

  .hero-desc-3d {
    font-size: 13px;
    line-height: 1.5;
  }

  .audit-input-bar-3d {
    flex-direction: column;
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
  }

  .audit-input-bar-3d input {
    width: 100%;
    font-size: 13px;
    text-align: center;
  }

  .globe-icon-glow { display: none; }

  .btn-3d-glow {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .hero-showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scorecard-top-grid-3d {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dial-layout-flex {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .leak-items-grid-3d {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .unlock-banner-3d {
    flex-direction: column;
    text-align: center;
    padding: 18px 14px;
    gap: 12px;
  }

  .btn-gold-3d {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .apollo-metrics-ribbon-3d {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px;
  }

  .apollo-body-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .apollo-filter-drawer-3d {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .sub-pane-layout-3d {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .sub-sidebar-3d, .chat-panel-container-3d, .crm-ledger-container-3d {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .pricing-modal-panel-3d {
    padding: 20px 16px;
    width: 95vw;
    margin: 10px auto;
  }

  .pricing-cards-grid-3d {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .directory-pane-layout-3d {
    padding: 16px 14px;
  }

  .directory-header-card-3d {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
