/* ─── Design Tokens ─── */
:root {
  --bg-base: #060d18;
  --bg-panel: #0b1627;
  --bg-surface: #0f1f35;
  --bg-hover: #142540;
  --border: #1a3050;
  --border-hi: #1e4070;
  --cyan: #22d3ee;
  --cyan-dim: #0e7490;
  --purple: #a855f7;
  --purple-dim: #6b21a8;
  --green: #22c55e;
  --red: #f43f5e;
  --yellow: #fbbf24;
  --orange: #f97316;
  --orange-dim: #c2410c;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --blue-dim: #1d4ed8;
  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #475569;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── SVG Icon System ─── */
.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.ico-xs {
  width: 13px;
  height: 13px;
}

.ico-lg {
  width: 28px;
  height: 28px;
}

.ico-xl {
  width: 32px;
  height: 32px;
}

/* ─── Header ─── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-icon {
  display: flex;
  align-items: center;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, .5));
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: .75rem;
  color: var(--text-2);
  display: block;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
}

.status-dot.blocked {
  background: var(--red);
}

/* ─── Stats in header ─── */
.header-stats {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.stat-pill::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.stat-pill.stat-total {
  color: var(--cyan);
}

.stat-pill.stat-total::before {
  background: var(--cyan);
}

.stat-pill.stat-blocked {
  color: var(--red);
}

.stat-pill.stat-blocked::before {
  background: var(--red);
}

.stat-pill.stat-allowed {
  color: var(--green);
}

.stat-pill.stat-allowed::before {
  background: var(--green);
}

/* ─── Grid Layout ─── */
.lab-grid {
  display: grid;
  grid-template-columns: 320px 0px 1fr 0px 300px;
  grid-template-rows: minmax(0, 1fr) 0px 240px;
  grid-template-areas:
    "attacker rl topology rr waf-rules"
    "rb       rb rb       rb rb"
    "log      log log      log log";
  gap: .75rem;
  padding: .75rem;
  flex: 1;
  min-height: 0;
}

/* ─── Grid Resizers ─── */
.grid-resizer {
  position: relative; z-index: 10; user-select: none;
}
.grid-resizer-col {
  grid-row: 1; cursor: col-resize;
  width: 0; margin: 0 -.375rem;
  padding: 0 .375rem;
}
.grid-resizer-col::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 4px; transform: translateX(-50%); border-radius: 2px;
  background: transparent; transition: background .15s;
}
.grid-resizer-col:hover::after,
.grid-resizer-col.active::after { background: var(--cyan-dim); }

.grid-resizer-row {
  cursor: row-resize;
  height: 0; margin: -.375rem 0;
  padding: .375rem 0;
}
.grid-resizer-row::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 4px; transform: translateY(-50%); border-radius: 2px;
  background: transparent; transition: background .15s;
}
.grid-resizer-row:hover::after,
.grid-resizer-row.active::after { background: var(--cyan-dim); }

#resizerLeft   { grid-area: rl; }
#resizerRight  { grid-area: rr; }
#resizerBottom { grid-area: rb; }

/* ─── Panels ─── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 0;
}

.panel-attacker {
  grid-area: attacker;
}

.panel-topology {
  grid-area: topology;
}

.panel-waf-rules {
  grid-area: waf-rules;
}

.panel-log {
  grid-area: log;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
}

.panel-sub {
  font-size: .7rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}

.panel-body {
  padding: .75rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

/* ─── Forms ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.form-group label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: .4rem .6rem;
  font-size: .82rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .15);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

textarea.form-input {
  resize: vertical;
  min-height: 60px;
  font-size: .78rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: all .18s;
  padding: .45rem .9rem;
  font-size: .82rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  color: #fff;
  border: 1px solid var(--cyan);
}

.btn-primary:hover {
  filter: brightness(1.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 211, 238, .25);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hi);
}

.btn-ghost:hover {
  color: var(--text-1);
  border-color: var(--cyan);
}

.btn-danger {
  background: rgba(244, 63, 94, .15);
  color: var(--red);
  border: 1px solid rgba(244, 63, 94, .3);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, .3);
}

.btn-warn {
  background: rgba(245, 158, 11, .15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, .3);
}

.btn-warn:hover {
  background: rgba(245, 158, 11, .3);
}

.btn-sm {
  padding: .3rem .6rem;
  font-size: .75rem;
}

.btn-lg {
  width: 100%;
  padding: .65rem;
  font-size: .95rem;
  margin-top: .4rem;
}

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: .2rem .4rem;
  border-radius: 4px;
}

.btn-icon:hover {
  color: var(--text-1);
  background: var(--bg-hover);
}

/* ─── Presets ─── */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .2rem;
}

