:root {
  --pv-id-bg: linear-gradient(180deg, rgba(16, 21, 31, 0.96) 0%, rgba(12, 17, 26, 0.98) 100%);
  --pv-id-panel: rgba(20, 25, 36, 0.76);
  --pv-id-panel-2: rgba(16, 20, 30, 0.86);
  --pv-id-border: rgba(255, 255, 255, 0.08);
  --pv-id-border-soft: rgba(255, 255, 255, 0.06);
  --pv-id-text: rgba(255, 255, 255, 0.94);
  --pv-id-text-soft: rgba(255, 255, 255, 0.78);

  --pv-id-accent: #ff8a00;
  --pv-id-accent-2: #ffb347;
  --pv-id-accent-3: #ff7a18;

  --pv-id-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  --pv-id-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.24);
  --pv-id-glow:
    0 0 0 1px rgba(255, 138, 0, 0.18),
    0 0 24px rgba(255, 138, 0, 0.14),
    0 0 54px rgba(255, 138, 0, 0.12);
}


.media-panel--diagram {
  position: relative;
  min-height: 780px;
  padding: 0;
  overflow: hidden;
}

.media-panel--diagram > img {
  display: block;
  width: 100%;
  height: auto;
}

#infra-diagram {
  width: 100%;
  height: 100%;
  min-height: 780px;
}

.pv-infra-diagram-fallback {
  min-height: 780px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 30px;
  color: rgba(255,255,255,0.82);
  background: rgba(16, 20, 29, 0.92);
  border: 1px solid rgba(255,138,0,0.12);
}


.pv-infra-diagram {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 780px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 138, 0, 0.08) 0%, rgba(255, 138, 0, 0.02) 22%, rgba(0, 0, 0, 0) 50%),
    radial-gradient(circle at 50% 68%, rgba(255, 138, 0, 0.06) 0%, rgba(255, 138, 0, 0.018) 18%, rgba(0, 0, 0, 0) 48%),
    var(--pv-id-bg);
  border: 1px solid rgba(255, 138, 0, 0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), var(--pv-id-shadow);
  isolation: isolate;
}

.pv-infra-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 22%),
    linear-gradient(90deg, rgba(255,138,0,0.06), rgba(255,138,0,0) 20%, rgba(255,138,0,0) 80%, rgba(255,138,0,0.05));
  pointer-events: none;
  z-index: 0;
}

.pv-infra-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.84) 46%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.84) 46%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.pv-infra-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}


