.nd-ip-page {
  --ip-bg: #070b12;
  --ip-surface: #0c121d;
  --ip-surface-2: #101927;
  --ip-line: rgba(148, 163, 184, 0.16);
  --ip-text: #edf4ff;
  --ip-muted: #94a3b8;
  --ip-cyan: #22d3ee;
  --ip-blue: #3b82f6;
  --ip-green: #34d399;
  --ip-amber: #fbbf24;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ip-bg);
  color: var(--ip-text);
  font-family: Geist, "Geist Fallback", Arial, sans-serif;
}

.nd-ip-page button,
.nd-ip-page input,
.nd-ip-page select,
.nd-ip-page textarea {
  font: inherit;
}

.nd-ip-page .nd-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
}

.nd-ip-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
}

.nd-ip-kicker::before {
  width: 22px;
  height: 1px;
  background: var(--ip-cyan);
  content: "";
}

.nd-ip-hero {
  position: relative;
  min-height: 570px;
  border-bottom: 1px solid var(--ip-line);
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.98) 0%, rgba(7, 11, 18, 0.92) 48%, rgba(8, 18, 32, 0.76) 100%),
    radial-gradient(circle at 78% 28%, rgba(34, 211, 238, 0.12), transparent 34%);
}

.nd-ip-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 100%);
  content: "";
}

.nd-ip-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 570px;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding-block: 72px;
}

.nd-ip-hero h1 {
  max-width: 560px;
  margin: 20px 0 20px;
  color: var(--ip-text);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.nd-ip-hero__copy > p {
  max-width: 640px;
  margin: 0;
  color: #b6c2d3;
  font-size: 18px;
  line-height: 1.625;
}

.nd-ip-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--ip-line);
}

.nd-ip-hero__stats span {
  display: grid;
  gap: 2px;
  color: var(--ip-muted);
  font-size: 12px;
}

.nd-ip-hero__stats b {
  color: var(--ip-text);
  font: 700 25px/1.2 var(--nd-mono, monospace);
}

.nd-ip-network {
  position: relative;
  min-width: 0;
}

.nd-ip-network svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.34));
}

.nd-ip-network__grid {
  fill: none;
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 1;
}

.nd-ip-network__route {
  fill: none;
  stroke: url(#nd-ip-line);
  stroke-width: 2.5;
  stroke-dasharray: 8 10;
  animation: nd-ip-route 14s linear infinite;
}

.nd-ip-network__nodes circle {
  fill: #dffaff;
  stroke: #22d3ee;
  stroke-width: 4;
}

.nd-ip-network__pulse circle {
  fill: none;
  stroke: rgba(34, 211, 238, 0.52);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: nd-ip-pulse 2.8s ease-out infinite;
}

.nd-ip-network text {
  fill: #7dd3fc;
  font: 600 12px/1 var(--nd-mono, monospace);
}

.nd-ip-network__status {
  position: absolute;
  right: 6%;
  bottom: 7%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 5px;
  background: rgba(7, 11, 18, 0.86);
  color: #a7f3d0;
  font: 600 11px/1 var(--nd-mono, monospace);
}

.nd-ip-network__status span,
.nd-ip-card__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ip-green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

@keyframes nd-ip-route { to { stroke-dashoffset: -180; } }
@keyframes nd-ip-pulse { 0% { opacity: 0.9; transform: scale(0.65); } 80%, 100% { opacity: 0; transform: scale(1.55); } }

.nd-ip-critical {
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.2), rgba(69, 26, 3, 0.08) 65%, transparent);
}

.nd-ip-critical__inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  padding-block: 34px;
}

.nd-ip-critical__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--ip-amber);
}