.presets-label {
  font-size: .7rem;
  color: var(--text-3);
  font-weight: 600;
  width: 100%;
}

.preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-hi);
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 600;
  padding: .25rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-mono);
}

.preset-btn:hover {
  background: var(--bg-hover);
  border-color: var(--cyan);
}

.preset-btn.preset-attack {
  color: var(--red);
  border-color: rgba(244, 63, 94, .4);
}

.preset-btn.preset-attack:hover {
  background: rgba(244, 63, 94, .1);
  border-color: var(--red);
}

.preset-btn.preset-custom-rule {
  color: var(--purple);
  border-color: rgba(168, 85, 247, .4);
}

.preset-btn.preset-custom-rule:hover {
  background: rgba(168, 85, 247, .1);
  border-color: var(--purple);
}

/* ─── Mode strip ─── */
.mode-strip {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  font-size: .78rem;
  color: var(--text-2);
  transition: border-color .3s;
}

.mode-strip.prevention {
  border-color: var(--red);
}

.mode-strip.detection {
  border-color: var(--amber);
}

.mode-value {
  font-weight: 800;
  font-family: var(--font-mono);
}

.mode-value.prevention {
  color: var(--red);
}

.mode-value.detection {
  color: var(--amber);
}

.mode-hint {
  font-size: .68rem;
  color: var(--text-3);
  margin-left: auto;
}

/* ─── Rule list ─── */
.rule-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.rule-empty {
  color: var(--text-3);
  font-size: .8rem;
  text-align: center;
  padding: 1rem;
}

.rule-count-badge {
  display: inline-block;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .1rem .45rem;
  margin-left: .4rem;
}

.rule-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .45rem .6rem;
  font-size: .72rem;
  font-family: var(--font-mono);
  transition: border-color .15s, background .15s;
  animation: slideIn .25s ease;
}

.rule-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-hi);
}

.rule-item.sev-critical {
  border-left-color: var(--red);
}

.rule-item.sev-high {
  border-left-color: var(--orange);
}

.rule-item.sev-medium {
  border-left-color: var(--yellow);
}

.rule-item.sev-low {
  border-left-color: var(--blue);
}

.rule-item.rule-disabled {
  opacity: .4;
}

