:root {
  --v2-bg0: #05080d;
  --v2-bg1: #070c13;
  --v2-ink: #e9eef3;
  --v2-muted: rgba(233, 238, 243, 0.78);
  --v2-glass: rgba(10, 16, 26, 0.52);
  --v2-stroke: rgba(255, 255, 255, 0.1);
  --v2-mint: #7fffd4;
  --v2-mint2: #5fd0a0;
  --v2-amber: #ffbf6b;
}

.ps-v2 .ps-hero--pulse {
  position: relative;
  overflow: clip;
}

.ps-v2 .v2-heroScene {
  position: absolute;
  inset: -40px -20px -80px -20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.ps-v2 .ps-hero--pulse .ps-container,
.ps-v2 .ps-hero--pulse .container-xxl {
  position: relative;
  z-index: 1;
}

.ps-v2 .v2-layer {
  position: absolute;
  inset: 0;
}

.ps-v2 .v2-space {
  background:
    radial-gradient(circle at 16% 20%, rgba(127, 255, 212, 0.18), transparent 38%),
    radial-gradient(circle at 82% 30%, rgba(255, 191, 107, 0.14), transparent 44%),
    radial-gradient(circle at 55% 85%, rgba(122, 166, 255, 0.10), transparent 46%),
    linear-gradient(180deg, var(--v2-bg0) 0%, var(--v2-bg1) 60%, var(--v2-bg0) 100%);
  transform: scale(1.05);
  filter: saturate(1.05);
  animation: v2-drift 18s ease-in-out infinite;
}

@keyframes v2-drift {
  0% { transform: scale(1.05) translate3d(-0.8%, -0.6%, 0); }
  50% { transform: scale(1.08) translate3d(0.7%, 0.4%, 0); }
  100% { transform: scale(1.05) translate3d(-0.8%, -0.6%, 0); }
}

.ps-v2 .v2-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 55% 50%, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.22) 55%, transparent 76%);
  opacity: 0.55;
  transform: perspective(900px) rotateX(52deg) translate3d(0, 110px, 0);
}

.ps-v2 .v2-tableStage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(8px, 4vw, 54px);
}

.ps-v2 .v2-tablePerspective {
  width: min(720px, 62vw);
  transform: perspective(1000px) rotateY(-14deg) rotateX(8deg);
  transform-origin: 80% 50%;
  filter: drop-shadow(0 26px 70px rgba(0, 0, 0, 0.58));
}

.ps-v2 .v2-tableSurface {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.45));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.ps-v2 .v2-tableHeader,
.ps-v2 .v2-tableRow {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 0;
}

.ps-v2 .v2-th {
  padding: 12px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  white-space: nowrap;
}

.ps-v2 .v2-td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  color: rgba(226, 232, 240, 0.92);
  font-size: 12.5px;
}

.ps-v2 .v2-tableRow:nth-child(even) .v2-td {
  background: rgba(148, 163, 184, 0.04);
}

.ps-v2 .v2-nodeCell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ps-v2 .v2-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.ps-v2 .v2-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.22), transparent 55%);
}

.ps-v2 .v2-dot--mint { box-shadow: inset 0 0 0 2px rgba(127, 255, 212, 0.16); }
.ps-v2 .v2-dot--blue { box-shadow: inset 0 0 0 2px rgba(122, 166, 255, 0.14); }
.ps-v2 .v2-dot--amber { box-shadow: inset 0 0 0 2px rgba(255, 191, 107, 0.14); }

.ps-v2 .v2-nodeName {
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-v2 .v2-nodeSub {
  font-size: 12px;
  opacity: 0.62;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-v2 .v2-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(233, 238, 243, 0.88);
}

.ps-v2 .v2-pill--ok {
  background: rgba(127, 255, 212, 0.14);
  border-color: rgba(127, 255, 212, 0.22);
  color: rgba(200, 255, 235, 0.92);
}

.ps-v2 .v2-pill--warn {
  background: rgba(255, 191, 107, 0.12);
  border-color: rgba(255, 191, 107, 0.22);
  color: rgba(255, 226, 194, 0.92);
}

.ps-v2 .v2-pill--bad {
  background: rgba(255, 66, 56, 0.12);
  border-color: rgba(255, 66, 56, 0.22);
  color: rgba(255, 200, 198, 0.92);
}

.ps-v2 .v2-ring {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(233, 238, 243, 0.42);
  color: rgba(233, 238, 243, 0.86);
  font-weight: 800;
  font-size: 12px;
}

.ps-v2 .v2-ring--warn {
  border-color: rgba(255, 191, 107, 0.48);
  color: rgba(255, 226, 194, 0.92);
}

.ps-v2 .v2-ring--bad {
  border-color: rgba(255, 66, 56, 0.45);
  color: rgba(255, 200, 198, 0.92);
}

.ps-v2 .v2-latencyNow {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
  opacity: 0.82;
  margin-right: 10px;
  font-size: 12px;
}

.ps-v2 .v2-ms {
  font-weight: 800;
}

.ps-v2 .v2-ms--hot { color: var(--v2-amber); }

.ps-v2 .v2-scan {
  position: absolute;
  inset: -30%;
  background: linear-gradient(90deg,
    rgba(127, 255, 212, 0) 0%,
    rgba(127, 255, 212, 0.16) 50%,
    rgba(127, 255, 212, 0) 100%);
  width: 35%;
  transform: skewX(-18deg);
  animation: v2-scan 6.8s ease-in-out infinite;
  opacity: 0.75;
}

@keyframes v2-scan {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  18% { opacity: 0.9; }
  55% { opacity: 0.65; }
  100% { transform: translateX(420%) skewX(-18deg); opacity: 0; }
}

.ps-v2 .v2-filmgrain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
}

.ps-v2 .v2-pulseSvg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  opacity: 0.7;
  pointer-events: none;
}

.ps-v2 .v2-pulseBase {
  fill: none;
  stroke: rgba(233, 238, 243, 0.18);
  stroke-width: 3;
}

.ps-v2 .v2-pulseLive {
  fill: none;
  stroke: url(#v2PulseGrad);
  stroke-width: 5;
  stroke-linecap: round;
  filter: url(#v2Glow);
  stroke-dasharray: 360 1200;
  animation: v2-dash 1.65s linear infinite;
}

@keyframes v2-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1560; }
}

.ps-v2 .v2-pulseDot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(127, 255, 212, 0.95);
  box-shadow: 0 0 16px rgba(127, 255, 212, 0.65);
  pointer-events: none;
  opacity: 0.9;
}

.ps-v2 .v2-tableRow.is-pulsing .v2-td {
  background-color: rgba(127, 255, 212, 0.09) !important;
}

.ps-v2 .v2-fx {
  pointer-events: none;
  opacity: 0.9;
}

.ps-v2 .v2-heroMask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.55) 80%);
  pointer-events: none;
}

@media (max-width: 992px) {
  .ps-v2 .v2-heroScene {
    inset: -40px -40px -100px -40px;
    opacity: 0.7;
  }

  .ps-v2 .v2-tableStage {
    justify-content: center;
    padding-right: 0;
  }

  .ps-v2 .v2-tablePerspective {
    width: min(720px, 92vw);
    transform: perspective(900px) rotateY(-10deg) rotateX(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-v2 .v2-space,
  .ps-v2 .v2-scan,
  .ps-v2 .v2-pulseLive {
    animation: none !important;
  }
}

