/* DNSRadar — 2026 Neo-minimal Design System */

/* ─── Tokens ─── */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-fa: 'Vazirmatn', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.75rem;   /* 28px */
  --text-hero: clamp(2rem, 4.5vw, 2.75rem);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.2s;
  --container: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #09090b;
  --bg-surface: #0c0c0f;
  --bg-card: #111114;
  --bg-elevated: #18181c;
  --bg-hover: #1c1c21;
  --bg-input: #0a0a0d;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --text-mono: #7dd3fc;

  --accent: #fafafa;
  --accent-fg: #09090b;
  --accent-hover: #e4e4e7;
  --accent-subtle: rgba(250, 250, 250, 0.08);
  --accent-glow: rgba(250, 250, 250, 0.06);
  --link: #38bdf8;
  --link-hover: #7dd3fc;

  --pass: #34d399;
  --pass-bg: rgba(52, 211, 153, 0.1);
  --pass-border: rgba(52, 211, 153, 0.22);
  --pass-soft: #6ee7b7;
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.1);
  --warn-border: rgba(251, 191, 36, 0.22);
  --warn-soft: #fcd34d;
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --error-border: rgba(248, 113, 113, 0.22);
  --error-soft: #fca5a5;
  --info: #71717a;
  --info-bg: rgba(113, 113, 122, 0.12);
  --info-soft: #a1a1aa;
  --skip: #52525b;

  --error-title: #fecaca;
  --error-detail: #fca5a5;
  --warn-title: #fde68a;
  --warn-detail: #fcd34d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.35);
  --glow: radial-gradient(ellipse 70% 45% at 50% -15%, rgba(56, 189, 248, 0.07), transparent 70%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-base: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hover: #f5f5f7;
  --bg-input: #ffffff;
  --border: #ebebeb;
  --border-strong: #dddddd;
  --text-primary: #111113;
  --text-secondary: #5c5c66;
  --text-muted: #9b9ba4;
  --text-mono: #0369a1;

  --accent: #111113;
  --accent-fg: #ffffff;
  --accent-hover: #2a2a2e;
  --accent-subtle: rgba(17, 17, 19, 0.05);
  --accent-glow: rgba(17, 17, 19, 0.03);
  --link: #2563eb;
  --link-hover: #1d4ed8;

  --pass: #059669;
  --pass-bg: rgba(5, 150, 105, 0.07);
  --pass-border: rgba(5, 150, 105, 0.18);
  --pass-soft: #047857;
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.07);
  --warn-border: rgba(217, 119, 6, 0.18);
  --warn-soft: #b45309;
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.06);
  --error-border: rgba(220, 38, 38, 0.16);
  --error-soft: #b91c1c;
  --info: #6b6b76;
  --info-bg: rgba(107, 107, 118, 0.07);
  --info-soft: #6b6b76;
  --skip: #b0b0b8;

  --error-title: #991b1b;
  --error-detail: #b91c1c;
  --warn-title: #92400e;
  --warn-detail: #b45309;

  --shadow-sm: none;
  --shadow-md: 0 1px 0 #ebebeb;
  --glow: transparent;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-base);
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.25s var(--ease), color 0.2s var(--ease);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="light"] body::before {
  display: none;
}

:root[data-theme="light"] .topbar {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="light"] .hero-search {
  background: #ffffff;
  border-color: var(--border-strong);
  box-shadow: none;
}

:root[data-theme="light"] .example-chip {
  background: #ffffff;
}

:root[data-theme="light"] .filter-pill:not(.active) {
  background: #ffffff;
}

:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .lang-picker-btn,
:root[data-theme="light"] .back-btn {
  background: #ffffff;
}

:root[data-theme="light"] .header-card,
:root[data-theme="light"] .category,
:root[data-theme="light"] .status-banner,
:root[data-theme="light"] .report-dashboard,
:root[data-theme="light"] .dash-panel,
:root[data-theme="light"] .dash-kpi,
:root[data-theme="light"] .dash-issues,
:root[data-theme="light"] .card,
:root[data-theme="light"] .status-item,
:root[data-theme="light"] .code-block,
:root[data-theme="light"] .footer-tech-list a {
  background: #ffffff;
  box-shadow: none;
}

