:root {
  --bg: #061021;
  --panel: rgba(7, 15, 31, 0.78);
  --panel-soft: rgba(223, 250, 255, 0.03);
  --ink: #f3f1e8;
  --muted: #a8b3cb;
  --line: rgba(174, 212, 255, 0.16);
  --line-strong: rgba(174, 212, 255, 0.28);
  --cyan: #68f4ef;
  --blue: #4d7dff;
  --ice: #dffaff;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 18% 18%, rgba(104, 244, 239, 0.14), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(77, 125, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #061021 0%, #081427 48%, #050d1c 100%);
  color: var(--ink);
  font-family: "Sora", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
  opacity: 0.16;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.access-shell {
  min-height: 100vh;
  padding: 28px;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.access-copy,
.access-panel {
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--panel);
  box-shadow: 0 34px 90px var(--shadow);
}

.access-copy {
  padding: 34px;
}

.access-panel {
  padding: 24px;
}

.back-link,
.helper-text,
.lead,
.plan-frame p,
.access-lines p,
#status-copy {
  color: var(--muted);
}

.back-link:hover {
  color: var(--ice);
}

.access-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.access-mark {
  width: 72px;
}

.eyebrow,
.plan-label,
.status-label,
.auth-form span,
.access-lines span,
.access-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.status-label,
.auth-form span,
.access-lines span {
  color: var(--cyan);
}

.access-kicker,
.plan-label {
  color: var(--ice);
}

h1,
h2 {
  margin: 0 0 14px;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(3.2rem, 5.4vw, 5.6rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.96;
}

.serif {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
}

.lead,
.plan-frame p,
.access-lines p,
#status-copy,
.helper-text {
  margin: 0;
  line-height: 1.78;
}

.plan-selector,
.plan-frame,
.status-panel,
.access-lines,
.auth-form label {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-soft);
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 16px;
  padding: 12px;
}

.plan-option {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.plan-option:hover {
  border-color: var(--line);
  transform: translateY(-1px);
}

.plan-option.is-active {
  border-color: rgba(104, 244, 239, 0.34);
  background: rgba(104, 244, 239, 0.08);
}

.plan-option__eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plan-option__name {
  margin: 0;
  font-size: 1.08rem;
}

.plan-option__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-option__price strong {
  font-size: 1.5rem;
  line-height: 1;
}

.plan-option__price span,
.plan-frame__price span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plan-option__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.plan-frame {
  margin: 0 0 24px;
  padding: 24px;
}

.plan-frame__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.plan-frame__topline strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 0.96;
}

.plan-frame__price {
  min-width: max-content;
  text-align: right;
}

.plan-frame__price strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.96;
}

.plan-frame__ideal {
  margin-top: 12px;
}

.plan-feature-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plan-feature-list li {
  position: relative;
  padding: 14px 0 14px 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.68;
}

.plan-feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--cyan);
}

.access-lines {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
}

.access-lines > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.58fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.status-panel {
  padding: 24px;
  margin-bottom: 18px;
}

.status-actions,
.mode-toggle {
  display: flex;
  gap: 12px;
}

.status-actions {
  margin: 20px 0 12px;
}

.mode-toggle {
  margin-bottom: 18px;
}

.toggle-button,
.button {
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.toggle-button {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.toggle-button.is-active {
  border-color: rgba(104, 244, 239, 0.34);
  background: rgba(104, 244, 239, 0.08);
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  padding: 16px;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(104, 244, 239, 0.34);
  box-shadow: 0 0 0 3px rgba(104, 244, 239, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(104, 244, 239, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(104, 244, 239, 0.98), rgba(77, 125, 255, 0.92));
  color: #061021;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(58, 73, 255, 0.2);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(223, 250, 255, 0.02);
  color: var(--ink);
  box-shadow: none;
}

.button:hover,
.toggle-button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.is-hidden {
  display: none;
}

@media (max-width: 1020px) {
  .access-layout,
  .access-lines > div,
  .plan-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .access-shell {
    padding: 18px;
  }

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

  .status-actions,
  .mode-toggle {
    flex-direction: column;
  }

  .plan-frame__topline {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
