:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #526070;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --line: #d9e3ea;
  --navy: #071a3f;
  --blue: #1f86ff;
  --cyan: #16c8d7;
  --green: #2db56f;
  --orange: #ff7a1a;
  --yellow: #ffca3a;
  --purple: #7c3cff;
  --shadow: 0 24px 70px rgba(9, 28, 63, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.dashboard-has-session #auth-panel {
  display: none !important;
}

.dashboard-has-session [data-auth-link] {
  display: none !important;
}

[data-session-action] {
  display: none !important;
}

.dashboard-has-session [data-session-action] {
  display: inline-flex !important;
}

.dashboard-signed-out .hero-stats,
.dashboard-signed-out .dashboard-card-grid {
  display: none;
}

.dashboard-signed-out .dashboard-setup-grid {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: auto;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 227, 234, 0.8);
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav,
.header-actions,
.hero-actions,
.feature-row,
.experience-selector,
.site-footer,
.footer-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  overflow-y: auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.site-header nav {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.header-actions,
.footer-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-action,
.button,
.plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.header-action {
  padding: 0 18px;
  color: #ffffff;
  background: var(--ink);
}

.header-logout {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fff1f2;
  cursor: pointer;
}

.header-action.secondary,
.footer-action {
  color: var(--ink);
  background: #eaf2ff;
  border: 1px solid #bfdbfe;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(18px, 5vw, 72px) 70px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(4, 13, 35, 0.88), rgba(4, 13, 35, 0.58) 48%, rgba(4, 13, 35, 0.14)),
    url("/assets/hero.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(0deg, var(--paper), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.7vw, 4.8rem);
  line-height: 0.96;
}

h3 {
  margin: 10px 0;
  font-size: clamp(2.1rem, 3vw, 3rem);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.hero-offer {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  max-width: 620px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff04f, #ff8c37 58%, #33d6a6);
  color: #061125;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.hero-offer-kicker {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-offer strong {
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  padding: 0 22px;
}

.button.primary {
  background: var(--yellow);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(6, 20, 48, 0.42);
}

.hero-stats dt {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.home-hero {
  min-height: 96vh;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 202, 58, 0.38), transparent 22%),
    radial-gradient(circle at 78% 68%, rgba(22, 200, 215, 0.32), transparent 24%),
    linear-gradient(100deg, rgba(4, 13, 35, 0.93), rgba(4, 13, 35, 0.72) 50%, rgba(4, 13, 35, 0.26)),
    url("/assets/hero.png") center / cover no-repeat;
}

.home-hero h1 {
  max-width: 980px;
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  letter-spacing: -0.065em;
}

.hero-badge-row,
.install-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-badge-row {
  margin-top: 22px;
}

.hero-badge-row span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.section {
  padding: clamp(64px, 8vw, 120px) clamp(18px, 5vw, 72px);
}

.intro-grid,
.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.intro-grid p,
.value-copy p,
.section-heading p,
.experience-grid p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.feature-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.feature-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 750;
}

.screenshot-frame {
  margin: 0;
}

.screenshot-frame img,
.credit-art {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.screenshot-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.value-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--soft);
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.value-list strong,
.value-list span {
  display: block;
}

.value-list strong {
  font-size: 1.12rem;
}

.value-list span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-section {
  background:
    linear-gradient(180deg, #ffffff, #f8fbfd 72%),
    var(--paper);
}

.vivid-pricing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 202, 58, 0.26), transparent 30%),
    radial-gradient(circle at 92% 22%, rgba(31, 134, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f1f8ff 68%, #fff8ed 100%);
}

.vivid-pricing::before {
  content: "";
  position: absolute;
  inset: 34px clamp(18px, 5vw, 72px) auto auto;
  width: 190px;
  height: 190px;
  border-radius: 36% 64% 50% 50%;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.22), rgba(22, 200, 215, 0.18));
  filter: blur(1px);
  transform: rotate(18deg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.wide-heading {
  position: relative;
  max-width: 920px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.expanded-plans {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.plan {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.07);
}

.instant-plan {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 18px;
  border-color: rgba(31, 134, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 85% 8%, rgba(255, 202, 58, 0.28), transparent 36%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.instant-plan::after {
  content: "";
  position: absolute;
  inset: auto -24px -44px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(22, 200, 215, 0.13);
}

.instant-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 134, 255, 0.38);
  box-shadow: 0 24px 54px rgba(16, 24, 40, 0.12);
}

.plan.featured {
  border-color: var(--orange);
  background: linear-gradient(180deg, #fff8ef, #ffffff);
}

.instant-plan.featured {
  background:
    linear-gradient(180deg, #fff8ed, #ffffff),
    radial-gradient(circle at 80% 8%, rgba(255, 122, 26, 0.22), transparent 36%);
}

.hot-plan {
  border-color: rgba(45, 181, 111, 0.44);
  background:
    linear-gradient(180deg, #f0fff7, #ffffff),
    radial-gradient(circle at 80% 8%, rgba(45, 181, 111, 0.2), transparent 36%);
}

.subscription-plan {
  grid-column: span 2;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 202, 58, 0.32), transparent 24%),
    linear-gradient(135deg, #061225, #0b57d0 56%, #0f766e);
}

.subscription-plan .plan-name,
.subscription-plan .credit,
.subscription-plan .plan-note {
  color: rgba(255, 255, 255, 0.86);
}

.subscription-plan .plan-action {
  color: var(--ink);
  background: var(--yellow);
}

.plan-name {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.credit {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
}

.plan-note {
  min-height: 54px;
  margin: -10px 0 20px;
  color: var(--muted);
  line-height: 1.45;
}

.plan-action {
  width: 100%;
  background: var(--navy);
  color: #ffffff;
}

.plan.featured .plan-action {
  background: var(--orange);
}

.instant-access {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #061225;
  color: #ffffff;
}

.instant-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.75;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steps-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: #061225;
  font-weight: 950;
}

.steps-grid h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.steps-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.steps-grid code,
.feature-row code {
  font-size: 0.9em;
}

.experience-grid {
  background: #fffaf0;
}

.experience-selector {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.experience-selector button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.experience-selector button.selected {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.credit-art {
  justify-self: center;
}

.install-section {
  background: var(--navy);
  color: #ffffff;
}

.install-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.terminal-strip {
  max-width: 860px;
  border-radius: 8px;
  background: #020b1c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  overflow: auto;
}

.terminal-strip pre {
  margin: 0;
  padding: 24px;
  color: #c9f7d8;
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.install-link {
  margin: 18px 0 0;
}

.install-link a {
  color: var(--yellow);
  font-weight: 850;
}

.install-cta-row {
  margin-top: 20px;
}

.docs-main {
  min-height: 100vh;
  padding-top: 76px;
  background:
    radial-gradient(circle at 92% 8%, rgba(22, 200, 215, 0.13), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 32%, #f4f8fb 100%);
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 8vw, 120px) clamp(18px, 5vw, 72px);
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 202, 58, 0.32), transparent 24%),
    radial-gradient(circle at 14% 82%, rgba(45, 181, 111, 0.2), transparent 28%),
    linear-gradient(135deg, #071a3f 0%, #0b57d0 62%, #0f766e 100%);
}

.docs-hero h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.docs-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.72;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 86px) clamp(18px, 5vw, 72px);
}

.docs-toc {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.docs-toc strong {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-toc a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
}

.docs-toc a:hover {
  color: var(--navy);
  background: #eff6ff;
}

.docs-content {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.docs-section {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.07);
  scroll-margin-top: 110px;
}

.docs-section h2 {
  max-width: 900px;
  font-size: clamp(2rem, 3.6vw, 4.1rem);
  letter-spacing: -0.045em;
}

.docs-section h3 {
  margin-top: 28px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.docs-section p,
.docs-section li,
.docs-section dd {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.docs-section a {
  color: #0b57d0;
  font-weight: 850;
}

.docs-section code,
.docs-section pre {
  font-family: Consolas, Monaco, "DejaVu Sans Mono", monospace;
}

.docs-section code {
  padding: 0.12rem 0.34rem;
  border-radius: 6px;
  color: #0f3058;
  background: #eff6ff;
}

.docs-section pre {
  overflow: auto;
  margin: 18px 0;
  padding: 18px;
  border-radius: 16px;
  color: #c9f7d8;
  background: #020b1c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.docs-section pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  white-space: pre-wrap;
}

.docs-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
  color: #7c2d12;
  line-height: 1.65;
}

.docs-callout strong {
  color: #431407;
}

.docs-card-grid,
.docs-screenshot-grid {
  display: grid;
  gap: 18px;
}

.docs-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.76), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.docs-card h3 {
  margin-top: 0;
}

.docs-screenshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-shot {
  margin: 0;
}

.docs-shot img {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.16);
}

.docs-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.docs-shot-hero img {
  border-color: rgba(255, 255, 255, 0.28);
}

.docs-shot-hero figcaption {
  color: rgba(255, 255, 255, 0.78);
}

.docs-inline-shot {
  margin: 22px 0;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.docs-table th,
.docs-table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  color: var(--navy);
  background: #eff6ff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-table td {
  color: var(--muted);
  line-height: 1.55;
}

.docs-steps {
  display: grid;
  gap: 14px;
  padding-left: 22px;
}

.docs-faq {
  display: grid;
  gap: 12px;
}

.docs-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.docs-faq summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--navy);
  font-weight: 900;
}

.docs-faq details p {
  margin: 0;
  padding: 0 18px 18px;
}

.docs-glossary {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 12px 18px;
}

.docs-glossary dt {
  color: var(--navy);
  font-weight: 950;
}

.docs-glossary dd {
  margin: 0;
}

.dashboard-main {
  min-height: 100vh;
  padding-top: 86px;
  background:
    linear-gradient(180deg, #f5f9ff, #ffffff 44%),
    var(--paper);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-sizing: border-box;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 48px) clamp(30px, 4vw, 54px);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.dashboard-hero > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.72fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: stretch;
}

.dashboard-hero > div:first-child > .eyebrow,
.dashboard-hero > div:first-child > h1,
.dashboard-hero > div:first-child > .hero-copy {
  grid-column: 1;
}

.dashboard-command-center {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.46fr);
  gap: 16px;
  align-items: stretch;
  margin: 16px 0 18px;
}

.hero-model-picker,
.setup-wizard-button {
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.1);
}