.pv-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.pv-line-soft {
  stroke: rgba(255, 179, 71, 0.72);
  stroke-width: 2.25;
  filter: url(#pvInfraGlow);
}

.pv-line-core {
  stroke: rgba(255, 138, 0, 0.96);
  stroke-width: 2.8;
  filter: url(#pvInfraGlow);
}

.pv-dot {
  filter: url(#pvInfraGlow);
}

.pv-dot-soft {
  fill: rgba(255, 187, 71, 0.95);
}

.pv-dot-core {
  fill: rgba(255, 138, 0, 1);
}


.pv-node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  color: var(--pv-id-text);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  padding: 0 10px;
  background:
    linear-gradient(180deg, rgba(30, 35, 47, 0.48), rgba(16, 21, 31, 0.78)),
    rgba(18, 22, 31, 0.78);
  border: 1px solid var(--pv-id-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -24px 48px rgba(0,0,0,0.10),
    var(--pv-id-shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  box-sizing: border-box;
}

.pv-node span {
  display: block;
}

.pv-node:hover {
  border-color: rgba(255, 138, 0, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(255,138,0,0.12),
    0 0 18px rgba(255,138,0,0.10),
    var(--pv-id-shadow-soft);
}

.pv-node-top {
  width: 40%;
  height: 8.4%;
  left: 30%;
  top: 6%;
  border-radius: 24px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pv-node-wide {
  width: 62%;
  left: 19%;
  border-radius: 28px;
}

.pv-node-interface {
  top: 16%;
  height: 12.8%;
  font-size: 1.14rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pv-node-core {
  width: 55%;
  left: 22.5%;
  top: 36%;
  height: 12.8%;
  border-radius: 28px;
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  border-color: rgba(255, 138, 0, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -32px 46px rgba(255, 122, 24, 0.06),
    0 0 0 1px rgba(255, 138, 0, 0.14),
    0 0 26px rgba(255, 138, 0, 0.15),
    0 0 60px rgba(255, 138, 0, 0.10),
    var(--pv-id-shadow-soft);
}

.pv-node-core::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.18);
  pointer-events: none;
}

.pv-node-mid {
  width: 30.5%;
  height: 10.8%;
  top: 57%;
  border-radius: 22px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.06;
  padding: 0 12px;
}

.pv-node-quote { left: 3%; }
.pv-node-ledger { left: 34.75%; }
.pv-node-watchers { right: 3%; }

.pv-node-networks {
  top: 76.5%;
  height: 8%;
  width: 48%;
  left: 26%;
  border-radius: 22px;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pv-node-chain {
  width: 15.6%;
  height: 7%;
  top: 88.6%;
  border-radius: 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  padding: 0 8px;
}

.pv-node-bsc  { left: 1.5%; }
.pv-node-eth  { left: 22.75%; }
.pv-node-tron { left: 42.2%; }
.pv-node-base { left: 62.25%; }
.pv-node-arb  { left: 82.9%; }


@media (max-width: 1360px) {
  .media-panel--diagram,
  #infra-diagram,
  .pv-infra-diagram {
    min-height: 760px;
  }

  .pv-node-top {
    font-size: 0.88rem;
  }

  .pv-node-interface {
    font-size: 1.06rem;
  }

  .pv-node-core {
    font-size: 1.08rem;
  }

  .pv-node-mid {
    font-size: 0.8rem;
  }

  .pv-node-networks {
    font-size: 0.9rem;
  }

  .pv-node-chain {
    font-size: 0.76rem;
  }
}


@media (max-width: 1200px) {
  .media-panel--diagram,
  #infra-diagram,
  .pv-infra-diagram {
    min-height: 720px;
  }

  .pv-infra-diagram {
    border-radius: 28px;
  }

  .pv-node-top {
    width: 42%;
    left: 29%;
    font-size: 0.82rem;
  }

  .pv-node-wide {
    width: 66%;
    left: 17%;
  }

  .pv-node-interface {
    font-size: 0.98rem;
  }

  .pv-node-core {
    width: 58%;
    left: 21%;
    font-size: 1rem;
  }

  .pv-node-mid {
    width: 31%;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    padding: 0 10px;
  }

  .pv-node-quote { left: 2%; }
  .pv-node-ledger { left: 34.5%; }
  .pv-node-watchers { right: 2%; }

  .pv-node-networks {
    width: 52%;
    left: 24%;
    font-size: 0.84rem;
  }

  .pv-node-chain {
    width: 16%;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .pv-node-bsc  { left: 1%; }
  .pv-node-eth  { left: 21.5%; }
  .pv-node-tron { left: 41.5%; }
  .pv-node-base { left: 61.5%; }
  .pv-node-arb  { left: 81.5%; }
}


@media (max-width: 860px) {
  .media-panel--diagram,
  #infra-diagram,
  .pv-infra-diagram {
    min-height: 680px;
  }

  .pv-infra-diagram {
    border-radius: 24px;
  }

  .pv-node-top {
    width: 48%;
    left: 26%;
    height: 8%;
    font-size: 0.76rem;
  }

  .pv-node-wide {
    width: 70%;
    left: 15%;
  }

  .pv-node-interface {
    height: 12.2%;
    font-size: 0.92rem;
  }

  .pv-node-core {
    width: 62%;
    left: 19%;
    height: 12.2%;
    font-size: 0.94rem;
  }

  .pv-node-mid {
    width: 31.2%;
    height: 10.2%;
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    line-height: 1.03;
    padding: 0 8px;
  }

  .pv-node-quote { left: 2%; }
  .pv-node-ledger { left: 34.4%; }
  .pv-node-watchers { right: 2%; }

  .pv-node-networks {
    width: 52%;
    left: 24%;
    height: 7.7%;
    font-size: 0.8rem;
  }

  .pv-node-chain {
    width: 16.2%;
    height: 6.8%;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    padding: 0 6px;
  }

  .pv-node-bsc  { left: 1%; }
  .pv-node-eth  { left: 21.8%; }
  .pv-node-tron { left: 41.8%; }
  .pv-node-base { left: 61.8%; }
  .pv-node-arb  { left: 81.8%; }
}


@media (max-width: 640px) {
  .media-panel--diagram,
  #infra-diagram,
  .pv-infra-diagram {
    min-height: 1080px;
  }

  .pv-infra-diagram {
    border-radius: 22px;
  }

  .pv-infra-grid {
    background-size: 28px 28px;
    opacity: 0.25;
  }

  .pv-node {
    letter-spacing: 0.02em;
  }

  .pv-node-top {
    width: 56%;
    left: 22%;
    top: 4.2%;
    height: 6.2%;
    border-radius: 18px;
    font-size: 0.74rem;
  }

  .pv-node-interface {
    width: 76%;
    left: 12%;
    top: 12.8%;
    height: 10.2%;
    border-radius: 20px;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
  }

  .pv-node-core,
  .pv-node-engine {
    width: 72%;
    left: 14%;
    top: 28%;
    height: 10.2%;
    border-radius: 22px;
    font-size: 0.94rem;
    letter-spacing: 0.04em;
  }

  .pv-node-mid {
    width: 74%;
    left: 13% !important;
    height: 8.4%;
    border-radius: 18px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    line-height: 1.04;
    padding: 0 12px;
  }

  .pv-node-quote { top: 45.5%; }
  .pv-node-ledger { top: 56.8%; }
  .pv-node-watchers { top: 68.1%; }

  .pv-node-networks {
    width: 78%;
    left: 11%;
    top: 80.2%;
    height: 6.8%;
    border-radius: 18px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  .pv-node-chain {
    width: 28%;
    height: 6.1%;
    border-radius: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    top: auto;
    padding: 0 8px;
  }

  .pv-node-bsc  { left: 8%;  top: 89.8%; }
  .pv-node-eth  { left: 36%; top: 89.8%; }
  .pv-node-tron { left: 64%; top: 89.8%; }
  .pv-node-base { left: 22%; top: 97.4%; }
  .pv-node-arb  { left: 50%; top: 97.4%; }

  .pv-infra-lines {
    display: none;
  }

  .pv-infra-diagram::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
      linear-gradient(rgba(255,138,0,0.12), rgba(255,138,0,0.12)) 50% 10.4% / 2px 2.1% no-repeat,
      linear-gradient(rgba(255,138,0,0.12), rgba(255,138,0,0.12)) 50% 22.8% / 2px 4.6% no-repeat,
      linear-gradient(rgba(255,138,0,0.12), rgba(255,138,0,0.12)) 50% 38.2% / 2px 6.1% no-repeat,
      linear-gradient(rgba(255,138,0,0.12), rgba(255,138,0,0.12)) 50% 54.1% / 2px 2.9% no-repeat,
      linear-gradient(rgba(255,138,0,0.12), rgba(255,138,0,0.12)) 50% 65.3% / 2px 2.9% no-repeat,
      linear-gradient(rgba(255,138,0,0.12), rgba(255,138,0,0.12)) 50% 76.8% / 2px 2.8% no-repeat;
  }
}


@media (max-width: 420px) {
  .media-panel--diagram,
  #infra-diagram,
  .pv-infra-diagram {
    min-height: 1040px;
  }

  .pv-node-top {
    font-size: 0.68rem;
  }

  .pv-node-interface {
    font-size: 0.84rem;
  }

  .pv-node-core,
  .pv-node-engine {
    font-size: 0.84rem;
  }

  .pv-node-mid {
    font-size: 0.72rem;
  }

  .pv-node-networks {
    font-size: 0.76rem;
  }

  .pv-node-chain {
    font-size: 0.64rem;
  }
}



@media (prefers-reduced-motion: no-preference) {
  .pv-line-core,
  .pv-dot-core {
    animation: pvInfraPulse 2.8s ease-in-out infinite;
  }

  .pv-node-core {
    animation: pvInfraCoreGlow 3.2s ease-in-out infinite;
  }
}

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

@keyframes pvInfraCoreGlow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      inset 0 -32px 46px rgba(255, 122, 24, 0.05),
      0 0 0 1px rgba(255, 138, 0, 0.14),
      0 0 22px rgba(255, 138, 0, 0.12),
      0 0 46px rgba(255, 138, 0, 0.08),
      var(--pv-id-shadow-soft);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.07),
      inset 0 -32px 46px rgba(255, 122, 24, 0.08),
      0 0 0 1px rgba(255, 138, 0, 0.18),
      0 0 30px rgba(255, 138, 0, 0.18),
      0 0 66px rgba(255, 138, 0, 0.12),
      var(--pv-id-shadow-soft);
  }
}