:root {
  --bg: #0a0714;
  --bg-elevated: rgba(22, 15, 38, 0.66);
  --purple: #7c5cff;
  --purple-deep: #3b1f6e;
  --lavender: #c4b5fd;
  --sky: #7dd3fc;
  --sky-strong: #38bdf8;
  --white: #f5f2fd;
  --gray: #9e96b4;
  --gray-dim: #6e6682;
  --card: rgba(255, 255, 255, 0.026);
  --card-solid: rgba(24, 16, 42, 0.85);
  --stroke: rgba(196, 181, 253, 0.13);
  --stroke-soft: rgba(196, 181, 253, 0.07);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-pill: 999px;
  --font-display: "Unbounded", "Syne", system-ui, sans-serif;
  --font-body: "Onest", "Figtree", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Barely-there texture so surfaces don't read as flat plastic */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0 24px 20px 0;
  gap: 32px;
}

.content {
  flex: 1;
  min-width: 0;
  max-width: 1040px;
  padding-top: 20px;
}

body.light {
  --bg: #f4f1fb;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --white: #191231;
  --gray: #57506c;
  --gray-dim: #7b7390;
  --card: rgba(25, 18, 49, 0.035);
  --card-solid: rgba(255, 255, 255, 0.85);
  --stroke: rgba(70, 45, 140, 0.16);
  --stroke-soft: rgba(70, 45, 140, 0.09);
  --shadow: 0 16px 44px rgba(70, 40, 120, 0.10);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(124, 92, 255, 0.5);
  color: #fff;
}

/* Dim Minecraft backdrop in site palette under a dark veil */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 78% -8%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 12% 88%, rgba(56, 189, 248, 0.07), transparent 60%),
    linear-gradient(175deg, rgba(13, 8, 25, 0.62) 0%, rgba(10, 7, 20, 0.78) 55%, rgba(7, 5, 16, 0.88) 100%),
    url("assets/mc-bg.jpg") center / cover no-repeat,
    #0a0714;
}

body.light .atmosphere {
  background:
    radial-gradient(ellipse 75% 55% at 85% -10%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 8% 90%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(180deg, #f0ecfb 0%, #f7f4fd 60%, #efeaf9 100%);
}

/* Left rail — quiet, structured */
.rail {
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 40;
  width: 228px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 14px 18px 14px;
  animation: navIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 16px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-soft);
  backdrop-filter: blur(18px);
  flex: 0 0 auto;
}

.edge-plates {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-bottom: 4px;
  border-top: 1px solid var(--stroke-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Simple diamond mark */
.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--sky), var(--purple));
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.brand-text {
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-soft);
}

/* display:flex beats the UA [hidden] rule — force hide */
.nav-actions[hidden],
.form-error[hidden],
.toast[hidden],
.modal[hidden] {
  display: none !important;
}

.link-btn {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.link-btn:hover {
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.pill-btn {
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--white);
  color: #150e2c;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.18s ease, transform 0.15s ease;
}

.pill-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 48px 8px 72px 4px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), transparent 70%);
}

.hero-brand,
.hero-title,
.hero-lead,
.hero-actions {
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  animation-delay: 0.05s;
}

.hero-title {
  animation-delay: 0.15s;
}

.hero-lead {
  animation-delay: 0.25s;
}

.hero-actions {
  animation-delay: 0.35s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rail feature list — plain rows with mono indices */
.feature-plate {
  position: relative;
  padding: 14px 2px;
  border-bottom: 1px solid var(--stroke-soft);
  animation: plateIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature-plate:last-child {
  border-bottom: 0;
}

.feature-plate:nth-child(1) {
  animation-delay: 0.35s;
}

.feature-plate:nth-child(2) {
  animation-delay: 0.45s;
}

.feature-plate:nth-child(3) {
  animation-delay: 0.55s;
}

@keyframes plateIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-index {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sky);
}

.feature-plate p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray);
}

.hero-brand {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  color: var(--white);
}

