/* Reworked Minimalist Developer Hub Theme (Vercel/Linear Flat Style) */
:root {
  /* Color Palette - Dark Mode Default */
  --bg-color: #0b1416;   /* Reddit Dark Gray-Black */
  --card-bg: #1a282d;    /* Reddit Slate Card Bg */
  --card-border: #34444a; /* Flat slate border */
  --card-border-hover: #5e6f74;
  --text-primary: #f2f4f5;
  --text-secondary: #82959b;
  --text-muted: #5e6f74;
  
  /* Brand Accent: Reddit Orangered */
  --primary-color: #ff4500;
  --primary-hover: #e03d00;
  --accent-light: rgba(255, 69, 0, 0.08);
  
  /* Status Colors */
  --color-clean: #10b981;
  --color-clean-bg: rgba(16, 185, 129, 0.08);
  --color-repost: #ff4500;
  --color-repost-bg: rgba(255, 69, 0, 0.08);
  --color-warn: #fbbf24;
  
  /* Layout Constants */
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: all 0.1s ease;
  
  color-scheme: dark;
}

/* Light Mode Theme */
[data-theme="light"] {
  --bg-color: #dae0e6;   /* Reddit Light Gray */
  --card-bg: #ffffff;    /* Solid White Card */
  --card-border: #ccc;
  --card-border-hover: #ff4500;
  --text-primary: #1c1c1c;
  --text-secondary: #576f76;
  --text-muted: #7c9096;
  
  --primary-color: #ff4500;
  --primary-hover: #e03d00;
  --accent-light: rgba(255, 69, 0, 0.08);
  
  --color-clean-bg: rgba(16, 185, 129, 0.1);
  --color-repost-bg: rgba(255, 69, 0, 0.1);
  
  color-scheme: light;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--card-border-hover);
}

/* Layout Container */
.app-header {
  border-bottom: 1px solid var(--card-border);
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.logo svg {
  color: var(--primary-color);
}
.logo span b {
  font-weight: 700;
  color: var(--primary-color);
}
.logo .badge {
  background: var(--accent-light);
  border: 1px solid var(--card-border);
  color: var(--primary-color);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Grid Layout */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.25rem;
  flex: 1;
}

/* Sidebar */
.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar-card {
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.card-header.border-bottom {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}
.card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.count-badge {
  background: var(--card-border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.db-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 0.85rem;
}

/* Reddit Mini Feed Cards */
.db-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.6rem;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  transition: var(--transition-fast);
}
.db-item:hover {
  background: rgba(255, 255, 255, 0.01);
  border-color: var(--card-border-hover);
}
.db-item.active {
  border-color: var(--primary-color);
  background: var(--accent-light);
}

.db-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 22px;
  color: var(--text-secondary);
}
.db-votes svg {
  color: var(--text-muted);
}
.db-votes .score {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 2px 0;
}
.db-item.active .db-votes .score,
.db-item.active .db-votes svg {
  color: var(--primary-color);
}

.db-content {
  flex: 1;
  min-width: 0;
}
.db-header-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  margin-bottom: 0.15rem;
}
.db-subreddit {
  font-weight: 700;
  color: var(--text-primary);
}
.db-author {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.db-content h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hyperparameters Card */
.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.param-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
}
.param-item .label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.1rem;
}
.param-item .value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}
p.formula {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.1);
  border-left: 2px solid var(--primary-color);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  line-height: 1.3;
}

/* Slider Style */
.slider-group {
  margin: 0.5rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.slider-num {
  font-family: var(--font-mono);
  color: var(--primary-color);
  font-weight: 600;
}
.slider-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--card-border);
  outline: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.slider-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Solid Flat Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
}

/* Input Form Panel */
.app-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.input-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--card-border);
}
.tab-btn {
  font-family: var(--font-sans);
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.scan-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input, 
.form-group textarea {
  font-family: var(--font-sans);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  outline: none;
}
.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--primary-color);
}
.input-group {
  display: flex;
  gap: 0.4rem;
}
.input-group input {
  flex: 1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Preset Cards Layout */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.preset-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}
.preset-card:hover {
  border-color: var(--primary-color);
  background: rgba(255, 69, 0, 0.02);
}
.preset-card .badge-sub {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-color);
}
.preset-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  padding-right: 70px; /* Space for badge */
}
.preset-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.btn:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--card-border-hover);
}
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-flat {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn-flat:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}
.btn-icon {
  padding: 0.4rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
}
.btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.btn-full {
  width: 100%;
}

/* Node Graph Pipeline Visualizer */
.flow-card {
  border-color: var(--card-border-hover);
}
.pipeline-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
  overflow-x: auto;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.4;
  transition: all 0.2s ease;
  min-width: 55px;
  flex-shrink: 0;
}
.flow-node.active {
  color: var(--primary-color);
  opacity: 1;
  font-weight: 600;
  transform: scale(1.05);
}
.flow-node.completed {
  color: var(--color-clean);
  opacity: 1;
}
.flow-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  user-select: none;
  flex-shrink: 0;
}


