/* ══════════════════════════════════════════════════════════
   MACHINE FOOD — Whop Access Gate (overlay variant)
   Sits on top of the bundled SPA. While the gate is visible
   the SPA is unreachable. After auth passes, gate.js sets
   display:none on .gate-wrapper and the SPA shows through.
   ══════════════════════════════════════════════════════════ */

.gate-wrapper {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #F8FAFC;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(56,189,248,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(139,92,246,0.09) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  font-family: 'DM Sans', 'Manrope', system-ui, -apple-system, sans-serif;
}
.gate-wrapper[hidden] { display: none !important; }

.gate-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(8,17,31,0.10), 0 2px 12px rgba(8,17,31,0.06);
  padding: 48px 44px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: gateIn 0.35s ease both;
}
.gate-card[hidden] { display: none !important; }

@keyframes gateIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gate-logo-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.gate-logo {
  width: 64px; height: 64px; border-radius: 16px; object-fit: contain;
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

.gate-headline {
  font-size: 1.55rem; font-weight: 800; color: #071426;
  letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 10px;
}
.gate-sub {
  font-size: 0.97rem; color: #5B6472; line-height: 1.65; margin: 0 0 28px;
}
.gate-footnote {
  font-size: 0.78rem; color: #94A3B8; line-height: 1.55; margin-top: 16px;
}

.btn-whop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #2563EB 0%, #38BDF8 45%, #8B5CF6 100%);
  color: #fff;
  font-family: inherit; font-size: 0.97rem; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(37,99,235,0.30);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-whop:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(37,99,235,0.38); }
.btn-whop:active { transform: translateY(0); }
.whop-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-get-access {
  display: block; width: 100%;
  background: transparent; color: #2563EB;
  font-family: inherit; font-size: 0.97rem; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid #2563EB;
  cursor: pointer; transition: background 0.2s; text-decoration: none; text-align: center;
}
.btn-get-access:hover { background: rgba(37,99,235,0.06); }

.btn-reset {
  display: block; width: 100%;
  background: none; border: none; color: #94A3B8;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; margin-top: 14px; padding: 8px;
  border-radius: 10px; transition: color 0.2s;
  text-decoration: underline; text-underline-offset: 2px;
}
.btn-reset:hover { color: #5B6472; }

.gate-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 16px;
  color: #94A3B8; font-size: 0.78rem; font-weight: 600;
}
.gate-divider::before, .gate-divider::after {
  content: ''; flex: 1; height: 1px; background: #E2E8F0;
}

.blocked-icon { font-size: 2rem; margin-bottom: 16px; color: #F59E0B; }

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid #E2E8F0; border-top-color: #2563EB;
  border-radius: 50%; animation: spin 0.8s linear infinite;
  margin: 16px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 500px) {
  .gate-card { padding: 36px 24px 32px; }
  .gate-headline { font-size: 1.3rem; }
}
