/* =========================================================
   SOSO CLOUD - Global Host Locations (Next-Gen NOC Overhaul)
   ========================================================= */

/* Header Logo & Utility styles preserved */
.home-header .header-logo img { object-fit: contain; mix-blend-mode: multiply; }
.is-darkmode .home-header .header-logo img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
.is-darkmode .home-header .header-logo .logo { color: #86b8f2; }
.home-header .header-logo .logo { white-space: nowrap; }
.home-header .header-sign { display: flex; align-items: center; }
.soso-theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--sub-color, #526379);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
}
.soso-theme-toggle:hover { color: #2b74c9; background: rgba(85, 149, 220, .11); }
.is-darkmode .soso-theme-toggle { color: #b7d8fc; }
.soso-theme-toggle:focus-visible { outline: 2px solid #428bdb; outline-offset: 3px; }

/* ---------------------------------------------------------
   SERVICE MAP CONTAINER & THEME TOKENS
   --------------------------------------------------------- */
.home-service .service-map {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.09) 0%, rgba(99, 102, 241, 0.04) 35%, transparent 65%), #f8fafc;
  --bg-canvas: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(203, 213, 225, 0.75);
  --card-border-highlight: rgba(255, 255, 255, 0.95);
  --card-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 14px 32px -12px rgba(15, 23, 42, 0.09);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-accent: #0284c7;
  --panel-bg: radial-gradient(ellipse at 50% 50%, #eff6ff 0%, #ffffff 90%);
  --panel-border: rgba(203, 213, 225, 0.75);
  --panel-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.7);
  --grid-line: rgba(59, 130, 246, 0.07);
  --grid-dot: rgba(59, 130, 246, 0.16);
  --land-fill: #dbeafe;
  --land-stroke: #93c5fd;
  --arc-track: rgba(14, 165, 233, 0.22);
  --arc-flow: #0284c7;
  --node-online: #0ea5e9;
  --node-online-halo: rgba(14, 165, 233, 0.35);
  --node-warning: #f59e0b;
  --node-warning-halo: rgba(245, 158, 11, 0.35);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --chip-border: #e2e8f0;
  --chip-text: #1e293b;
  --chip-hover-bg: #f0f9ff;
  --chip-hover-border: #38bdf8;
  --chip-active-bg: #e0f2fe;
}

.is-darkmode .home-service .service-map {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(99, 102, 241, 0.06) 35%, transparent 65%),
    radial-gradient(circle at 10% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(168, 85, 247, 0.05) 0%, transparent 45%),
    #12151d;
  --bg-canvas: #090d16;
  --card-bg: #11141d;
  --card-border: rgba(148, 163, 184, 0.14);
  --card-border-highlight: rgba(148, 163, 184, 0.18);
  --card-shadow: inset 0 1px 0 0 rgba(148, 163, 184, 0.18), 0 16px 36px -12px rgba(0, 0, 0, 0.65);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;
  --panel-bg: radial-gradient(ellipse at 50% 50%, #0d1728 0%, #050812 95%);
  --panel-border: rgba(51, 65, 85, 0.85);
  --panel-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(56, 189, 248, 0.18);
  --grid-line: rgba(56, 189, 248, 0.06);
  --grid-dot: rgba(56, 189, 248, 0.18);
  --land-fill: #141f33;
  --land-stroke: rgba(56, 189, 248, 0.35);
  --arc-track: rgba(56, 189, 248, 0.2);
  --arc-flow: #38bdf8;
  --node-online: #38bdf8;
  --node-online-halo: rgba(56, 189, 248, 0.45);
  --node-warning: #f59e0b;
  --node-warning-halo: rgba(245, 158, 11, 0.45);
  --chip-bg: rgba(17, 24, 39, 0.88);
  --chip-border: rgba(51, 65, 85, 0.8);
  --chip-text: #e2e8f0;
  --chip-hover-bg: rgba(14, 165, 233, 0.16);
  --chip-hover-border: #38bdf8;
  --chip-active-bg: rgba(14, 165, 233, 0.28);
}

.home-service .service-map::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 60%, transparent 100%);
}

