:root {
  --lux-bg: #020506;
  --lux-panel: rgba(10, 15, 19, .76);
  --lux-line: rgba(255, 222, 156, .16);
  --lux-gold: #d7aa4e;
  --lux-gold-2: #ffe39b;
  --lux-text: #fff8e9;
  --lux-muted: #a7a39a;

  --play: running;
  --direction: normal;
  --duration: 30s;
  --delay: 0s;
  --iteration-count: infinite;
}

* {
  box-sizing: border-box;
}

.network-page {
  min-height: 100vh;
  color: var(--lux-text);
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 124, 255, .18), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(139, 92, 246, .18), transparent 30%),
    radial-gradient(circle at 50% 52%, rgba(215, 170, 78, .12), transparent 26%),
    linear-gradient(180deg, #010203 0%, #071114 55%, #020304 100%);
	padding-left: 1rem;
	padding-right: 1rem;

}

.network-hero,
.network-layout,
.project-section {
  max-width: 1640px;
  margin-left: auto;
  margin-right: auto;
}

.network-hero {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.eyebrow {
  color: var(--lux-gold-2);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
}

.network-hero h1 {
  max-width: 900px;
  margin: 8px 0;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .93;
  letter-spacing: -.055em;
}

.network-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--lux-muted);
  line-height: 1.65;
  font-size: 17px;
}

.submit-btn,
.secondary-action {
  border: 0;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.submit-btn {
  color: #140f06;
  background: linear-gradient(135deg, #fff1ac, #d7aa4e 55%, #a86f1d);
  padding: 15px 20px;
  box-shadow: 0 18px 60px rgba(215, 170, 78, .22);
  white-space: nowrap;
}

.network-layout {
  display: grid;
  grid-template-columns: 280px minmax(720px, 1fr) 330px;
  gap: 16px;
  align-items: stretch;
}

.glass-panel {
  border: 1px solid var(--lux-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.026)),
    rgba(5, 8, 10, .64);
  box-shadow:
    0 24px 90px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  border-radius: 26px;
}

.side-panel,
.details-card,
.recent-card,
.project-section {
  padding: 12px;
}

.side-panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.side-panel h2 span,
.side-panel h3,
.map-toolbar h2,
.project-section h2 {
  color: var(--lux-gold-2);
}

.side-panel p,
.map-toolbar p,
.project-section p,
.details-card p {
  color: var(--lux-muted);
  line-height: 1.55;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
}

.stat-row div {
  padding: 14px 8px;
  text-align: center;
  background: rgba(0,0,0,.2);
  border-right: 1px solid rgba(255,255,255,.08);
}

.stat-row div:last-child {
  border-right: 0;
}

.stat-row strong {
  display: block;
  color: var(--lux-gold-2);
  font-size: 19px;
}

.stat-row span {
  display: block;
  color: var(--lux-muted);
  font-size: 10px;
  text-transform: uppercase;
  margin-top: 5px;
}

.panel-section-title {
  margin-top: 24px;
  margin-bottom: 12px;
}

.panel-section-title h3 {
  margin: 0;
}

.panel-section-title span {
  display: block;
  margin-top: 4px;
  color: var(--lux-muted);
  font-size: 12px;
}

.chain-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  padding: 4px 4px;
  color: var(--lux-muted);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  user-select: none;
}

.chain-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--lux-gold);
  cursor: pointer;
}

.chain-list {
  display: grid;
  gap: 10px;
}

.chain-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--lux-text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.chain-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,227,155,.4);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

.chain-button.is-active {
  border-color: var(--lux-gold);
  background:
    linear-gradient(135deg, rgba(255,227,155,.13), rgba(215,170,78,.055));
  box-shadow: 0 0 28px rgba(215,170,78,.15);
}

.chain-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  min-width: 0;
}

.chain-mini img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: contain;

}

.chain-mini strong,
.chain-mini span {
  display: block;
}

