/* ============================================================
   ZUMO — homepage personnelle
   Identité : dark premium, verre dépoli subtil, accent teal→violet
   Zéro framework. Zéro template. 100 % fait main.
   ============================================================ */

:root {
  --bg: #05070c;
  --bg-raise: #0a0e18;
  --glass: rgba(148, 163, 184, 0.045);
  --glass-strong: rgba(148, 163, 184, 0.09);
  --stroke: rgba(148, 163, 184, 0.12);
  --stroke-soft: rgba(148, 163, 184, 0.07);
  --text: #e7ecf5;
  --text-dim: #8b96ab;
  --text-faint: #5b6579;
  --accent: #2dd4bf;
  --accent-2: #8b5cf6;
  --grad: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 45%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(45,212,191,.14), rgba(139,92,246,.14));
  --ok: #34d399;
  --ok-dim: rgba(52, 211, 153, 0.12);
  --err: #f87171;
  --err-dim: rgba(248, 113, 113, 0.1);
  --warn: #fbbf24;
  --warn-dim: rgba(251, 191, 36, 0.1);
  --info: #38bdf8;
  --info-dim: rgba(56, 189, 248, 0.1);
  --font-display: "Space Grotesk", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --sp: 22px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(45,212,191,.18), 0 8px 32px rgba(45,212,191,.08);
  --card-pad: 20px;
  --tile-gap: 14px;
  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t-med: 280ms cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
  --bg: #eef1f7;
  --bg-raise: #ffffff;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --stroke: rgba(15, 23, 42, 0.1);
  --stroke-soft: rgba(15, 23, 42, 0.06);
  --text: #101625;
  --text-dim: #4b5568;
  --text-faint: #7b8598;
  --shadow-1: 0 1px 2px rgba(15,23,42,.06), 0 10px 30px rgba(15,23,42,.08);
}

[data-density="compact"] { --sp: 14px; --card-pad: 14px; --tile-gap: 10px; }

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

html { color-scheme: dark; }
[data-theme="light"] html { color-scheme: light; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* aurora — deux halos discrets, statiques (pas d'anim permanente) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(45, 212, 191, 0.075), transparent 60%),
    radial-gradient(1100px 520px at 88% -12%, rgba(139, 92, 246, 0.075), transparent 60%),
    radial-gradient(700px 700px at 50% 118%, rgba(56, 189, 248, 0.05), transparent 60%);
}

::selection { background: rgba(45, 212, 191, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.18); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(148,163,184,.32); }
::-webkit-scrollbar-track { background: transparent; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 15px; height: 15px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ================= TOPBAR ================= */

.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 13px clamp(16px, 4vw, 42px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--stroke-soft);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #04110f;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
  transition: transform var(--t-med);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }

.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; color: var(--text-faint); letter-spacing: 0.14em; text-transform: uppercase; margin-top: -2px; }

.topbar-spacer { flex: 1; }

.global-status {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-dim);
  padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke-soft);
  white-space: nowrap;
}
.global-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.global-status.is-error .dot { background: var(--err); box-shadow: 0 0 10px var(--err); }
.global-status.is-warn .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1.6s infinite; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.chip-btn {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px; border-radius: 11px;
  background: var(--glass); border: 1px solid var(--stroke-soft);
  color: var(--text-dim); font-size: 13px;
  transition: all var(--t-fast);
  position: relative;
}
.chip-btn:hover { background: var(--glass-strong); color: var(--text); border-color: var(--stroke); transform: translateY(-1px); }
.chip-btn kbd {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
  background: rgba(148,163,184,.1); border: 1px solid var(--stroke-soft);
  border-radius: 5px; padding: 1.5px 5.5px;
}

.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  border-radius: 999px; background: var(--err); color: #fff;
  font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
  padding: 0 4px; box-shadow: 0 0 0 3px var(--bg);
}
.bell-badge.hidden { display: none; }
.chip-btn.ringing .icon { animation: ring 0.6s ease; }

/* ================= LAYOUT ================= */

.wrap { max-width: 1380px; margin: 0 auto; padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 42px) 60px; }

.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: clamp(10px, 2vw, 22px) 4px 26px;
  flex-wrap: wrap;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.hero h1 .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-dim); font-size: 14px; margin-top: 7px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-sub .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.hero-uptime {
  text-align: right; font-size: 12.5px; color: var(--text-faint);
  padding: 10px 16px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--stroke-soft);
}
.hero-uptime b { display: block; font-family: var(--font-mono); font-size: 17px; color: var(--text); font-weight: 500; }