.home-service .service-map .wrapper-box {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Eyebrow Badge (Solid DarkReader-safe foreground color) */
.soso-coverage-badge {
  display: flex;
  width: fit-content;
  max-width: 90%;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  margin: 0 auto 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 165, 233, 0.28);
  box-shadow: 0 4px 18px -2px rgba(14, 165, 233, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.is-darkmode .soso-coverage-badge {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: 0 4px 20px -2px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(148, 163, 184, 0.22);
}
.soso-coverage-badge .badge-text {
  color: #0284c7;
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
.is-darkmode .soso-coverage-badge .badge-text {
  color: #7dd3fc;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}
.badge-pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.badge-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: sosoSonarPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes sosoSonarPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Section Title & Subtitle (Solid DarkReader-safe text colors) */
.home-service .service-map .soso-coverage-title {
  margin: 0 auto 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-align: center;
  color: #0f172a;
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 16px rgba(14, 165, 233, 0.1);
}
.is-darkmode .home-service .service-map .soso-coverage-title {
  color: #f8fafc;
  text-shadow: 0 2px 26px rgba(56, 189, 248, 0.28), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.soso-coverage-subtitle {
  max-width: 720px;
  margin: 0 auto 40px;
  color: #475569;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(14px, 1.5vw, 15.5px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-align: center;
}
.is-darkmode .soso-coverage-subtitle {
  color: #cbd5e1;
}

/* ---------------------------------------------------------
   STATS BAR (3 MODERN METRIC CARDS - OBSIDIAN GLASSMORPHISM)
   --------------------------------------------------------- */
.soso-coverage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 36px;
  padding: 0;
  list-style: none;
}
.soso-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 20px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}
.soso-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 22px 42px -12px rgba(15, 23, 42, 0.14), 0 0 24px -6px var(--card-glow);
}
.is-darkmode .soso-stat-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow:
    inset 0 1px 0 0 rgba(148, 163, 184, 0.28),
    0 24px 48px -12px rgba(0, 0, 0, 0.75),
    0 0 30px -5px var(--card-glow);
}

/* Ambient Radial Light inside each card */
.card-ambient-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--card-glow-gradient);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.is-darkmode .card-ambient-glow {
  opacity: 0.65;
}
.soso-stat-card:hover .card-ambient-glow {
  opacity: 1;
}

/* Top Meta Row */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease;
}
.is-darkmode .stat-icon {
  box-shadow:
    inset 0 1px 0 rgba(148, 163, 184, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.35);
}
.soso-stat-card:hover .stat-icon {
  transform: scale(1.08);
}
.stat-icon svg {
  width: 22px;
  height: 22px;
}

/* Card Themes */
.card-nodes {
  --card-glow: rgba(56, 189, 248, 0.25);
  --card-glow-gradient: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, transparent 70%);
}
.icon-nodes {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid rgba(14, 165, 233, 0.32);
  color: #0284c7;
}
.is-darkmode .icon-nodes {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 165, 233, 0.08) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.tag-nodes {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #0284c7;
}
.is-darkmode .tag-nodes {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: #38bdf8;
}
.tag-nodes .tag-dot { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }

.card-regions {
  --card-glow: rgba(168, 85, 247, 0.25);
  --card-glow-gradient: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, transparent 70%);
}
.icon-regions {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #9333ea;
}
.is-darkmode .icon-regions {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}
.tag-regions {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #9333ea;
}
.is-darkmode .tag-regions {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.28);
  color: #c084fc;
}
.tag-regions .tag-dot { background: #c084fc; box-shadow: 0 0 6px #c084fc; }

.card-online {
  --card-glow: rgba(16, 185, 129, 0.25);
  --card-glow-gradient: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, transparent 70%);
}
.icon-online {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #059669;
}
.is-darkmode .icon-online {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.tag-online {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
}
.is-darkmode .tag-online {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #34d399;
}

/* Micro Tag Badge */
.stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: sosoBeaconPulse 1.6s infinite ease-in-out;
}
.is-darkmode .pulse-beacon {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
@keyframes sosoBeaconPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.85; box-shadow: 0 0 6px #34d399; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 14px #34d399, 0 0 22px rgba(52, 211, 153, 0.45); }
}

