/* Temporary site privacy gate — blur page only, PIN modal stays sharp */
html.gd-site-locked body {
  overflow: hidden;
}

html.gd-site-locked body > *:not(#gd-privacy-gate) {
  filter: blur(16px) saturate(0.85);
  pointer-events: none;
  user-select: none;
}

/* After correct PIN — force full clarity */
html.gd-site-unlocked body > * {
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

html.gd-site-unlocked body {
  overflow: auto !important;
}

#gd-privacy-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  filter: none;
  pointer-events: auto;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

#gd-privacy-gate,
#gd-privacy-gate * {
  filter: none !important;
  -webkit-filter: none !important;
}

#gd-privacy-gate.is-hidden {
  display: none;
}

.gd-privacy-card {
  width: 100%;
  max-width: 22rem;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.gd-privacy-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.gd-privacy-card p {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

.gd-pin-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.gd-pin-visual {
  cursor: text;
  margin-bottom: 1rem;
}

.gd-pin-dot {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1.25rem;
  color: #0f172a;
  transition: border-color 0.2s, background 0.2s;
}

.gd-pin-dot.filled {
  border-color: rgba(255, 87, 34, 0.5);
  background: rgba(255, 87, 34, 0.06);
}

.gd-pin-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}

.gd-pin-unlock-btn {
  margin-top: 0.5rem;
  width: 100%;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ff5722, #e64a19);
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.35);
}

.gd-pin-unlock-btn:hover {
  filter: brightness(1.05);
}

.gd-privacy-card {
  position: relative;
}

.gd-pin-box {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  caret-color: #ff5722;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-text-security: disc;
}

.gd-pin-box:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
  transform: scale(1.04);
}

.gd-pin-box.filled {
  border-color: rgba(255, 87, 34, 0.45);
  background: rgba(255, 87, 34, 0.04);
}

.gd-privacy-card.shake {
  animation: gd-privacy-shake 0.45s ease;
}

@keyframes gd-privacy-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.gd-privacy-error {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  opacity: 0;
  transition: opacity 0.2s;
}

.gd-privacy-error.visible {
  opacity: 1;
}
