/* ==========================================================================
   ZYNIC HOSTING - GLOBAL NETWORK & DATACENTER MAP (ZYNIC CYAN/BLUE THEME)
   Central Hub: Miami, FL (Equinix MI1 Main Datacenter) -> Global Edge Nodes
   ========================================================================== */

.global-network-section {
  padding: 85px 0 95px;
  background: radial-gradient(circle at 50% 10%, rgba(0, 242, 254, 0.04) 0%, transparent 60%), #040711;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.network-container-wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.global-network-header {
  text-align: center;
  margin-bottom: 36px;
}

.network-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00f2fe;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.global-network-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.text-cyan-glow {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 35px rgba(0, 242, 254, 0.35);
}

.global-network-desc {
  font-size: 1.02rem;
  color: var(--text-muted, #94a3b8);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.global-network-desc strong {
  color: #ffffff;
}

/* ==========================================================================
   2-COLUMN GRID
   ========================================================================== */

.global-network-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: stretch;
}

/* ==========================================================================
   LEFT COLUMN: LOCATIONS PANEL (Enterprise NOC)
   ========================================================================== */

.network-locations-panel {
  background: #080c16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 12px 14px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
  max-height: 520px;
  position: relative;
}

.locations-scroll-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 8px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.25) transparent;
}

.locations-scroll-area::-webkit-scrollbar {
  width: 4px;
}
.locations-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.locations-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.25);
  border-radius: 9999px;
}

.network-category-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.network-category-group.is-hub-group {
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.category-header-title {
  font-size: 0.66rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 6px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-header-title.text-cyan {
  color: #00f2fe;
}

/* Location Item Card */
.network-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.network-item-card:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.15);
}

.network-item-card.active {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.08) 0%, rgba(14, 21, 38, 0.9) 100%);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 242, 254, 0.04);
}

.network-item-card.is-hub {
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.18);
}

.network-item-card.is-hub.active {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.14) 0%, rgba(14, 21, 38, 0.95) 100%);
  border-color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2), inset 0 0 12px rgba(0, 242, 254, 0.08);
}

.item-left-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Country Flag Circular Avatars (Universal Cross-Platform) */
.flag-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flag-us { background-image: url('https://flagcdn.com/w40/us.png'); }
.flag-ca { background-image: url('https://flagcdn.com/w40/ca.png'); }
.flag-br { background-image: url('https://flagcdn.com/w40/br.png'); }
.flag-cl { background-image: url('https://flagcdn.com/w40/cl.png'); }
.flag-es { background-image: url('https://flagcdn.com/w40/es.png'); }
.flag-de { background-image: url('https://flagcdn.com/w40/de.png'); }
.flag-gb { background-image: url('https://flagcdn.com/w40/gb.png'); }
.flag-sg { background-image: url('https://flagcdn.com/w40/sg.png'); }
.flag-jp { background-image: url('https://flagcdn.com/w40/jp.png'); }
.flag-au { background-image: url('https://flagcdn.com/w40/au.png'); }

