/* ═══════════════════════════════════════════════════════
   NeuroScan AI — Light Mode, Compact Single-Viewport Layout
═══════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────── */
:root {
  --bg-base:        #f0f4f9;
  --bg-card:        #ffffff;
  --bg-elevated:    #f7f9fc;
  --bg-input:       #eef2f7;
  --bg-header:      rgba(255,255,255,0.92);

  --border:         #dde3ed;
  --border-accent:  #a5b4fc;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --accent-blue:    #3b82f6;
  --accent-indigo:  #6366f1;
  --accent-cyan:    #0ea5e9;
  --accent-green:   #16a34a;
  --accent-red:     #dc2626;
  --accent-amber:   #d97706;
  --accent-purple:  #7c3aed;

  --grad-header: linear-gradient(90deg, #eff6ff 0%, #f5f3ff 100%);
  --grad-btn:    linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --grad-text:   linear-gradient(90deg, #3b82f6, #7c3aed);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;

  --shadow-sm:   0 1px 4px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  --shadow-card: 0 2px 10px rgba(15,23,42,0.07), 0 0 0 1px rgba(15,23,42,0.05);
  --shadow-btn:  0 4px 14px rgba(99,102,241,0.35);

  --font-main: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);

  --header-h: 48px;
  --footer-h: 30px;
  --content-h: calc(100vh - var(--header-h) - var(--footer-h));
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body {
  font-family: var(--font-main);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.header-inner {
  height: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logo { display: flex; align-items: center; gap: 7px; }
.logo-icon { font-size: 1.25rem; }
.logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-text em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Pill Badges ─────────────────────────────────────── */
.badge-pill {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid;
  text-transform: uppercase;
  white-space: nowrap;
}
.model-badge  { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.dataset-badge{ background: #faf5ff; border-color: #ddd6fe; color: #7c3aed; }
.acc-badge    { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

/* ── Top Navigation Tabs ─────────────────────────────── */
.main-tabs {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.main-tab {
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.main-tab.active {
  background: white;
  color: var(--accent-indigo);
  box-shadow: var(--shadow-sm);
}
.main-tab:hover:not(.active) { color: var(--text-secondary); }

/* ── Main Grid ──────────────────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 10px;
  padding: 10px;
  flex: 1;
  overflow: hidden;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
  height: var(--content-h);
  flex-shrink: 0;
}

/* ── Left Column ─────────────────────────────────────── */
.left-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* ── Center Column ───────────────────────────────────── */
.center-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Card Base ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-accent); box-shadow: 0 4px 14px rgba(15,23,42,0.10); }

.card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.card-icon { font-size: 0.9rem; }
.card-header h2 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: 1;
}

/* ── Patient Card ────────────────────────────────────── */
.patient-card { flex-shrink: 0; }

.custom-select-container {
  position: relative;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  user-select: none;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}
.custom-select-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
}
.cs-text {
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #475569;
  font-weight: 500;
}
.cs-badge {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cs-demented {
  background: #fee2e2;
  color: #ef4444;
}
.cs-nondemented {
  background: #dcfce7;
  color: #22c55e;
}
.cs-chevron {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  transition: transform 0.2s;
}
.custom-select-container.open .cs-chevron {
  transform: rotate(180deg);
}
.custom-select-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  min-width: 200px;
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 4px 0;
}
.custom-select-container.open .custom-select-menu {
  display: flex;
}
.cs-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.cs-option:hover {
  background: #f8fafc;
}
.cs-option.selected {
  background: #f1f5f9;
}
.cs-opt-text {
  color: #334155;
}

.patient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 7px;
}
.patient-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
}
.ps-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1px;
}
.ps-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.ground-truth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}
.gt-label { font-size: 0.68rem; color: #92400e; font-weight: 500; }
.gt-value  { font-size: 0.72rem; font-weight: 700; color: #b45309; font-family: var(--font-mono); }

/* ── Section Divider ─────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  flex-shrink: 0;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider span {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Feature Explorer ────────────────────────────────── */
.feat-explorer-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.feat-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-bottom: 7px;
  flex-shrink: 0;
}
.feat-tab {
  flex: 1;
  padding: 4px 3px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.feat-tab.active { background: white; color: var(--accent-blue); box-shadow: var(--shadow-sm); font-weight: 600; }
.feat-tab:hover:not(.active) { color: var(--text-secondary); }

.feat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 2px;
  min-height: 0;
}
.feat-list::-webkit-scrollbar { width: 3px; }
.feat-list::-webkit-scrollbar-track { background: var(--bg-elevated); border-radius: 2px; }
.feat-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.feat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  gap: 6px;
  transition: border-color var(--transition);
}
.feat-item:hover { border-color: var(--border-accent); }
.feat-name {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.feat-val  { font-size: 0.68rem; font-weight: 600; color: var(--accent-blue); font-family: var(--font-mono); flex-shrink: 0; }
.feat-null { color: var(--text-muted); }

/* ── Result Card ─────────────────────────────────────── */
.result-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.result-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
}
.placeholder-brain {
  font-size: 2.6rem;
  animation: float 3s ease-in-out infinite;
  filter: grayscale(0.3) opacity(0.5);
}
.result-placeholder > p { font-size: 0.8rem; max-width: 260px; color: var(--text-secondary); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Placeholder mode selector */
.placeholder-mode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
}
.mode-header-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.mode-options-inline {
  display: flex;
  gap: 7px;
  width: 100%;
  flex-wrap: wrap;
}

.result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
}

