html.beta-gate-pending body {
  overflow: hidden;
}

html.beta-gate-pending main,
html.beta-gate-pending footer {
  opacity: 0;
  pointer-events: none;
}

html.beta-gate-locked body {
  overflow: hidden;
}

html.beta-gate-locked main,
html.beta-gate-locked footer {
  filter: blur(12px) saturate(0.92);
  pointer-events: none;
  user-select: none;
}

.beta-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(221, 110, 66, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(36, 106, 115, 0.22), transparent 24%),
    radial-gradient(circle at bottom, rgba(124, 152, 133, 0.18), transparent 34%),
    rgba(20, 19, 24, 0.72);
  backdrop-filter: blur(18px);
}

.beta-gate-card {
  width: min(100%, 520px);
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(155deg, rgba(255, 252, 245, 0.96), rgba(241, 233, 219, 0.92));
  box-shadow:
    0 32px 72px rgba(15, 12, 9, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #1f2330;
}

.beta-gate-eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #dd6e42;
  font-weight: 800;
}

.beta-gate-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.96;
}

.beta-gate-copy {
  margin: 16px 0 0;
  color: #5d6474;
  line-height: 1.65;
}

.beta-gate-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.beta-gate-label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.beta-gate-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 35, 48, 0.14);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 1rem;
  color: #1f2330;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.beta-gate-input:focus {
  outline: 2px solid rgba(36, 106, 115, 0.28);
  outline-offset: 2px;
}

.beta-gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.beta-gate-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #246a73, #2f7f89);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(36, 106, 115, 0.24);
}

.beta-gate-button:hover {
  filter: brightness(1.03);
}

.beta-gate-note {
  margin: 0;
  color: #5d6474;
  font-size: 0.92rem;
}

.beta-gate-error {
  min-height: 1.3em;
  margin: 0;
  color: #b33951;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .beta-gate-card {
    padding: 22px 20px 20px;
    border-radius: 22px;
  }

  .beta-gate-row {
    align-items: stretch;
  }

  .beta-gate-button {
    width: 100%;
    justify-content: center;
  }
}
