:root {
  --bg: #050812;
  --panel-strong: rgba(9, 16, 34, 0.94);
  --line: rgba(117, 188, 255, 0.16);
  --text: #f4f8ff;
  --muted: #95a8d4;
  --accent: #8fd0ff;
  --safe: #7ef3ca;
  --warn: #ffcb72;
  --hot: #ff7a94;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top, rgba(95, 175, 255, 0.18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 104, 130, 0.11), transparent 16%),
    linear-gradient(145deg, #02050b 0%, #081122 44%, #040814 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
a {
  font: inherit;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-left {
  top: -8rem;
  left: -10rem;
  background: rgba(70, 116, 255, 0.2);
}

.glow-right {
  right: -12rem;
  top: 16rem;
  background: rgba(50, 122, 255, 0.14);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  backdrop-filter: blur(28px);
  background: rgba(4, 9, 20, 0.72);
  border-bottom: 1px solid rgba(163, 196, 255, 0.08);
}

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

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(129, 176, 255, 0.45), rgba(33, 72, 163, 0.2)),
    rgba(7, 18, 42, 0.8);
  border: 1px solid rgba(172, 207, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 40px rgba(18, 54, 141, 0.3);
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand h1,
.hero h2,
.panel h3,
.matrix-card strong,
.signal-card strong,
.stats-strip strong {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.03em;
}

.brand h1 {
  font-size: 1.05rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ab7ef;
}

.nav,
.topbar-actions {
  display: flex;
  gap: 0.8rem;
}

.nav a,
.tab-button {
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: none;
  transition: color 180ms ease;
  cursor: pointer;
}

.nav a:hover,
.tab-button:hover,
.tab-button.active {
  color: var(--text);
}

.page-shell {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.hero,
.overview-grid,
.quickstart-grid,
.servers-section,
.control-grid,
.automation-grid {
  display: grid;
  gap: 1.35rem;
}

.hero {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  min-height: calc(100vh - 8rem);
}

.quickstart-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.2rem;
}

.hero-copy {
  padding: 2rem 0 2rem 0.8rem;
}

.hero h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
  margin: 1.4rem 0 2rem;
}

.hero-actions,
.stats-strip,
.chip-grid,
.meter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.chip,
.toggle-row {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, #f2f7ff 0%, #9fd6ff 22%, #58a9ff 58%, #b9edff 100%);
  color: #021121;
  box-shadow: 0 22px 44px rgba(72, 154, 255, 0.34);
  font-weight: 700;
}

.secondary-button,
.ghost-button,
.chip,
.toggle-row,
.panel,
.signal-card {
  background: rgba(9, 19, 42, 0.68);
  border: 1px solid var(--line);
  color: var(--text);
}

.secondary-button,
.ghost-button {
  backdrop-filter: blur(16px);
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.chip:hover,
.toggle-row:hover {
  transform: translateY(-2px);
}

.toggle-row.locked,
.toggle-row:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.button-link,
.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stats-strip article {
  min-width: 9rem;
  padding: 1.05rem 1.15rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(10, 18, 40, 0.6);
  border: 1px solid rgba(140, 177, 255, 0.1);
}

.stats-strip strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.stats-strip span,
.server-summary,
.meter-copy p,
.event-item p,
.matrix-card p,
.terminal p,
.user-card p,
.guild-meta p,
.guild-stats span,
.guild-perms span {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42rem;
}

.logo-card {
  position: relative;
  width: min(35rem, 92%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at top, rgba(130, 188, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(200, 225, 255, 0.08), rgba(42, 78, 161, 0.03)),
    rgba(4, 10, 26, 0.56);
  border: 1px solid rgba(164, 204, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 34px 100px rgba(22, 53, 141, 0.22);
  overflow: hidden;
}

.hero-logo {
  width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(116, 170, 255, 0.5)) drop-shadow(0 18px 52px rgba(0, 0, 0, 0.42));
  animation: floatLogo 5.4s ease-in-out infinite;
}

.logo-reflection,
.logo-orbit {
  position: absolute;
  pointer-events: none;
}

.logo-reflection {
  inset: 60% 12% -20% 12%;
  background: radial-gradient(circle, rgba(119, 174, 255, 0.25), transparent 58%);
  filter: blur(36px);
}

.logo-orbit {
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(135, 180, 255, 0.16);
  box-shadow: inset 0 0 60px rgba(97, 140, 255, 0.08), 0 0 90px rgba(72, 122, 255, 0.18);
  animation: rotateOrbit 20s linear infinite;
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.logo-orbit::before {
  inset: 8%;
  border: 1px dashed rgba(145, 191, 255, 0.18);
}

.logo-orbit::after {
  top: 6%;
  right: 16%;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, #d8edff, #73abff);
  box-shadow: 0 0 22px rgba(120, 170, 255, 0.75);
}

.signal-card {
  position: absolute;
  min-width: 13rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.signal-card strong {
  font-size: 1.2rem;
}

.signal-top {
  top: 12%;
  right: -2%;
}

.signal-bottom {
  bottom: 14%;
  left: 2%;
}

.overview-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 1rem;
}

.servers-section,
.control-grid,
.automation-grid {
  margin-top: 1.35rem;
}

.control-grid,
.automation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.workspace-intro {
  background:
    radial-gradient(circle at top left, rgba(98, 165, 255, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 121, 147, 0.08), transparent 22%),
    rgba(8, 16, 36, 0.84);
}

.panel {
  position: relative;
  padding: 1.45rem;
  border-radius: 1.45rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quickstart-card {
  min-height: 12.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(9, 19, 42, 0.72);
}

.quickstart-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.quickstart-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.workspace-copy p,
.workspace-sidecard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.workspace-sidecard {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.workspace-sidecard strong {
  display: block;
  margin-bottom: 0.4rem;
}

.wide {
  grid-column: span 2;
}

.panel-highlight {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 115, 149, 0.12), transparent 18%),
    radial-gradient(circle at 72% 10%, rgba(95, 148, 255, 0.16), transparent 22%),
    var(--panel-strong);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(162, 199, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.status-pill.online,
.status-pill.pulse {
  color: var(--safe);
}

.panel-badge.alert {
  color: var(--hot);
}

.panel-badge.success {
  color: var(--safe);
}

.threat-meter {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.4rem;
  align-items: center;
}

.meter-ring {
  width: 16rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(8, 16, 36, 0.9) 46%, transparent 47%),
    conic-gradient(from 210deg, #9fdcff, #5ca8ff, #ff89a1, #9fdcff);
}

.meter-ring-inner {
  width: 11.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at top, rgba(113, 160, 255, 0.1), rgba(5, 13, 30, 0.96));
  border: 1px solid rgba(169, 206, 255, 0.14);
}

.meter-ring-inner span {
  font-family: "Orbitron", sans-serif;
  font-size: 3.5rem;
}

.meter-tags span,
.chip,
.guild-stats span,
.guild-perms span {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
}

.event-list,
.toggle-list,
.terminal,
.whitelist-list {
  display: grid;
  gap: 0.9rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(157, 198, 255, 0.08);
}

.event-item time {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.event-dot {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--hot);
}

.event-dot.safe {
  background: var(--safe);
}

.event-dot.warn {
  background: var(--warn);
}

.server-stage h3 {
  margin: 0;
  font-size: 1.3rem;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.guild-card {
  position: relative;
  padding: 1rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(112, 170, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 50%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.1);
  overflow: hidden;
}

.guild-card.manageable::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(126, 243, 202, 0.9), transparent);
}

.guild-card.selected {
  border-color: rgba(145, 197, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(145, 197, 255, 0.2), 0 24px 60px rgba(37, 86, 187, 0.22);
}

.guild-card-empty {
  min-height: 12rem;
  display: grid;
  place-items: center;
}

.guild-card-head,
.user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.guild-card-head {
  margin-bottom: 1rem;
}

.guild-icon,
.guild-icon-fallback {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(162, 199, 255, 0.12);
}

.guild-icon-fallback,
.avatar {
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
}

.guild-stats,
.guild-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.guild-stats {
  margin-bottom: 0.95rem;
}

.guild-perms span.accent {
  color: var(--safe);
}

.user-card {
  justify-content: space-between;
}

.user-card-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.remove-button {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 123, 137, 0.22);
  background: rgba(255, 123, 137, 0.08);
  color: #ffd9de;
  cursor: pointer;
}

.remove-button:hover {
  transform: translateY(-1px);
}

.toggle-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  text-align: left;
}

.toggle-indicator {
  width: 3.2rem;
  height: 1.8rem;
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.toggle-indicator::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.24rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #dfeaff;
  transition: transform 180ms ease;
}

.toggle-row.active .toggle-indicator {
  background: linear-gradient(135deg, #79b2ff, #4c8cff);
}

.toggle-row.active .toggle-indicator::after {
  transform: translateX(1.36rem);
}

.toggle-row.locked .toggle-indicator,
.toggle-row:disabled .toggle-indicator {
  background: rgba(255, 255, 255, 0.05);
}

.slider-panel {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.network-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 148, 0.12), transparent 18%),
    radial-gradient(circle at bottom left, rgba(111, 174, 255, 0.12), transparent 24%),
    rgba(8, 16, 36, 0.84);
}

.network-stack {
  display: grid;
  gap: 0.9rem;
}

.network-card,
.network-callout,
.inline-note {
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.network-card strong,
.network-callout strong,
.inline-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.network-card p,
.network-callout p,
.inline-note p,
.warning-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.warning-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.slider-group {
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

input[type="range"] {
  appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(73, 129, 255, 0.85), rgba(180, 215, 255, 0.45));
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #edf5ff;
  border: 3px solid #6ba4ff;
}

.chip.active {
  background: linear-gradient(135deg, rgba(161, 199, 255, 0.36), rgba(74, 136, 255, 0.24));
}

.matrix-card,
.user-card,
.console-form,
.terminal {
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.terminal-panel {
  background:
    radial-gradient(circle at top left, rgba(93, 159, 255, 0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(255, 120, 150, 0.08), transparent 20%),
    rgba(8, 16, 36, 0.82);
}

.server-summary {
  max-width: 60rem;
  line-height: 1.7;
}

.whitelist-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ec0ff, #3b79ef);
  color: #021024;
  font-weight: 800;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-image {
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.console-form {
  display: grid;
  gap: 0.9rem;
}

.console-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.console-form input,
.console-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  border-radius: 0.95rem;
  border: 1px solid rgba(162, 199, 255, 0.12);
  background: rgba(4, 11, 26, 0.8);
}

.full {
  width: 100%;
  justify-content: center;
}

.terminal {
  min-height: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal span {
  color: var(--accent);
}

.pulse {
  animation: pulseBadge 1.8s ease-in-out infinite;
}

.compact-hero {
  min-height: auto;
  grid-template-columns: 1.15fr 0.85fr;
}

.watchlist-shell-page {
  padding-top: 1.5rem;
}

.watchlist-side-stat {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 0.85rem;
}

.watchlist-side-stat strong {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.9;
}

.watchlist-side-stat span,
.watchlist-side-stat p,
.watchlist-note p,
.watchlist-cta p {
  color: var(--muted);
}

.watchlist-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.watchlist-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.watchlist-tab {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 199, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.watchlist-tab:hover,
.watchlist-tab.active {
  color: var(--text);
  border-color: rgba(146, 197, 255, 0.3);
  background: linear-gradient(135deg, rgba(161, 199, 255, 0.2), rgba(74, 136, 255, 0.14));
}

.watchlist-tab-panel {
  display: none;
}

.watchlist-tab-panel.active {
  display: block;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.nuker-card {
  padding: 1.1rem;
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%),
    rgba(8, 17, 38, 0.78);
  border: 1px solid rgba(142, 186, 255, 0.12);
  box-shadow: var(--shadow);
}

.nuker-card-empty {
  display: grid;
  place-items: center;
  min-height: 11rem;
  color: var(--muted);
}

.nuker-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.nuker-avatar,
.nuker-avatar-fallback {
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(163, 204, 255, 0.18);
  background: rgba(12, 24, 52, 0.84);
}

.nuker-avatar {
  object-fit: cover;
}

.nuker-avatar-fallback {
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
}

.nuker-meta strong,
.watchlist-cta h3,
.watchlist-note strong {
  display: block;
  margin-bottom: 0.25rem;
}

.nuker-meta p {
  margin: 0;
  color: var(--muted);
}

.impact-grid,
.stats-grid,
.proof-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.impact-grid,
.stats-grid {
  grid-template-columns: 1.18fr 0.82fr;
}

.impact-panel,
.heat-panel,
.stats-panel,
.heatmap-panel {
  background:
    radial-gradient(circle at top right, rgba(118, 174, 255, 0.12), transparent 20%),
    radial-gradient(circle at bottom left, rgba(255, 122, 148, 0.08), transparent 24%),
    rgba(8, 16, 36, 0.84);
}

.impact-stats,
.proof-grid,
.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.impact-stat,
.proof-card,
.stats-card {
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.1);
}

.impact-stat span,
.stats-card span,
.proof-card p,
.heatmap-caption,
.stats-subline,
.event-meta,
.chart-empty {
  color: var(--muted);
}

.impact-stat strong,
.stats-card strong {
  display: block;
  margin: 0.45rem 0 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.impact-stat small {
  display: block;
  color: #b5c8ed;
  line-height: 1.6;
}

.micro-chart {
  margin-top: 1rem;
  min-height: 13rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  align-items: end;
  gap: 0.35rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.micro-bar-wrap {
  height: 100%;
  display: flex;
  align-items: end;
}

.micro-bar {
  width: 100%;
  min-height: 0.35rem;
  border-radius: 999px 999px 0.5rem 0.5rem;
  background: linear-gradient(180deg, rgba(180, 226, 255, 0.95), rgba(64, 131, 255, 0.78));
  box-shadow: 0 0 18px rgba(84, 145, 255, 0.28);
}

.mini-heatmap {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.35rem;
}

.mini-heat-cell {
  aspect-ratio: 1;
  border-radius: 0.4rem;
  background: linear-gradient(180deg, rgba(115, 185, 255, 0.95), rgba(255, 123, 147, 0.8));
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.chart-empty {
  display: grid;
  place-items: center;
  min-height: 8rem;
  text-align: center;
}

.special-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.watchlist-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.stats-hero {
  min-height: auto;
  grid-template-columns: 1fr;
  align-items: start;
}

.stats-hero h2 {
  max-width: 12ch;
}

.stats-subline {
  max-width: 48rem;
  margin: 0 0 1.6rem;
  line-height: 1.8;
}

.stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.stats-card strong {
  margin-bottom: 0.2rem;
}

.timeline-shell {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.timeline-svg {
  width: 100%;
  height: 18rem;
  display: block;
}

.timeline-area {
  fill: rgba(101, 172, 255, 0.16);
}

.timeline-line {
  fill: none;
  stroke: #8fd0ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(104, 169, 255, 0.35));
}

.timeline-dot {
  fill: #eef7ff;
  stroke: #66adff;
  stroke-width: 2;
}

.timeline-grid line {
  stroke: rgba(162, 199, 255, 0.08);
  stroke-width: 1;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.heatmap-shell {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 199, 255, 0.08);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.heatmap-days {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 0.35rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.heatmap-hours {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.heatmap-matrix {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.35rem;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 0.38rem;
  background: linear-gradient(180deg, rgba(115, 185, 255, 0.95), rgba(255, 123, 147, 0.84));
  border: 1px solid rgba(162, 199, 255, 0.07);
}

.heatmap-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend-scale {
  display: flex;
  gap: 0.35rem;
}

.legend-scale span {
  width: 1.35rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(115, 185, 255, 0.95), rgba(255, 123, 147, 0.84));
}

.legend-scale span:nth-child(1) { opacity: 0.12; }
.legend-scale span:nth-child(2) { opacity: 0.3; }
.legend-scale span:nth-child(3) { opacity: 0.55; }
.legend-scale span:nth-child(4) { opacity: 0.8; }
.legend-scale span:nth-child(5) { opacity: 1; }

.recent-events {
  display: grid;
  gap: 0.85rem;
}

.recent-event {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(162, 199, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.recent-event strong {
  display: block;
  margin-bottom: 0.3rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.84rem;
}

@media (max-width: 1080px) {
  .impact-grid,
  .stats-grid,
  .overview-grid,
  .hero,
  .compact-hero,
  .watchlist-layout,
  .workspace-grid,
  .whitelist-shell,
  .special-links {
    grid-template-columns: 1fr;
  }

  .impact-stats,
  .proof-grid,
  .stats-summary,
  .quickstart-grid,
  .control-grid,
  .automation-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .nav,
  .topbar-actions {
    flex-wrap: wrap;
  }

  .page-shell {
    width: min(100% - 1rem, 1440px);
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h2 {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .stats-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modules-grid,
  .watchlist-grid {
    grid-template-columns: 1fr;
  }

  .heatmap-grid {
    grid-template-columns: 1fr;
  }

  .heatmap-days {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto;
    padding-top: 0;
  }
}

.nuker-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(162, 199, 255, 0.18);
}

.nuker-status.resolved {
  color: var(--safe);
  background: rgba(30, 94, 74, 0.18);
}

.nuker-status.unknown {
  color: var(--warn);
  background: rgba(114, 84, 26, 0.18);
}

.nuker-card-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(152, 191, 255, 0.1);
  display: grid;
  gap: 0.7rem;
}

.nuker-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nuker-detail-row span {
  color: var(--muted);
}

.nuker-detail-row code {
  padding: 0.32rem 0.52rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.nuker-remove {
  width: 100%;
  margin-top: 1rem;
}

.watchlist-note,
.watchlist-cta {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(9, 19, 42, 0.58);
  border: 1px solid rgba(140, 177, 255, 0.1);
}

.watchlist-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 243, 202, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(126, 243, 202, 0); }
}

@media (max-width: 1100px) {
  .hero,
  .overview-grid,
  .quickstart-grid,
  .servers-section,
  .control-grid,
  .automation-grid,
  .watchlist-layout,
  .whitelist-shell,
  .workspace-grid,
  .modules-grid,
  .threat-meter {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: span 1;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h2 {
    max-width: 100%;
  }

  .signal-top,
  .signal-bottom {
    position: relative;
    inset: auto;
    width: min(22rem, 92%);
  }

  .watchlist-grid,
  .compact-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .topbar-actions,
  .nav {
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .page-shell {
    width: min(100% - 1rem, 1380px);
  }

  .hero h2 {
    font-size: 2.6rem;
  }

  .logo-card {
    border-radius: 2rem;
  }

  .panel {
    padding: 1rem;
    border-radius: 1.3rem;
  }

  .watchlist-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .nuker-card-head {
    grid-template-columns: auto 1fr;
  }

  .nuker-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