.console-body {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #10b981;
  line-height: 1.4;
  height: 90px;
  overflow-y: auto;
  white-space: pre-wrap;
  background: #050505;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--card-border);
}

/* Results Section */
.results-card {
  border-color: var(--card-border-hover);
}
.results-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.status-indicator {
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-indicator.clean {
  background: var(--color-clean-bg);
  color: var(--color-clean);
  border: 1px solid rgba(16, 185, 129, 0.12);
}
.status-indicator.flagged {
  background: var(--color-repost-bg);
  color: var(--color-repost);
  border: 1px solid rgba(255, 69, 0, 0.12);
}

/* Metrics Overview */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.metric-dial-box {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.metric-details {
  flex: 1;
  min-width: 250px;
}

/* Circular Progress ring */
.circular-progress {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color) 0deg, var(--card-border) 0deg);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.inner-circle {
  width: 86px;
  height: 86px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  border: 1px solid var(--card-border);
}
.inner-circle span#similarity-percentage {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}
.inner-circle .sub-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -2px;
}

.metric-details h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.metric-details p.description {
  margin-bottom: 0;
  font-size: 0.85rem;
}
.metric-sub-stats {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.stat-pill {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}
.stat-pill .label {
  color: var(--text-secondary);
}
.stat-pill .value {
  font-weight: 600;
  color: var(--primary-color);
}

/* Venn Diagram Overlap */
.venn-diagram-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 130px;
  height: 80px;
}
.venn-svg {
  display: block;
}
.venn-circle-shape {
  fill: rgba(0, 0, 0, 0.2);
  stroke: var(--card-border);
  stroke-width: 1.5;
}
.venn-circle-shape.shape-a {
  fill: rgba(255, 69, 0, 0.04);
  stroke: var(--primary-color);
}
.venn-circle-shape.shape-b {
  fill: rgba(255, 255, 255, 0.01);
}
.venn-label-text {
  font-family: var(--font-sans);
  font-size: 8px;
  fill: var(--text-secondary);
  font-weight: 600;
  text-anchor: middle;
  user-select: none;
}
.venn-overlap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.venn-overlap span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}
.venn-overlap .lbl {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 1px;
}

/* Comparison side-by-side */
.comparison-section {
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}
.comparison-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.comparison-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.compare-pane {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.compare-pane h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.25rem;
}
.compare-pane .pane-content {
  font-size: 0.8rem;
  line-height: 1.45;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* Shingle highlight marker */
mark.match-shingle {
  background: var(--accent-light);
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--primary-color);
  padding: 0 0.1rem;
  border-radius: 2px;
  cursor: help;
  transition: background 0.1s ease;
}
mark.match-shingle.highlight-hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Engine internals section */
.insights-section {
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
}
.insights-header h3 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}
.insights-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.accordion-item {
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}
.accordion-trigger {
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}
.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.01);
}
.accordion-trigger .indicator {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.accordion-item.active .accordion-trigger .indicator {
  transform: rotate(180deg);
}
.accordion-content {
  padding: 0 0.85rem 0.85rem 0.85rem;
  display: none;
  border-top: 1px solid var(--card-border);
}
.accordion-item.active .accordion-content {
  display: block;
}

/* Shingles Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 120px;
  overflow-y: auto;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
  margin-top: 0.35rem;
}
.shingle-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  color: var(--text-secondary);
}
.shingle-tag.matched {
  background: var(--accent-light);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

/* Signature visualizer */
.signature-hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: center;
  max-height: 120px;
  overflow-y: auto;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
  margin-top: 0.35rem;
}
.sig-cell {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.2rem 0;
  border-radius: 2px;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.sig-cell.active-band {
  background: var(--accent-light);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

/* LSH Buckets list */
.lsh-buckets-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.35rem;
  margin-top: 0.35rem;
  max-height: 120px;
  overflow-y: auto;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
}
.bucket-cell {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.25rem 0.35rem;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  border: 1px solid transparent;
}
.bucket-cell.collision {
  background: var(--color-repost-bg);
  border-color: var(--color-repost);
}
.bucket-cell.collision .val {
  color: var(--color-repost);
  font-weight: 600;
}
.bucket-cell .band {
  color: var(--text-muted);
}
.bucket-cell .val {
  color: var(--text-secondary);
}

/* Add Post Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}
.modal-card {
  width: 100%;
  max-width: 450px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 0;
}
.modal-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal-footer {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid var(--card-border);
}
.form-grid-three {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 0.5rem;
}

/* Walkthrough Card styling */
.walkthrough-card {
  border-left: 3px solid var(--primary-color);
}
.walkthrough-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.step-text strong {
  color: var(--text-primary);
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  margin-top: auto;
  background: rgba(0, 0, 0, 0.03);
}

/* Responsive */
@media (max-width: 900px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    order: 2;
  }
  .metrics-grid {
    grid-template-columns: 96px 1fr;
  }
  .venn-diagram-box {
    grid-column: 1 / -1;
    margin: 0 auto;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Onboarding pulsing scan button */
.btn-pulse {
  animation: scan-pulse-glow 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7);
}
@keyframes scan-pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 69, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 69, 0, 0);
  }
}