.hero-model-picker {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(15, 118, 110, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(22, 200, 215, 0.2), transparent 34%),
    linear-gradient(145deg, #ffffff, #f1fbff);
}

.hero-model-picker > span,
.wizard-control-grid span,
.pricing-status-card > span {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-model-picker p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-model-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-model-buttons .cli-model-choice {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 88px;
  border-radius: 22px;
  text-align: left;
}

.hero-model-buttons .cli-model-choice strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.hero-model-buttons .cli-model-choice small {
  color: inherit;
  opacity: 0.76;
  font-weight: 750;
}

.setup-wizard-button {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 100%;
  padding: clamp(20px, 3vw, 30px);
  color: #061225;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(135deg, #ffca3a, #ff7a1a 62%, #16c8d7);
  border: 1px solid rgba(255, 122, 26, 0.28);
  text-decoration: none;
}

.setup-wizard-button span {
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.setup-wizard-button small {
  max-width: 220px;
  color: rgba(6, 18, 37, 0.78);
  font-weight: 850;
  line-height: 1.35;
}

.edge-server-selector {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 98% 0, rgba(22, 200, 215, 0.2), transparent 34%),
    linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.edge-server-copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.edge-server-copy span {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edge-server-copy strong {
  color: #061225;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.edge-server-copy small,
.edge-server-selector > p {
  color: var(--muted);
  line-height: 1.45;
}

.edge-server-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.edge-server-choice {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  color: #0f172a;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.edge-server-choice:hover,
.edge-server-choice:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.edge-server-choice.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #1556b8);
  box-shadow: 0 18px 38px rgba(21, 86, 184, 0.2);
}

.edge-server-choice strong {
  font-size: 1.12rem;
}

.edge-server-choice small {
  color: inherit;
  opacity: 0.78;
  font-weight: 750;
}

.edge-server-selector > p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.94rem;
}

.dashboard-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4.6vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.dashboard-hero .hero-copy {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.dashboard-signed-out .dashboard-hero > div:first-child {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 980px);
  margin: 0 auto;
}

.dashboard-signed-out .dashboard-command-center {
  grid-column: 1;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  align-items: stretch;
}

.dashboard-signed-out .dashboard-hero > div:first-child > .eyebrow,
.dashboard-signed-out .dashboard-hero > div:first-child > h1,
.dashboard-signed-out .dashboard-hero > div:first-child > .hero-copy {
  grid-column: 1;
}

.dashboard-signed-out .dashboard-hero h1,
.dashboard-signed-out .dashboard-hero .hero-copy {
  max-width: 860px;
}

@media (max-width: 1120px) {
  .dashboard-signed-out .dashboard-command-center {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-signed-out .setup-wizard-button {
    min-height: 150px;
  }
}

.admin-return-banner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #153e75;
  font-weight: 800;
}

.admin-return-banner[hidden] {
  display: none;
}

.admin-return-banner button {
  min-height: 38px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--blue);
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.dashboard-panel,
.install-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.dashboard-panel {
  padding: clamp(22px, 3.5vw, 42px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.16), transparent 26%),
    radial-gradient(circle at 90% 4%, rgba(45, 212, 191, 0.12), transparent 24%),
    #ffffff;
}

.dashboard-panel h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.dashboard-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(236, 253, 245, 0.92)),
    #eff6ff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  outline: none;
}

.dashboard-account-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-account-bar span {
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-account-bar strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dashboard-account-bar small {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-panel button.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-account-bar:hover .logout-button,
.dashboard-account-bar:focus-within .logout-button,
.dashboard-account-bar .logout-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.dashboard-account-bar:hover,
.dashboard-account-bar:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.logout-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.dashboard-tabs button,
.dashboard-panel button,
.copy-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-tabs button.selected,
.dashboard-panel button.primary,
.copy-button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.dashboard-panel button.google-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 0 18px;
  border-color: #0b57d0;
  background: linear-gradient(135deg, #0b57d0 0%, #0ea5e9 54%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(14, 116, 144, 0.22);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.dashboard-panel button.google-auth-button:hover,
.dashboard-panel button.google-auth-button:focus-visible {
  border-color: #073b8e;
  background: linear-gradient(135deg, #073b8e 0%, #0284c7 54%, #15803d 100%);
  box-shadow: 0 18px 36px rgba(14, 116, 144, 0.28);
}

.google-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.86);
  color: #0b57d0;
  background: #ffffff;
  font-weight: 900;
  font-size: 1.05rem;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 202, 58, 0.18), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(20, 184, 166, 0.2), transparent 34%),
    linear-gradient(135deg, #071a3f 0%, #0b57d0 50%, #0f766e 100%);
}

.login-brand {
  position: fixed;
  top: 22px;
  left: 22px;
  color: #ffffff;
}

.login-card {
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-card .intro {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

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

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.login-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid #d8e1f2;
  border-radius: 14px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.turnstile-field {
  width: 100%;
  max-width: 450px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.turnstile-field .cf-turnstile,
.turnstile-field .dashboard-turnstile-widget {
  width: 100%;
}

.login-form button,
.login-google-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffca3a, #ff7a1a);
  color: #071a3f;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.login-google-link {
  margin: 14px 0 10px;
  background: #ffffff;
  border: 1px solid #d8e1f2;
}

.login-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.login-status.error {
  color: #b42318;
}

.secondary-login-link {
  display: inline-flex;
  margin-top: 14px;
  color: #0b57d0;
  font-weight: 900;
}

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

#auth-panel {
  max-width: 760px;
}

.dashboard-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
}

.dashboard-setup-grid > * {
  grid-column: 1;
}

.setup-main-column {
  grid-column: 1;
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  min-width: 0;
}

.setup-main-column > * {
  min-width: 0;
}

.dashboard-setup-grid > h2,
.setup-main-column > h2 {
  order: 1;
  margin-top: 8px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  letter-spacing: -0.06em;
}

.dashboard-setup-grid > section,
.setup-main-column > section {
  order: 90;
}

.dashboard-setup-grid > section,
.dashboard-setup-grid > nav,
.dashboard-setup-grid > p,
.setup-main-column > section,
.setup-main-column > p {
  scroll-margin-top: 110px;
}

.logged-out-packages {
  display: grid;
  gap: 18px;
  margin: 8px 0 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 202, 58, 0.32), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(31, 134, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef7ff 52%, #ecfdf5);
  box-shadow: 0 24px 70px rgba(9, 28, 63, 0.12);
}

.logged-out-packages h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.logged-out-packages p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.setup-jump-nav {
  position: sticky;
  top: 78px;
  z-index: 8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1;
  order: 0;
  max-height: none;
  overflow: visible;
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.98)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

.setup-jump-nav span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-jump-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: #153e75;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
}

.setup-jump-nav a:hover,
.setup-jump-nav a:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #0b57d0, #0f766e);
}

