/*
 * peeryx-v125-navbar.css  —  AUTHORITATIVE NAVBAR
 *
 * Uses entirely new class names (.nav-bar, .nav-desktop, .nav-toggle,
 * .nav-mobile) to avoid cascade conflicts with legacy bundles that
 * target .header-inner, .desktop-nav, .mobile-toggle, .mobile-nav.
 *
 * Mobile-first: mobile = default. Desktop at @media (min-width:1024px).
 * Breakpoints covered: 320, 360, 390, 430, 768, 1024, 1280+.
 */

/* ══════════════════════════════════════════════════════════
   §1  NAV BAR  (replaces .container.header-inner)
   Flex row: logo │ (desktop nav) │ right controls
   ══════════════════════════════════════════════════════════ */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 14px;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
}

@media (min-width: 480px)  { .nav-bar { padding: 0 20px; height: 62px; } }
@media (min-width: 768px)  { .nav-bar { padding: 0 28px; height: 64px; } }
@media (min-width: 1024px) {
  .nav-bar {
    height: 68px;
    padding: 0 clamp(24px, 3vw, 40px);
    max-width: 1260px;
    margin: 0 auto;
  }
}

/* ══════════════════════════════════════════════════════════
   §2  BRAND / LOGO
   ══════════════════════════════════════════════════════════ */

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  outline: none;
}

.nav-brand:focus-visible {
  outline: 2px solid #00C896;
  outline-offset: 3px;
  border-radius: 4px;
}

/* .brand-logo kept for v113 image-styling compat; .nav-logo is our handle */
html body .nav-logo {
  display: block !important;
  height: auto !important;
  width: 130px !important;
  max-width: 130px !important;
  min-width: 0 !important;
  max-height: 42px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

@media (max-width: 360px) { html body .nav-logo { width: 100px !important; max-width: 100px !important; } }
@media (min-width: 768px) { html body .nav-logo { width: 140px !important; max-width: 140px !important; } }
@media (min-width: 1024px){ html body .nav-logo { width: 150px !important; max-width: 150px !important; max-height: 45px !important; } }

/* ══════════════════════════════════════════════════════════
   §3  DESKTOP NAV  — invisible on mobile
   ══════════════════════════════════════════════════════════ */

/* Mobile-first: hidden by default, shown only on desktop */
html body .nav-desktop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  clip-path: inset(100%) !important;
  max-width: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (min-width: 1024px) {
  html body .nav-desktop {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    clip-path: none !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    padding: 0 12px !important;
    margin: 0 !important;
  }
}

/* Desktop nav links */
.nav-desktop-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #8caabb;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
  position: relative;
}

.nav-desktop-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #00C896;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.15s, transform 0.18s cubic-bezier(0.22,1,0.36,1);
}

.nav-desktop-link:hover {
  color: #d4ecff;
  background: rgba(255,255,255,0.05);
}

.nav-desktop-link.active,
.nav-desktop-link[aria-current="page"] {
  color: #e8f4ff;
  font-weight: 600;
}