:root[data-theme="light"] .hero-search:focus-within {
  box-shadow: none;
  border-color: var(--border-strong);
}

:root[data-theme="light"] .lang-picker-menu {
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] html,
:root[data-theme="light"] body {
  background-color: #ffffff;
}

html[dir="ltr"] body { font-family: var(--font-sans); }

.mono {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: isolate;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ─── Topbar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-base) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 24px; width: auto; display: block; object-fit: contain; flex-shrink: 0; }

.topbar-actions { display: flex; align-items: center; gap: var(--space-2); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0 var(--space-3);
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.back-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ─── Layout ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6);
  position: relative;
  z-index: 1;
}

/* ─── Hero ─── */
.hero {
  padding: var(--space-12) var(--space-6) var(--space-10);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.hero h1 em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero .lead {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.65;
  max-width: 480px;
  margin-inline: auto;
}

.hero-search {
  display: flex;
  gap: var(--space-2);
  max-width: 520px;
  margin: 0 auto var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.hero-search:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-mono);
}

.hero-search input::placeholder { color: var(--text-muted); }

.scan-btn {
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  padding: 0 var(--space-5);
  min-height: 44px;
  border-radius: calc(var(--radius-lg) - 4px);
  font-weight: 500;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  white-space: nowrap;
}

.scan-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.scan-btn:active:not(:disabled) { transform: translateY(0); }
.scan-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.examples {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.example-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.example-chip:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.err-msg {
  display: none;
  max-width: 520px;
  margin: var(--space-4) auto 0;
  padding: var(--space-3) var(--space-4);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-md);
  color: var(--error-soft);
  font-size: var(--text-sm);
  text-align: center;
}

.err-msg.show { display: block; }

/* ─── Results header ─── */
.header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.header-meta-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--pass);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

.live-dot.done { animation: none; box-shadow: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  50% { opacity: 0.65; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.domain-name {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  direction: ltr;
  unicode-bidi: isolate;
}

.header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  align-items: center;
}

.header-stats > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.dot-sep { color: var(--text-muted); user-select: none; }

.action-link {
  color: var(--link);
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--text-sm);
  padding: 0;
  transition: color var(--duration) var(--ease);
}

.action-link:hover { color: var(--link-hover); }

.score-block { display: flex; align-items: center; gap: var(--space-5); }

.score-donut { position: relative; width: 88px; height: 88px; flex-shrink: 0; }

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.score-max {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.score-legend { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-sm); white-space: nowrap; }

.legend-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
}

.legend-row strong {
  color: var(--text-primary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  text-align: end;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.legend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.pass { background: var(--pass); }
.legend-dot.warn { background: var(--warn); }
.legend-dot.error { background: var(--error); }
.legend-dot.info { background: var(--info); }

/* ─── Status banner ─── */
.status-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.status-text { flex: 1; font-size: var(--text-sm); color: var(--text-secondary); }
.status-text strong { color: var(--text-primary); font-weight: 500; }

.progress-bar {
  flex-shrink: 0;
  width: 180px;
  height: 3px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--text-primary);
  transition: width 0.3s var(--ease);
}

.progress-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ─── Filter bar ─── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  align-items: center;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.filter-pill:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.filter-pill .count {
  font-size: var(--text-xs);
  opacity: 0.75;
  font-family: var(--font-mono);
}

.filter-spacer { flex: 1; }

/* ─── Categories ─── */
.category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  position: relative;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  gap: var(--space-4);
}

.category-header:hover { background: var(--bg-hover); }

.category-header::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

.category.has-error .category-header::before { background: var(--error); }
.category.has-warn .category-header::before { background: var(--warn); }
.category.all-pass .category-header::before { background: var(--pass); }
.category.all-info .category-header::before { background: var(--info); }

.category-title-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex-wrap: wrap;
}

.category-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.category-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.category-stats {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.stat-badge.pass { background: var(--pass-bg); color: var(--pass-soft); }
.stat-badge.warn { background: var(--warn-bg); color: var(--warn-soft); }
.stat-badge.error { background: var(--error-bg); color: var(--error-soft); }
.stat-badge.info { background: var(--info-bg); color: var(--info-soft); }

.chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
  margin-inline-start: var(--space-2);
}