/* ── Result Top Row ──────────────────────────────────── */
.result-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Verdict ─────────────────────────────────────────── */
.verdict-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid;
  animation: pop-in 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
  flex-shrink: 0;
}
.verdict-badge.non-demented { background: #f0fdf4; border-color: #86efac; }
.verdict-badge.demented     { background: #fef2f2; border-color: #fca5a5; }
.verdict-icon { font-size: 1.25rem; }
.verdict-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.verdict-badge.non-demented .verdict-text { color: var(--accent-green); }
.verdict-badge.demented .verdict-text     { color: var(--accent-red); }

.mode-label-result {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 9px;
  line-height: 1.4;
  flex-shrink: 0;
}

@keyframes pop-in {
  from { opacity:0; transform: scale(0.85); }
  to   { opacity:1; transform: scale(1); }
}

.p1-verdict-mini {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid;
  text-transform: uppercase;
}
.p1-verdict-mini.demented { background: #fef2f2; border-color: #fca5a5; color: var(--accent-red); }
.p1-verdict-mini.non-demented { background: #f0fdf4; border-color: #86efac; color: var(--accent-green); }

/* ── Inline Metrics — anchored near verdict ──────────── */
.inline-metrics {
  display: flex;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}
.im-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  text-align: center;
  min-width: 58px;
}
.im-val {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-indigo);
  font-family: var(--font-mono);
}
.im-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

/* ── Gauge Row ───────────────────────────────────────── */
.gauge-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gauge-wrap { flex: 0 0 140px; }
.gauge-svg { width: 100%; }

.gauge-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 12;
  stroke-linecap: round;
}
.gauge-fg {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1);
}
.gauge-needle {
  stroke: #64748b;
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: 100px 100px;
  transform: rotate(-90deg);
  transition: transform 1s cubic-bezier(0.4,0,0.2,1);
}
.gauge-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 2px;
  padding: 0 3px;
}
.gauge-center-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.prob-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.prob-row  { display: flex; align-items: center; gap: 7px; }
.prob-label { font-size: 0.68rem; color: var(--text-secondary); white-space: nowrap; flex: 0 0 98px; }
.prob-track {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.prob-fill { height: 100%; border-radius: 99px; width: 0%; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.nd-fill { background: linear-gradient(90deg, #4ade80, #16a34a); }
.d-fill  { background: linear-gradient(90deg, #f87171, #dc2626); }
.prob-pct {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  flex: 0 0 38px;
  text-align: right;
}
.features-used-note { font-size: 0.62rem; color: var(--text-muted); margin-top: 1px; }

/* ── Chart ───────────────────────────────────────────── */
.chart-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.chart-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  flex-shrink: 0;
}
.chart-sub { font-size: 0.63rem; font-weight: 400; color: var(--text-muted); }
.chart-container { flex: 1; position: relative; min-height: 0; }
.chart-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 0.62rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Ablation Footer (below chart) ───────────────────── */
.ablation-footer {
  flex-shrink: 0;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

.ablation-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ablation-section-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ablation-controls-row {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex-wrap: nowrap;
}

/* Horizontal mode options row */
.mode-options-horizontal {
  display: flex;
  gap: 6px;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.mode-options-horizontal::-webkit-scrollbar { height: 3px; }
.mode-options-horizontal::-webkit-scrollbar-track { background: var(--bg-elevated); }
.mode-options-horizontal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Shared mode-option style — works in both horizontal and inline layouts */
.mode-option {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.mode-option:hover { border-color: #a5b4fc; background: #f5f3ff; }
.mode-option.selected {
  border-color: var(--accent-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
}
.mode-radio {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.mode-option.selected .mode-radio {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}
.mode-text { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.3; }
.mode-option.selected .mode-text { color: var(--text-primary); font-weight: 500; }

/* Inline / placeholder mode options fill full width */
.mode-options-inline .mode-option {
  flex: 1;
  justify-content: flex-start;
  flex-shrink: 1;
  white-space: normal;
}

/* ── Predict Button ──────────────────────────────────── */
.predict-btn {
  padding: 0 18px;
  background: var(--grad-btn);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
  height: 38px;
  flex-shrink: 0;
  white-space: nowrap;
}
.predict-btn-center {
  width: 100%;
  max-width: 200px;
  height: 36px;
}
.predict-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.predict-btn:hover:not(:disabled)::after { opacity: 1; }
.predict-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,0.45); }
.predict-btn:active:not(:disabled) { transform: translateY(0); }
.predict-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn-spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.predict-btn.loading .btn-spinner { display: block; }
.predict-btn.loading .btn-text   { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton ────────────────────────────────────────── */
.skeleton-block {
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-elevated) 25%, #e9eef5 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.6rem;
  color: var(--text-muted);
  flex-shrink: 0;
  gap: 4px;
}
.site-footer a { color: var(--accent-blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── EDA Visualization Section ──────────────────────── */
.viz-section {
  padding: 40px 20px 60px;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.viz-section::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px; right: -100px; height: 400px;
  background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.08), transparent 70%);
  z-index: -1;
}

.viz-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.viz-section p.viz-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 35px;
}

.viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 25px;
}

.viz-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.viz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  border-color: var(--border-accent);
}

.viz-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.viz-card-title {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}