.nd-ip-critical__icon svg { width: 25px; height: 25px; }
.nd-ip-critical span { color: #fcd34d; font-size: 12px; font-weight: 700; }
.nd-ip-critical h2 { margin: 5px 0 8px; color: var(--ip-text); font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.nd-ip-critical p { max-width: 990px; margin: 0; color: #bac4d2; line-height: 1.75; }
.nd-ip-critical strong { color: #fde68a; }

.nd-ip-directory {
  padding: clamp(72px, 8vw, 110px) 0;
  background: var(--ip-bg);
}

.nd-ip-directory__head {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
}

.nd-ip-directory h2,
.nd-ip-guide h2,
.nd-ip-notes h2 {
  margin: 12px 0 10px;
  color: var(--ip-text);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.nd-ip-directory__head p,
.nd-ip-guide__intro p {
  max-width: 680px;
  margin: 0;
  color: var(--ip-muted);
  line-height: 1.75;
}

.nd-ip-updated {
  flex: 0 0 auto;
  color: #718096;
  font: 12px/1.4 var(--nd-mono, monospace);
}

.nd-ip-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 34px 0 24px;
  padding: 10px;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: var(--ip-surface);
}

.nd-ip-tabs { display: flex; gap: 4px; }
.nd-ip-tabs button,
.nd-ip-copy-all {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: 600 13px/1 var(--nd-font, sans-serif);
}

.nd-ip-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: transparent;
  color: var(--ip-muted);
}

.nd-ip-tabs button:hover,
.nd-ip-tabs button.is-active { background: #172236; color: #dbeafe; }
.nd-ip-tabs b { min-width: 22px; padding: 3px 6px; border-radius: 4px; background: rgba(148, 163, 184, 0.1); font: 600 10px/1 var(--nd-mono, monospace); }
.nd-ip-tabs button.is-active b { background: rgba(59, 130, 246, 0.22); color: #93c5fd; }

.nd-ip-search { position: relative; display: block; }
.nd-ip-search svg { position: absolute; top: 50%; left: 13px; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #64748b; stroke-width: 1.8; }
.nd-ip-search input { width: 100%; min-height: 42px; border: 1px solid var(--ip-line); border-radius: 6px; outline: 0; background: #080d15; padding: 0 14px 0 42px; color: var(--ip-text); font: 14px/1 var(--nd-font, sans-serif); }
.nd-ip-search input:focus { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08); }

.nd-ip-copy-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #2563eb;
  color: #f8fbff;
}
.nd-ip-copy-all:hover { background: #1d4ed8; }
.nd-ip-copy-all svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.nd-ip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 14px;
}

.nd-ip-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: linear-gradient(145deg, #0f1724, #0a1019);
  padding: 20px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nd-ip-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ip-cyan), var(--ip-blue), transparent 76%);
  content: "";
}

.nd-ip-card:hover { border-color: rgba(34, 211, 238, 0.33); background: linear-gradient(145deg, #111d2d, #0b111b); transform: translateY(-2px); }
.nd-ip-card[hidden] { display: none; }
.nd-ip-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nd-ip-card__region { color: #8fa0b5; font-size: 12px; }
.nd-ip-card__live { display: inline-flex; align-items: center; gap: 6px; color: #6ee7b7; font: 600 10px/1 var(--nd-mono, monospace); }
.nd-ip-card code { display: block; overflow-wrap: anywhere; margin: 18px 0 20px; color: #f1f7ff; font: 650 clamp(20px, 2vw, 26px)/1.25 var(--nd-mono, monospace); }
.nd-ip-card dl { display: grid; gap: 9px; margin: 0 0 20px; }
.nd-ip-card dl div { display: flex; gap: 18px; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.nd-ip-card dt { color: #65758b; font-size: 12px; }
.nd-ip-card dd { margin: 0; color: #c3cfdd; font-size: 12px; text-align: right; }
.nd-ip-card button { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 6px; background: rgba(37, 99, 235, 0.12); color: #bfdbfe; cursor: pointer; font: 600 13px/1 var(--nd-font, sans-serif); }
.nd-ip-card button:hover { border-color: rgba(34, 211, 238, 0.5); background: rgba(37, 99, 235, 0.22); color: #fff; }
.nd-ip-card button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nd-ip-empty { padding: 50px 20px; border: 1px dashed var(--ip-line); border-radius: 8px; color: var(--ip-muted); text-align: center; }

.nd-ip-guide { border-block: 1px solid var(--ip-line); background: #090f18; padding: clamp(70px, 8vw, 105px) 0; }
.nd-ip-guide__layout { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr); gap: clamp(44px, 8vw, 110px); align-items: start; }
.nd-ip-guide__intro { position: sticky; top: 100px; }
.nd-ip-guide__steps { margin: 0; padding: 0; list-style: none; }
.nd-ip-guide__steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 20px; padding: 27px 0; border-top: 1px solid var(--ip-line); }
.nd-ip-guide__steps li:last-child { border-bottom: 1px solid var(--ip-line); }
.nd-ip-guide__steps b { color: #38bdf8; font: 650 14px/1.4 var(--nd-mono, monospace); }
.nd-ip-guide__steps h3 { margin: 0 0 7px; color: var(--ip-text); font-size: 19px; }
.nd-ip-guide__steps p { margin: 0; color: var(--ip-muted); line-height: 1.75; }

.nd-ip-notes { padding: clamp(70px, 8vw, 105px) 0; background: #070b12; }
.nd-ip-notes__layout { display: grid; gap: 42px; }
.nd-ip-notes__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nd-ip-notes__columns > div { padding-top: 20px; border-top: 1px solid var(--ip-line); }
.nd-ip-notes h3 { margin: 0 0 10px; color: #dce8f7; font-size: 17px; }
.nd-ip-notes p,
.nd-ip-notes li { color: var(--ip-muted); line-height: 1.75; }
.nd-ip-notes p { margin: 0; }
.nd-ip-notes ul { margin: 0; padding-left: 18px; }
.nd-ip-notes a { display: inline-flex; gap: 8px; margin-top: 17px; color: #67e8f9; font-weight: 650; }

.nd-ip-toast {
  position: fixed;
  z-index: 999;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 48px);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 6px;
  background: #0c1818;
  padding: 12px 16px;
  color: #a7f3d0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.nd-ip-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nd-ip-page .nd-container { padding-inline: 24px; }
  .nd-ip-hero__layout { min-height: auto; grid-template-columns: 1fr; padding-block: 64px; }
  .nd-ip-hero h1 { font-size: 48px; }
  .nd-ip-network { max-width: 680px; margin-inline: auto; }
  .nd-ip-toolbar { grid-template-columns: 1fr auto; }
  .nd-ip-tabs { grid-column: 1 / -1; }
  .nd-ip-guide__layout { grid-template-columns: 1fr; }
  .nd-ip-guide__intro { position: static; }
  .nd-ip-notes__columns { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nd-ip-hero { min-height: 0; }
  .nd-ip-hero__layout { gap: 28px; padding-block: 48px; }
  .nd-ip-hero__stats { gap: 18px; }
  .nd-ip-network { margin-inline: -12px; }
  .nd-ip-network__status { right: 10%; }
  .nd-ip-critical__inner { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding-block: 26px; }
  .nd-ip-critical__icon { width: 38px; height: 38px; }
  .nd-ip-critical h2 { font-size: 18px; }
  .nd-ip-directory__head { display: grid; }
  .nd-ip-toolbar { grid-template-columns: 1fr; padding: 8px; }
  .nd-ip-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nd-ip-tabs button { justify-content: center; padding-inline: 7px; font-size: 12px; }
  .nd-ip-search,
  .nd-ip-copy-all { width: 100%; }
  .nd-ip-copy-all { justify-content: center; }
  .nd-ip-grid { grid-template-columns: 1fr; }
  .nd-ip-guide__steps li { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 639px) {
  .nd-ip-page .nd-container { padding-inline: 16px; }
  .nd-ip-hero h1 { font-size: 36px; }
  .nd-ip-hero__copy > p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .nd-ip-network__route,
  .nd-ip-network__pulse circle { animation: none; }
  .nd-ip-card,
  .nd-ip-toast { transition: none; }
}
