.member-page {
  min-height: 100dvh;
}

.member-main {
  min-height: calc(100dvh - 86px);
  padding: 145px 6vw 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 580px);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  position: relative;
}

.member-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, transparent 6%, #000 34%, transparent 100%);
}

.member-intro,
.member-panel {
  position: relative;
  z-index: 1;
}

.member-intro h1 {
  margin: 26px 0 28px;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  max-width: 850px;
}

.member-intro h1 em {
  color: var(--cyan);
  font-style: normal;
}

.member-intro > p {
  max-width: 680px;
  color: #a4acb7;
  font-size: 16px;
  line-height: 1.75;
  border-left: 1px solid var(--cyan);
  padding-left: 20px;
}

.member-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
  color: #c8ced5;
  font: 11px/1.4 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-benefits i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.45);
}

.member-panel {
  border: 1px solid rgba(67, 232, 255, 0.2);
  background: rgba(7, 9, 13, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  padding: 0 34px 34px;
  overflow: hidden;
}

.member-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -45% 0 auto;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(67, 232, 255, 0.055), transparent);
  animation: member-scan 8s linear infinite;
}

.member-panel > * {
  position: relative;
  z-index: 1;
}

@keyframes member-scan {
  to { transform: translateY(440%); }
}

.member-panel-top {
  height: 48px;
  margin: 0 -34px 30px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font: 10px "DM Mono", monospace;
  letter-spacing: 0.12em;
  color: #7f8995;
}

.member-panel-top i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(67, 232, 255, 0.32), transparent);
}

.member-panel-top em {
  color: var(--cyan);
  font-style: normal;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.auth-tabs[hidden] {
  display: none !important;
}

.auth-tabs button {
  padding: 14px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #737d89;
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.member-form {
  display: grid;
  gap: 18px;
}

.member-form[hidden],
#memberView[hidden],
#authView[hidden] {
  display: none !important;
}

.form-heading small,
.member-active > small {
  color: var(--acid);
  font: 10px "DM Mono", monospace;
  letter-spacing: 0.14em;
}

.form-heading h2,
.member-active h2 {
  margin: 7px 0 4px;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.member-form label {
  display: grid;
  gap: 8px;
  color: #afb7c1;
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
  font: 14px Inter, sans-serif;
  transition: border-color 0.2s, background 0.2s;
}

.member-form input:focus {
  border-color: rgba(67, 232, 255, 0.55);
  background: rgba(67, 232, 255, 0.04);
}

.password-field {
  position: relative;
  display: block;
}

.member-form label + .password-field {
  margin-top: -10px;
}

.password-field input {
  padding-right: 68px;
}

.password-field button {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: 10px "DM Mono", monospace;
  cursor: pointer;
  padding: 8px;
}

.password-rules {
  margin: -8px 0 0;
  color: #8995a1;
  font: 10px/1.6 "DM Mono", monospace;
  letter-spacing: 0.04em;
}

.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -10px;
}

.member-text-button {
  border: 0;
  background: transparent;
  color: var(--cyan);
  padding: 4px 0;
  font: 10px "DM Mono", monospace;
  cursor: pointer;
}

.legal-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.55 !important;
}

.legal-consent input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.legal-consent a {
  color: var(--cyan);
}

.member-primary,
.member-secondary,
.social-buttons button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.member-primary {
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: #031014;
  padding: 13px 17px;
  font: 700 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.member-primary:disabled {
  opacity: 0.5;
  cursor: wait;
}

.verification-note,
.provider-note {
  margin: -5px 0 0;
  color: #7f8995;
  font-size: 12px;
  line-height: 1.6;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #65707b;
  font: 9px "DM Mono", monospace;
  letter-spacing: 0.12em;
  margin: 25px 0 14px;
}

.social-divider::before,
.social-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-buttons button,
.member-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #dce1e6;
  padding: 12px 14px;
  font: 11px "DM Mono", monospace;
}

.social-buttons button:hover,
.member-secondary:hover {
  border-color: rgba(67, 232, 255, 0.4);
}

.social-buttons b {
  font: 700 16px Inter, sans-serif;
  color: #fff;
}

.auth-message {
  min-height: 20px;
  margin-top: 18px;
  color: #9ca6b0;
  font-size: 12px;
  line-height: 1.55;
}