/* Hero Value Row */
.card-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.stat-number {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(34px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  color: #0f172a;
}
.is-darkmode .stat-number {
  color: #f8fafc;
}
.stat-number.stat-online {
  color: #059669;
}
.is-darkmode .stat-number.stat-online {
  color: #34d399;
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
}
.stat-unit {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}
.is-darkmode .stat-unit {
  color: #94a3b8;
}

/* Bottom Description & Extra Stat Row */
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stat-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
}
.is-darkmode .stat-label {
  color: #e2e8f0;
}
.card-extra-stat {
  font-size: 11.5px;
  color: #64748b;
}
.is-darkmode .card-extra-stat {
  color: #94a3b8;
}

/* Bottom Glowing Track Bar */
.card-track-bar {
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.is-darkmode .card-track-bar {
  background: rgba(148, 163, 184, 0.12);
}
.card-track-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.track-nodes {
  width: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
.track-regions {
  width: 100%;
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 100%);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}
.track-online {
  width: 91.2%;
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

/* ---------------------------------------------------------
   MAP PANEL CONTAINER
   --------------------------------------------------------- */
.soso-coverage-panel {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  isolation: isolate;
}

/* NOC Telemetry & Corner Crosshairs */
.soso-panel-telemetry .corner {
  position: absolute;
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
  z-index: 10;
}
.corner.tl { top: 12px; left: 16px; }
.corner.tr { top: 12px; right: 16px; }
.corner.bl { bottom: 12px; left: 16px; }
.corner.br { bottom: 12px; right: 16px; }

.soso-panel-telemetry .noc-tag {
  position: absolute;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.65;
  pointer-events: none;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.noc-tag.top-left { top: 14px; left: 32px; }
.noc-tag.top-right { top: 14px; right: 32px; }
.noc-tag.bottom-left { bottom: 14px; left: 32px; }
.noc-tag.bottom-right { bottom: 14px; right: 32px; }
.noc-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* SVG Map Canvas */
.soso-coverage-map {
  position: relative;
  padding: 30px 28px 16px;
  overflow: visible;
}
.soso-world-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Tech Grid */
.grid-line { stroke: var(--grid-line); }
.grid-dot { fill: var(--grid-dot); }

/* Landmass Styles */
.soso-map-land {
  fill: var(--land-fill);
  transition: fill 0.35s ease;
}
.soso-map-inlined-land path {
  fill: var(--land-fill);
  stroke: var(--land-stroke);
  stroke-width: 0.65px;
  stroke-linejoin: round;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

/* Network Arcs */
.soso-arc-track {
  stroke: var(--arc-track);
  stroke-width: 1.2px;
  stroke-dasharray: 2 4;
  fill: none;
}
.soso-arc-flow {
  stroke: var(--arc-flow);
  stroke-width: 2.2px;
  stroke-dasharray: 12 60;
  stroke-linecap: round;
  fill: none;
  animation: sosoArcFlow 3.2s linear infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 3px var(--arc-flow));
}
@keyframes sosoArcFlow {
  from { stroke-dashoffset: 72; }
  to { stroke-dashoffset: 0; }
}

/* Node Pins & Radar Ripples */
.soso-map-pin {
  cursor: pointer;
  outline: none;
}
.soso-radar {
  fill: none;
  stroke-linecap: round;
}
.soso-map-pin.is-online .soso-radar {
  stroke: var(--node-online);
}
.soso-map-pin.is-offline .soso-radar {
  stroke: var(--node-warning);
}
.soso-radar.wave-1 {
  animation: sosoRadarPing 2.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.soso-radar.wave-2 {
  animation: sosoRadarPing 2.8s cubic-bezier(0, 0.2, 0.8, 1) 1.4s infinite;
}
@keyframes sosoRadarPing {
  0% { r: 5px; opacity: 0.95; stroke-width: 2.2px; }
  100% { r: 28px; opacity: 0; stroke-width: 0.5px; }
}

.soso-halo {
  transition: all 0.25s ease;
}
.soso-map-pin.is-online .soso-halo {
  fill: var(--node-online-halo);
}
.soso-map-pin.is-offline .soso-halo {
  fill: var(--node-warning-halo);
}

/* Core Dot with correct SVG transform center */
.soso-map-pin .soso-core {
  stroke-width: 1.5px;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s ease;
}
.soso-map-pin.is-online .soso-core {
  fill: var(--node-online);
  stroke: #ffffff;
}
.is-darkmode .soso-map-pin.is-online .soso-core {
  stroke: #0a1120;
}
.soso-map-pin.is-offline .soso-core {
  fill: var(--node-warning);
  stroke: #ffffff;
}

.soso-center {
  fill: #ffffff;
  pointer-events: none;
}

/* Pin Micro-Labels */
.pin-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  fill: var(--text-muted);
  opacity: 0.55;
  pointer-events: none;
  transition: fill 0.2s ease, opacity 0.2s ease;
}

/* Pin Hover & Active State */
.soso-map-pin:hover .soso-core,
.soso-map-pin.is-hovered .soso-core,
.soso-map-pin.is-active .soso-core {
  transform: scale(1.4);
}
.soso-map-pin:hover .soso-halo,
.soso-map-pin.is-hovered .soso-halo,
.soso-map-pin.is-active .soso-halo {
  opacity: 0.85;
  r: 16px;
}
.soso-map-pin:hover .pin-tag,
.soso-map-pin.is-hovered .pin-tag,
.soso-map-pin.is-active .pin-tag {
  opacity: 1;
  fill: var(--text-accent);
  font-weight: 800;
}

/* ---------------------------------------------------------
   INTERACTIVE FLOATING TOOLTIP
   --------------------------------------------------------- */
.soso-map-tooltip {
  position: absolute;
  z-index: 50;
  width: 296px;
  max-width: calc(100% - 28px);
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.25);
  color: #f8fafc;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.soso-map-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tooltip-flag {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.tooltip-title-box { flex: 1; min-width: 0; }
.tooltip-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.tooltip-code {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
}
.tooltip-hub-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tooltip-status-pill {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tooltip-status-pill.is-online {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.tooltip-status-pill.is-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tooltip-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.tooltip-metric-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.metric-label {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.metric-value {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}
.metric-value.up-rate { color: #38bdf8; }
.metric-value.down-rate { color: #34d399; }

.tooltip-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #64748b;
}
.footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
}

/* ---------------------------------------------------------
   BOTTOM LOCATION CHIPS
   --------------------------------------------------------- */
.home-service .service-map .soso-coverage-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.015);
}
.is-darkmode .home-service .service-map .soso-coverage-legend {
  background: rgba(0, 0, 0, 0.2);
}

.soso-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--chip-border);
  border-radius: 9999px;
  background: var(--chip-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--chip-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.soso-location-chip:hover,
.soso-location-chip.is-hovered,
.soso-location-chip:focus-visible {
  transform: translateY(-2px);
  background: var(--chip-hover-bg);
  border-color: var(--chip-hover-border);
  color: var(--text-accent);
  box-shadow: 0 8px 18px -4px rgba(14, 165, 233, 0.3);
  outline: none;
}
.soso-location-chip.is-selected {
  background: var(--chip-active-bg);
  border-color: var(--text-accent);
  color: var(--text-accent);
  box-shadow: 0 0 0 2px var(--chip-hover-border), 0 8px 18px -4px rgba(14, 165, 233, 0.3);
}

.chip-flag {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}
.chip-name {
  font-weight: 500;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chip-dot.is-online {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.chip-dot.is-warning {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--text-accent);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.is-darkmode .chip-count {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

/* Status Notes */
.soso-coverage-note {
  margin: 10px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   RESPONSIVE OPTIMIZATION
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .soso-coverage-summary {
    padding: 0 16px;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .soso-panel-telemetry .noc-tag { display: none; }
  .soso-coverage-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px;
  }
  .soso-stat-card {
    padding: 16px 14px;
  }
  .stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .stat-number { font-size: 26px; }
  .stat-tag { font-size: 10.5px; padding: 3px 8px; }
  .card-extra-stat { display: none; }
  .soso-coverage-map { padding: 18px 14px 8px; }
  .home-service .service-map .soso-coverage-legend { padding: 14px 12px 18px; gap: 8px; }
  .soso-location-chip { padding: 5px 11px; font-size: 12px; }
}

@media (max-width: 680px) {
  .home-service .service-map { padding: 48px 0; }
  .soso-coverage-summary {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 16px;
  }
  .soso-stat-card { padding: 18px 20px; }
  .stat-number { font-size: 32px; }
  .stat-tag { display: inline-flex; font-size: 11.5px; }
  .card-extra-stat { display: inline; }
  .soso-map-tooltip { width: calc(100% - 28px); left: 14px !important; }
}
