/* استایل کادر سراسری «قطع اتصال اینترنت» — مشترک بین همه‌ی بخش‌های سایت */
#net-status-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 16, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  font-family: inherit;
}

#net-status-overlay.show {
  opacity: 1;
  pointer-events: all
}

.net-status-box {
  max-width: 340px;
  width: calc(100% - 40px);
  background: rgba(20, 22, 34, .92);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 32px 26px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: netBoxIn .35s ease
}

@keyframes netBoxIn {
  from {
    transform: translateY(14px) scale(.97);
    opacity: 0
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1
  }
}

.net-status-icon {
  color: #ef4444;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: netIconPulse 1.8s ease-in-out infinite
}

#net-status-overlay.reconnected .net-status-icon {
  color: #22c55e;
  animation: none
}

@keyframes netIconPulse {

  0%,
  100% {
    opacity: .55;
    transform: scale(.96)
  }

  50% {
    opacity: 1;
    transform: scale(1.04)
  }
}

.net-status-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-bold, inherit)
}

.net-status-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.9;
  margin-bottom: 18px
}

.net-status-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: #ef4444;
  margin: 0 auto;
  animation: netSpin .8s linear infinite
}

#net-status-overlay.reconnected .net-status-spinner {
  border-top-color: #22c55e
}

@keyframes netSpin {
  to {
    transform: rotate(360deg)
  }
}
