/* Full-screen frosted glass backdrop */
.civic-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 15, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.civic-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Central Card */
.civic-loading-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow:
    0 0 50px rgba(14, 165, 233, 0.15),
    inset 0 0 20px rgba(56, 189, 248, 0.05);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  width: 90%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

/* Graphic Container */
.scanner-graphic {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing Background Orbs */
.glow-orb {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.6;
}
.orb-left {
  background: #06b6d4;
  top: 10px;
  left: -10px;
}
.orb-right {
  background: #3b82f6;
  bottom: 10px;
  right: -10px;
}

/* Rotating Disc Scanner */
.disc-outer-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #38bdf8;
  border-right-color: #0284c7;
  border-bottom-color: #e0f2fe;
  animation: spinDisc 1.2s linear infinite;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-inner-core {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #590381a1;
  border: 3px solid #38bdf8;
  box-shadow: inset 0 0 8px #0284c7;
}

@keyframes spinDisc {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Orbiting Nodes */
.orbit-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #270361a4;
  border: 1px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.orbit-node span {
  color: var(--text_white);
}
.node-gps {
  top: 0;
  right: 5px;
  animation: floatNode 2s ease-in-out infinite alternate;
}
.node-server {
  bottom: 0;
  right: -10px;
  animation: floatNode 2s ease-in-out 1s infinite alternate;
}

@keyframes floatNode {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* Scanning Light Bar */
.scan-bar {
  position: absolute;
  bottom: 10px;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  border-radius: 2px;
  animation: scanPulse 1.5s ease-in-out infinite;
}

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

/* Status Text Animation */
.loading-status-container {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-status-text {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