.auth-message.error {
  color: #ff8b8b;
}

.auth-message.success {
  color: #86f7b3;
}

.member-active {
  text-align: center;
}

.member-pulse {
  width: 74px;
  height: 74px;
  margin: 5px auto 22px;
  border: 1px solid rgba(67, 232, 255, 0.4);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  position: relative;
}

.member-pulse span {
  transform: rotate(-45deg);
  color: var(--cyan);
  font-size: 28px;
}

.member-pulse i {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.member-active > p {
  color: #8e98a4;
  font-size: 13px;
  margin: 8px 0 24px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 26px 0;
}

.access-grid > div {
  padding: 17px 8px;
  display: grid;
  gap: 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.access-grid > div:last-child {
  border-right: 0;
}

.access-grid span,
.access-grid small {
  color: #68737f;
  font: 8px "DM Mono", monospace;
  letter-spacing: 0.1em;
}

.access-grid strong {
  color: var(--cyan);
  font: 11px "DM Mono", monospace;
}

.member-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 9px;
}

.account-delete {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255, 95, 126, 0.28);
  background: transparent;
  color: #ff8fa5;
  min-height: 42px;
  font: 10px "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-delete:hover {
  border-color: rgba(255, 95, 126, 0.65);
  background: rgba(255, 95, 126, 0.05);
}

.account-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(255, 95, 126, 0.34);
  background: #090b0f;
  color: #fff;
  padding: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.account-dialog::backdrop {
  background: rgba(1, 3, 6, 0.82);
  backdrop-filter: blur(8px);
}

.account-dialog .dialog-cursor-orb,
.account-dialog .dialog-cursor-dot {
  position: fixed;
  z-index: 2147483647;
  pointer-events: none;
}

.account-dialog-card {
  padding: 30px;
}

.account-dialog-card h2 {
  margin: 8px 0 12px;
  font-size: 30px;
}

.account-dialog-card p {
  color: #a5aeb9;
  font-size: 13px;
  line-height: 1.65;
}

.account-dialog-card label {
  display: grid;
  gap: 8px;
  color: #c2c9d1;
  font: 10px "DM Mono", monospace;
  letter-spacing: 0.08em;
}

.account-dialog-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 12px 14px;
}

.account-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.account-delete-confirm {
  border: 1px solid #ff5f7e;
  background: #ff5f7e;
  color: #150207;
  padding: 12px 16px;
  font: 700 10px "DM Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.account-delete-confirm:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.provider-note {
  margin-top: 18px !important;
  font-size: 11px !important;
}

@media (max-width: 1040px) {
  .member-main {
    grid-template-columns: 1fr;
    padding-top: 125px;
  }
  .member-intro {
    max-width: 800px;
  }
  .member-panel {
    width: min(620px, 100%);
  }
}

@media (max-width: 640px) {
  .member-main {
    padding: 108px 18px 50px;
    gap: 36px;
  }
  .member-intro h1 {
    font-size: clamp(45px, 14vw, 64px);
  }
  .member-panel {
    padding: 0 20px 24px;
  }
  .member-panel-top {
    margin: 0 -20px 24px;
  }
  .access-grid,
  .member-actions {
    grid-template-columns: 1fr;
  }
  .access-grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .access-grid > div:last-child {
    border-bottom: 0;
  }
}

/* Member access is a login doorway, not a separate post-login dashboard. */
.member-intro > p,
.verification-note,
.provider-note,
.auth-message {
  color: #b7c0ca;
}

.member-panel-top,
.auth-tabs button,
.form-heading small,
.member-form label,
.password-field button,
.member-primary,
.member-secondary,
.social-buttons button,
.social-divider,
.member-benefits {
  font-size: 12px;
  line-height: 1.5;
}

.member-panel-top,
.auth-tabs button:not(.active),
.verification-note,
.social-divider,
.auth-message {
  color: #aab4bf;
}

.member-form input {
  font-size: 15px;
}

@media (max-width: 640px) {
  .member-panel-top,
  .auth-tabs button,
  .form-heading small,
  .member-form label,
  .password-field button,
  .member-primary,
  .member-secondary,
  .social-buttons button,
  .social-divider,
  .member-benefits {
    font-size: 11px;
  }
}