.item-name-box {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.item-country-city {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-cyan-dot {
  color: #00f2fe;
  font-size: 0.65rem;
  text-shadow: 0 0 6px #00f2fe;
}

.status-green-dot {
  color: #10b981;
  font-size: 0.65rem;
}

.status-gray-dot {
  color: #64748b;
  font-size: 0.65rem;
}

.item-sub-city {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-mini-tag {
  font-size: 0.58rem;
  font-weight: 900;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.item-right-metric {
  display: flex;
  align-items: center;
}

.ping-badge {
  font-size: 0.74rem;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ping-badge i {
  font-size: 0.68rem;
}

.ping-cyan {
  color: #00f2fe;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.ping-green {
  color: #10b981;
}

.ping-yellow {
  color: #f59e0b;
}

.ping-gray {
  color: #64748b;
  font-size: 0.75rem;
}

.ping-clock-icon {
  color: #64748b;
  font-size: 0.82rem;
}

/* Panel Bottom Legend */
.network-panel-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.legend-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.leg-dot.cyan-dot { background: #00f2fe; box-shadow: 0 0 6px rgba(0, 242, 254, 0.7); }
.leg-dot.gray-dot { background: #64748b; }

/* ==========================================================================
   RIGHT COLUMN: DOTTED MAP VIEWPORT & BOTTOM STATUS STRIP
   ========================================================================== */

.network-viewport-card {
  background: #080c16;
  border: 1px solid rgba(0, 242, 254, 0.16);
  border-radius: 20px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.dotted-map-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 773 / 375;
  border-radius: 12px;
  overflow: hidden;
  background: #080c16;
}

.dotted-map-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.dotted-overlay-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Clearly Visible Dashed Transit Arcs (Líneas Entrecortadas) */
.transit-arc-path {
  fill: none;
  stroke: rgba(0, 242, 254, 0.26);
  stroke-width: 1.2px;
  stroke-dasharray: 4 4;
  transition: all 0.3s ease;
  pointer-events: none;
}

.transit-arc-path.is-pending-arc {
  stroke: rgba(100, 116, 139, 0.18);
  stroke-dasharray: 3 4;
}

/* Active Selected Route: Animated Glowing Dashed Fiber (Entrecortada con flujo de luz) */
.transit-arc-path.active-arc {
  stroke: #00f2fe !important;
  stroke-width: 1.8px !important;
  stroke-dasharray: 5 4 !important;
  animation: dashedFiberFlow 6s linear infinite !important;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.85)) !important;
  opacity: 1 !important;
}

@keyframes dashedFiberFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -200; }
}

/* Animated Data Packets Flowing from Miami */
.packet-pulse-dot {
  fill: #00f2fe;
  filter: drop-shadow(0 0 5px #00f2fe);
}

/* Interactive Map Pins */
.map-interactive-pin {
  cursor: pointer;
  pointer-events: all;
}

.pin-hitbox {
  fill: transparent;
}

.pin-cyan-dot {
  fill: #00f2fe;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.85));
  transition: r 0.2s ease, filter 0.2s ease;
}

.map-interactive-pin:hover .pin-cyan-dot,
.map-interactive-pin.active .pin-cyan-dot {
  r: 4.8;
  filter: drop-shadow(0 0 9px #00f2fe);
}

.pin-gray-dot {
  fill: #64748b;
  opacity: 0.85;
  transition: r 0.2s ease;
}

.map-interactive-pin:hover .pin-gray-dot,
.map-interactive-pin.active .pin-gray-dot {
  r: 4.2;
}

/* Miami Epicenter Hub */
.miami-hub-pin {
  cursor: pointer;
}

/* ==========================================================================
   BOTTOM FLOATING STATUS STRIP (High-End Enterprise NOC Layout)
   ========================================================================== */

.network-bottom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.active-node-badge-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-flag-round {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.active-city-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.active-country-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-city-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
}

.active-node-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

.active-lat-box {
  display: flex;
  flex-direction: column;
}

.lat-heading {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.lat-ping-val {
  font-size: 0.96rem;
  font-weight: 900;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* Hardware Spec Cards (Enterprise Style) */
.hardware-spec-cards {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hw-spec-card {
  background: #0b101d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  min-width: 145px;
  transition: all 0.25s ease;
}

.hw-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.hw-icon {
  font-size: 0.68rem;
  color: #64748b;
}

.hw-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hw-val {
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hw-card-performance {
  border-color: rgba(0, 242, 254, 0.28);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, #0b101d 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.06);
}

.hw-card-performance .hw-lbl {
  color: #00f2fe;
}

.ghz-pill {
  font-size: 0.64rem;
  font-weight: 800;
  background: rgba(0, 242, 254, 0.14);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .global-network-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .network-locations-panel {
    max-height: 380px;
  }

  .network-bottom-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hardware-spec-cards {
    width: 100%;
    justify-content: space-between;
  }

  .hw-spec-card {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .global-network-section {
    padding: 60px 0 70px;
  }

  .global-network-title {
    font-size: 1.7rem;
  }

  .network-viewport-card {
    padding: 12px 10px;
    min-height: 340px;
  }
}