.hero-title {
  margin: 0;
  max-width: 26ch;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--lavender);
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 33rem;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: var(--sky-strong);
  color: #071422;
  font-weight: 700;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease;
}

.cta:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

.cta:active {
  transform: translateY(0);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cta-ghost:hover {
  border-color: rgba(196, 181, 253, 0.4);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Pricing */
.pricing {
  width: 100%;
  margin: 0 0 72px;
  padding: 56px 4px 8px;
}

.pricing .section-head,
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing.is-inview .section-head,
.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  text-align: left;
  margin-bottom: 30px;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--gray);
  line-height: 1.6;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--stroke-soft);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background 0.2s ease;
}

.pricing.is-inview .plan {
  opacity: 1;
  transform: translateY(0);
}

.pricing.is-inview .plan:nth-child(1) {
  transition-delay: 0.05s;
}

.pricing.is-inview .plan:nth-child(2) {
  transition-delay: 0.12s;
}

.pricing.is-inview .plan:nth-child(3) {
  transition-delay: 0.19s;
}

.pricing.is-inview .plan:nth-child(4) {
  transition-delay: 0.26s;
}

.plan:hover {
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.045);
}

.pricing.is-inview .plan:hover {
  transform: translateY(-3px);
}

.plan h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.price {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
}

.price span {
  color: inherit;
}

.plan-note {
  margin: 0 0 12px;
  color: var(--gray-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

.plan-btn {
  margin-top: auto;
  border: 1px solid var(--stroke);
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.plan-btn:hover {
  background: var(--sky-strong);
  border-color: var(--sky-strong);
  color: #071422;
}

.plan-featured {
  border-color: rgba(124, 92, 255, 0.5);
}

.plan-featured .plan-btn {
  background: var(--sky-strong);
  border-color: var(--sky-strong);
  color: #071422;
}

.plan-lifetime {
  border-color: rgba(125, 211, 252, 0.3);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.18);
  color: var(--lavender);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cabinet */
.cabinet {
  margin-top: 72px;
  margin-bottom: 48px;
}

.cabinet-panel {
  padding: 28px 26px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--stroke-soft);
  max-width: 40rem;
}

.cabinet-empty {
  margin: 0 0 18px;
  color: var(--gray);
  font-size: 1rem;
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cabinet-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
  margin: 0 0 26px;
}

.cabinet-meta dt {
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

.cabinet-meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-all;
}

.cabinet-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke-soft);
}

.cabinet-download-note {
  margin: 0;
  color: var(--gray);
  font-size: 0.94rem;
  max-width: 32rem;
  line-height: 1.5;
}

.cabinet-mods {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke-soft);
}

.cabinet-mods-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.cabinet-mods-lead {
  margin: 0 0 14px;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36rem;
}

.cabinet-mods-lead code,
.cabinet-mods-hint code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.cabinet-mods-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cabinet-mods-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--stroke-soft);
}

.cabinet-mod-name {
  font-weight: 600;
  font-size: 0.94rem;
}

.cabinet-mod-meta {
  color: var(--gray);
  font-size: 0.84rem;
}

.cabinet-mod-role {
  justify-self: end;
  padding: 3px 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
  background: rgba(124, 92, 255, 0.14);
}

.cabinet-mod-link {
  justify-self: end;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.cabinet-mod-link:hover {
  border-bottom-color: currentColor;
}

.cabinet-mods-hint {
  margin: 12px 0 0;
  color: var(--gray);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 36rem;
}

#btnDownloadLauncher:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .cabinet-meta {
    grid-template-columns: 1fr;
  }

  .cabinet-mods-list li {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name role"
      "meta meta"
      "link link";
  }

  .cabinet-mod-name {
    grid-area: name;
  }

  .cabinet-mod-meta {
    grid-area: meta;
  }

  .cabinet-mod-role {
    grid-area: role;
  }

  .cabinet-mod-link {
    grid-area: link;
    justify-self: start;
  }
}

