@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,slnt,wdth,wght,ROND@8..144,-10..0,25..150,400..700,0..100&family=Google+Sans+Code:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  /* Enterprise Clean White & Slate Theme */
  --bg-pure-white: #ffffff;
  --bg-subtle-gray: #f8fafc;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-hairline: rgba(0, 0, 0, 0.07);
  --border-subtle: #e2e8f0;
  --border-focus: #2563eb;
  
  --brand-blue: #2563eb;
  --brand-indigo: #4f46e5;
  --brand-violet: #7c3aed;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;
  
  --font-sans: 'Google Sans Flex', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Google Sans Code', 'JetBrains Mono', monospace;
  
  --shape-corner-rounded: 999px;
  --shape-corner-xl: 18px;
  --shape-corner-lg: 12px;
  --shape-corner-md: 8px;
}

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

body {
  background-color: #f8fafc;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Geometric Grid Matrix */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Interactive Ambient Aurora Canvas */
#antigravityCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* App Wrapper */
.zenseo-app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top App Header */
.zenseo-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.brand-text-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: #eff6ff;
  color: var(--brand-blue);
  border-radius: var(--shape-corner-rounded);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Main Container */
.zenseo-main-container {
  flex: 1;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* Audit Launch Card */
.audit-launch-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-xl);
  padding: 26px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.form-grid-clean {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr auto;
  gap: 16px;
  align-items: flex-end;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.15s ease;
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.button-primary {
  padding: 12px 26px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: var(--shape-corner-rounded);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease-out;
  height: 46px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
  white-space: nowrap;
}

.button-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.button-primary:active { transform: translateY(0); }
.button-primary:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

/* Google Integrations Drawer */
.google-integration-box {
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  border-radius: var(--shape-corner-lg);
  padding: 16px 20px;
  margin-top: 18px;
}

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

.integration-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-google-auth {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--shape-corner-rounded);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-google-auth:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--shape-corner-rounded);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pill.success { background: #ecfdf5; color: var(--brand-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-pill.warning { background: #fffbeb; color: var(--brand-amber); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-pill.danger { background: #fef2f2; color: var(--brand-rose); border: 1px solid rgba(244, 63, 94, 0.2); }

/* Active Audit Target Header Card */
.active-audit-hero-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-xl);
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.active-audit-title-group h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-audit-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

/* Score Metric Tiles (6 Complete Suite Scores) */
.score-tiles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.metric-tile {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 20px 14px;
  text-align: center;
  transition: all 0.15s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.metric-tile h4 {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.metric-tile .score-num {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-num.high { color: var(--brand-emerald); }
.score-num.medium { color: var(--brand-amber); }
.score-num.low { color: var(--brand-rose); }

/* ==========================================================================
   Categorized Segmented Command Hub Navigation (Replaces Horizontal Scroll!)
   ========================================================================== */
.report-nav-hub {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-xl);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nav-hub-category {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-hub-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 4px 2px;
}

.nav-hub-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--shape-corner-md);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  user-select: none;
}

.hub-chip:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.hub-chip.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.chip-counter {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--shape-corner-rounded);
  background: rgba(37, 99, 235, 0.15);
  color: var(--brand-blue);
  font-family: var(--font-mono);
}

.hub-chip.active .chip-counter {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Quick Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.telemetry-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.telemetry-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.telemetry-list li {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.telemetry-list li span:last-child {
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Tab Panes */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: tabFadeIn 0.2s ease-out; }

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

/* Report Presentation Card */
.report-presentation-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-xl);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  margin-bottom: 28px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  gap: 12px;
}

.report-actions-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-pill-action {
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--shape-corner-rounded);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-pill-action:hover {
  background: #f1f5f9;
}

.btn-pill-action.primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-pill-action.primary:hover {
  background: #1e293b;
}

/* Progress Stepper Card */
.progress-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--shape-corner-xl);
  padding: 28px;
  margin-bottom: 32px;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.progress-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 450;
}