.setup-wizard-panel,
.pricing-status-panel,
.sales-section-heading {
  padding: clamp(22px, 4vw, 38px);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.setup-wizard-panel {
  display: grid;
  gap: 20px;
  order: 2;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background:
    radial-gradient(circle at 6% 6%, rgba(255, 202, 58, 0.28), transparent 30%),
    radial-gradient(circle at 94% 16%, rgba(22, 200, 215, 0.2), transparent 26%),
    linear-gradient(145deg, #ffffff, #f4fbff 56%, #f0fff7);
}

.setup-wizard-copy h2,
.pricing-status-panel h2,
.sales-section-heading h2 {
  max-width: min(100%, 900px);
  overflow-wrap: anywhere;
  text-wrap: balance;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.setup-wizard-copy p,
.pricing-status-panel p,
.sales-section-heading p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.65;
}

.wizard-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wizard-control-grid > div {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.wizard-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wizard-choice {
  min-height: 54px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.wizard-choice.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #0b57d0);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
}

.wizard-result-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 3.2vw, 34px);
  border-radius: 30px;
  background: #061225;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.wizard-result-card h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.wizard-result-card p,
.wizard-steps {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.wizard-result-card > div:first-child > span {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-command-box {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.wizard-command-box .copy-button {
  order: 1;
  justify-self: start;
  width: min(100%, 360px);
  min-height: 52px;
  border-radius: 14px;
}

.wizard-command-box pre {
  order: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  max-height: 360px;
  overflow-x: scroll;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior-inline: contain;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  color: #c9f7d8;
  background: #020b1c;
  white-space: pre;
  overflow-wrap: normal;
}

.wizard-command-box pre code {
  display: block;
  min-width: max-content;
  white-space: pre;
}

@media (max-width: 1180px) {
  .wizard-result-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-command-box .copy-button {
    width: min(100%, 420px);
  }
}

.wizard-download-link {
  order: 4;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 16px;
  color: #061225;
  background: var(--yellow);
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.wizard-steps {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 22px;
}

.cli-model-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.cli-model-choice {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cli-model-choice.active {
  background: linear-gradient(135deg, #0f766e, #0f172a);
  color: #ffffff;
  border-color: transparent;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.form-grid .turnstile-field {
  justify-content: flex-start;
  padding: 2px 0 4px;
}

.inline-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.inline-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.inline-form-grid input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: stretch;
  min-width: 0;
  margin: 0;
}

.wallet-card {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  background: var(--navy);
  color: #ffffff;
}

.wallet-card-balance {
  grid-column: 1 / -1;
  grid-row: span 2;
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 214, 10, 0.45), transparent 34%),
    linear-gradient(145deg, #061125 0%, #0f766e 58%, #33d6a6 100%);
  box-shadow: 0 28px 64px rgba(6, 17, 37, 0.24);
}

.wallet-card-cash {
  background:
    radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.42), transparent 35%),
    linear-gradient(145deg, #3a2603, #a16207 52%, #facc15);
  color: #fff8db;
}

.wallet-card-credential {
  background:
    radial-gradient(circle at 16% 12%, rgba(51, 214, 166, 0.34), transparent 34%),
    linear-gradient(145deg, #07111f, #12395b 58%, #1e7b8f);
}

.wallet-card strong {
  display: block;
  font-size: 1.8rem;
  overflow-wrap: break-word;
  word-break: normal;
}

.wallet-card:not(.wallet-card-balance) strong {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.wallet-card-credential strong {
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-card-grid .wallet-card:last-child {
  grid-column: 1 / -1;
}

.wallet-card-balance strong {
  max-width: 100%;
  font-size: clamp(3rem, 5.4vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}

.wallet-card span {
  color: rgba(255, 255, 255, 0.72);
}

.wallet-card-rate {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 202, 58, 0.24), transparent 34%),
    linear-gradient(145deg, #071a3f, #1556b8 52%, #16c8d7);
}

.dashboard-has-session .dashboard-hero {
  padding-top: clamp(24px, 3vw, 38px);
  padding-bottom: clamp(24px, 3vw, 38px);
}

.dashboard-has-session .dashboard-hero > div:first-child {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
}

.dashboard-has-session .dashboard-command-center {
  margin: 8px 0 14px;
}

.dashboard-has-session .hero-model-picker {
  padding: clamp(16px, 2.4vw, 22px);
}

.dashboard-has-session .hero-model-buttons .cli-model-choice {
  min-height: 74px;
  border-radius: 20px;
}

.dashboard-has-session .setup-wizard-button {
  min-height: 0;
  padding: clamp(18px, 2.6vw, 26px);
}

.dashboard-has-session .setup-wizard-button span {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.dashboard-has-session .dashboard-hero h1 {
  max-width: 680px;
  margin: 4px 0 0;
  font-size: clamp(2rem, 3.6vw, 3.85rem);
  line-height: 0.98;
}

.dashboard-has-session .dashboard-hero .hero-copy {
  max-width: 680px;
  margin-top: 8px;
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  line-height: 1.5;
}

.dashboard-has-session .dashboard-card-grid {
  align-self: start;
  gap: 12px;
}

.dashboard-has-session .wallet-card {
  padding: 14px 16px;
  border-radius: 20px;
}

.dashboard-has-session .wallet-card-balance {
  min-height: 132px;
  padding: clamp(18px, 2.6vw, 24px);
}

.dashboard-has-session .wallet-card-balance strong {
  font-size: clamp(2.8rem, 4vw, 4rem);
}

.dashboard-has-session .wallet-card:not(.wallet-card-balance) strong {
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
}

.dashboard-has-session .wallet-card-credential strong {
  font-size: clamp(0.92rem, 1.12vw, 1.05rem);
}

.dashboard-has-session .dashboard-card-grid .wallet-card:last-child {
  grid-column: auto;
}

@media (max-width: 1120px) {
  .dashboard-has-session .dashboard-hero > div:first-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .edge-server-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-has-session .dashboard-command-center {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  }

  .dashboard-has-session .dashboard-card-grid {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
  }

  .dashboard-has-session .wallet-card-balance {
    min-height: 150px;
  }

  .dashboard-has-session .wallet-card:not(.wallet-card-balance) strong {
    font-size: clamp(1.18rem, 2.8vw, 1.65rem);
  }

  .dashboard-has-session .wallet-card-credential strong {
    font-size: clamp(0.95rem, 2.1vw, 1.15rem);
  }
}

.surge-pricing-badge {
  display: grid;
  grid-template-columns: minmax(96px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.32), transparent 34%),
    rgba(6, 17, 37, 0.24);
  box-shadow: 0 18px 38px rgba(127, 29, 29, 0.26);
}

.surge-pricing-badge.pricing-mode-surge {
  border-color: rgba(255, 210, 106, 0.5);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 244, 184, 0.38), transparent 34%),
    linear-gradient(145deg, rgba(43, 6, 20, 0.62), rgba(255, 122, 26, 0.32));
  box-shadow: 0 20px 42px rgba(127, 29, 29, 0.34);
}

.surge-pricing-badge.pricing-mode-standard {
  border-color: rgba(213, 247, 255, 0.52);
  background:
    radial-gradient(circle at 8% 0%, rgba(213, 247, 255, 0.32), transparent 34%),
    linear-gradient(145deg, rgba(7, 26, 63, 0.62), rgba(22, 200, 215, 0.22));
  box-shadow: 0 20px 42px rgba(21, 86, 184, 0.24);
}

.surge-pricing-badge.pricing-mode-reduced {
  border-color: rgba(255, 247, 184, 0.58);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 247, 184, 0.38), transparent 34%),
    linear-gradient(145deg, rgba(4, 42, 31, 0.72), rgba(57, 255, 159, 0.28));
  box-shadow: 0 20px 42px rgba(12, 124, 89, 0.3);
}

.pricing-mode-icon {
  width: 100%;
  min-width: 92px;
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.surge-pricing-badge b {
  color: #fff8db;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surge-pricing-badge small {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.surge-pricing-badge em {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.pricing-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: stretch;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(22, 200, 215, 0.18), transparent 30%),
    linear-gradient(145deg, #ffffff, #f5faff);
}

.pricing-status-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 202, 58, 0.24), transparent 34%),
    linear-gradient(145deg, #071a3f, #1556b8 52%, #16c8d7);
}

.pricing-status-card strong {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.pricing-status-card > small {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.pricing-status-card .surge-pricing-badge {
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  margin-top: 4px;
  padding: 16px;
}

.sales-section-heading {
  border: 1px solid rgba(255, 122, 26, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 202, 58, 0.2), transparent 30%),
    linear-gradient(145deg, #fffaf0, #ffffff);
}

.toolbox-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 18px;
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 202, 58, 0.24), transparent 32%),
    linear-gradient(135deg, #fff8e8, #fffaf2 52%, #f2fbff);
  box-shadow: 0 22px 62px rgba(127, 29, 29, 0.1);
}

.toolbox-panel h2 {
  margin: 4px 0 10px;
  color: #431407;
}

.toolbox-panel p {
  color: #5f4025;
  line-height: 1.65;
}

.toolbox-options {
  display: grid;
  gap: 10px;
}

.toolbox-option {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(120, 53, 15, 0.18);
  border-radius: 20px;
  background: #ffffff;
  color: #431407;
  text-align: left;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.06);
}

.toolbox-option strong {
  font-size: 1rem;
}

.toolbox-option span {
  color: #7c5b43;
  line-height: 1.45;
}

.toolbox-option.active {
  border-color: rgba(255, 122, 26, 0.55);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 202, 58, 0.2), transparent 30%),
    #fff7ed;
  box-shadow: 0 16px 36px rgba(255, 122, 26, 0.18);
}

.wallet-topup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  color: #061125;
  background: var(--yellow);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.dashboard-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-status.error {
  color: #b42318;
}

.release-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 14, 34, 0.58);
  backdrop-filter: blur(10px);
}