.legal-block {
  width: min(720px, 100%);
  margin: 0 0 48px;
  padding: 8px 4px;
}

.legal-block h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-block p {
  margin: 0;
  color: var(--gray);
  line-height: 1.6;
}

.legal-block.reveal,
.footer.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-block.is-inview,
.footer.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  width: 100%;
  margin: 0;
  padding: 28px 4px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--gray-dim);
  font-size: 0.88rem;
  border-top: 1px solid var(--stroke-soft);
}

.footer-muted {
  opacity: 0.75;
}

/* Float tools */
.float-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}

.tool-btn {
  min-width: 46px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke-soft);
  background: var(--card-solid);
  color: var(--white);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.tool-btn:hover {
  border-color: var(--stroke);
  transform: translateY(-1px);
}

.tool-btn.discord {
  text-decoration: none;
  background: #5865f2;
  border-color: transparent;
  color: #fff;
}

.flag {
  font-size: 1rem;
  line-height: 1;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  border-radius: 16px;
  background: #16102a;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0);
}

body.light .modal-card {
  background: #fff;
}

.modal-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-sub {
  margin: 8px 0 18px;
  color: var(--gray);
  font-size: 0.94rem;
}

.modal-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  color: var(--gray-dim);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.light .modal-card input {
  background: #f4f0ff;
  color: #171225;
}

.modal-card input:focus {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
}

.modal-cta {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--gray-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.18s ease;
}

.modal-x:hover {
  color: var(--white);
}

.modal-foot {
  margin: 14px 0 0;
  text-align: center;
  color: var(--gray-dim);
  font-size: 0.9rem;
}

.text-link {
  border: 0;
  background: none;
  color: var(--sky);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .shell {
    flex-direction: column;
    padding: 14px;
    gap: 16px;
  }

  .content {
    max-width: none;
    padding-top: 0;
  }

  .rail {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    padding: 12px;
  }

  .nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 auto;
    gap: 4px;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .nav-actions {
    flex-direction: row;
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
  }

  .edge-plates {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 12px;
    border-top: 1px solid var(--stroke-soft);
    padding-top: 4px;
  }

  .feature-plate {
    border-bottom: 0;
    padding: 10px 2px;
  }
}

@media (max-width: 560px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
    min-height: auto;
  }

  .nav-links {
    width: 100%;
    order: 3;
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
  }

  .nav-actions .link-btn,
  .nav-actions .pill-btn {
    flex: 1;
  }

  .footer {
    flex-direction: column;
  }
}

.form-error {
  margin: 0 0 10px;
  color: #ff8a8a;
  font-size: 0.9rem;
}

.account-chip {
  margin: 0;
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.35;
  max-width: 180px;
  word-break: break-word;
}

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast-item {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(18, 13, 32, 0.96);
  color: #f5f8ff;
  border: 1px solid var(--stroke);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  will-change: transform, opacity;
  animation: toast-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast-item.is-leaving {
  animation: toast-out 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}

body.light .toast-item {
  background: rgba(255, 255, 255, 0.97);
  color: #141820;
  border-color: rgba(20, 24, 32, 0.1);
}

body.light .form-error {
  color: #c0392b;
}

.cf-widget {
  display: flex;
  justify-content: center;
  margin: 4px 0 12px;
  min-height: 0;
}

.cf-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.cf-gate[hidden] {
  display: none !important;
}

body.cf-locked {
  overflow: hidden;
}

body.cf-locked .shell,
body.cf-locked .float-tools,
body.cf-locked .modal,
body.cf-locked .toast-host {
  visibility: hidden !important;
  pointer-events: none !important;
}

.cf-gate-card {
  width: min(380px, 100%);
  padding: 30px 26px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  text-align: center;
}

.cf-gate-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.cf-gate-sub {
  margin: 0 0 18px;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.light .cf-gate-card {
  background: rgba(255, 255, 255, 0.97);
  color: #141820;
}

.footer-pay {
  margin-top: 14px;
}

.footer-pay img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}