.step-row.active { color: var(--brand-blue); font-weight: 500; }
.step-row.done { color: var(--brand-emerald); font-weight: 500; }

.spinner-pulse {
  width: 18px;
  height: 18px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Full Scope 6-Pillar Matrix Styles */
.scope-hero-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-xl);
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.scope-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.scope-pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.scope-pillar-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.scope-pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.scope-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--shape-corner-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #f1f5f9;
}

.scope-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.scope-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.scope-checklist li strong {
  color: var(--text-primary);
}

.scope-deliverable-footer {
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  border-radius: var(--shape-corner-md);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.scope-deliverable-footer strong {
  color: var(--brand-blue);
  display: block;
  margin-bottom: 2px;
}

.proposal-scope-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 28px;
  margin-top: 24px;
}

.proposal-text-pre {
  background: #0f172a;
  color: #38bdf8;
  padding: 20px;
  border-radius: var(--shape-corner-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 340px;
  overflow-y: auto;
  margin: 16px 0;
}

/* PageSpeed Insights & Core Web Vitals */
.psi-vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.psi-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 20px;
  text-align: center;
}

.psi-card-score {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin: 6px 0 10px;
}

.psi-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.vital-metric-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-md);
  padding: 14px;
  text-align: center;
}

.vital-metric-box h5 {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.vital-metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.vital-metric-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.img-thumb-preview {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
}

/* Multi-AI Radar */
.ai-radar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 20px 0 32px;
}

.radar-gauge-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.radar-engine-icon { font-size: 1.6rem; margin-bottom: 6px; }
.radar-engine-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.radar-engine-sub { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 12px; }
.radar-val-pct { font-size: 2.2rem; font-weight: 700; font-family: var(--font-mono); line-height: 1; margin-bottom: 8px; }
.radar-bar-track { height: 6px; background: #f1f5f9; border-radius: var(--shape-corner-rounded); overflow: hidden; }
.radar-bar-fill { height: 100%; border-radius: var(--shape-corner-rounded); }

/* Security & Vitals Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.sec-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 24px;
}

.sec-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-table {
  width: 100%;
  border-collapse: collapse;
}

.sec-table td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.sec-table td:first-child { color: var(--text-secondary); }
.sec-table td:last-child { text-align: right; font-weight: 500; font-family: var(--font-mono); }

/* Compare Audits (Diff Engine) */
.compare-selector-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.compare-selector-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.compare-vs-pill {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--shape-corner-rounded);
  margin-bottom: 4px;
}

.compare-score-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.compare-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.compare-metric-card h4 { font-size: 0.74rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 10px; }

.compare-score-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--shape-corner-rounded);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.delta-badge.positive { background: #ecfdf5; color: var(--brand-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.delta-badge.negative { background: #fef2f2; color: var(--brand-rose); border: 1px solid rgba(244, 63, 94, 0.2); }
.delta-badge.neutral { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border-subtle); }

.progress-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.kanban-col {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 20px;
}