.chain-mini strong {
  color: var(--lux-text);
  font-size: 14px;
}

.chain-mini span {
  color: var(--lux-muted);
  font-size: 12px;
}

.chain-count {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #171104;
  background: linear-gradient(135deg, var(--lux-gold-2), var(--lux-gold));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.secondary-action {
  width: 100%;
  max-width: 300px;
  place-self: center;
  margin-top: 18px;
  padding: 13px;
  color: var(--lux-gold-2);
  background: rgba(215,170,78,.08);
  border: 1px solid rgba(215,170,78,.26);
}

.secondary-action:hover {
  background: rgba(215,170,78,.13);
  border-color: rgba(255,227,155,.42);
}

.map-card {
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.map-toolbar h2,
.map-toolbar p {
  margin: 0;
}

.controls {
  display: flex;
  gap: 10px;
}

.controls input,
.controls select {
  color: var(--lux-text);
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  padding: 13px 14px;
  min-width: 190px;
  outline: none;
}

.controls input:focus,
.controls select:focus {
  border-color: rgba(255,227,155,.48);
  box-shadow: 0 0 0 3px rgba(215,170,78,.12);
}

.network-map {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 520px;
  background:
    radial-gradient(circle at center, rgba(215,170,78,0.10), transparent 40%),
    linear-gradient(180deg, rgba(5,8,12,0.45), rgba(5,8,12,0.75)),
    url('/assets/img/backgrounds/network-map-bg.png') center / cover no-repeat;
}

.network-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 20% 68%, rgba(255,255,255,.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 56%, rgba(255,255,255,.32) 0 1px, transparent 1.5px),
    radial-gradient(circle at 66% 18%, rgba(255,255,255,.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 62%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 92% 30%, rgba(255,255,255,.46) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 82%, rgba(255,255,255,.32) 0 1px, transparent 1.5px);
  opacity: .45;
  pointer-events: none;
}

.network-map::after {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.018), transparent 58%),
    conic-gradient(
      from 0deg,
      transparent,
      rgba(215,170,78,.06),
      transparent,
      rgba(109,150,255,.05),
      transparent,
      rgba(139,92,246,.05),
      transparent
    );

  opacity: .65;
  pointer-events: none;
}

@keyframes luxNebulaDrift {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.02);
  }
}

.map-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--lux-gold-2);
  z-index: 2;
  font-weight: 900;
}

.network-map svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.link {
  fill: none;
  stroke-linecap: round;
  opacity: .78;
}

.link.hub-link {
  stroke-width: 2.1px;
}

.link.project-link {
  stroke-width: 1.15px;
  opacity: .55;
}

.link-glow {
  fill: none;
  stroke-linecap: round;
  opacity: .14;
  stroke-width: 5px;
}

.node {
  cursor: pointer;
}

.node circle.node-shell {
  stroke: currentColor;
  stroke-width: 1.35;
}

.node .halo {
  fill: currentColor;
  opacity: .09;
}

.node .node-bg {
  fill: rgba(5, 8, 10, .96);
}

.node.chain .node-shell {
  filter: drop-shadow(0 0 10px currentColor);
}

.node.project .node-shell {
  filter: drop-shadow(0 0 6px currentColor);
}

.node.hub .node-shell {
  stroke: rgba(255,226,145,.92);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 16px rgba(215,170,78,.48));
}

.node-label {
  fill: #fff8e9;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(0,0,0,.78);
  stroke-width: 3px;
  stroke-linejoin: round;
  text-anchor: middle;
  pointer-events: none;
}

