/* Kalvex — Dark Theme Security Dashboard */
:root {
  --bg:       #080c14;
  --surface:  #0d1117;
  --surface2: #161b22;
  --surface3: #1c2128;
  --accent:   #00ff88;
  --accent2:  #3b82f6;
  --accent3:  #8b5cf6;
  --danger:   #ef4444;
  --warning:  #f59e0b;
  --success:  #22c55e;
  --text:     #e6edf3;
  --muted:    #8b949e;
  --border:   #21262d;
  --glow:     rgba(0, 255, 136, 0.15);
  --glow-red: rgba(239, 68, 68, 0.2);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-center { display: flex; align-items: center; gap: 8px; }
.header-right { display: flex; align-items: center; gap: 16px; }

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.version {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.tagline { font-size: 12px; color: var(--muted); }

/* Live pulsing dot */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.live-label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 8px var(--accent); }
  50% { opacity:0.6; transform:scale(1.3); box-shadow: 0 0 16px var(--accent); }
}

.mode-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--accent3);
  color: var(--accent3);
  letter-spacing: 1px;
}

.clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Main content ──────────────────────────────────────────────────────────── */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px 48px;
}

/* ── Stats grid ────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.stat-icon { font-size: 28px; }

.stat-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.stat-attacks .stat-number { color: var(--danger); }
.stat-blocked .stat-number { color: var(--warning); }
.stat-critical .stat-number { color: var(--danger); }

.badge-online {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 4px 12px;
  border-radius: 8px;
}

/* ── Sections ────────────────────────────────────────────────────────────────── */
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.page-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.subsection-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 8px; }