.rule-row-top {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.rule-priority {
  color: var(--text-3);
  font-size: .65rem;
  min-width: 24px;
}

.rule-name-text {
  color: var(--text-1);
  font-weight: 700;
  font-size: .75rem;
  font-family: 'Inter', sans-serif;
}

.rule-actions-row {
  margin-left: auto;
  display: flex;
  gap: .3rem;
  align-items: center;
}

.rule-pattern-text {
  color: var(--cyan);
  font-size: .68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-desc-text {
  color: var(--text-2);
  font-size: .68rem;
}

/* Verdict / severity / action badges */
.badge {
  display: inline-block;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.badge-block {
  background: rgba(244, 63, 94, .2);
  color: var(--red);
}

.badge-allow {
  background: rgba(34, 197, 94, .2);
  color: var(--green);
}

.badge-log {
  background: rgba(168, 85, 247, .2);
  color: var(--purple);
}

.badge-challenge {
  background: rgba(251, 191, 36, .2);
  color: var(--yellow);
}

.badge-critical {
  background: rgba(244, 63, 94, .2);
  color: var(--red);
}

.badge-high {
  background: rgba(249, 115, 22, .2);
  color: var(--orange);
}

.badge-medium {
  background: rgba(251, 191, 36, .2);
  color: var(--yellow);
}

.badge-low {
  background: rgba(59, 130, 246, .2);
  color: var(--blue);
}

.badge-info {
  background: rgba(168, 85, 247, .2);
  color: var(--purple);
}

.badge-category {
  background: var(--bg-hover);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* Method badges */
.method-get {
  background: rgba(34, 211, 238, .15);
  color: var(--cyan);
  padding: .1rem .3rem;
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 700;
}

.method-post {
  background: rgba(34, 197, 94, .15);
  color: var(--green);
  padding: .1rem .3rem;
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 700;
}

.method-put {
  background: rgba(251, 191, 36, .15);
  color: var(--yellow);
  padding: .1rem .3rem;
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 700;
}

.method-delete {
  background: rgba(244, 63, 94, .15);
  color: var(--red);
  padding: .1rem .3rem;
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 700;
}

.method-any {
  background: var(--bg-hover);
  color: var(--text-2);
  padding: .1rem .3rem;
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 700;
}

/* Verdict badge in log */
.verdict-badge {
  display: inline-block;
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.verdict-blocked {
  background: rgba(244, 63, 94, .15);
  color: var(--red);
}

.verdict-allowed {
  background: rgba(34, 197, 94, .15);
  color: var(--green);
}

.verdict-logged {
  background: rgba(245, 158, 11, .15);
  color: var(--amber);
}

.verdict-challenged {
  background: rgba(168, 85, 247, .15);
  color: var(--purple);
}

/* ─── Topology ─── */
.topology-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
}

#topology-svg {
  width: 100%;
  height: 100%;
  max-height: 480px;
}

.device-name {
  fill: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.device-ip {
  fill: #22d3ee;
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.device-status-text {
  fill: #64748b;
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
  dominant-baseline: middle;
}

.sensor-name {
  fill: #22d3ee;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
}

.device-sig-count {
  fill: #22d3ee;
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.packet-label {
  fill: #e2e8f0;
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  text-anchor: middle;
}

.verdict-text {
  fill: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-anchor: middle;
}

/* ─── Log table ─── */
.log-table-wrap {
  overflow: auto;
  flex: 1;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
  font-family: var(--font-mono);
}

.log-table th {
  background: var(--bg-surface);
  color: var(--text-2);
  padding: .4rem .6rem;
  text-align: left;
  position: sticky;
  top: 0;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.log-table td {
  padding: .35rem .6rem;
  border-bottom: 1px solid rgba(26, 48, 80, .5);
  color: var(--text-2);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-table tr.log-blocked td {
  background: rgba(244, 63, 94, .04);
}

.log-table tr.log-allowed td {
  background: rgba(34, 197, 94, .03);
}

.log-table tr.log-logged td {
  background: rgba(245, 158, 11, .04);
}

.log-table tr.log-new {
  animation: flashIn .5s ease;
}

.log-empty-row td {
  text-align: center;
  color: var(--text-3);
  padding: 1.5rem;
}

.log-controls {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-left: auto;
}

/* ─── Add rule form ─── */
.add-rule-section {
  border-top: 1px solid var(--border);
  padding-top: .6rem;
}

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 300;
}

.toast {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  min-width: 220px;
  box-shadow: var(--shadow);
  animation: slideUp .25s ease;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.toast.success {
  border-color: var(--green);
}

.toast.error {
  border-color: var(--red);
}

.toast.warning {
  border-color: var(--amber);
}

.toast.info {
  border-color: var(--cyan);
}

/* ─── Highlight System ─── */
.highlight-target {
  position: relative;
  z-index: 8500;
  animation: highlightPulse 1.5s ease-in-out infinite;
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
}

.highlight-target::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  opacity: 0;
  animation: highlightRing 1.5s ease-in-out infinite;
  pointer-events: none;
}

.highlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 8000;
  transition: opacity .3s;
  pointer-events: none;
}

.site-header:has(.highlight-target) {
  z-index: 8200;
}

@keyframes highlightPulse {

  0%,
  100% {
    outline-color: var(--cyan)
  }

  50% {
    outline-color: var(--purple)
  }
}

@keyframes highlightRing {
  0% {
    opacity: .6;
    transform: scale(1)
  }

  100% {
    opacity: 0;
    transform: scale(1.08)
  }
}

.network-line {
  animation: dashMove 3s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -100;
  }
}

.pulse-dot {
  animation: pulseDot 2s infinite;
  transform-origin: center;
}

@keyframes pulseDot {
  0% {
    r: 3;
    opacity: 1;
  }

  50% {
    r: 4.5;
    opacity: 0.5;
  }

  100% {
    r: 3;
    opacity: 1;
  }
}

/* ─── Theory Sidebar ─── */
.theory-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 440px;
  height: 100vh;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  z-index: 200;
  overflow-y: auto;
  transition: right .3s ease;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .6);
}

.theory-sidebar.open {
  right: 0;
}

.theory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-panel);
  z-index: 1;
}

.theory-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.theory-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theory-section h3 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: .4rem;
}

.theory-section p {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: .4rem;
}

.theory-diagram {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: center;
}

.td-step {
  background: var(--bg-hover);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: .3rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
}

.td-arrow {
  color: var(--text-3);
  font-size: .85rem;
}

.theory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .75rem;
  margin-top: .4rem;
}

.theory-table th,
.theory-table td {
  padding: .3rem .5rem;
  border-bottom: 1px solid var(--border);
}

.theory-table th {
  color: var(--text-3);
  text-transform: uppercase;
  font-size: .65rem;
}

.theory-table td:first-child {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.theory-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 199;
}

.theory-overlay.open {
  display: block;
}

/* ─── Animations ─── */
@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes slideIn {
  from {
    transform: translateX(10px);
    opacity: 0
  }

  to {
    transform: translateX(0);
    opacity: 1
  }
}

@keyframes flashIn {
  0% {
    background: rgba(34, 211, 238, .12)
  }

  100% {
    background: transparent
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: .5rem 1rem;
  font-size: .72rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}