.node-label.chain-label {
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.node-label.project-label {
  font-size: 9.5px;
}

.node-label.hub-label {
  font-size: 15px;
  letter-spacing: .05em;
}

.node-sub {
  fill: var(--lux-gold-2);
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
  opacity: .9;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row button {
  color: var(--lux-text);
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.chip-row button.is-active {
  color: #171104;
  background: linear-gradient(135deg, var(--lux-gold-2), var(--lux-gold));
}

.is-hidden {
  display: none !important;
}

.recent-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    rgba(0,0,0,.24);
}

.ticker-label {
  color: var(--lux-gold-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-mask {
  overflow: hidden;
  min-width: 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation-name: scroll;
  animation-duration: var(--duration);
  animation-timing-function: linear;
  animation-delay: var(--delay);
  animation-iteration-count: var(--iteration-count);
  animation-direction: var(--direction);
  animation-play-state: var(--play);
  will-change: transform;
}

.recent-ticker:hover .ticker-track {
  --play: paused;
}

@keyframes scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker-item {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lux-text);
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  padding: 9px 11px;
  cursor: pointer;
}

.ticker-item:hover {
  border-color: rgba(255,227,155,.38);
  background: rgba(255,255,255,.07);
}

.ticker-item img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: contain;
  padding: 3px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.ticker-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
}

.ticker-item span {
  display: block;
  margin-top: 2px;
  color: var(--lux-muted);
  font-size: 11px;
}

@keyframes luxTicker {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.details-card {
  min-height: 500px;
}

.details-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.details-logo {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: contain;
  padding: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.badge {
  display: inline-block;
  color: #171104;
  background: linear-gradient(135deg, var(--lux-gold-2), var(--lux-gold));
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.details-card h2 {
  margin: 8px 0 4px;
  font-size: 28px;
}

.chain-pill {
  color: var(--lux-muted);
  font-size: 13px;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.highlights li {
  color: #e7dfd1;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px;
  border-radius: 13px;
  font-size: 13px;
}

.link-stack {
  display: grid;
  gap: 9px;
}

.link-stack a {
  color: var(--lux-text);
  text-decoration: none;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
}

.link-stack a:hover {
  border-color: rgba(255,227,155,.4);
  background: rgba(255,255,255,.07);
}

.recent-card {
  margin-top: 16px;
}

.recent-card h3 {
  margin-top: 0;
  color: var(--lux-gold-2);
}

.recent-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  color: var(--lux-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
  cursor: pointer;
}

.recent-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  padding: 3px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.recent-item span {
  color: var(--lux-muted);
  font-size: 12px;
}

.project-section {
  margin-top: 16px;
}

.section-title-row h2,
.section-title-row p {
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.project-card {
  color: var(--lux-text);
  text-align: left;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--lux-gold);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}

.project-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;

}

.project-card strong {
  display: block;
  font-size: 18px;
  align-self: center;
}

.project-card span,
.project-card p {
  color: var(--lux-muted);
}

.project-card p {
  margin: 7px 0 0;
  line-height: 1.45;
  font-size: 13px;
}

.empty-state {
  color: var(--lux-muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 14px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

@media (max-width: 1320px) {
  .network-layout {
    grid-template-columns: 1fr;
  }

  .network-map {
    aspect-ratio: 16 / 10;
    min-height: 560px;
    max-height: none;
  }

  .right-column {
    display: grid;
    gap: 16px;
  }

  .recent-card {
    margin-top: 0;
  }

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

@media (max-width: 760px) {
  .network-page {
  }

  .network-hero,
  .map-toolbar,
  .controls,
  .right-column {
    display: grid;
  }

  .network-hero {
    align-items: start;
  }

  .controls input,
  .controls select {
    width: 100%;
    min-width: 0;
  }

  .network-map {
    aspect-ratio: auto;
    height: 620px;
    min-height: 0;
  }

  .recent-ticker {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ticker-item {
    min-width: 170px;
  }

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

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-map::after,
  .ticker-track {
    animation: none;
  }
}

/* ================================
   Premium Network Display Upgrade
================================ */

.network-page {
  background:
    radial-gradient(circle at 50% 12%, rgba(215, 170, 78, 0.12), transparent 34%),
    radial-gradient(circle at 85% 35%, rgba(47, 124, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(3, 6, 12, 1), rgba(8, 10, 15, 1));
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  height: 100%;
}

.map-card {
  border-radius: 30px;
  overflow: hidden;
}

.network-map {
  position: relative;
  margin-top:auto;
  min-height: 560px;
  overflow: hidden;
  border-radius: 26px;
  isolation: isolate;

  background:
    radial-gradient(circle at center, rgba(215, 170, 78, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(5, 8, 12, 0.52), rgba(5, 8, 12, 0.84)),
    url('/assets/img/backgrounds/network-map-bg.png') center / cover no-repeat;

  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -80px 130px rgba(0, 0, 0, 0.32),
    0 22px 70px rgba(0, 0, 0, 0.35);
}

.network-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 170, 78, 0.08), transparent 28%),
    radial-gradient(circle at 20% 15%, rgba(255, 227, 155, 0.06), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.34));
}

.network-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.32;
}

.network-map svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.map-toolbar {

}

.map-toolbar h2 {
  letter-spacing: -0.03em;
}

.map-toolbar p {
  color: rgba(245, 240, 230, 0.68);
}

.controls input,
.controls select {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.26);
  color: #f7efe0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.controls input:focus {
  outline: none;
  border-color: rgba(215, 170, 78, 0.55);
  box-shadow:
    0 0 0 4px rgba(215, 170, 78, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* SVG map refinements */

.link {
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  opacity: 0.72;
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.link-glow {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0.08;
  filter: blur(5px);
}

.hub-link {
  stroke-width: 2.1;
  opacity: 0.82;
}

.project-link {
  stroke-width: 1.35;
}

.link.is-focused {
  opacity: 1;
  stroke-width: 2.7;
}

.link.is-dimmed,
.link-glow.is-dimmed {
  opacity: 0.08;
}

.node {
  cursor: pointer;
}

.node.is-dimmed {
  opacity: 0.26;
}

.node-bg {
  fill: currentColor;
  opacity: 0.18;
}

.node-shell {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
  filter: url(#premiumNodeShadow);
}

.node:hover .node-shell,
.node.is-focused .node-shell {
  stroke: rgba(255, 227, 155, 0.58);
}

.halo {
  fill: currentColor;
  opacity: 0.15;
  filter: blur(1px);
}

.node:hover .halo,
.node.is-focused .halo {
  opacity: 0.28;
}

.node image {
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.36));
}

.node-label {
  fill: #fff6df;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(3, 6, 10, 0.88);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
  letter-spacing: -0.01em;
}

.hub-label {
  font-size: 14px;
  letter-spacing: 0.1em;
}

.chain-label {
  font-size: 12px;
}

.project-label {
  font-size: 10.5px;
  font-weight: 600;
}

.node-sub {
  fill: rgba(255, 246, 223, 0.68);
  font-size: 10px;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(3, 6, 10, 0.9);
  stroke-width: 3px;
  pointer-events: none;
}

/* Left chain panel */

.side-panel h2 {
  letter-spacing: -0.04em;
}

.side-panel h2 span {
  color: #d7aa4e;
}

.chain-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  color: rgba(245, 240, 230, 0.72);
  font-size: 13px;
}

.chain-toggle input {
  accent-color: #d7aa4e;
}

.chain-list {
  display: grid;
  gap: 10px;
}

.chain-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  color: #fff6df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.chain-button:hover,
.chain-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(215, 170, 78, 0.36);
  background:
    linear-gradient(180deg, rgba(215, 170, 78, 0.13), rgba(255,255,255,0.025));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.chain-mini {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.chain-mini img,
.chain-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.chain-count {
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(215, 170, 78, 0.13);
  color: #ffe39b;
}

/* Project grid premium cards */

.project-grid {
  gap: 16px;
}

.project-card {
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.075);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
  color: #fff6df;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 170, 78, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  background:
    linear-gradient(180deg, rgba(215, 170, 78, 0.09), rgba(255,255,255,0.025));
}

.project-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.12), rgba(0,0,0,0.22));
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.project-content {
  min-width: 0;
  flex: 1;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-name {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.project-meta {
  margin: 7px 0 8px;
  color: #d7aa4e;
  font-size: 12px;
  font-weight: 700;
}

.project-description {
  color: rgba(245, 240, 230, 0.68);
  line-height: 1.5;
}

/* Details panel */

.details-card {
  border-radius: 28px;
  padding: 22px;
}

.details-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.details-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 10px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.13), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 32px rgba(0,0,0,0.24);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(215, 170, 78, 0.13);
  color: #ffe39b;
  border: 1px solid rgba(215, 170, 78, 0.24);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.details-card h2 {
  margin: 8px 0 6px;
  letter-spacing: -0.04em;
}

.details-card p {
  color: rgba(245, 240, 230, 0.72);
  line-height: 1.65;
}

.highlights {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.highlights li {
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(245, 240, 230, 0.8);
}

.link-stack {
  gap: 10px;
}

.link-stack a {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff6df;
  text-decoration: none;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.link-stack a:hover {
  transform: translateY(-1px);
  background: rgba(215, 170, 78, 0.13);
  border-color: rgba(215, 170, 78, 0.32);
}

/* Ticker */

.recent-ticker {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.22);
}

.ticker-label {
  color: #ffe39b;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-stack {
  gap: 10px;
}

.premium-link {
  position: relative;
  min-height: 42px;
  padding: 0 16px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: #fff6df;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
  border: 1px solid rgba(255,255,255,0.09);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 24px rgba(0,0,0,0.18);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.premium-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent, rgba(255,227,155,0.12), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.premium-link:hover {
  transform: translateY(-2px);
  color: #ffe39b;
  border-color: rgba(215, 170, 78, 0.42);
  background:
    linear-gradient(180deg, rgba(215,170,78,0.16), rgba(255,255,255,0.035));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 14px 32px rgba(0,0,0,0.24),
    0 0 24px rgba(215,170,78,0.08);
}

.premium-link:hover::before {
  opacity: 1;
}

.premium-link-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,227,155,0.22), rgba(215,170,78,0.08));
  border: 1px solid rgba(215,170,78,0.22);
  flex-shrink: 0;
}

.premium-link-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-link-icon svg path:first-child {
  fill: none;
}
/* ================================
   Make network layout fit screen height
================================ */

:root {
  --network-page-pad: 1rem;
  --network-gap: 16px;
}

/* main already has padding-top: var(--header-height) in site.css */
.network-page {
  min-height: calc(100svh - var(--header-height));
  padding: var(--network-page-pad);
  padding-top: var(--network-page-pad); /* replace your 6rem */
padding-top: 6rem;
}

/* desktop: whole network section fits visible screen */
.network-layout {
  max-width: 1640px;
  margin-inline: auto;

  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  gap: var(--network-gap);

  height: calc(100svh - var(--header-height) - (var(--network-page-pad) * 2));
  min-height: 0;
  align-items: stretch; /* important: not start */
}

/* allow children to shrink inside the fixed viewport height */
.side-panel,
.map-card,
.right-column,
.details-card {
  min-height: 0;
}

/* side panels scroll internally if content is taller */
.side-panel,
.details-card {
  overflow-y: auto;
}

/* map card fills its grid row */
.map-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* map fills remaining height after toolbar/buttons/ticker */
.network-map {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  margin-top: 14px;
}

/* tablet/mobile should scroll normally */
@media (max-width: 1320px) {
  .network-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100svh - var(--header-height) - 2rem);
  }

  .network-map {
    height: min(620px, calc(100svh - var(--header-height) - 220px));
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .network-page {
    padding-inline: 0.75rem;
  }

  .network-map {
    height: 620px;
    min-height: 0;
  }
}