.section { margin-top: var(--sp); }

.section-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 0 4px 13px;
}
.section-head h2 {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em;
}
.section-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke), transparent); }
.section-head .count { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

/* ================= STAT TILES ================= */

.tiles {
  display: grid; gap: var(--tile-gap);
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.tile {
  position: relative; overflow: hidden;
  padding: 17px var(--card-pad) 13px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass), rgba(148,163,184,0.015));
  border: 1px solid var(--stroke-soft);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med), border-color var(--t-fast), box-shadow var(--t-med);
}
.tile:hover { transform: translateY(-3px); border-color: var(--stroke); box-shadow: var(--shadow-1), var(--shadow-glow); }
.tile::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.25), transparent);
}

.tile-top { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; letter-spacing: 0.04em; }
.tile-top .icon { color: var(--text-faint); }
.tile-value {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: -0.02em; margin-top: 6px;
  display: flex; align-items: baseline; gap: 5px;
}
.tile-value small { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.tile-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; min-height: 16px; }
.tile canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; opacity: 0.85; }

.bar {
  height: 5px; border-radius: 99px; background: rgba(148,163,184,0.12);
  overflow: hidden; margin-top: 9px;
}
.bar > i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--grad);
  transition: width 700ms cubic-bezier(.22, 1, .36, 1);
}
.bar.warn > i { background: linear-gradient(90deg, #fbbf24, #f97316); }
.bar.err  > i { background: linear-gradient(90deg, #f87171, #ef4444); }

/* ================= MONITOR GRID ================= */

.monitor {
  display: grid; gap: var(--tile-gap);
  grid-template-columns: repeat(12, 1fr);
}
.chart-card { grid-column: span 4; }
.nettrap-card { grid-column: span 12; }

.card {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass), rgba(148,163,184,0.015));
  border: 1px solid var(--stroke-soft);
  box-shadow: var(--shadow-1);
  padding: var(--card-pad);
  transition: border-color var(--t-fast);
}
.card:hover { border-color: var(--stroke); }

.card-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-size: 13px; color: var(--text-dim); font-weight: 500;
}
.card-head .icon { color: var(--text-faint); }
.card-head .val { margin-left: auto; font-family: var(--font-mono); font-size: 16px; color: var(--text); }
.card-head .val small { font-size: 11px; color: var(--text-faint); margin-left: 2px; }

.chart-box { position: relative; height: 118px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }

.core-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px; margin-top: 13px;
}
.core {
  font-size: 10px; color: var(--text-faint); font-family: var(--font-mono);
}
.core .bar { height: 4px; margin-top: 4px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12px; margin-top: 12px; }
.kv dt { color: var(--text-faint); }
.kv dd { text-align: right; font-family: var(--font-mono); color: var(--text-dim); }

/* ================= NETTRAP ================= */

.nettrap-grid {
  display: grid; gap: 18px;
  grid-template-columns: 2fr 1.1fr 1.3fr;
  align-items: start;
}

.nt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.nt-stat {
  padding: 13px 15px; border-radius: var(--r-md);
  background: rgba(148,163,184,0.035); border: 1px solid var(--stroke-soft);
}
.nt-stat b { font-family: var(--font-display); font-size: 24px; font-weight: 700; display: block; }
.nt-stat span { font-size: 11px; color: var(--text-faint); letter-spacing: 0.03em; }
.nt-stat.hot b { background: linear-gradient(135deg, #f87171, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sensors { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.sensor {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  padding: 4.5px 10px; border-radius: 999px;
  border: 1px solid var(--stroke-soft); background: rgba(148,163,184,0.04);
}
.sensor .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.sensor.inactive .dot { background: var(--text-faint); }

.nt-hourly { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin-top: 14px; }
.nt-hourly i {
  flex: 1; min-height: 2px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(248,113,113,.75), rgba(248,113,113,.15));
  transition: height 500ms cubic-bezier(.22, 1, .36, 1);
}