.release-modal[hidden] {
  display: none;
}

.email-required-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 214, 10, 0.36), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(51, 214, 166, 0.3), transparent 28%),
    rgba(6, 17, 37, 0.82);
  backdrop-filter: blur(16px);
}

.email-required-modal[hidden] {
  display: none;
}

.email-required-card {
  width: min(620px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 10, 0.22), transparent 34%),
    linear-gradient(145deg, #ffffff, #ecfeff);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.44);
}

.email-required-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.email-required-card p {
  color: var(--muted);
  font-weight: 720;
}

.email-required-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.email-required-form label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.email-required-form input {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.email-required-form button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.email-required-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.email-required-form .email-required-logout {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  white-space: nowrap;
}

.referral-club-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 16% 14%, rgba(250, 204, 21, 0.42), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.14), transparent 24%),
    rgba(18, 11, 2, 0.78);
  backdrop-filter: blur(16px);
}

.referral-club-modal[hidden] {
  display: none;
}

.referral-club-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 28px);
  margin: auto 0;
  overflow: auto;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 26px);
  color: #fff8db;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(250, 204, 21, 0.28), transparent 24%),
    linear-gradient(145deg, #120b02 0%, #3a2603 48%, #111827 100%);
  box-shadow: 0 46px 130px rgba(0, 0, 0, 0.48);
}

.referral-club-modal-card::after {
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 999px;
  content: "";
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.22), transparent 28%),
    repeating-conic-gradient(from 15deg, rgba(250, 204, 21, 0.24) 0deg 10deg, transparent 10deg 20deg);
}

.referral-club-modal-card > * {
  position: relative;
  z-index: 1;
}

