/* Feres — global offline / poor network overlay */

body.feres-network-open {
  overflow: hidden !important;
}

.feres-network-overlay {
  position: fixed;
  inset: 0;
  z-index: 240000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.feres-network-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feres-network-card {
  width: min(480px, 100%);
  padding: clamp(28px, 5vw, 40px) clamp(24px, 4vw, 36px);
  border-radius: 22px;
  text-align: center;
  background: #fff;
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(148, 163, 184, 0.14);
  animation: feresNetworkIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes feresNetworkIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.feres-network-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #ea580c;
  background: #fff7ed;
}

.feres-network-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.feres-network-message {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.55;
  color: #64748b;
  font-weight: 500;
}

.feres-network-btn {
  margin-top: 1.5rem;
  min-width: 9rem;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  background: #56ae57;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(86, 174, 87, 0.35);
  transition: background 0.15s ease, transform 0.12s ease;
}

.feres-network-btn:hover {
  background: #489e49;
}

.feres-network-btn:active {
  transform: scale(0.98);
}

html[data-ui-mode="dark"] .feres-network-card {
  background: #1e293b;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

html[data-ui-mode="dark"] .feres-network-title {
  color: #f8fafc;
}

html[data-ui-mode="dark"] .feres-network-message {
  color: #94a3b8;
}
