.membership-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(211, 135, 67, 0.16), transparent),
    #0f0f0f;
  color: #ececec;
}

.membership-main {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0 3rem;
}

.membership-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: "Bayon", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.membership-lead {
  max-width: 40rem;
  color: #b9aaa0;
  line-height: 1.55;
}

.status-banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(74, 61, 52, 0.7);
  background: #1a1a1a;
}

.status-banner.is-ok {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.status-banner.is-warn {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

.membership-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(74, 61, 52, 0.55);
  background: #171717;
}

.plan-card.plan-featured {
  border-color: rgba(255, 183, 124, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 183, 124, 0.18);
}

.plan-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 183, 124, 0.18);
  color: #ffb77c;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-card h3 {
  margin: 0;
  font-family: "Bayon", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-tagline {
  margin: 0;
  color: #b9aaa0;
  font-size: 0.9rem;
  min-height: 2.6rem;
}

.plan-price {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffb77c;
}

.plan-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b9aaa0;
}

.plan-features {
  margin: 0;
  padding-left: 1.1rem;
  color: #d7cdc5;
  font-size: 0.88rem;
  line-height: 1.45;
  flex: 1;
}

.plan-features li + li {
  margin-top: 0.35rem;
}

.plan-card .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.membership-checkout {
  padding: 1.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(74, 61, 52, 0.55);
  background: #171717;
}

.membership-checkout h2 {
  margin: 0;
  font-family: "Bayon", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-price {
  margin: 0.35rem 0 0.65rem;
  color: #ffb77c;
  font-size: 1.25rem;
  font-weight: 700;
}

.checkout-note {
  margin: 0 0 1rem;
  color: #b9aaa0;
  font-size: 0.88rem;
}

#membership-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9aaa0;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(74, 61, 52, 0.7);
  background: #111;
  color: #ececec;
  font: inherit;
}

.checkout-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.form-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #fca5a5;
  font-size: 0.88rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #ffb77c, #d38743);
  color: #111;
}

.btn-ghost {
  background: #1f1f1f;
  border-color: rgba(74, 61, 52, 0.7);
  color: #ececec;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  #membership-form {
    grid-template-columns: 1fr;
  }
}