.referral-club-modal-close {
  position: sticky;
  z-index: 4;
  top: 0;
  float: right;
  width: 38px;
  min-height: 38px;
  margin: -6px -6px 4px 12px;
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 999px;
  background: rgba(31, 19, 0, 0.92);
  color: #fff8db;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.referral-club-modal-card .eyebrow,
.referral-club-modal-card p,
.referral-club-modal-card .credential-note {
  color: rgba(255, 248, 219, 0.78);
}

.referral-club-modal-card h2 {
  max-width: 420px;
  margin: 0 0 10px;
  color: #fff8db;
  font-size: clamp(1.95rem, 5vw, 3.15rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.referral-club-modal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.referral-club-modal-metrics div {
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.referral-club-modal-metrics span {
  display: block;
  color: rgba(255, 248, 219, 0.72);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.referral-club-modal-metrics strong {
  display: block;
  margin-top: 5px;
  color: #fff8db;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.referral-club-modal-actions {
  position: sticky;
  z-index: 3;
  bottom: -1px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 16px -2px -2px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(18, 11, 2, 0), rgba(18, 11, 2, 0.96) 30%, rgba(18, 11, 2, 0.98));
}

.referral-club-modal-actions a,
.referral-club-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  font-weight: 950;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.referral-club-modal-actions .primary {
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: linear-gradient(135deg, #fff8db, #facc15 48%, #f59e0b);
  color: #1f1300;
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.3);
}

.referral-club-modal-actions .secondary {
  border: 1px solid rgba(255, 248, 219, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8db;
}

.release-modal-card {
  width: min(720px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.28), transparent 34%),
    linear-gradient(145deg, #ffffff, #f1f5f9);
  box-shadow: 0 34px 110px rgba(8, 14, 34, 0.34);
}

.release-modal-card h2 {
  margin: 0 0 8px;
}

.release-modal-card pre {
  margin: 18px 0;
  white-space: pre-wrap;
}

.client-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  order: 30;
}

.os-command-section {
  order: 45;
  scroll-margin-top: 110px;
}

.startup-instructions {
  display: grid;
  gap: 18px;
  order: 3;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 202, 58, 0.24), transparent 30%),
    linear-gradient(135deg, #061225, #0b57d0 58%, #0f766e);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
}

.claude-code-section {
  order: 10;
}

.dashboard-setup-grid > .startup-instructions {
  order: 3;
}

.dashboard-setup-grid > .setup-wizard-panel {
  order: 2;
}

.setup-main-column > .setup-wizard-panel {
  order: 2;
}

.setup-main-column > .startup-instructions {
  order: 3;
}

.dashboard-setup-grid > .unlimited-promo-offer {
  order: 72;
}

.setup-main-column > .unlimited-promo-offer {
  order: 72;
}

.dashboard-setup-grid > .os-selector-card {
  order: 4;
}

.setup-main-column > .os-selector-card {
  order: 4;
}

.dashboard-setup-grid > .linux-instructions-heading,
.dashboard-setup-grid > .claude-code-section {
  order: 10;
}

.setup-main-column > .linux-instructions-heading,
.setup-main-column > .claude-code-section {
  order: 10;
}

.dashboard-setup-grid > .client-dashboard-grid {
  order: 12;
}

.setup-main-column > .client-dashboard-grid {
  order: 12;
}

.dashboard-setup-grid > .referral-club-panel {
  order: 80;
}

.setup-main-column > .referral-club-panel {
  order: 80;
}

.dashboard-setup-grid > .os-command-section {
  order: 14;
}

.setup-main-column > .os-command-section {
  order: 14;
}

.dashboard-setup-grid > .windows-codex-section {
  order: 13;
}

.setup-main-column > .windows-codex-section {
  order: 13;
}

.dashboard-setup-grid > .password-panel {
  order: 31;
}

.setup-main-column > .password-panel {
  order: 31;
}

.dashboard-setup-grid > .share-credit-panel {
  order: 82;
}

.setup-main-column > .share-credit-panel {
  order: 82;
}

.dashboard-setup-grid > .unlimited-promo-monitor {
  order: 40;
}

.setup-main-column > .unlimited-promo-monitor {
  order: 40;
}

.dashboard-setup-grid > .usage-panel {
  order: 42;
}

.setup-main-column > .usage-panel {
  order: 42;
}

.dashboard-setup-grid > .pricing-status-panel {
  order: 52;
}

.setup-main-column > .pricing-status-panel {
  order: 52;
}

.dashboard-setup-grid > .toolbox-panel {
  order: 54;
}

.setup-main-column > .toolbox-panel {
  order: 54;
}

.dashboard-setup-grid > .sales-section-heading {
  order: 70;
}

.setup-main-column > .sales-section-heading {
  order: 70;
}

.dashboard-setup-grid > .topup-showcase {
  order: 74;
}

.setup-main-column > .topup-showcase {
  order: 74;
}

.dashboard-setup-grid > .subscription-panel {
  order: 76;
}

.setup-main-column > .subscription-panel {
  order: 76;
}

.dashboard-setup-grid > .auto-topup-panel {
  order: 78;
}

.setup-main-column > .auto-topup-panel {
  order: 78;
}

.startup-instructions .section-heading {
  margin-bottom: 0;
}

.startup-instructions h2,
.startup-instructions .eyebrow {
  color: #ffffff;
}

.startup-instructions .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.os-selector-card {
  display: grid;
  gap: 18px;
  order: 4;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.22), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(145deg, #ffffff, #f4f9ff 58%, #effdf7);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.os-selector-card h2 {
  max-width: 860px;
  margin: 0;
  color: #061225;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.os-selector-card p {
  max-width: 900px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.os-choice-grid,
.desktop-setup-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.os-choice-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  color: #0f172a;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.os-choice-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0b57d0);
  font-weight: 950;
}

.os-choice-card strong {
  font-size: 1.28rem;
}

.os-choice-card small {
  color: #64748b;
  line-height: 1.55;
}

.os-choice-card.primary-os {
  border-color: rgba(15, 118, 110, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.14), transparent 32%),
    #ffffff;
}

.desktop-setup-links {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.desktop-setup-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  color: #153e75;
  background: #ffffff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.desktop-setup-links a.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0b57d0, #0f766e);
}

.desktop-setup-links.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.desktop-setup-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.2), transparent 30%),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.desktop-setup-callout h3 {
  margin: 0 0 8px;
  color: #071f45;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.desktop-setup-callout p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.model-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.model-status-card span {
  color: rgba(255, 255, 255, 0.78);
}

.model-status-card strong {
  color: #ffffff;
}

@media (max-width: 760px) {
  .model-status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .os-choice-grid,
  .desktop-setup-links,
  .desktop-setup-links.compact,
  .desktop-setup-callout {
    grid-template-columns: 1fr;
  }

  .desktop-setup-links a {
    width: 100%;
  }
}

.command-set {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  max-width: none;
  overflow: hidden;
}

.linux-instructions-heading {
  display: grid;
  gap: 8px;
  order: 20;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.18), transparent 28%),
    linear-gradient(145deg, #f8fffc, #f0fdfa);
}

.linux-instructions-heading h2 {
  margin: 0;
  color: #063f37;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.linux-instructions-heading p {
  max-width: 860px;
  margin: 0;
  color: #47615e;
  line-height: 1.6;
}