.nt-ips { display: grid; gap: 8px; }
.nt-ip {
  display: flex; align-items: center; gap: 10px; font-size: 12px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: rgba(148,163,184,0.035); border: 1px solid var(--stroke-soft);
}
.nt-ip b { font-family: var(--font-mono); font-weight: 500; }
.nt-ip .n { margin-left: auto; color: var(--err); font-family: var(--font-mono); font-size: 12px; }

.nt-events { display: grid; gap: 6px; max-height: 168px; overflow-y: auto; }
.nt-event {
  display: flex; align-items: center; gap: 9px;
  font-size: 11.5px; color: var(--text-dim);
  padding: 7px 11px; border-radius: var(--r-sm);
  background: rgba(148,163,184,0.03); border: 1px solid var(--stroke-soft);
}
.nt-event time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.nt-event .svc {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--warn); background: var(--warn-dim); padding: 1.5px 7px; border-radius: 5px;
}
.nt-event .ip { font-family: var(--font-mono); }

.nt-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 13px;
  font-size: 12.5px; color: var(--accent); padding: 8px 14px;
  border-radius: 10px; border: 1px solid rgba(45,212,191,.25);
  transition: all var(--t-fast);
}
.nt-more:hover { background: rgba(45,212,191,.09); transform: translateY(-1px); }

/* ================= SERVICES ================= */

.services-grid {
  display: grid; gap: var(--tile-gap);
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
}

.svc {
  position: relative; display: flex; gap: 15px; align-items: flex-start;
  padding: 17px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass), rgba(148,163,184,0.015));
  border: 1px solid var(--stroke-soft);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med), border-color var(--t-fast), box-shadow var(--t-med);
  cursor: pointer;
}
.svc:hover {
  transform: translateY(-3px);
  border-color: rgba(45,212,191,.3);
  box-shadow: var(--shadow-1), 0 12px 40px rgba(45,212,191,.07);
}
.svc:active { transform: translateY(-1px) scale(0.995); }

.svc-icon {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--stroke-soft);
  color: var(--accent);
  transition: all var(--t-med);
}
.svc:hover .svc-icon { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 20px rgba(56,189,248,.25); }

.svc-body { flex: 1; min-width: 0; }
.svc-name-row { display: flex; align-items: center; gap: 8px; }
.svc-name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.svc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 99px;
}
.svc-badge.up { color: var(--ok); background: var(--ok-dim); }
.svc-badge.down { color: var(--err); background: var(--err-dim); }
.svc-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.svc-badge.up .dot { animation: pulse 2.4s infinite; }

.svc-desc { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.svc-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.svc-ping.up { color: var(--ok); }
.svc-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }

.svc-actions { display: flex; gap: 4px; position: absolute; top: 12px; right: 12px; opacity: 0; transition: opacity var(--t-fast); }
.svc:hover .svc-actions, .svc:focus-within .svc-actions { opacity: 1; }
.svc-btn {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: var(--text-faint); background: rgba(148,163,184,.06); border: 1px solid var(--stroke-soft);
  transition: all var(--t-fast);
}
.svc-btn:hover { color: var(--text); background: var(--glass-strong); }
.svc-btn.pinned { color: var(--accent-2); opacity: 1; }
.svc.pinned-out .svc-btn.pin { opacity: 1; color: var(--accent-2); }

.svc.offline { filter: saturate(0.55); }
.svc.offline .svc-icon { color: var(--text-faint); background: rgba(148,163,184,.05); }

/* ================= PALETTE (Ctrl+K) ================= */

.palette-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 6, 12, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(40px, 14vh, 140px) 18px 18px;
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast);
}
.palette-overlay.open { opacity: 1; pointer-events: auto; }

.palette {
  width: min(640px, 100%);
  border-radius: 18px; overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform: translateY(-8px) scale(0.985); transition: transform var(--t-med);
}
.palette-overlay.open .palette { transform: none; }

.palette-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--stroke-soft); }
.palette-input-row .icon { color: var(--accent); }
.palette-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 16px; font-family: var(--font-body); }
.palette-input::placeholder { color: var(--text-faint); }

.palette-list { max-height: min(390px, 52vh); overflow-y: auto; padding: 8px; }
.palette-group { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; padding: 10px 12px 5px; }