/* ── Attack breakdown cards ──────────────────────────────────────────────────── */
.attack-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.attack-card {
  flex: 1;
  min-width: 160px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

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

.attack-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 6px;
  background: var(--surface3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.bar-XSS        { background: #3b82f6; }
.bar-SQLi       { background: var(--danger); }
.bar-DoS        { background: var(--warning); }
.bar-BruteForce { background: #8b5cf6; }
.bar-PortScan   { background: #06b6d4; }

/* ── Type pills ────────────────────────────────────────────────────────────── */
.tp {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tp-XSS        { background: rgba(59,130,246,0.2); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.tp-SQLi       { background: rgba(239,68,68,0.2);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.tp-DoS        { background: rgba(245,158,11,0.2); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.tp-BruteForce { background: rgba(139,92,246,0.2); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.3); }
.tp-PortScan   { background: rgba(6,182,212,0.2);  color: #06b6d4; border: 1px solid rgba(6,182,212,0.3); }
.tp-CSRF       { background: rgba(34,197,94,0.2);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.tp-SSRF       { background: rgba(249,115,22,0.2); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }

/* ── Severity badges ─────────────────────────────────────────────────────────── */
.sev-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.sev-CRITICAL { background: rgba(239,68,68,0.2);   color: #ef4444; border: 1px solid rgba(239,68,68,0.4); }
.sev-HIGH     { background: rgba(249,115,22,0.2);   color: #f97316; border: 1px solid rgba(249,115,22,0.4); }
.sev-MEDIUM   { background: rgba(245,158,11,0.2);   color: #f59e0b; border: 1px solid rgba(245,158,11,0.4); }
.sev-LOW      { background: rgba(34,197,94,0.2);    color: #22c55e; border: 1px solid rgba(34,197,94,0.4); }
.sev-INFO     { background: rgba(139,148,158,0.15); color: #8b949e; border: 1px solid rgba(139,148,158,0.3); }

/* ── Status badges ────────────────────────────────────────────────────────────── */
.st-BLOCKED { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.4); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.st-LOGGED  { background: rgba(139,148,158,0.1); color: #8b949e; border: 1px solid rgba(139,148,158,0.2); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }

/* ── Tables ───────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: var(--surface2);
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(33,38,45,0.6);
  vertical-align: middle;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table tbody tr:hover { background: var(--surface2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .empty-row td { text-align: center; color: var(--muted); padding: 24px; }

.log-count { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ── Popup overlay ──────────────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-card {
  background: var(--surface);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.6);
  position: relative;
  animation: slide-in 0.3s ease;
}

.popup-large { max-width: 800px; }

.popup-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.popup-close:hover { color: var(--text); }

.popup-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.popup-icon { font-size: 36px; }
.popup-title { font-size: 18px; font-weight: 700; color: var(--danger); }
.popup-subtitle { font-size: 13px; color: var(--muted); margin-top: 4px; }

.popup-events { display: flex; flex-direction: column; gap: 8px; }

.popup-event {
  background: var(--surface2);
  border-left: 3px solid var(--border);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.popup-event.sev-CRITICAL { border-left-color: var(--danger); }
.popup-event.sev-HIGH     { border-left-color: #f97316; }
.popup-event.sev-MEDIUM   { border-left-color: var(--warning); }

/* ── Toast notifications ─────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(13,17,23,0.95);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 280px;
  max-width: 380px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: toast-in 0.3s ease;
  pointer-events: all;
}

.toast-title { font-size: 13px; font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.toast-body  { font-size: 12px; color: var(--muted); }

@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slide-in {
  from { transform: scale(0.92) translateY(-20px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);     opacity: 1; }
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Scan panel ──────────────────────────────────────────────────────────────── */
.scan-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding-bottom: 0;
}
.scan-panel-header:hover .section-title { color: var(--accent); }

.collapse-icon { font-size: 12px; color: var(--muted); transition: transform 0.2s; }
.collapse-icon.collapsed { transform: rotate(-90deg); }

.scan-panel { margin-top: 16px; }
.scan-panel.hidden { display: none; }

.scan-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.scan-form .form-input { flex: 1; min-width: 260px; }

.scan-status { padding: 12px; background: var(--surface2); border-radius: 8px; color: var(--muted); font-size: 13px; }

/* ── AI panel ─────────────────────────────────────────────────────────────────── */
.ai-credit { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 8px; }

.ai-content {
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Forms ────────────────────────────────────────────────────────────────────── */
.form-input, .form-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }
.form-row { display: flex; gap: 12px; align-items: flex-end; }

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #080c14;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover {
  box-shadow: 0 20px 40px -15px rgba(0,255,136,0.12);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-large { padding: 12px 32px; font-size: 14px; }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--accent2); }
.btn-xs { background: var(--surface3); color: var(--accent2); border: 1px solid rgba(59,130,246,0.3); padding: 3px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: inherit; }
.btn-xs:hover { background: rgba(59,130,246,0.15); }

/* ── Nav links ──────────────────────────────────────────────────────────────── */
.nav-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.nav-link {
  color: var(--accent2);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 8px;
  background: rgba(59,130,246,0.05);
  transition: background 0.2s, border-color 0.2s;
}
.nav-link:hover { background: rgba(59,130,246,0.15); border-color: var(--accent2); }

/* ── Code blocks ─────────────────────────────────────────────────────────────── */
.code-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.code-label {
  background: var(--surface3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}
.code-block pre, pre {
  padding: 12px;
  font-size: 12px;
  color: #79c0ff;
  overflow-x: auto;
  line-height: 1.6;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; color: var(--accent3); }

/* ── Demo page ────────────────────────────────────────────────────────────────── */
.demo-banner {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 20px;
}
.demo-badge { font-size: 12px; font-weight: 700; color: var(--warning); letter-spacing: 0.5px; }
.demo-banner p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.demo-form { max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.demo-message { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.demo-success { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.demo-error   { background: rgba(239,68,68,0.1);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.demo-info    { background: rgba(59,130,246,0.1);  color: #79c0ff;        border: 1px solid rgba(59,130,246,0.3); }
.section-hint { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

/* ── Blocked page ──────────────────────────────────────────────────────────── */
.blocked-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.blocked-card {
  background: var(--surface);
  border: 2px solid rgba(239,68,68,0.5);
  border-radius: 16px;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}
.blocked-icon   { font-size: 64px; margin-bottom: 20px; }
.blocked-title  { font-size: 24px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.blocked-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.blocked-reason {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  word-break: break-all;
}
.blocked-msg  { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.blocked-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.blocked-footer { font-size: 11px; color: var(--muted); }

/* ── Report page ──────────────────────────────────────────────────────────── */
.report-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.report-meta span strong { color: var(--text); }
.finding-detail { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.finding-detail-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.finding-detail-header h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.finding-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.finding-block { margin-bottom: 10px; }
.finding-block strong { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.finding-block pre { background: var(--surface3); border: 1px solid var(--border); border-radius: 6px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.ai-block { border-left: 3px solid var(--accent3); padding-left: 12px; }

/* ── Scan results ─────────────────────────────────────────────────────────── */
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.export-buttons { display: flex; gap: 8px; }
.risk-summary { display: flex; align-items: center; gap: 20px; padding: 16px; background: var(--surface2); border-radius: 10px; margin-bottom: 16px; }
.risk-badge { border: 2px solid var(--muted); border-radius: 12px; padding: 12px 20px; text-align: center; min-width: 100px; }
.risk-score { font-size: 28px; font-weight: 700; display: block; }
.risk-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.risk-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.finding-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.scan-running { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--muted); }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; padding-right: 40px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.modal-section { margin-bottom: 16px; }
.modal-section h4 { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.evidence-block, .remediation-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* ── Muted text helper ────────────────────────────────────────────────────── */
.muted { color: var(--muted); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .tagline { display: none; }
  .main-content { padding: 72px 16px 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .attack-grid { flex-direction: column; }
  .scan-form { flex-direction: column; }
  .form-row { flex-direction: column; }
  .data-table th, .data-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 24px; }
  .header-center { display: none; }
  .blocked-card { padding: 32px 20px; }
  .blocked-actions { flex-direction: column; }
}

/* ── v3 ADDITIONS ── */
@keyframes countFlash {
  0%   { color: var(--accent); }
  100% { color: var(--text); }
}

.nav-link {
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.nav-link:hover { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
