/* ======================================================================
   UI-GATEWAY-004B3HR2
   Globe scale repair + side-pill removal + active KPI preservation
   ====================================================================== */

:root {
  --fin-green: rgba(83, 255, 166, 0.96);
  --fin-green-soft: rgba(83, 255, 166, 0.18);
  --fin-green-border: rgba(83, 255, 166, 0.52);
  --fin-green-glow: rgba(83, 255, 166, 0.26);
}

/* ------------------------------------------------------------
   GLOBAL COVERAGE — network stage
   ------------------------------------------------------------ */
.b3hr2-network-card,
.b3hr2-network-stage {
  position: relative !important;
  overflow: hidden !important;
}

.b3hr2-network-stage {
  isolation: isolate !important;
}

.b3hr2-network-globe-wrap {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 42% !important;
  height: 42% !important;
  transform: translate(-50%, -50%) scale(2) !important;
  transform-origin: center center !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  opacity: 0.98 !important;
  filter: drop-shadow(0 0 28px rgba(80, 225, 255, 0.24));
}

.b3hr2-network-globe,
.b3hr2-network-globe-wrap img,
.b3hr2-network-globe-wrap svg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

.b3hr2-core-badge {
  position: relative !important;
  z-index: 3 !important;
}

.b3hr2-hide-pill {
  display: none !important;
}

/* ------------------------------------------------------------
   ACTIVE KPI PRESERVATION
   BOTH "ACTIVE SYSTEM" + "GLOBAL POSITION" MUST STAY GREEN
   ------------------------------------------------------------ */
.b3hr2-force-active {
  position: relative !important;
  border-color: var(--fin-green-border) !important;
  box-shadow:
    0 0 0 1px rgba(83,255,166,0.20) inset,
    0 0 20px rgba(83,255,166,0.12),
    0 0 34px rgba(83,255,166,0.10) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,255,251,0.98)) !important;
}

.b3hr2-force-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(83,255,166,0.00) 0%,
    rgba(83,255,166,0.08) 28%,
    rgba(83,255,166,0.20) 48%,
    rgba(83,255,166,0.08) 68%,
    rgba(83,255,166,0.00) 100%
  );
  opacity: 0.85;
  pointer-events: none;
  animation: b3hr2GreenSweep 6.6s linear infinite;
}

.b3hr2-force-active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(83,255,166,0.38) inset;
  pointer-events: none;
}

@keyframes b3hr2GreenSweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  12%  { opacity: 0.55; }
  50%  { opacity: 0.85; }
  88%  { opacity: 0.55; }
  100% { transform: translateX(100%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .b3hr2-force-active::before {
    animation: none !important;
  }

  .b3hr2-network-globe-wrap {
    transform: translate(-50%, -50%) scale(2) !important;
  }
}