.category-body { padding: var(--space-1) var(--space-2) var(--space-2); border-top: 1px solid var(--border); }
.category.collapsed .category-body { display: none; }
.category.collapsed .chevron { transform: rotate(-90deg); }
html[dir="rtl"] .category.collapsed .chevron { transform: rotate(90deg); }

/* ─── Check rows ─── */
.check-row {
  display: grid;
  grid-template-columns: 60px 1fr 56px;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  align-items: center;
  border-radius: var(--radius-sm);
  margin: 1px 0;
  font-size: var(--text-sm);
}

.check-row + .check-row { border-top: 1px solid var(--border); }

.check-row.warn-row,
.check-row.error-row {
  border-top: 1px solid transparent !important;
  margin: var(--space-1) 0;
  align-items: start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

.check-row.warn-row { background: var(--warn-bg); }
.check-row.error-row { background: var(--error-bg); }
.check-row.skip-row { opacity: 0.5; }

.check-pill {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: var(--radius-full);
  text-align: center;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.check-pill.pass { background: var(--pass); color: #fff; }
.check-pill.warn { background: var(--warn); color: #1c1917; }
.check-pill.error { background: var(--error); color: #fff; }
.check-pill.info { background: var(--info); color: #fff; }
.check-pill.skip { background: var(--bg-hover); color: var(--text-muted); border: 1px solid var(--border); }

.check-content { min-width: 0; }
.check-title { color: var(--text-primary); font-weight: 400; line-height: 1.5; }
.check-row.error-row .check-title { color: var(--error-title); }
.check-row.warn-row .check-title { color: var(--warn-title); }

.check-detail {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
  line-height: 1.55;
  word-break: break-all;
  direction: ltr;
  unicode-bidi: isolate;
}

.check-row.error-row .check-detail { color: var(--error-detail); }
.check-row.warn-row .check-detail { color: var(--warn-detail); }

.check-id {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  text-align: end;
  white-space: nowrap;
}

.fix-box {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

.fix-label {
  display: inline-block;
  font-weight: 600;
  color: var(--link);
  margin-inline-end: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

/* ─── Footer ─── */
.site-footer {
  margin-top: var(--space-10);
  padding: var(--space-8) 0 var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--text-secondary);
  margin: 0 var(--space-2);
  transition: color var(--duration) var(--ease);
}

.site-footer a:hover { color: var(--text-primary); }

.footer-divider { color: var(--text-muted); margin: 0 var(--space-1); opacity: 0.5; }

.footer-tech {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.footer-tech-label { font-size: var(--text-xs); color: var(--text-muted); }

.footer-tech-list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.footer-tech-list a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 2px var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  text-decoration: none;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.footer-tech-list a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.footer-copy { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--text-muted); }
.footer-copy a { color: var(--text-secondary); }
.footer-copy a:hover { color: var(--link); }

.hidden { display: none !important; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .topbar-inner { padding: var(--space-3) var(--space-4); }
  .container { padding: var(--space-4); }
  .hero { padding: var(--space-10) var(--space-4) var(--space-8); }
  .hero h1 { font-size: 1.875rem; }
  .hero .lead { font-size: var(--text-sm); margin-bottom: var(--space-6); }
  .header-card { padding: var(--space-5); }
  .header-row { grid-template-columns: 1fr; gap: var(--space-5); }
  .domain-name { font-size: var(--text-xl); }
  .score-block {
    flex-direction: row;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
  }
  .status-banner { flex-wrap: wrap; padding: var(--space-3) var(--space-4); }
  .progress-bar { width: 100%; order: 3; flex-basis: 100%; }
  .progress-num { order: 2; }
  .check-row { grid-template-columns: 52px 1fr 44px; gap: var(--space-2); }
  .header-stats .dot-sep { display: none; }
}

:root[data-theme="light"] .check-pill.pass,
:root[data-theme="light"] .check-pill.error,
:root[data-theme="light"] .check-pill.info { color: #fff; }

:root[data-theme="light"] .dash-issue-pill.warn { color: #1c1917; }

@media (max-width: 480px) {
  .score-donut { width: 72px; height: 72px; }
  .score-num { font-size: var(--text-lg); }
  .filter-pill .count { display: none; }
}
