/* ZOLOTO NEXUS | ROUTE GUARD OVERLAY */

html.zoloto-guard-pending body { visibility: hidden !important; }

html.zoloto-guard-blocked body {
  visibility: visible !important;
  overflow: hidden !important;
}

html.zoloto-guard-blocked body > * { visibility: hidden !important; }

html.zoloto-guard-blocked #zoloto-guard-overlay {
  visibility: visible !important;
  pointer-events: auto !important;
}

#zoloto-guard-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

#zoloto-guard-overlay .zg-card {
  width: min(720px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(212, 175, 55, 0.55);
  border-left: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 20px 60px rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  animation: zgFlash 1.2s ease-in-out infinite;
}

@keyframes zgFlash {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 20px 60px rgba(0, 0, 0, 0.65);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 60, 60, 0.30), 0 20px 60px rgba(255, 60, 60, 0.08);
  }
}

#zoloto-guard-overlay .zg-title {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  color: var(--zoloto-gold, #d4af37);
}

#zoloto-guard-overlay .zg-headline {
  margin-top: 10px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 22px;
  color: #fff;
}

#zoloto-guard-overlay .zg-body {
  margin-top: 10px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

#zoloto-guard-overlay .zg-meta {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

#zoloto-guard-overlay .zg-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#zoloto-guard-overlay .zg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #000;
  background: var(--zoloto-gold, #d4af37);
}

#zoloto-guard-overlay .zg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
}
