:root {
  color-scheme: dark;
  --bg: #0b0718;
  --bg-2: #160726;
  --panel: rgba(18, 8, 39, 0.76);
  --panel-strong: rgba(16, 7, 34, 0.92);
  --line: rgba(216, 202, 255, 0.14);
  --gold: #e8c436;
  --gold-2: #f6cd3d;
  --violet: #b698ff;
  --violet-2: #d8caff;
  --rose: #ff5f9f;
  --teal: #46d1c7;
  --text: #ffffff;
  --muted: #bfaeff;
  --danger: #ff6b7a;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 95, 159, 0.16), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(70, 209, 199, 0.12), transparent 28%),
    linear-gradient(145deg, #0b0718 0%, #160726 40%, #3a0a67 72%, #5a1188 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.container {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 18px 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -18px 18px;
  padding: 12px 18px;
  background: rgba(11, 7, 24, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 202, 255, 0.08);
}

.topbar-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(190, 111, 255, 0.46));
}

.brand-fallback {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.brand-name {
  margin: 0;
  color: var(--gold);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.account-line {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(232, 196, 54, 0.22);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(232, 196, 54, 0.08);
  font-size: 13px;
  line-height: 18px;
  font-weight: 900;
}

.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 202, 255, 0.12);
  border-radius: 14px;
  color: var(--violet-2);
  background: rgba(18, 8, 39, 0.76);
}

.hero {
  padding: 26px 0 18px;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(232, 196, 54, 0.12);
  border: 1px solid rgba(232, 196, 54, 0.18);
  font-size: 13px;
  line-height: 18px;
  font-weight: 900;
}

.page-title {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 11vw, 62px);
  line-height: 0.98;
  font-weight: 700;
}

.lead {
  margin: 16px 0 0;
  color: var(--violet-2);
  font-size: 18px;
  line-height: 28px;
  font-weight: 650;
}

.hero-art {
  position: relative;
  height: 178px;
  margin: 26px 0 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(216, 202, 255, 0.12);
  background:
    linear-gradient(130deg, rgba(232, 196, 54, 0.2), transparent 34%),
    linear-gradient(315deg, rgba(70, 209, 199, 0.16), transparent 38%),
    rgba(18, 8, 39, 0.76);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  width: 86px;
  height: 139px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.hero-card-back {
  left: 34px;
  top: 24px;
  transform: rotate(-12deg);
}

.hero-card-front {
  left: 104px;
  top: 14px;
  transform: rotate(9deg);
}

.hero-symbol {
  position: absolute;
  right: 20px;
  bottom: 12px;
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(190, 111, 255, 0.5));
}

.section {
  margin-top: 28px;
}

.section-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 22px;
  line-height: 29px;
  font-weight: 900;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 25px;
  font-weight: 650;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.grid {
  display: grid;
  gap: 12px;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(216, 202, 255, 0.1);
  border-radius: 20px;
  background: rgba(16, 7, 34, 0.5);
}

.feature-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0b0718;
  background: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.feature h3,
.plan h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 22px;
  font-weight: 900;
}

.feature p,
.plan p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
  font-weight: 650;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid rgba(216, 202, 255, 0.1);
  border-radius: 20px;
  background: rgba(16, 7, 34, 0.52);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0b0718;
  background: var(--gold);
  font-weight: 900;
}

.step h3 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
}

.step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
  font-weight: 650;
}

.plans {
  display: grid;
  gap: 14px;
}

.plan {
  border: 1px solid rgba(216, 202, 255, 0.12);
  border-radius: 24px;
  background: rgba(16, 7, 34, 0.62);
  padding: 18px;
}

.plan.is-selected {
  border-color: rgba(232, 196, 54, 0.74);
  background: rgba(83, 19, 113, 0.6);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--gold);
  font-size: 24px;
  line-height: 29px;
  font-weight: 950;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(70, 209, 199, 0.1);
  border: 1px solid rgba(70, 209, 199, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.list {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.list li {
  color: var(--violet-2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.list li::before {
  content: "✓";
  display: inline-block;
  width: 22px;
  color: var(--gold);
  font-weight: 950;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  cursor: pointer;
  color: #12041b;
  background: linear-gradient(135deg, #f8d84a, #e8c436, #f0a91f);
  font-size: 16px;
  line-height: 20px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(232, 196, 54, 0.18);
}

.button.secondary {
  color: var(--violet-2);
  background: rgba(18, 8, 39, 0.82);
  border: 1px solid rgba(216, 202, 255, 0.13);
  box-shadow: none;
}

.button.ghost {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(232, 196, 54, 0.28);
  box-shadow: none;
}

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

.home-actions {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.home-actions-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tiny-link-note {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--violet-2);
  font-size: 13px;
  line-height: 18px;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(216, 202, 255, 0.14);
  border-radius: 16px;
  outline: none;
  background: rgba(10, 4, 23, 0.74);
  color: var(--text);
  padding: 0 15px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.field input:focus {
  border-color: rgba(232, 196, 54, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 196, 54, 0.11);
}

.field input::placeholder {
  color: rgba(216, 202, 255, 0.4);
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 750;
}

.auth-switch a {
  color: var(--gold);
  font-weight: 950;
}

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

.choice {
  min-height: 96px;
  border: 1px solid rgba(216, 202, 255, 0.12);
  border-radius: 20px;
  background: rgba(16, 7, 34, 0.58);
  color: var(--text);
  padding: 14px;
  text-align: left;
}

.choice.is-selected {
  border-color: rgba(232, 196, 54, 0.74);
  background: rgba(83, 19, 113, 0.62);
}

.choice strong {
  display: block;
  font-size: 16px;
  line-height: 21px;
}

.choice span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.status-card {
  border: 1px solid rgba(216, 202, 255, 0.12);
  border-radius: 26px;
  background: rgba(16, 7, 34, 0.74);
  padding: 22px;
}

.status-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #12041b;
  background: var(--gold);
  font-size: 28px;
  font-weight: 950;
}

.status-card h2 {
  margin: 16px 0 8px;
  font-size: 25px;
  line-height: 31px;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  font-weight: 650;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(216, 202, 255, 0.1);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.summary-value {
  color: var(--text);
  text-align: right;
  font-size: 15px;
  font-weight: 950;
}

.notice {
  border: 1px solid rgba(70, 209, 199, 0.18);
  border-radius: 22px;
  background: rgba(70, 209, 199, 0.08);
  padding: 16px;
  color: var(--violet-2);
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
}

.error {
  border-color: rgba(255, 107, 122, 0.24);
  background: rgba(255, 107, 122, 0.08);
  color: #ffd4da;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.support-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 8, 39, 0.66);
  border: 1px solid rgba(216, 202, 255, 0.1);
  color: var(--violet-2);
  font-size: 14px;
  font-weight: 850;
}

.loading {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 999px;
  border: 3px solid rgba(232, 196, 54, 0.18);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 680px) {
  .container {
    padding-top: 26px;
  }

  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .hero-art {
    height: 230px;
  }
}

@media (max-width: 420px) {
  .topbar-inner {
    gap: 9px;
  }

  .topbar-link {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }
}
