.access-lock-active {
  overflow: hidden;
}

body.access-locked {
  overflow: hidden;
}

body.access-locked > :not(.access-gate) {
  filter: blur(9px);
  pointer-events: none;
  user-select: none;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  min-width: 320px;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 50% 0 / 74px 74px,
    linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(23, 35, 51, 0.93));
  color: #fff;
  overflow-y: auto;
}

.access-gate[hidden] {
  display: none;
}

.access-gate-panel {
  width: min(1040px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #101820;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.access-gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.46fr);
}

.access-gate-copy,
.access-gate-action {
  padding: clamp(24px, 5vw, 52px);
}

.access-gate-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 245, 0.96)),
    linear-gradient(90deg, rgba(16, 24, 32, 0.05) 1px, transparent 1px) 0 0 / 42px 42px;
}

.access-gate-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: #101820;
  color: #fff;
}

.access-gate-eyebrow,
.access-gate-note,
.access-gate-price span,
.access-gate-status {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-gate-eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  color: #344150;
}

.access-gate h2 {
  max-width: 720px;
  margin: 24px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.access-gate-deck {
  max-width: 650px;
  margin: 24px 0 0;
  color: #344150;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.6;
}

.access-gate-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(24px, 4vw, 42px) 0 0;
}

.access-gate-points div {
  min-height: 116px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.access-gate-points strong {
  display: block;
  font-size: 0.95rem;
}

.access-gate-points span {
  display: block;
  margin-top: 9px;
  color: #697586;
  font-size: 0.86rem;
  line-height: 1.45;
}

.access-gate-price {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 28px;
}

.access-gate-price strong {
  display: block;
  margin-top: 9px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 0.88;
}

.access-gate-price p,
.access-gate-hint {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.access-gate-actions {
  display: grid;
  gap: 10px;
}

.access-gate-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 18px;
  color: #101820;
  background: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.access-gate-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.access-gate-button-secondary {
  color: #fff;
  background: transparent;
}

.access-gate-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.access-gate-form label {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-gate-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.access-gate-form input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  padding: 0 13px;
}

.access-gate-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.access-gate-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #c86e3b;
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
}

.access-gate-status {
  min-height: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0;
  text-transform: none;
}

.access-gate-status.is-error {
  color: #ffcfb8;
}

.access-gate-status.is-success {
  color: #c9f5df;
}

@media (max-width: 820px) {
  .access-gate {
    place-items: start center;
  }

  .access-gate-grid {
    grid-template-columns: 1fr;
  }

  .access-gate-points {
    grid-template-columns: 1fr;
  }

  .access-gate-action {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .access-gate {
    padding: 12px;
  }

  .access-gate-copy,
  .access-gate-action {
    padding: 22px;
  }

  .access-gate h2 {
    font-size: clamp(2.8rem, 17vw, 4.5rem);
  }

  .access-gate-input-row {
    grid-template-columns: 1fr;
  }

  .access-gate-form button,
  .access-gate-button {
    width: 100%;
  }
}