.kanban-header {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.kanban-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-md);
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.kanban-item.resolved { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.kanban-item.pending { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.kanban-item.regression { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Simulator */
.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.serp-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.serp-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-result-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.google-favicon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.google-fav-icon { width: 18px; height: 18px; border-radius: 50%; background: #f1f5f9; }
.google-site-name { font-size: 0.82rem; color: #202124; font-weight: 500; }
.google-url-line { font-size: 0.75rem; color: #5f6368; }
.google-title-link { font-size: 1.15rem; color: #1a0dab; font-weight: 400; line-height: 1.3; margin-bottom: 6px; display: block; text-decoration: none; }
.google-desc-text { font-size: 0.85rem; color: #4d5156; line-height: 1.5; }

.ai-overview-capsule-box {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.ai-capsule-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 10px;
}

.ai-capsule-text {
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.6;
  background: #ffffff;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #dbeafe;
}

/* Interactive Gamified Dynamic Checklist */
.checklist-progress-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.checklist-bar-wrapper { flex: 1; }
.checklist-track { height: 10px; background: #e2e8f0; border-radius: var(--shape-corner-rounded); overflow: hidden; margin-top: 8px; }
.checklist-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #10b981); border-radius: var(--shape-corner-rounded); width: 0%; transition: width 0.3s ease; }

.checklist-container { display: flex; flex-direction: column; gap: 12px; }
.checklist-task-item { display: flex; align-items: flex-start; gap: 14px; background: #ffffff; border: 1px solid var(--border-subtle); border-radius: var(--shape-corner-md); padding: 16px 20px; transition: all 0.15s ease; cursor: pointer; }
.checklist-task-item:hover { border-color: #cbd5e1; background: #f8fafc; }
.checklist-task-item.completed { background: #f0fdf4; border-color: #bbf7d0; }
.checklist-task-item.completed .task-title { text-decoration: line-through; color: #64748b; }

.custom-checkbox { width: 22px; height: 22px; border: 2px solid #cbd5e1; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-top: 2px; flex-shrink: 0; transition: all 0.15s ease; font-weight: 700; }
.checklist-task-item.completed .custom-checkbox { background: #10b981; border-color: #10b981; color: #ffffff; }

.task-content { flex: 1; }
.task-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.task-desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }
.task-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* 1-Click Code Vault */
.code-vault-grid { display: flex; flex-direction: column; gap: 24px; }
.code-vault-block { background: #ffffff; border: 1px solid var(--border-subtle); border-radius: var(--shape-corner-lg); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.code-vault-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--border-subtle); }
.code-vault-header h4 { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }

.code-vault-content {
  background: #0f172a !important;
  padding: 20px !important;
  overflow-x: auto;
}

.code-vault-content pre {
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
}

.code-vault-content code {
  color: #38bdf8 !important; /* High-contrast Sky Blue */
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  display: block;
}

/* Tables */
.saas-table-wrapper { width: 100%; overflow-x: auto; }
.saas-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; text-align: left; border: 1px solid var(--border-hairline); border-radius: var(--shape-corner-md); overflow: hidden; }
.saas-table th, .saas-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-hairline); }
.saas-table th { background: #f8fafc; color: var(--text-primary); font-size: 0.82rem; font-weight: 600; }
.saas-table tr:nth-child(even) { background: #fafafa; }

.striking-pill { background: #fef3c7; color: #b45309; padding: 3px 10px; border-radius: var(--shape-corner-rounded); font-size: 0.75rem; font-weight: 500; }

.geo-bar-container { display: flex; flex-direction: column; gap: 12px; }
.geo-bar-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.geo-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: var(--shape-corner-rounded); overflow: hidden; }
.geo-bar-fill { height: 100%; background: #0f172a; border-radius: var(--shape-corner-rounded); }

/* Zero State Box */
.zero-state-banner {
  background: #f8fafc;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--shape-corner-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-secondary);
}

.zero-state-banner .zero-icon { font-size: 2.2rem; margin-bottom: 12px; }
.zero-state-banner h4 { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.zero-state-banner p { font-size: 0.86rem; color: var(--text-muted); max-width: 540px; margin: 0 auto 16px; line-height: 1.5; }

/* Markdown typography */
.markdown-body { color: var(--text-primary); font-size: 0.98rem; line-height: 1.7; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { color: var(--text-primary); margin: 28px 0 12px; letter-spacing: -0.02em; font-weight: 600; }
.markdown-body h2 { font-size: 1.4rem; border-bottom: 1px solid var(--border-hairline); padding-bottom: 8px; }
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body p, .markdown-body ul, .markdown-body ol { margin-bottom: 16px; color: var(--text-secondary); }
.markdown-body ul, .markdown-body ol { padding-left: 24px; }
.markdown-body code { font-family: var(--font-mono); background: #f1f5f9; border: 1px solid #e2e8f0; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; color: #1e293b; }
.markdown-body pre { background: #0f172a; border: 1px solid var(--border-hairline); padding: 20px; border-radius: var(--shape-corner-md); overflow-x: auto; margin: 18px 0; }
.markdown-body pre code { background: transparent; border: none; padding: 0; color: #38bdf8; }
.markdown-body hr { border: none; border-top: 1px solid var(--border-hairline); margin: 32px 0; }
.markdown-body blockquote { background: #f8fafc; border-left: 4px solid var(--brand-blue); padding: 14px 18px; border-radius: 0 var(--shape-corner-md) var(--shape-corner-md) 0; margin: 18px 0; color: var(--text-primary); font-size: 0.95rem; line-height: 1.6; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 18px 0; border: 1px solid var(--border-hairline); border-radius: 8px; overflow: hidden; }
.markdown-body th, .markdown-body td { border-bottom: 1px solid var(--border-hairline); padding: 10px 14px; }
.markdown-body th { background: #f8fafc; font-weight: 600; color: var(--text-primary); }

/* History & Modals */
.luxe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.luxe-modal-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--shape-corner-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.playbook-guide-step {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--shape-corner-md);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.playbook-guide-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playbook-guide-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.playbook-guide-step ol {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 20px;
  line-height: 1.6;
}

.history-modal-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--shape-corner-xl);
  max-width: 860px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.history-search-bar { display: flex; gap: 10px; margin-bottom: 18px; }
.history-list-container { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; padding-right: 6px; }
.history-card-item { background: #ffffff; border: 1px solid var(--border-subtle); border-radius: var(--shape-corner-md); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; transition: all 0.15s ease; gap: 16px; }
.history-card-item:hover { background: #f8fafc; border-color: #cbd5e1; }
.history-meta { flex: 1; }
.history-domain-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.history-domain-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.history-url-sub { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 6px; }
.history-scores-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.75rem; }
.history-action-group { display: flex; align-items: center; gap: 8px; }
.btn-history-load { padding: 8px 16px; background: #0f172a; color: #ffffff; border: none; border-radius: var(--shape-corner-rounded); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; }
.btn-history-load:hover { background: #1e293b; }
.btn-history-del { padding: 8px 12px; background: transparent; color: var(--brand-rose); border: 1px solid #fee2e2; border-radius: var(--shape-corner-rounded); font-size: 0.82rem; cursor: pointer; transition: all 0.15s ease; }
.btn-history-del:hover { background: #fef2f2; }

@media print {
  body { background: #ffffff !important; color: #0f172a !important; padding: 0 !important; }
  #antigravityCanvas, .bg-grid-overlay, .zenseo-navbar, .audit-launch-card, #progressCard, .report-actions-group, .report-nav-hub { display: none !important; }
  .zenseo-main-container { width: 100% !important; padding: 0 !important; }
  .results-container, .report-presentation-card, #tabReport { display: block !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
  .score-tiles-grid, .telemetry-grid { display: grid !important; page-break-inside: avoid; }
}

@media (max-width: 1024px) {
  .zenseo-navbar { padding: 14px 20px; }
  .form-grid-clean { grid-template-columns: 1fr; }
  .score-tiles-grid { grid-template-columns: repeat(3, 1fr); }
  .report-nav-hub { grid-template-columns: repeat(2, 1fr); }
  .telemetry-grid { grid-template-columns: 1fr; }
  .simulator-grid { grid-template-columns: 1fr; }
  .ai-radar-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .compare-selector-grid { grid-template-columns: 1fr; }
  .compare-score-grid { grid-template-columns: repeat(3, 1fr); }
  .progress-board-grid { grid-template-columns: 1fr; }
  .psi-vitals-grid { grid-template-columns: repeat(2, 1fr); }
  .psi-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .scope-grid-6 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .report-nav-hub { grid-template-columns: 1fr; }
  .score-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