.nav-desktop-link.active::after,
.nav-desktop-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-desktop-link:focus-visible {
  outline: 2px solid #00C896;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Vertical separator before login */
.nav-end .nav-action-login {
  margin-left: 6px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* ══════════════════════════════════════════════════════════
   §4  NAV END  (right-side controls)
   ══════════════════════════════════════════════════════════ */

.nav-end {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 390px) { .nav-end { gap: 4px; } }

/* ══════════════════════════════════════════════════════════
   §5  DESKTOP-ONLY ITEMS  — hidden on mobile
   ══════════════════════════════════════════════════════════ */

html body .nav-locale-wrap,
html body .nav-action-login,
html body .nav-action-demo {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (min-width: 1024px) {
  html body .nav-locale-wrap,
  html body .nav-action-login,
  html body .nav-action-demo {
    display: inline-flex !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: revert !important;
    margin: revert !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center !important;
  }
}

/* Login link — understated ghost */
.nav-action-login {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #8faabb;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}

.nav-action-login:hover { color: #c8e0f4; background: rgba(255,255,255,0.05); }
.nav-action-login:focus-visible { outline: 2px solid #00C896; outline-offset: 2px; border-radius: 7px; }

/* Primary CTA — "Demander une démo" — premium operator button */
.nav-action-demo {
  padding: 8px 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #0a1828;
  background: linear-gradient(135deg, #00d9aa 0%, #00b894 100%);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0,200,150,0.3), 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}

.nav-action-demo:hover {
  background: linear-gradient(135deg, #00e8b8 0%, #00c9a0 100%);
  box-shadow: 0 3px 14px rgba(0,220,160,0.42), 0 1px 4px rgba(0,0,0,0.25);
  transform: translateY(-1px);
  color: #071420;
}

.nav-action-demo:active { transform: translateY(0); }
.nav-action-demo:focus-visible { outline: 2px solid #00C896; outline-offset: 3px; border-radius: 7px; }

/* ══════════════════════════════════════════════════════════
   §6  HAMBURGER BUTTON  — mobile only
   ══════════════════════════════════════════════════════════ */

.nav-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255,255,255,0.07);
  outline: 2px solid rgba(0,200,150,0.5);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transform-origin: center;
  transition:
    transform 0.22s cubic-bezier(0.22,1,0.36,1),
    opacity   0.16s ease,
    width     0.18s ease;
}

/* Burger → X when aria-expanded="true" */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) { html body .nav-toggle { display: none !important; } }

/* ══════════════════════════════════════════════════════════
   §7  MOBILE NAV PANEL
   ══════════════════════════════════════════════════════════ */

/* Default: closed and removed from flow */
.nav-mobile {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

/* Open state — driven by JS adding .is-open */
.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  visibility: visible;
  pointer-events: auto;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(4,9,20,0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(67,202,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

@media (min-width: 480px) {
  .nav-mobile.is-open { top: 62px; max-height: calc(100dvh - 62px); }
}
@media (min-width: 768px) {
  .nav-mobile.is-open { top: 64px; max-height: calc(100dvh - 64px); }
}

/* Force-hide on desktop regardless of JS state */
@media (min-width: 1024px) {
  .nav-mobile,
  .nav-mobile.is-open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   §8  MOBILE NAV INNER
   ══════════════════════════════════════════════════════════ */

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 24px;
  min-height: 0;
}

@media (min-width: 480px) { .nav-mobile-inner { padding: 14px 18px 28px; } }

/* Title row */
.nav-mobile-head {
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-mobile-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160,185,210,0.5);
}

/* ══════════════════════════════════════════════════════════
   §9  MOBILE NAV LINKS
   ══════════════════════════════════════════════════════════ */

.nav-mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #a0b8d0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-link:hover,
.nav-mobile-link.active,
.nav-mobile-link[aria-current="page"] {
  background: rgba(255,255,255,0.06);
  color: #e8f4ff;
}

.nav-mobile-link:focus-visible {
  outline: 2px solid #00C896;
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   §10  MOBILE LANGUAGE SECTION
   ══════════════════════════════════════════════════════════ */

.nav-mobile-lang {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(100,160,255,0.10);
}

.nav-mobile-lang-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150,190,220,0.45);
  padding: 0 12px 6px;
}

.nav-mobile-lang-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-mobile-lang-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #8DAABE;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-lang-link:hover {
  background: rgba(0,200,150,0.08);
  color: #D0E8F4;
}

.nav-mobile-lang-link.active {
  color: #00C896;
  font-weight: 700;
  background: rgba(0,200,150,0.08);
}

.nav-mobile-lang-link:focus-visible {
  outline: 2px solid #00C896;
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   §11  MOBILE ACCOUNT ACTIONS
   ══════════════════════════════════════════════════════════ */

.nav-mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(100,160,255,0.10);
}

.nav-mobile-auth-login,
.nav-mobile-auth-register {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.nav-mobile-auth-login {
  color: #a0b8d0;
  border: 1px solid rgba(100,160,255,0.12);
}

.nav-mobile-auth-login:hover {
  background: rgba(255,255,255,0.05);
  color: #d0e4f4;
}

.nav-mobile-auth-register {
  color: #e0f0ff;
  background: rgba(0,200,150,0.12);
  border: 1px solid rgba(0,200,150,0.25);
}

.nav-mobile-auth-register:hover { background: rgba(0,200,150,0.2); }

.nav-mobile-auth-login:focus-visible,
.nav-mobile-auth-register:focus-visible {
  outline: 2px solid #00C896;
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   §12  MOBILE DEMO CTA
   ══════════════════════════════════════════════════════════ */

.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #e8f6ff;
  background: linear-gradient(135deg, rgba(0,200,150,0.18), rgba(0,150,220,0.12));
  border: 1px solid rgba(0,200,150,0.3);
  text-decoration: none;
  text-align: center;
  transition: background 0.18s, border-color 0.18s;
}

.nav-mobile-cta:hover {
  background: linear-gradient(135deg, rgba(0,200,150,0.28), rgba(0,150,220,0.2));
  border-color: rgba(0,200,150,0.45);
}

.nav-mobile-cta:focus-visible { outline: 2px solid #00C896; outline-offset: 2px; }

/* ══════════════════════════════════════════════════════════
   §13  SCROLL-LOCK when menu is open
   ══════════════════════════════════════════════════════════ */

body.nav-open {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   §14  OVERFLOW PREVENTION — global safety net
   ══════════════════════════════════════════════════════════ */

html, body { overflow-x: hidden; }

.site-header {
  overflow: visible; /* required for locale dropdown */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 16, 30, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, border-color 0.2s;
}

.site-header.scrolled {
  background: rgba(4, 12, 24, 0.97);
  border-bottom-color: rgba(0,200,150,0.15);
}

/* ══════════════════════════════════════════════════════════
   §15  BADGE / METRIC SEPARATOR  (value · label)
   Targets every place where a numeric badge + label
   concatenate without a visible separator.
   ══════════════════════════════════════════════════════════ */

/* px-antiddos-dash-stats: was missing from v125 */
html body .px-antiddos-dash-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
  align-items: center !important;
}

html body .px-antiddos-dash-stats > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 80px !important;
}

html body .px-antiddos-dash-stats > div > strong {
  display: block !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #EAF4FF !important;
  -webkit-text-fill-color: #EAF4FF !important;
  line-height: 1.2 !important;
}

html body .px-antiddos-dash-stats > div > span {
  display: block !important;
  font-size: 11px !important;
  color: #6B849E !important;
  -webkit-text-fill-color: #6B849E !important;
  line-height: 1.3 !important;
}

/* pxv93-dash-stats: column cards, block children (correct) */
html body .pxv93-dash-stats > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

html body .pxv93-dash-stats > div > strong {
  display: block !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--px120-teal, #00C896) !important;
  -webkit-text-fill-color: var(--px120-teal, #00C896) !important;
}

html body .pxv93-dash-stats > div > span {
  display: block !important;
  font-size: 11px !important;
  color: var(--px120-text-muted, #5C7A98) !important;
  -webkit-text-fill-color: var(--px120-text-muted, #5C7A98) !important;
  line-height: 1.3 !important;
}

html body .pxv93-dash-stats > div.ok > strong {
  color: #4AD87C !important;
  -webkit-text-fill-color: #4AD87C !important;
}

/* pxv93-metrics: row layout, value · label inline */
html body .pxv93-metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 18px !important;
}

html body .pxv93-metrics > div {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-shrink: 0 !important;
}

html body .pxv93-metrics > div > i {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  opacity: 0.6 !important;
}

html body .pxv93-metrics > div > i svg {
  width: 15px !important;
  height: 15px !important;
}

html body .pxv93-metrics > div > strong {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #EAF4FF !important;
  -webkit-text-fill-color: #EAF4FF !important;
  white-space: nowrap !important;
}

html body .pxv93-metrics > div > span {
  font-size: 12px !important;
  color: #5C7A98 !important;
  -webkit-text-fill-color: #5C7A98 !important;
  white-space: nowrap !important;
}

/* Explicit separator: value · label */
html body .pxv93-metrics > div > strong::after {
  content: ' \00B7' !important;
  color: #3A576E !important;
  -webkit-text-fill-color: #3A576E !important;
  font-weight: 400 !important;
  margin-right: 2px !important;
}

/* transit-proof-item-v81: column, block */
html body .transit-proof-item-v81 {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

html body .transit-proof-item-v81 > strong {
  display: block !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #EAF4FF !important;
  -webkit-text-fill-color: #EAF4FF !important;
}

html body .transit-proof-item-v81 > span {
  display: block !important;
  font-size: 12px !important;
  color: #6B849E !important;
  -webkit-text-fill-color: #6B849E !important;
  line-height: 1.4 !important;
}

/* px26-infra-stats: 2-col grid (icon │ value/label stack) */
html body .px26-infra-stats > div {
  display: grid !important;
  grid-template-columns: 34px 1fr !important;
  column-gap: 12px !important;
  align-items: center !important;
  row-gap: 0 !important;
}

html body .px26-infra-stats > div > svg,
html body .px26-infra-stats > div > span.px26-stat-icon {
  grid-row: span 2 !important;
}

html body .px26-infra-stats > div > strong {
  display: block !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  letter-spacing: -0.04em !important;
}

html body .px26-infra-stats > div > span:not(.px26-stat-icon) {
  display: block !important;
  font-size: 13px !important;
  color: #b6c8df !important;
  -webkit-text-fill-color: #b6c8df !important;
  margin-top: 1px !important;
  line-height: 1.3 !important;
}

/* ══════════════════════════════════════════════════════════
   §16  BLOG — EMPTY STATE GUARD
   The empty state always starts hidden (PHP sets [hidden]).
   Ensure [hidden] is respected even if older CSS overrides it.
   ══════════════════════════════════════════════════════════ */

html body [hidden] {
  display: none !important;
  visibility: hidden !important;
}

html body .blog-empty-state-v80[hidden],
html body [data-blog-empty][hidden] {
  display: none !important;
  visibility: hidden !important;
}

html body .blog-empty-state-v80:not([hidden]),
html body [data-blog-empty]:not([hidden]) {
  display: block !important;
  padding: 32px 0 !important;
  text-align: center !important;
  font-size: 14px !important;
  color: #5C7A98 !important;
  -webkit-text-fill-color: #5C7A98 !important;
}

/* ══════════════════════════════════════════════════════════
   §17  HERO NETWORK TOPOLOGY DIAGRAM  (.px-nettopo)
   Replaces fake NOC dashboard with real network flow:
   Internet → [DDoS attack] → Peeryx Scrubbing → GRE/VXLAN/XCo → Client
   ══════════════════════════════════════════════════════════ */

.px-nettopo {
  background: rgba(6,18,34,0.85);
  border: 1px solid rgba(0,200,150,0.18);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,200,150,0.06) inset;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* Header bar */
.px-nt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11.5px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}

.px-nt-live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #00d9a0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}

.px-nt-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d9a0;
  box-shadow: 0 0 7px rgba(0,217,160,0.8);
  animation: px-nt-pulse 2s infinite;
  display: block;
  flex-shrink: 0;
}

@keyframes px-nt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.px-nt-asn {
  color: #4a7498;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.px-nt-loc {
  color: #3d6080;
  font-size: 10px;
  margin-left: auto;
  letter-spacing: 0.03em;
}

/* Diagram */
.px-nt-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 16px 16px;
  min-width: 0;
  overflow: hidden;
}

/* Columns */
.px-nt-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.px-nt-left  { min-width: 64px; }
.px-nt-center { min-width: 72px; }
.px-nt-right  { flex: 1; min-width: 0; }

/* Node boxes */
.px-nt-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  text-align: center;
}

.px-nt-node svg {
  width: 24px;
  height: 24px;
  color: #5a8cb0;
}

.px-nt-node span {
  font-size: 10.5px;
  font-weight: 700;
  color: #c2daf0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.px-nt-node small {
  font-size: 9.5px;
  color: #4a7090;
  white-space: nowrap;
}

/* Internet node */
.px-nt-inet svg { color: #6090b0; }

/* Core Peeryx node */
.px-nt-core {
  background: rgba(0,160,110,0.08);
  border-color: rgba(0,200,150,0.28);
}

.px-nt-shield { width: 28px !important; height: 28px !important; }

.px-nt-core span {
  color: #7df4d0;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.px-nt-core small { color: #3c9e78; font-weight: 600; text-transform: uppercase; font-size: 9px !important; letter-spacing: 0.06em; }

/* Tech tags under core */
.px-nt-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}

.px-nt-tags span {
  font-size: 8.5px;
  color: #2e7058;
  background: rgba(0,180,120,0.1);
  border: 1px solid rgba(0,180,120,0.18);
  border-radius: 4px;
  padding: 1.5px 5px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Attack badge */
.px-nt-atk-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: rgba(255,100,80,0.75);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.px-nt-atk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,80,60,0.8);
  box-shadow: 0 0 6px rgba(255,80,60,0.5);
  animation: px-nt-pulse 1.5s infinite;
  display: block;
  flex-shrink: 0;
}

/* Arrows */
.px-nt-arrow {
  flex-shrink: 0;
  padding: 0 4px;
  padding-bottom: 24px; /* align to node center */
}

.px-nt-arrow svg { width: 52px; height: 16px; display: block; }

/* Right column: handoff list + client */
.px-nt-right {
  align-items: flex-start;
  padding-left: 6px;
}

.px-nt-handoff-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.px-nt-handoff-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 10.5px;
  color: #7aa8c8;
  font-weight: 500;
  white-space: nowrap;
}

.px-nt-handoff-item svg {
  width: 16px;
  height: 16px;
  color: #4a7898;
  flex-shrink: 0;
}

.px-nt-handoff-xco {
  border-color: rgba(0,200,150,0.15);
}

.px-nt-client {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,160,110,0.08);
  border: 1px solid rgba(0,200,150,0.2);
  width: 100%;
  box-sizing: border-box;
}

.px-nt-client svg {
  width: 18px;
  height: 18px;
  color: #00d9a0;
  flex-shrink: 0;
}

.px-nt-client span {
  font-size: 10.5px;
  color: #9de8cc;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.px-nt-client small {
  font-size: 9.5px;
  color: #00d9a0;
  font-weight: 700;
  white-space: nowrap;
}

/* Bottom metrics strip */
.px-nt-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  padding: 8px 16px;
}

.px-nt-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  text-align: center;
}

.px-nt-metric + .px-nt-metric {
  border-left: 1px solid rgba(255,255,255,0.06);
}

.px-nt-metric strong {
  font-size: 11px;
  font-weight: 700;
  color: #c0daf2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.px-nt-metric span {
  font-size: 9.5px;
  color: #3d6080;
  white-space: nowrap;
}

/* Responsive: tablet (768px) */
@media (max-width: 900px) {
  .px-nt-arrow svg { width: 36px; }
  .px-nt-arrow { padding: 0 2px; padding-bottom: 24px; }
  .px-nt-left  { min-width: 54px; }
  .px-nt-center { min-width: 60px; }
  .px-nt-metric strong { font-size: 10px; }
  .px-nt-metric span   { font-size: 9px; }
}

/* Responsive: mobile — stack vertically */
@media (max-width: 600px) {
  .px-nt-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 12px 12px;
  }
  .px-nt-col { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; justify-content: center; }
  .px-nt-left, .px-nt-center { min-width: 0; }
  .px-nt-node { width: auto; min-width: 70px; padding: 8px; }
  .px-nt-arrow { display: none; }
  .px-nt-right { padding-left: 0; }
  .px-nt-handoff-list { flex-direction: row; flex-wrap: wrap; }
  .px-nt-handoff-item { flex: 1; min-width: 100px; justify-content: center; }
  .px-nt-client { margin-top: 8px; }
  .px-nt-metrics { flex-wrap: wrap; gap: 4px; padding: 8px 12px; }
  .px-nt-metric { min-width: 30%; }
  .px-nt-metric + .px-nt-metric { border-left: none; }
}