.palette-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px; cursor: pointer;
  font-size: 13.5px;
}
.palette-item .icon { color: var(--text-dim); }
.palette-item .desc { color: var(--text-faint); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.palette-item kbd { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.palette-item.selected { background: var(--grad-soft); }
.palette-item.selected .icon { color: var(--accent); }
.palette-item.hover:not(.selected) { background: rgba(148,163,184,.06); }

.palette-empty { padding: 28px; text-align: center; color: var(--text-faint); font-size: 13px; }
.palette-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--stroke-soft); font-size: 11px; color: var(--text-faint); }
.palette-foot kbd { font-family: var(--font-mono); background: rgba(148,163,184,.08); border: 1px solid var(--stroke-soft); border-radius: 4px; padding: 0 5px; }

/* ================= NOTIFICATIONS ================= */

.notif-panel {
  position: fixed; top: 64px; right: clamp(12px, 3vw, 38px); z-index: 90;
  width: min(390px, calc(100vw - 24px));
  border-radius: 18px; overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: all var(--t-med);
}
.notif-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.notif-head { display: flex; align-items: center; padding: 14px 17px; border-bottom: 1px solid var(--stroke-soft); font-weight: 600; font-size: 13.5px; }
.notif-head button { margin-left: auto; font-size: 11.5px; color: var(--accent); font-weight: 500; }

.notif-list { max-height: min(430px, 60vh); overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 13px 17px; border-bottom: 1px solid var(--stroke-soft); }
.notif-item:last-child { border-bottom: none; }
.notif-item .icon { margin-top: 2px; }
.notif-item.error .icon { color: var(--err); }
.notif-item.warning .icon { color: var(--warn); }
.notif-item.info .icon { color: var(--info); }
.notif-item b { font-size: 13px; font-weight: 600; display: block; }
.notif-item p { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.notif-item time { font-size: 10.5px; color: var(--text-faint); font-family: var(--font-mono); }
.notif-empty { padding: 34px 20px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* ================= FOOTER / MISC ================= */

.footer {
  margin-top: 44px; padding-top: 18px;
  border-top: 1px solid var(--stroke-soft);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-faint);
}
.footer .z { font-family: var(--font-display); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer .right { margin-left: auto; font-family: var(--font-mono); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(14px);
  background: var(--bg-raise); border: 1px solid var(--stroke);
  padding: 11px 20px; border-radius: 12px; font-size: 13px;
  box-shadow: var(--shadow-1); z-index: 120;
  opacity: 0; pointer-events: none; transition: all var(--t-med);
}
.toast.show { opacity: 1; transform: translateX(-50%); }

.skeleton {
  position: relative; overflow: hidden; background: rgba(148,163,184,.06); border-radius: 8px;
  min-height: 14px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.12), transparent);
  animation: shimmer 1.4s infinite;
}

.unavail { color: var(--text-faint); font-style: italic; }

/* ================= ANIMATIONS ================= */

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes ring { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rise-in { animation: rise 0.55s cubic-bezier(.22, 1, .36, 1) both; }
.rise-in:nth-child(2) { animation-delay: 60ms; }
.rise-in:nth-child(3) { animation-delay: 120ms; }
.rise-in:nth-child(4) { animation-delay: 180ms; }
.rise-in:nth-child(5) { animation-delay: 240ms; }

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

/* ================= RESPONSIVE ================= */

@media (max-width: 1180px) {
  .chart-card { grid-column: span 6; }
  .nettrap-grid { grid-template-columns: 1fr 1fr; }
  .nt-ips { grid-column: span 2; }
}
@media (max-width: 900px) {
  .monitor { grid-template-columns: 1fr 1fr; }
  .chart-card { grid-column: span 1; }
  .global-status .label { display: none; }
}
@media (max-width: 760px) {
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .tile { min-width: 178px; scroll-snap-align: start; }
  .monitor { grid-template-columns: 1fr; }
  .nettrap-grid { grid-template-columns: 1fr; }
  .nt-ips { grid-column: auto; }
  .hero-uptime { display: none; }
  .search-label { display: none; }
}
@media (max-width: 560px) {
  .topbar { gap: 8px; padding: 11px 14px; }
  .brand-sub { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .palette-overlay { padding: 0; align-items: stretch; }
  .palette { width: 100%; height: 100%; max-height: 100dvh; border-radius: 0; }
  .palette-list { max-height: none; flex: 1; }
  .palette { display: flex; flex-direction: column; }
  .notif-panel { top: 58px; right: 10px; left: 10px; width: auto; }
  .svc-actions { opacity: 1; }
}