.windows-codex-section {
  display: grid;
  gap: 22px;
  order: 50;
  margin: 8px 0 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.28), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(45, 212, 191, 0.18), transparent 26%),
    linear-gradient(145deg, #f8fbff, #eef6ff 48%, #ffffff);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.windows-section-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.windows-section-header h2 {
  margin: 0 0 8px;
  color: #071f45;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.windows-section-header p {
  max-width: 850px;
  margin: 0;
  color: #43546e;
  line-height: 1.6;
}

.windows-logo {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  grid-template-rows: repeat(2, 34px);
  gap: 6px;
  width: max-content;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(145deg, #0f172a, #1d4ed8);
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.28);
}

.windows-logo span {
  display: block;
  border-radius: 6px;
  background: linear-gradient(145deg, #dbeafe, #60a5fa);
}

.windows-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.windows-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 18px;
  align-content: start;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.windows-step h3 {
  margin: 0;
  color: #0f2f66;
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.windows-step p {
  margin: 0;
  color: #4b607c;
  line-height: 1.58;
}

.windows-step code {
  padding: 2px 5px;
  border-radius: 6px;
  color: #153e75;
  background: #eaf2ff;
}

.windows-step .step-number {
  display: inline-grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(145deg, #2563eb, #0f766e);
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.windows-step.command-step {
  grid-column: 1 / -1;
}

.windows-step .copy-button,
.windows-command {
  grid-column: 2;
}

.windows-step .copy-button {
  justify-self: start;
  width: min(100%, 360px);
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}

.windows-step.featured-step {
  border-color: rgba(15, 118, 110, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.14), transparent 30%),
    #ffffff;
}

.windows-command {
  min-height: auto;
  max-height: 360px;
  margin: 0;
  padding: 16px;
  white-space: pre;
  overflow-x: scroll;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior-inline: contain;
  color: #e2e8f0;
  background: #071225;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.windows-command code {
  display: block;
  min-width: max-content;
  padding: 0;
  color: inherit;
  background: transparent;
  white-space: pre;
  line-height: 1.55;
}

.vscode-setup-section {
  display: grid;
  gap: 22px;
  order: 55;
  margin: 8px 0 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 10%, rgba(45, 212, 191, 0.22), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(145deg, #f5fffd, #eef6ff 54%, #ffffff);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.vscode-logo {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.35), transparent 24%),
    linear-gradient(145deg, #0284c7, #1d4ed8 58%, #0f172a);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.vscode-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vscode-proof-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.vscode-proof-card strong {
  color: #0f2f66;
}

.vscode-proof-card p {
  margin: 0;
  color: #4b607c;
  line-height: 1.55;
}

.vscode-proof-card code {
  padding: 2px 5px;
  border-radius: 6px;
  color: #153e75;
  background: #eaf2ff;
}

.vscode-step-grid .windows-step .step-number {
  background: linear-gradient(145deg, #0284c7, #0f766e);
}

.command-help {
  order: 4;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

div.command-help {
  display: grid;
  gap: 10px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.06);
}

div.command-help strong {
  color: #ffffff;
  font-size: 1.05rem;
}

div.command-help p {
  margin: 0;
}

p.command-help code {
  display: inline;
  padding: 2px 5px;
  border-radius: 5px;
  color: #153e75;
  background: #eaf2ff;
  box-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.client-panel {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(219, 234, 254, 0.72), transparent 28%),
    #f8fbff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.client-panel.wide {
  grid-column: 1 / -1;
}

.client-panel.featured-command-panel {
  border-color: rgba(15, 118, 110, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.16), transparent 34%),
    linear-gradient(145deg, #ffffff, #f0fdfa);
  box-shadow: 0 20px 56px rgba(15, 118, 110, 0.14);
}

.client-panel.optional-helper {
  border-style: dashed;
  background: #fffdf6;
}

.client-panel.optional-helper span::before {
  content: none;
}

.client-panel span,
.credential-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.client-panel strong,
.client-panel code {
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

#credential-note {
  order: 58;
}

.password-panel {
  order: 59;
}

.share-credit-panel {
  order: 60;
}

.usage-panel {
  order: 70;
}

.topup-showcase {
  order: 80;
}

.referral-club-panel {
  order: 35;
}

.subscription-panel {
  order: 90;
}

.auto-topup-panel {
  order: 100;
}

#dashboard-status {
  order: 110;
}

.client-panel > code {
  order: 3;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  white-space: pre;
  overflow-x: scroll;
  overflow-y: auto;
  overflow-wrap: normal;
  word-break: normal;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior-inline: contain;
}

.client-panel.wide > code {
  max-height: 540px;
  padding: 14px;
  border-radius: 16px;
  color: #d7ffe7;
  background: #071225;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.client-panel > .copy-button {
  order: 2;
  justify-self: start;
  width: min(100%, 360px);
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}

.client-panel.wide > .copy-button {
  width: min(100%, 380px);
}

.client-panel .command-help code {
  display: inline;
  padding: 2px 5px;
  border-radius: 5px;
  color: #153e75;
  background: #eaf2ff;
  box-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.dashboard-panel .copy-button {
  min-height: 34px;
  padding: 0 10px;
  background: #eaf2ff;
  border-color: #bfdbfe;
  color: #153e75;
}

.topup-showcase {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 6%, rgba(250, 204, 21, 0.36), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.2), transparent 24%),
    linear-gradient(135deg, #07111f, #123a51 48%, #0f766e);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.topup-showcase .eyebrow,
.topup-showcase p,
.topup-showcase .dashboard-status {
  color: rgba(255, 255, 255, 0.74);
}

.topup-showcase h2 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.topup-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.topup-card {
  display: grid;
  gap: 6px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  color: #082f49;
  text-align: left;
  background: linear-gradient(145deg, #fefce8, #ccfbf1);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
}

.topup-card.hot {
  background: linear-gradient(145deg, #fde68a, #f97316 58%, #ef4444);
  color: #ffffff;
}

.topup-card.max {
  background: linear-gradient(145deg, #dbeafe, #60a5fa 48%, #1d4ed8);
  color: #ffffff;
}

.topup-card.promo {
  color: #fff8db;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(145deg, #1f1300, #a16207 48%, #facc15);
  box-shadow: 0 22px 46px rgba(67, 43, 7, 0.28);
}

.topup-card span,
.topup-card small {
  font-weight: 800;
  opacity: 0.75;
}

.topup-card strong {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
}

.topup-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.topup-select-row label {
  color: rgba(255, 255, 255, 0.72);
}

.referral-club-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(250, 204, 21, 0.42);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(250, 204, 21, 0.46), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.24), transparent 26%),
    linear-gradient(145deg, #120b02 0%, #3a2603 48%, #111827 100%);
  color: #fff7d6;
  box-shadow: 0 30px 80px rgba(67, 43, 7, 0.36);
}

.referral-club-panel .eyebrow,
.referral-club-panel p,
.referral-club-panel .dashboard-status {
  color: rgba(255, 247, 214, 0.78);
}

.referral-club-panel h2 {
  max-width: 760px;
  margin: 0 0 12px;
  color: #fff8db;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.referral-hero {
  max-width: 940px;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.referral-stat {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.referral-stat span,
.referral-stat small {
  color: rgba(255, 247, 214, 0.72);
  font-weight: 850;
}

.referral-stat strong {
  color: #fff8db;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 0.95;
}

.referral-stat code {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #fff8db;
}

.cash-wallet-purchase,
.cash-wallet-topup {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.cash-wallet-topup label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.cash-wallet-topup input {
  width: min(280px, 100%);
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
}

.subscription-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid #bae6fd;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.2), transparent 30%),
    linear-gradient(135deg, #ecfeff, #f8fafc);
}

.subscription-panel h2 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  letter-spacing: -0.055em;
}

.unlimited-promo-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 32px;
  color: #fff8db;
  background:
    radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.42), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(56, 189, 248, 0.22), transparent 28%),
    linear-gradient(145deg, #130f04 0%, #332006 44%, #061923 100%);
  box-shadow: 0 30px 90px rgba(67, 43, 7, 0.32);
}

.unlimited-promo-offer .eyebrow,
.unlimited-promo-offer p {
  color: rgba(255, 248, 219, 0.8);
}

.unlimited-promo-offer h2 {
  max-width: 860px;
  margin: 0 0 14px;
  color: #fff8db;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.promo-copy {
  display: grid;
  align-content: center;
}

.promo-action-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(250, 204, 21, 0.36);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.2), transparent 30%),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.promo-action-card span,
.promo-action-card small {
  color: rgba(255, 248, 219, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.promo-action-card strong {
  color: #fff8db;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.promo-action-card label {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  color: rgba(255, 248, 219, 0.84);
  font-size: 0.9rem;
  font-weight: 900;
}

.promo-action-card input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(250, 204, 21, 0.36);
  border-radius: 16px;
  padding: 0 14px;
  color: #061225;
  background: #fff8db;
  font: inherit;
  font-weight: 900;
}

.unlimited-promo-monitor {
  border-color: rgba(250, 204, 21, 0.48);
  background:
    radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.28), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(34, 197, 94, 0.16), transparent 28%),
    linear-gradient(135deg, #fffdf0, #f6fbff 56%, #effdf7);
}

.promo-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.promo-window-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.promo-window-grid span {
  display: block;
  color: #7c2d12;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-window-grid small {
  color: var(--muted);
  line-height: 1.55;
}

.promo-track i {
  background: linear-gradient(90deg, #f59e0b, #16a34a);
}

.share-credit-panel {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(255, 202, 58, 0.36), transparent 32%),
    linear-gradient(135deg, #fff7ed, #f0f9ff 68%, #ecfdf5);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.share-credit-panel img {
  width: 128px;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.share-credit-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.share-credit-panel .eyebrow {
  margin-bottom: 8px;
}

.welcome-main {
  min-height: 100vh;
  padding: 130px clamp(18px, 5vw, 72px) 56px;
  background:
    radial-gradient(circle at 18% 16%, rgba(31, 134, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(45, 181, 111, 0.18), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #eef7ff 100%);
}

.welcome-hero {
  max-width: 980px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(217, 227, 234, 0.9);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 249, 255, 0.9)),
    var(--paper);
  box-shadow: var(--shadow);
}

.welcome-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.welcome-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.welcome-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.welcome-card,
.welcome-account-panel {
  border: 1px solid rgba(217, 227, 234, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(9, 28, 63, 0.09);
}

.welcome-card {
  padding: 22px;
}

.welcome-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  font-weight: 900;
}

.welcome-card h2,
.welcome-account-panel h2 {
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: -0.04em;
}

.welcome-card p,
.welcome-account-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.welcome-account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
  padding: 24px;
}

.welcome-account-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.welcome-account-panel dl div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

.welcome-account-panel dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-account-panel dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 850;
}

.usage-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 191, 36, 0.22), transparent 32%),
    linear-gradient(135deg, #fffdf6, #f6fbff 58%, #eef7ff);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

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

.usage-heading h2 {
  margin-bottom: 4px;
}

.codexclaude-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(251, 191, 36, 0.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.34), transparent 32%),
    linear-gradient(135deg, #15110a, #35230c 48%, #061923);
  color: #fff9e8;
  box-shadow: 0 24px 70px rgba(50, 32, 8, 0.28);
}

.codexclaude-promo h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.codexclaude-promo p {
  max-width: 760px;
  color: rgba(255, 249, 232, 0.82);
}

.codexclaude-command {
  display: grid;
  gap: 10px;
  align-content: center;
}

.codexclaude-command code {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.54);
  color: #fef3c7;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior-inline: contain;
  white-space: nowrap;
}

.wizard-command-box pre,
.client-panel > code,
.windows-command,
.codexclaude-command code {
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.95) rgba(2, 11, 28, 0.95);
}

.wizard-command-box pre::-webkit-scrollbar,
.client-panel > code::-webkit-scrollbar,
.windows-command::-webkit-scrollbar,
.codexclaude-command code::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.wizard-command-box pre::-webkit-scrollbar-track,
.client-panel > code::-webkit-scrollbar-track,
.windows-command::-webkit-scrollbar-track,
.codexclaude-command code::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(2, 11, 28, 0.95);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.wizard-command-box pre::-webkit-scrollbar-thumb,
.client-panel > code::-webkit-scrollbar-thumb,
.windows-command::-webkit-scrollbar-thumb,
.codexclaude-command code::-webkit-scrollbar-thumb {
  border: 3px solid rgba(2, 11, 28, 0.95);
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.command-scrollbar-shell {
  order: 3;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin: -2px 0 4px;
  padding: 8px 12px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  color: #153e75;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.wizard-command-box .command-scrollbar-shell {
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
}

.windows-step .command-scrollbar-shell,
.vscode-step-grid .command-scrollbar-shell {
  grid-column: 2;
}

.command-scrollbar-shell[hidden] {
  display: none;
}

.command-scrollbar-shell span {
  white-space: nowrap;
}

.command-scrollbar-shell input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: #0b57d0;
  cursor: ew-resize;
}

.usage-main-split,
.usage-metric-grid,
.usage-chart-grid {
  display: grid;
  gap: 14px;
}

.usage-main-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usage-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.usage-chart-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
}

.usage-main-split article,
.usage-metric-grid article,
.usage-chart-grid article {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.usage-main-split span,
.usage-metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usage-main-split strong,
.usage-metric-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.usage-main-split small,
.usage-metric-grid small {
  color: var(--muted);
}

.usage-split-track {
  height: 11px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.usage-split-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b57d0, #16a34a);
}

.usage-graph {
  display: grid;
  grid-template-columns: repeat(7, minmax(24px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 130px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.usage-bar {
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 106px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.usage-bar span:first-child {
  display: block;
  min-height: 4px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #0b57d0, #16a34a);
}

.usage-token-mix {
  display: flex;
  min-height: 54px;
  overflow: hidden;
  border-radius: 16px;
  background: #e2e8f0;
}

.usage-token-mix span {
  display: grid;
  min-width: 44px;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 0.78rem;
}

.usage-token-mix span:first-child {
  background: linear-gradient(135deg, #0b57d0, #38bdf8);
}

.usage-token-mix span:last-child {
  background: linear-gradient(135deg, #16a34a, #f59e0b);
}

.usage-table-wrap {
  overflow-x: auto;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.usage-table th,
.usage-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.mode-chip,
.fast-mode-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
}

.fast-mode-chip {
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.usage-corrections {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.78);
}

.usage-corrections h3 {
  margin: 0 0 4px;
}

.usage-corrections .usage-table td:nth-child(2) {
  min-width: 260px;
  white-space: normal;
}

.auto-topup-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.auto-topup-panel h2 {
  margin-bottom: 4px;
}

.form-grid .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.form-grid .checkbox-row input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--blue);
}

.install-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.install-page-grid h1 {
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: 0.95;
}

.install-card {
  padding: 22px;
  margin-bottom: 16px;
}

.install-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

@media (max-width: 860px) {
  .codexclaude-promo,
  .unlimited-promo-offer,
  .promo-window-grid,
  .usage-main-split,
  .usage-metric-grid,
  .usage-chart-grid {
    grid-template-columns: 1fr;
  }
}

.install-card pre {
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  color: #c9f7d8;
  background: #020b1c;
  white-space: pre-wrap;
  word-break: break-word;
}

.install-card p,
.install-card li {
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 80px;
  }

  .intro-grid,
  .experience-grid,
  .value-band,
  .instant-access,
  .docs-hero,
  .docs-layout,
  .dashboard-hero,
	  .dashboard-hero > div:first-child,
      .dashboard-command-center,
      .edge-server-selector,
      .dashboard-setup-grid,
      .setup-wizard-panel,
      .wizard-control-grid,
      .wizard-result-card,
      .pricing-status-panel,
	  .install-page-grid,
	  .command-set,
	  .windows-section-header,
		  .windows-step-grid,
		  .vscode-proof-grid,
		  .topup-card-grid,
		  .referral-stats-grid {
		    grid-template-columns: 1fr;
		  }

  .dashboard-card-grid {
    grid-column: 1;
    grid-row: auto;
    margin-top: 10px;
  }

  .dashboard-has-session .dashboard-hero > div:first-child,
  .dashboard-has-session .dashboard-command-center,
  .dashboard-has-session .dashboard-setup-grid,
  .dashboard-has-session .setup-main-column {
    grid-template-columns: 1fr;
  }

  .dashboard-has-session .dashboard-card-grid,
  .dashboard-setup-grid > .setup-main-column {
    grid-column: 1;
  }

  .dashboard-setup-grid > * {
    grid-column: 1;
  }

  .setup-jump-nav {
    position: static;
    max-height: none;
    grid-column: 1;
  }

  .docs-toc {
    position: static;
    max-height: none;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  pre,
  code,
  .command-block,
  .windows-command,
  .copy-box,
  .wallet-card strong,
  .wallet-card-credential strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .wizard-command-box pre,
  .wizard-command-box pre code,
  .client-panel > code,
  .windows-command,
  .windows-command code,
  .codexclaude-command code {
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: auto;
    overflow-wrap: normal;
    word-break: normal;
    white-space: pre;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
  }

  .wizard-command-box pre,
  .client-panel > code,
  .windows-command {
    max-height: 280px;
  }

  input,
  textarea,
  select,
  button {
    max-width: 100%;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header .brand {
    flex: 1 1 auto;
  }

  .site-header nav,
  .header-actions,
  .dashboard-account-bar,
  .setup-jump-nav,
  .dashboard-command-center,
  .edge-server-selector,
  .hero-model-buttons,
  .wizard-choice-row,
  .install-cta-row {
    width: 100%;
  }

  .site-header nav,
  .header-actions,
  .install-cta-row {
    display: flex;
  }

  .site-header nav {
    order: 3;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .site-header nav a,
  .install-link,
  .setup-jump-nav a {
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }

  .site-header nav a {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.88);
  }

  .header-action {
    width: auto;
    min-height: 40px;
    padding: 0 16px;
  }

  .referral-club-modal {
    padding: 10px;
  }

  .referral-club-modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    margin: 0;
    border-radius: 18px;
    padding: 16px;
  }

  .email-required-card {
    max-height: calc(100dvh - 20px);
    padding: 18px;
    border-radius: 22px;
  }

  .email-required-card h2 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .email-required-actions {
    grid-template-columns: 1fr;
  }

  .referral-club-modal-card h2 {
    max-width: calc(100% - 52px);
    font-size: clamp(1.8rem, 10vw, 2.55rem);
  }

  .referral-club-modal-card p {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .referral-club-modal-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .referral-club-modal-actions {
    grid-template-columns: 1fr;
  }

  .referral-club-modal-actions a,
  .referral-club-modal-actions button {
    width: 100%;
  }

  .hero {
    min-height: 88vh;
    padding-bottom: 54px;
  }

  .dashboard-main {
    padding-top: 0;
  }

  .dashboard-hero {
    width: min(100%, calc(100% - 16px));
    padding: 22px 8px 28px;
  }

  .dashboard-hero h1,
  .dashboard-has-session .dashboard-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.15rem);
    letter-spacing: -0.06em;
  }

  .dashboard-command-center {
    gap: 12px;
  }

  .hero-model-picker,
  .setup-wizard-button {
    border-radius: 22px;
  }

  .setup-wizard-button {
    min-height: 132px;
  }

  .dashboard-card-grid {
    gap: 10px;
  }

  .wallet-card-balance,
  .dashboard-has-session .wallet-card-balance {
    min-height: 158px;
  }

  .hero-stats,
  .plans,
  .expanded-plans,
  .steps-grid,
  .dashboard-command-center,
  .hero-model-buttons,
  .wizard-control-grid,
  .wizard-choice-row,
  .wizard-result-card,
  .pricing-status-panel,
  .docs-card-grid,
  .docs-screenshot-grid,
  .docs-glossary,
  .dashboard-card-grid,
  .client-dashboard-grid,
  .welcome-card-grid,
  .share-credit-panel,
  .welcome-account-panel,
  .windows-section-header,
  .windows-step-grid,
	  .topup-select-row,
	  .inline-form-grid,
	  .subscription-panel,
	  .unlimited-promo-offer,
	  .promo-window-grid,
	  .referral-stats-grid {
	    grid-template-columns: 1fr;
	  }

  .windows-logo {
    grid-template-columns: repeat(2, 26px);
    grid-template-rows: repeat(2, 26px);
  }

  .windows-step {
    grid-template-columns: 1fr;
  }

  .windows-step .step-number {
    grid-row: auto;
  }

  .windows-step .copy-button,
  .windows-command,
  .windows-step .command-scrollbar-shell {
    grid-column: auto;
  }

  .command-scrollbar-shell {
    grid-template-columns: 1fr;
    gap: 6px;
    border-radius: 18px;
  }

  .wizard-download-link {
    min-height: 58px;
    white-space: normal;
  }

  .subscription-plan {
    grid-column: auto;
  }

  .topup-card {
    min-height: 108px;
  }

  .wallet-card-balance {
    min-height: 220px;
  }

  .wallet-card-balance strong {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .surge-pricing-badge {
    grid-template-columns: 1fr;
  }

  .pricing-status-card .surge-pricing-badge {
    grid-template-columns: 1fr;
  }

  .pricing-mode-icon {
    max-width: 220px;
  }

  .toolbox-panel {
    grid-template-columns: 1fr;
  }

  .share-credit-panel img {
    width: 100%;
    height: auto;
  }

  .button {
    width: 100%;
  }

  .hero-offer {
    width: 100%;
  }

  .dashboard-account-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-panel button.logout-button {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
