:root {
  --bg: #050505;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --soft: #e9e9ec;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(24, 24, 27, 0.64);
  --accent: #0a84ff;
  --accent-2: #62e7c9;
  --panel: #111114;
  --radius-lg: 36px;
  --radius-md: 24px;
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% -20%, rgba(89, 89, 97, 0.28), transparent 35%),
    linear-gradient(180deg, #050505 0%, #0c0c0f 45%, #f5f5f7 45%, #f5f5f7 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button,
a {
  font: inherit;
}

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

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1120px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.56);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.2);
  transform: translateX(-50%);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 12, 0.78);
  border-color: rgba(255, 255, 255, 0.2);
}

.brand,
.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand {
  justify-self: start;
  font-size: 13px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #05130f;
  background: linear-gradient(135deg, #f6fff9, #62e7c9);
}

.site-nav nav {
  display: flex;
  gap: 28px;
  color: rgba(245, 245, 247, 0.72);
  font-size: 13px;
}

.site-nav nav a:hover,
.nav-action:hover {
  color: #fff;
}

.nav-action {
  justify-self: end;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-action:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 98px max(24px, 7vw) 58px;
  text-align: center;
  isolation: isolate;
}

.hero > * {
  grid-area: 1 / 1;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 46vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.46;
  animation: glow-drift 9s ease-in-out infinite alternate;
}

.hero-glow-one {
  top: 8%;
  right: 16%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 62%);
}

.hero-glow-two {
  bottom: 7%;
  left: 14%;
  background: radial-gradient(circle, rgba(98, 231, 201, 0.2), transparent 66%);
  animation-delay: -2s;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.story-step h2,
.checkout h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: -0.07em;
}

.hero h1 {
  max-width: 860px;
  margin-inline: auto;
  font-size: clamp(44px, 5.1vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  margin-inline: auto;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: end;
  width: min(980px, 100%);
  padding: 0 0 1.5vh;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.82);
}

.hero-particle-scene {
  position: relative;
  z-index: 1;
  width: min(1000px, 94vw);
  height: min(760px, 72svh);
  align-self: center;
  margin-top: -5svh;
  border-radius: 50%;
  overflow: hidden;
}

.hero-particle-scene::before {
  position: absolute;
  inset: 8%;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1.8px);
  background-size: 100% 100%, 18px 18px;
  opacity: 0.42;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.1));
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 58%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 58%, transparent 74%);
}

.hero-particle-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 38px rgba(255, 255, 255, 0.16));
}

.sphere-vignette {
  position: absolute;
  inset: 5%;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 45%, rgba(255, 255, 255, 0.07) 66%, transparent 71%),
    radial-gradient(circle at 50% 46%, transparent 42%, rgba(0, 0, 0, 0.42) 76%, rgba(0, 0, 0, 0.92) 100%);
  mix-blend-mode: screen;
  opacity: 0.76;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 18px 48px rgba(10, 132, 255, 0.34);
}

.button-primary:hover {
  background: #2f98ff;
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.wide {
  width: 100%;
}

.hero-device {
  justify-self: center;
  perspective: 1100px;
}

.device-shell {
  position: relative;
  width: min(420px, 80vw);
  min-height: 620px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 46px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.03)),
    linear-gradient(180deg, #16161a, #070708);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 80px 140px rgba(0, 0, 0, 0.58);
  transform: rotateX(7deg) rotateY(-12deg);
  transition: transform 260ms ease;
}

.device-topbar {
  display: flex;
  gap: 7px;
}

.device-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.balance-orb {
  display: grid;
  width: 250px;
  height: 250px;
  margin: 62px auto 54px;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.95), rgba(98,231,201,.8) 22%, rgba(10,132,255,.5) 54%, rgba(10,132,255,.05) 70%),
    #0a84ff;
  box-shadow: 0 0 80px rgba(10, 132, 255, 0.5), inset 0 -22px 60px rgba(0, 0, 0, 0.24);
  animation: orb-breathe 4.2s ease-in-out infinite;
}

.balance-orb span,
.balance-orb small {
  color: rgba(5, 5, 5, 0.72);
  font-weight: 700;
}

.balance-orb strong {
  margin: -54px 0;
  color: #050505;
  font-size: 36px;
  letter-spacing: -0.06em;
}

.usage-lines {
  display: grid;
  gap: 16px;
}

.usage-lines i {
  display: block;
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.16));
}

.api-chip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: rgba(245, 245, 247, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.metric {
  min-height: 180px;
  padding: 38px;
  background: #111114;
}

.metric span,
.plan span,
.drawer-summary span,
.receipt span {
  color: var(--muted);
  font-size: 14px;
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -0.06em;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 6vw;
  padding: 130px max(28px, 8vw);
  background: #050505;
}

.story-copy {
  display: grid;
  gap: 90px;
}

.story-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-step h2,
.checkout h2,
.section-head h2,
.final-cta h2 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.story-step p:not(.eyebrow),
.section-head p,
.checkout p,
.final-cta p {
  max-width: 640px;
  color: rgba(245, 245, 247, 0.66);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
}

.story-visual {
  position: sticky;
  top: 120px;
  display: grid;
  height: calc(100svh - 160px);
  place-items: center;
}

.floating-panel {
  position: relative;
  width: min(520px, 100%);
  min-height: 420px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)),
    #101013;
  box-shadow: 0 70px 120px rgba(0, 0, 0, 0.45);
  transition: transform 420ms ease, border-color 420ms ease;
}

.floating-panel strong {
  display: block;
  margin-top: 32px;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.07em;
}

.panel-label,
.floating-panel p {
  color: var(--muted);
}

.pulse-ring {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 231, 201, 0.5), transparent 68%);
  animation: pulse 2.4s ease-in-out infinite;
}

.plans,
.checkout,
.ledger,
.final-cta {
  color: #08080a;
  background: #f5f5f7;
}

.plans {
  padding: 140px max(28px, 8vw) 110px;
}

.section-head {
  max-width: 980px;
  margin-bottom: 58px;
}

.plans .eyebrow,
.checkout .eyebrow,
.ledger .eyebrow,
.final-cta .eyebrow {
  color: #18715f;
}

.plans .section-head p,
.checkout p,
.final-cta p {
  color: #5b5b63;
}

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

.plan {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.13);
}

.plan-featured {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 72% 20%, rgba(98,231,201,.65), transparent 34%),
    linear-gradient(145deg, #111114, #1c2531 56%, #09100f);
}

.plan h3 {
  margin: 38px 0 20px;
  font-size: clamp(36px, 3.4vw, 52px);
  letter-spacing: -0.07em;
}

.plan p {
  min-height: 86px;
  color: #66666e;
  line-height: 1.55;
}

.plan-featured p,
.plan-featured span {
  color: rgba(255, 255, 255, 0.72);
}

.plan-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0a84ff;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.plan-button:hover {
  background: #006fe6;
}

.checkout {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 7vw;
  align-items: center;
  padding: 120px max(28px, 8vw);
}

.checkout-demo {
  justify-self: end;
  width: min(480px, 100%);
}

.receipt {
  padding: 30px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.12);
}

.receipt strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

dl {
  margin: 28px 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

dt {
  color: #77777f;
}

dd {
  margin: 0;
  font-weight: 700;
}

.ledger {
  padding: 110px max(28px, 8vw) 140px;
}

.ledger-table {
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.1);
}

.ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 0 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ledger-row-head {
  color: #77777f;
  background: #fafafa;
  border-top: 0;
}

.ledger-row strong {
  color: #18715f;
}

.final-cta {
  display: grid;
  min-height: 78vh;
  place-items: center;
  padding: 100px max(28px, 8vw);
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(10,132,255,.18), transparent 42%),
    #f5f5f7;
}

.final-cta h2 {
  max-width: 960px;
  margin-bottom: 34px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 260ms ease;
  backdrop-filter: blur(12px);
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 36px));
  padding: 30px;
  overflow-y: auto;
  border-radius: 34px;
  color: #08080a;
  background: rgba(255,255,255,.92);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.34);
  transform: translateX(calc(100% + 28px));
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #e8e8ed;
  cursor: pointer;
}

.drawer-panel h2 {
  margin: 0 0 26px;
  font-size: 38px;
  letter-spacing: -0.06em;
}

.drawer-summary {
  display: grid;
  gap: 12px;
}

.drawer-summary div {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.method {
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.method.active {
  color: #fff;
  background: #08080a;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 230px;
  border-radius: 26px;
  background: #f1f1f4;
}

.qr-grid {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #08080a 12px, transparent 12px) 0 0 / 28px 28px,
    linear-gradient(#08080a 12px, transparent 12px) 0 0 / 28px 28px,
    #fff;
  box-shadow: inset 0 0 0 12px #fff;
}

.pay-status {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
  color: #77777f;
}

.pay-status li {
  position: relative;
  padding-left: 26px;
}

.pay-status li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: #c7c7cc;
}

.pay-status li.active {
  color: #08080a;
  font-weight: 800;
}

.pay-status li.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(10,132,255,.16);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legacy-browser-note {
  display: none;
  max-width: 520px;
  margin: 18px auto 0;
  color: rgba(245, 245, 247, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

body.legacy-browser .legacy-browser-note {
  display: block;
}

body.legacy-browser .hero {
  display: block;
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 72px;
}

body.legacy-browser .hero-particle-scene {
  width: 320px;
  height: 320px;
  margin: 0 auto 24px;
}

body.legacy-browser .hero-particle-scene::before {
  inset: 0;
  opacity: 0.7;
}

body.legacy-browser .hero-particle-scene canvas {
  display: none;
}

body.legacy-browser .hero-copy {
  display: block;
  width: auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  transform: none;
}

body.legacy-browser .hero h1 {
  max-width: none;
  font-size: 72px;
}

body.legacy-browser .token-wordmark {
  width: auto;
  min-height: 1em;
  letter-spacing: -0.06em;
}

body.legacy-browser .token-face {
  background: none;
  color: #f5f5f7;
  -webkit-text-fill-color: #f5f5f7;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 72px rgba(0, 0, 0, 0.78);
}

body.legacy-browser .hero-actions {
  position: static;
  display: flex;
  justify-content: center;
  margin-top: 28px;
  transform: none;
}

body.legacy-browser .hero-actions .button-ghost,
body.legacy-browser .hero-actions .button-primary {
  background: #0071e3;
  color: #fff;
}

@keyframes glow-drift {
  from { transform: translate3d(-2%, -2%, 0) scale(0.95); }
  to { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.04); filter: saturate(1.25); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50% { transform: scale(1.12); opacity: 1; }
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav nav {
    display: none;
  }

  .hero,
  .story,
  .checkout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-particle-scene {
    width: min(760px, 108vw);
    height: min(620px, 62svh);
    margin-top: -10svh;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-device,
  .checkout-demo {
    justify-self: stretch;
  }

  .device-shell {
    width: 100%;
    min-height: 520px;
    transform: none;
  }

  .status-strip,
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-visual {
    position: relative;
    top: auto;
    height: auto;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero {
    min-height: 94svh;
    padding-inline: 20px;
  }

  .hero-particle-scene {
    width: 122vw;
    height: 54svh;
    margin-top: -12svh;
  }

  .hero-text {
    font-size: 16px;
  }

  .status-strip,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .plan,
  .floating-panel,
  .receipt {
    padding: 24px;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 24px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Minimal particle landing page overrides */
body.minimal-home {
  min-height: 100svh;
  overflow: hidden;
  background: #050506;
}

body.minimal-home::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.11), transparent 28%),
    radial-gradient(circle at 50% 52%, rgba(98, 231, 201, 0.08), transparent 34%),
    linear-gradient(180deg, #050506 0%, #09090b 55%, #050506 100%);
}

body.minimal-home::after {
  opacity: 0.08;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.minimal-home .site-nav {
  grid-template-columns: 1fr auto;
  background: rgba(18, 18, 20, 0.48);
}

.minimal-home .site-nav nav {
  display: none;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.auth-link {
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(245, 245, 247, 0.74);
  font-size: 13px;
  transition: color 180ms ease, background 180ms ease;
}

.auth-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.home-main {
  min-height: 100svh;
}

.minimal-home .hero {
  min-height: 100svh;
  padding: 58px max(22px, 5vw) 54px;
}

.minimal-home .hero-particle-scene {
  width: min(1000px, 100vw);
  height: min(690px, 68svh);
  margin-top: -8svh;
  border-radius: 0;
}

.minimal-home .hero-particle-scene canvas {
  opacity: 0.96;
  filter: drop-shadow(0 0 34px rgba(255, 255, 255, 0.12));
}

.minimal-home .hero-copy {
  align-self: center;
  display: grid;
  width: min(860px, 100%);
  justify-items: center;
  padding-bottom: 0;
  text-align: center;
  transform: translateY(clamp(22px, 3.5svh, 46px));
}

.minimal-home .hero-brand-kicker {
  position: absolute;
  top: clamp(22px, 3.4svh, 34px);
  left: max(24px, 4vw);
  z-index: 12;
  margin: 0;
  color: rgba(245, 245, 247, 0.74);
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: left;
  text-indent: 0;
  text-transform: none;
}

.minimal-home .hero h1 {
  width: 100%;
  max-width: 860px;
  font-size: clamp(70px, 12vw, 156px);
  text-align: center;
}

.token-lockup {
  display: grid;
  justify-items: center;
  place-items: center;
}

.token-wordmark {
  position: relative;
  display: grid;
  width: min(860px, 92vw);
  min-height: 0.86em;
  place-items: center;
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.085em;
  color: #f5f5f7;
  transform: translateZ(0);
}

.token-face {
  grid-area: 1 / 1;
  display: block;
  opacity: 1;
  background:
    linear-gradient(180deg, #fff 0%, #f5f5f7 36%, #aaaab0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24),
    0 28px 88px rgba(0, 0, 0, 0.86);
  transition:
    opacity 420ms ease,
    filter 520ms ease,
    transform 520ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, filter, transform;
}

.token-face-token {
  filter: blur(0);
  transform: translateX(-0.043em) translateY(0) scale(1);
}

.minimal-home .hero-text {
  max-width: 520px;
  margin-top: 18px;
  color: rgba(245, 245, 247, 0.62);
}

.minimal-home .hero-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: calc(100vw - 44px);
  margin-top: 0;
  transform: translate(-50%, clamp(280px, 29svh, 330px));
}

.minimal-home .hero-glow {
  opacity: 0.26;
}

.minimal-home .button-ghost {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
}

.minimal-home .hero-actions .button-primary,
.minimal-home .hero-actions .button-ghost {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.minimal-home .hero-actions .button-primary:hover,
.minimal-home .hero-actions .button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
  body.minimal-home {
    overflow: hidden;
  }

  .minimal-home .hero {
    min-height: 100svh;
    padding-top: 58px;
  }

  .minimal-home .hero-particle-scene {
    width: 128vw;
    height: 56svh;
    margin-top: -10svh;
  }

  .minimal-home .hero-copy {
    transform: translateY(clamp(8px, 2svh, 22px));
  }

  .minimal-home .hero-actions {
    transform: translate(-50%, clamp(158px, 20svh, 218px));
  }

  .minimal-home .hero h1 {
    font-size: clamp(56px, 18vw, 92px);
  }

  .token-wordmark {
    min-width: min(420px, 96vw);
  }

  .minimal-home .hero-brand-kicker {
    top: 24px;
    left: 22px;
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .auth-link {
    padding-inline: 12px;
  }
}

/* In-sphere auth dialog */
.auth-surface {
  position: relative;
  z-index: 8;
  display: grid;
  width: min(420px, calc(100vw - 40px));
  place-items: center;
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: translateY(34px) scale(0.42);
  transition:
    opacity 260ms ease,
    filter 360ms ease,
    transform 520ms cubic-bezier(.16, 1, .3, 1);
}

.auth-surface::before {
  position: absolute;
  inset: 12%;
  z-index: -1;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 66%);
  filter: blur(28px);
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.16, 1, .3, 1);
}

.auth-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(12, 12, 14, 0.72);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(28px) saturate(1.25);
}

.auth-card h2 {
  margin: 0 0 22px;
  color: #f5f5f7;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.055em;
}

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

.auth-detail-only,
.register-only,
.login-only,
.reset-only {
  display: none;
}

body[data-auth-mode="login"] .auth-detail-only,
body[data-auth-mode="register"] .auth-detail-only,
body[data-auth-mode="reset"] .auth-detail-only,
body[data-auth-mode="register"] .register-only,
body[data-auth-mode="reset"] .register-only {
  display: block;
}

body[data-auth-mode="login"] .login-only,
body[data-auth-mode="reset"] .reset-only {
  display: inline-flex;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.065);
  outline: none;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-form input::placeholder {
  color: rgba(245, 245, 247, 0.42);
}

.auth-form input:focus {
  border-color: rgba(10, 132, 255, 0.7);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}

.verification-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body[data-auth-mode="register"] .verification-row,
body[data-auth-mode="reset"] .verification-row {
  display: grid;
}

.auth-utility-row {
  display: none;
  justify-content: flex-end;
  min-height: 20px;
}

body[data-auth-mode="login"] .auth-utility-row,
body[data-auth-mode="reset"] .auth-utility-row {
  display: flex;
}

.auth-link {
  padding: 0;
  border: 0;
  color: rgba(245, 245, 247, 0.58);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: color 160ms ease, opacity 160ms ease;
}

.auth-link:hover {
  color: #f5f5f7;
}

.auth-link:focus-visible {
  outline: none;
  color: #f5f5f7;
  text-decoration: underline;
}

.code-button {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.code-button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.password-rule {
  margin: -3px 0 0;
  color: rgba(245, 245, 247, 0.48);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.auth-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: rgba(245, 245, 247, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

.auth-message[data-state="success"] {
  color: #62e7c9;
}

.auth-message[data-state="error"] {
  color: #ff8b8b;
}

.auth-message[data-state="pending"] {
  color: rgba(245, 245, 247, 0.7);
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.profile-surface {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease;
}

.profile-card {
  width: min(440px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(12, 12, 14, 0.82);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(28px) saturate(1.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-title-group {
  display: grid;
  gap: 8px;
}

.profile-title-group h2 {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.05em;
}

.profile-close {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.82);
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.profile-close:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.profile-details {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.profile-row {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-label {
  color: rgba(245, 245, 247, 0.42);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.profile-row strong {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.password-surface {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease;
}

.password-card {
  width: min(440px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(12, 12, 14, 0.82);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(28px) saturate(1.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}

.password-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.password-title-group {
  display: grid;
  gap: 8px;
}

.password-title-group h2 {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.05em;
}

.password-close {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.82);
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.password-close:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.password-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.password-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.065);
  outline: none;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.password-form input::placeholder {
  color: rgba(245, 245, 247, 0.42);
}

.password-form input:focus {
  border-color: rgba(10, 132, 255, 0.7);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}

.password-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: rgba(245, 245, 247, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

.password-message[data-state="success"] {
  color: #62e7c9;
}

.password-message[data-state="error"] {
  color: #ff8b8b;
}

.password-message[data-state="pending"] {
  color: rgba(245, 245, 247, 0.7);
}

.recharge-surface {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease;
}

.recharge-shell {
  --recharge-accent: #62e7c9;
  --recharge-accent-soft: rgba(98, 231, 201, 0.18);
  width: min(1120px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 24px);
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: rgba(12, 12, 14, 0.82);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(30px) saturate(1.18);
  transform: translateY(14px) scale(0.985);
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}

.recharge-shell[data-recharge-service="claude"] {
  --recharge-accent: #e1b071;
  --recharge-accent-soft: rgba(225, 176, 113, 0.2);
}

.recharge-config,
.recharge-preview {
  min-width: 0;
  display: grid;
  align-content: start;
}

.recharge-config {
  gap: 18px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
}

.recharge-preview {
  gap: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--recharge-accent) 18%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.recharge-header,
.recharge-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.recharge-title-group,
.recharge-preview-title-group {
  display: grid;
  gap: 8px;
}

.recharge-title-group h2,
.recharge-preview-title-group h3 {
  margin: 0;
  color: #f5f5f7;
  letter-spacing: -0.05em;
}

.recharge-title-group h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.recharge-preview-title-group h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.recharge-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.recharge-service-chip,
.recharge-preview-balance {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--recharge-accent) 40%, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: color-mix(in srgb, var(--recharge-accent) 12%, rgba(255, 255, 255, 0.04));
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.recharge-close {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.82);
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.recharge-close:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

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

.recharge-section {
  display: grid;
  gap: 12px;
}

.recharge-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recharge-section-label {
  color: rgba(245, 245, 247, 0.56);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recharge-section-head strong {
  color: #f5f5f7;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.recharge-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.recharge-amount-button,
.recharge-method {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f7;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.recharge-amount-button {
  min-height: 48px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
}

.recharge-amount-button:hover,
.recharge-method:hover,
.recharge-amount-button[aria-pressed="true"],
.recharge-method[aria-pressed="true"] {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--recharge-accent) 48%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--recharge-accent) 16%, rgba(255, 255, 255, 0.07));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--recharge-accent) 12%, transparent);
}

.recharge-custom-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 247, 0.72);
}

.recharge-custom-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #f5f5f7;
  font: inherit;
  text-align: right;
}

.recharge-custom-row input::placeholder {
  color: rgba(245, 245, 247, 0.34);
}

.recharge-currency {
  color: rgba(245, 245, 247, 0.44);
  font-size: 13px;
}

.recharge-method-list {
  display: grid;
  gap: 10px;
}

.recharge-method {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
}

.recharge-method-title {
  font-size: 15px;
  font-weight: 600;
}

.recharge-method-copy {
  color: rgba(245, 245, 247, 0.54);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recharge-message {
  min-height: 20px;
  margin: 0;
  color: rgba(245, 245, 247, 0.54);
  font-size: 13px;
  line-height: 1.45;
}

.recharge-message[data-state="success"] {
  color: #62e7c9;
}

.recharge-message[data-state="error"] {
  color: #ff8b8b;
}

.recharge-preview-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 300px;
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--recharge-accent) 22%, transparent), transparent 44%),
    rgba(255, 255, 255, 0.03);
  text-align: center;
}

.recharge-preview-stage[data-state="pending"] {
  border-style: solid;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--recharge-accent) 28%, transparent), transparent 40%),
    color-mix(in srgb, var(--recharge-accent) 9%, rgba(255, 255, 255, 0.04));
}

.recharge-stage-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.74);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recharge-preview-stage strong {
  color: #f5f5f7;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.08em;
}

.recharge-preview-conversion {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.recharge-preview-conversion strong {
  color: rgba(245, 245, 247, 0.92);
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.04em;
}

.recharge-preview-conversion span {
  color: rgba(245, 245, 247, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.recharge-preview-stage p {
  max-width: 360px;
  margin: 0;
  color: rgba(245, 245, 247, 0.66);
  font-size: 14px;
  line-height: 1.55;
}

.recharge-summary {
  display: grid;
  gap: 10px;
}

.recharge-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.recharge-summary-row span {
  color: rgba(245, 245, 247, 0.48);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.recharge-summary-row strong {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.recharge-notes {
  padding: 0 4px;
}

.recharge-notes p {
  margin: 0 0 10px;
  color: rgba(245, 245, 247, 0.66);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recharge-notes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: rgba(245, 245, 247, 0.6);
  font-size: 13px;
  line-height: 1.55;
}

.key-surface {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease;
}

.key-card {
  --key-accent: #62e7c9;
  width: min(880px, calc(100vw - 36px));
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: rgba(12, 12, 14, 0.82);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(30px) saturate(1.18);
  transform: translateY(14px) scale(0.985);
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}

.key-card[data-key-service="claude"] {
  --key-accent: #e1b071;
}

.key-header,
.key-overview,
.key-list-head,
.key-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.key-title-group,
.key-overview-copy,
.key-secret-copy,
.key-empty {
  display: grid;
  gap: 8px;
}

.key-title-group h2 {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.key-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.key-service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--key-accent) 40%, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: color-mix(in srgb, var(--key-accent) 12%, rgba(255, 255, 255, 0.04));
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.key-close,
.key-row-revoke {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.82);
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.key-close {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.key-close:hover,
.key-row-revoke:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.key-overview {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.key-overview-copy strong {
  color: #f5f5f7;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.key-overview-copy p,
.key-empty p {
  margin: 0;
  color: rgba(245, 245, 247, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.key-secret-panel {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--key-accent) 35%, rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  background: color-mix(in srgb, var(--key-accent) 10%, rgba(255, 255, 255, 0.04));
}

.key-secret-panel[hidden] {
  display: none;
}

.key-secret-copy span,
.key-list-head span,
.key-row-date,
.key-footnote p {
  color: rgba(245, 245, 247, 0.48);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.key-secret-copy strong,
.key-list-head strong {
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 600;
}

.key-secret-panel code {
  display: block;
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 11, 13, 0.6);
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.45;
}

.key-message {
  min-height: 20px;
  margin: 0;
  color: rgba(245, 245, 247, 0.54);
  font-size: 13px;
  line-height: 1.45;
}

.key-message[data-state="success"] {
  color: #62e7c9;
}

.key-message[data-state="error"] {
  color: #ff8b8b;
}

.key-message[data-state="pending"] {
  color: rgba(245, 245, 247, 0.72);
}

.key-list-shell {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.key-list {
  display: grid;
  gap: 10px;
}

.key-empty {
  min-height: 120px;
  place-content: center;
  padding: 10px 4px;
}

.key-empty strong {
  color: #f5f5f7;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.key-row {
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.key-row-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.key-row-meta strong {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
}

.key-row-secret {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.78);
  font-size: 13px;
}

.key-row-revoke {
  min-width: 88px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.key-row-revoke:disabled {
  opacity: 0.45;
  cursor: default;
}

.key-footnote {
  padding: 0 4px;
}

.key-footnote p {
  margin: 0 0 10px;
}

.key-footnote ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: rgba(245, 245, 247, 0.6);
  font-size: 13px;
  line-height: 1.55;
}

body.auth-ready .hero-copy {
  opacity: 0.38;
  pointer-events: none;
  transform: translateY(8px) scale(0.99);
  transition: opacity 240ms ease, transform 360ms cubic-bezier(.2,.8,.2,1);
}

body.auth-ready .auth-surface {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: scale(1);
}

body.auth-ready .auth-surface::before {
  opacity: 1;
  transform: scale(1);
}

body.auth-ready .hero-particle-scene {
  opacity: 1;
  pointer-events: auto;
  filter: drop-shadow(0 0 46px rgba(255, 255, 255, 0.16));
}

body.profile-ready .profile-surface {
  opacity: 1;
  pointer-events: auto;
}

body.profile-ready .profile-card {
  transform: translateY(0) scale(1);
}

body.password-change-ready .password-surface {
  opacity: 1;
  pointer-events: auto;
}

body.password-change-ready .password-card {
  transform: translateY(0) scale(1);
}

body.recharge-ready .recharge-surface {
  opacity: 1;
  pointer-events: auto;
}

body.recharge-ready .recharge-shell {
  transform: translateY(0) scale(1);
}

body.key-panel-ready .key-surface {
  opacity: 1;
  pointer-events: auto;
}

body.key-panel-ready .key-card {
  transform: translateY(0) scale(1);
}

body.auth-ready::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 29%),
    radial-gradient(circle at 50% 52%, rgba(98, 231, 201, 0.09), transparent 34%),
    linear-gradient(180deg, #050506 0%, #09090b 55%, #050506 100%);
}

.workspace-surface {
  position: relative;
  z-index: 7;
  width: min(1240px, 100%);
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transform: translateY(46px) scale(0.98);
  transition:
    opacity 320ms ease,
    filter 420ms ease,
    transform 620ms cubic-bezier(.16, 1, .3, 1);
}

.workspace-shell {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  width: 100%;
  padding: clamp(18px, 2.2vw, 28px);
}

.workspace-header {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.workspace-identity,
.workspace-logout,
.balance-convert,
.service-action-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
}

.workspace-account {
  position: relative;
  min-width: 0;
  max-width: min(520px, 64vw);
}

.workspace-identity {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.workspace-identity-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-identity-label,
.service-balance span,
.chart-axis-label,
.chart-scale button {
  color: rgba(245, 245, 247, 0.5);
}

.workspace-identity-label {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.workspace-identity strong {
  display: block;
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-identity-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid rgba(245, 245, 247, 0.58);
  border-bottom: 1.5px solid rgba(245, 245, 247, 0.58);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease, border-color 180ms ease;
}

.workspace-identity:hover,
.workspace-identity[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.workspace-identity[aria-expanded="true"] .workspace-identity-caret {
  transform: rotate(-135deg) translateY(-1px);
  border-color: rgba(245, 245, 247, 0.88);
}

.workspace-identity-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 176px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(17, 17, 19, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.15);
}

.workspace-identity-menu[hidden] {
  display: none;
}

.workspace-menu-item {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f5f5f7;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.workspace-menu-item:hover,
.workspace-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.workspace-logout {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.workspace-logout:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 64px);
  align-items: stretch;
}

.service-window {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  gap: clamp(16px, 2vw, 24px);
  min-height: clamp(470px, 58svh, 620px);
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.025)),
    rgba(11, 11, 13, 0.5);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.18);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.service-window::before {
  position: absolute;
  inset: -1px;
  z-index: 0;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.04) 50%, transparent 51%),
    linear-gradient(180deg, transparent 0 49%, rgba(255, 255, 255, 0.035) 50%, transparent 51%);
  opacity: 0.45;
}

.service-window:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 42px 140px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.service-window > * {
  position: relative;
  z-index: 1;
}

.service-window-openai {
  --service-accent: #62e7c9;
  --service-accent-soft: rgba(98, 231, 201, 0.22);
}

.service-window-claude {
  --service-accent: #e1b071;
  --service-accent-soft: rgba(225, 176, 113, 0.22);
}

.service-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.service-logo {
  position: relative;
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.38));
}

.service-logo-openai {
  display: grid;
  place-items: center;
}

.service-logo-openai span {
  position: absolute;
  width: 44px;
  height: 24px;
  border: 2px solid rgba(245, 245, 247, 0.84);
  border-radius: 999px;
  transform-origin: center;
}

.service-logo-openai span:nth-child(1) {
  transform: rotate(0deg);
}

.service-logo-openai span:nth-child(2) {
  transform: rotate(60deg);
}

.service-logo-openai span:nth-child(3) {
  transform: rotate(120deg);
}

.service-logo-claude::before,
.service-logo-claude::after {
  position: absolute;
  inset: 8px;
  content: "";
  background: rgba(245, 245, 247, 0.9);
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
}

.service-logo-claude::after {
  inset: 18px;
  background: rgba(11, 11, 13, 0.78);
  transform: rotate(18deg);
}

.service-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px 12px;
  border-bottom: 1px dashed rgba(245, 245, 247, 0.34);
  color: rgba(245, 245, 247, 0.78);
}

.service-balance strong {
  color: #f5f5f7;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.03em;
}

.balance-convert {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(245, 245, 247, 0.76);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.balance-convert:hover,
.balance-convert[aria-pressed="true"] {
  color: #f5f5f7;
  border-color: color-mix(in srgb, var(--service-accent) 55%, transparent);
  background: var(--service-accent-soft);
  transform: translateY(-1px);
}

.service-chart {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 286px;
  padding: 14px 0 0;
}

.chart-axis-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-toolbar {
  position: absolute;
  top: 10px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chart-window-indicator {
  color: rgba(245, 245, 247, 0.44);
  font-size: 11px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.chart-window-controls {
  display: inline-flex;
  gap: 4px;
}

.chart-window-button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(245, 245, 247, 0.72);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.chart-window-button:hover:not(:disabled) {
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.chart-window-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.service-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: none;
}

.chart-grid {
  fill: none;
  stroke: rgba(245, 245, 247, 0.16);
  stroke-linecap: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: transparent;
  opacity: 0;
}

.chart-line,
.chart-line-soft {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.chart-line-soft {
  display: none;
}

.chart-line {
  stroke: rgba(245, 245, 247, 0.42);
  stroke-width: 1.2;
}

.chart-node {
  fill: rgba(245, 245, 247, 0.54);
  opacity: 1;
}

.chart-cursor-line {
  stroke: rgba(245, 245, 247, 0.56);
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.chart-tooltip rect {
  fill: rgba(245, 245, 247, 0.9);
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 1;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.36));
}

.chart-tooltip text {
  fill: rgba(11, 11, 13, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-anchor: middle;
}

.chart-hit-area {
  fill: transparent;
  cursor: grab;
  pointer-events: all;
}

.service-chart.is-usage-dragging .chart-hit-area {
  cursor: grabbing;
}

.chart-timeline {
  position: relative;
  height: 14px;
  margin: -3px 20px 3px 62px;
  color: #86868b;
  font-size: 10px;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.chart-timeline span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0 2px;
}

.chart-timeline span[data-edge='start'] {
  transform: translateX(0);
  text-align: left;
}

.chart-timeline span[data-edge='end'] {
  transform: translateX(-100%);
  text-align: right;
}

.chart-timeline-active {
  color: rgba(245, 245, 247, 0.72);
}

.chart-scale {
  display: grid;
  grid-template-columns: 1.2fr repeat(6, 1fr);
  gap: 4px;
  margin: -6px 0 0 52px;
}

.chart-scale button {
  min-height: 24px;
  padding-top: 4px;
  border-top: 1px solid rgba(245, 245, 247, 0.28);
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(245, 245, 247, 0.22);
  color: rgba(245, 245, 247, 0.48);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: center;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.chart-scale button:hover,
.chart-scale button[aria-pressed="true"] {
  color: #f5f5f7;
  border-top-color: var(--service-accent);
}

.chart-scale button[aria-pressed="true"] {
  transform: translateY(-1px);
}

.service-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-action-button {
  min-width: 132px;
  min-height: 48px;
  border-radius: 999px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.brand-wordmark-openai {
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.brand-wordmark-claude {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

body.is-authenticated .hero-copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(32px) scale(0.98);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1);
}

body.minimal-home.is-authenticated {
  overflow: auto;
}

body.is-authenticated .workspace-surface {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

body.is-authenticated .auth-surface {
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: translateY(22px) scale(0.92);
}

body.is-authenticated .hero-particle-scene {
  opacity: 1;
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.16));
}

body.is-authenticated::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 18% 86%, rgba(98, 231, 201, 0.08), transparent 26%),
    radial-gradient(circle at 84% 76%, rgba(222, 173, 112, 0.08), transparent 24%),
    linear-gradient(180deg, #050506 0%, #09090b 55%, #050506 100%);
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px;
    border-radius: 26px;
  }

  .verification-row {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    gap: 22px;
    padding: 20px 10px 34px;
  }

  .workspace-header {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .workspace-account,
  .workspace-identity {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }

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

  .service-window {
    grid-template-rows: auto auto minmax(180px, 1fr) auto;
    min-height: 420px;
    padding: 20px;
    border-radius: 26px;
  }

  .service-logo {
    width: 54px;
    height: 54px;
  }

  .brand-wordmark {
    font-size: clamp(36px, 11vw, 48px);
  }

  .service-balance {
    flex-wrap: wrap;
  }

  .service-chart {
    min-height: 210px;
  }

  .chart-scale {
    margin-left: 42px;
  }

  .chart-scale button {
    font-size: 10px;
  }
}

/* Apple official-page inspired refinement */
:root {
  --bg: #000;
  --ink: #f5f5f7;
  --muted: #86868b;
  --soft: #fbfbfd;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(29, 29, 31, 0.72);
  --accent: #0071e3;
  --accent-2: #2997ff;
  --panel: #161617;
  --radius-lg: 32px;
  --radius-md: 22px;
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.minimal-home,
body.minimal-home::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 245, 247, 0.12), transparent 28%),
    radial-gradient(circle at 50% 38%, rgba(41, 151, 255, 0.12), transparent 38%),
    linear-gradient(180deg, #000 0%, #050505 58%, #000 100%);
}

body.minimal-home::after {
  opacity: 0;
}

.scroll-meter span {
  background: #2997ff;
}

.minimal-home .hero {
  padding: 52px max(22px, 5vw) 50px;
}

.minimal-home .hero-glow {
  opacity: 0.18;
  filter: blur(72px);
}

.hero-glow-one {
  background: radial-gradient(circle, rgba(245, 245, 247, 0.24), transparent 62%);
}

.hero-glow-two {
  background: radial-gradient(circle, rgba(41, 151, 255, 0.2), transparent 68%);
}

.minimal-home .hero-particle-scene {
  width: min(1120px, 104vw);
  height: min(740px, 70svh);
  margin-top: -9svh;
}

.minimal-home .hero-particle-scene canvas {
  opacity: 0.94;
  filter:
    drop-shadow(0 0 22px rgba(245, 245, 247, 0.1))
    drop-shadow(0 28px 90px rgba(0, 0, 0, 0.76));
}

.sphere-vignette {
  background:
    radial-gradient(circle, transparent 44%, rgba(255, 255, 255, 0.04) 65%, transparent 70%),
    radial-gradient(circle at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.48) 76%, rgba(0, 0, 0, 0.96) 100%);
  opacity: 0.7;
}

.minimal-home .hero-copy {
  width: min(960px, 100%);
  transform: translateY(clamp(14px, 2.8svh, 38px));
}

.minimal-home .hero h1 {
  max-width: 980px;
  font-size: clamp(76px, 12.8vw, 168px);
  letter-spacing: -0.095em;
}

.token-wordmark {
  width: min(980px, 94vw);
  font-weight: 700;
  letter-spacing: -0.095em;
}

.token-face {
  background:
    linear-gradient(180deg, #fff 0%, #f5f5f7 28%, #b8b8be 82%, #727277 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 32px 96px rgba(0, 0, 0, 0.9);
}

.minimal-home .hero-actions {
  transform: translate(-50%, clamp(286px, 29svh, 342px));
}

.button {
  min-height: 44px;
  padding: 0 23px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1),
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.minimal-home .hero-actions .button-ghost,
.minimal-home .hero-actions .button-primary {
  color: #fff;
  background: #0071e3;
  box-shadow: none;
}

.minimal-home .hero-actions .button-ghost:hover,
.minimal-home .hero-actions .button-primary:hover {
  background: #0077ed;
  transform: translateY(-1px);
}

.auth-surface {
  width: min(440px, calc(100vw - 40px));
}

.auth-surface::before {
  background: radial-gradient(circle, rgba(245, 245, 247, 0.18), transparent 68%);
}

.auth-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(29, 29, 31, 0.78);
  box-shadow:
    0 44px 130px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(34px) saturate(1.35);
}

.auth-card .eyebrow {
  margin-bottom: 12px;
  color: #86868b;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.profile-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(29, 29, 31, 0.9);
}

.profile-row {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.profile-close {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.password-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(29, 29, 31, 0.9);
}

.password-close {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.password-form input {
  border-color: rgba(255, 255, 255, 0.1);
}

.recharge-shell {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(29, 29, 31, 0.86);
}

.recharge-config,
.recharge-preview,
.recharge-summary-row,
.recharge-custom-row {
  border-color: rgba(255, 255, 255, 0.08);
}

.recharge-close {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.key-card,
.key-overview,
.key-secret-panel,
.key-list-shell,
.key-row {
  border-color: rgba(255, 255, 255, 0.1);
}

.key-card {
  background: rgba(29, 29, 31, 0.9);
}

.key-close,
.key-row-revoke {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.auth-card h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.auth-form {
  gap: 12px;
}

.auth-form input {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 17px;
}

.auth-form input:focus {
  border-color: rgba(0, 113, 227, 0.86);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.code-button,
.auth-form .button-primary {
  min-height: 52px;
  border: 0;
  border-radius: 980px;
  color: #fff;
  background: #0071e3;
  box-shadow: none;
}

.code-button:hover,
.auth-form .button-primary:hover {
  background: #0077ed;
}

.auth-message,
.password-rule {
  color: rgba(245, 245, 247, 0.56);
}

.workspace-surface {
  width: min(1180px, 100%);
}

.workspace-shell {
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(14px, 1.8vw, 24px);
}

.workspace-header {
  justify-content: flex-end;
}

.workspace-identity,
.workspace-logout,
.balance-convert,
.service-action-button {
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.25);
}

.workspace-identity {
  padding: 10px 16px;
  background: rgba(29, 29, 31, 0.72);
}

.workspace-identity-label,
.service-balance span,
.chart-axis-label,
.chart-scale button {
  color: #86868b;
}

.workspace-identity-menu {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(29, 29, 31, 0.92);
}

.workspace-logout {
  color: #f5f5f7;
  background: rgba(29, 29, 31, 0.76);
}

.workspace-logout:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(52, 52, 55, 0.76);
}

.workspace-grid {
  gap: clamp(16px, 2.4vw, 28px);
}

.service-window {
  grid-template-rows: auto auto minmax(218px, 1fr) auto;
  gap: clamp(16px, 1.9vw, 22px);
  min-height: clamp(500px, 60svh, 640px);
  padding: clamp(26px, 3vw, 42px);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -8%, rgba(245, 245, 247, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #161617;
  box-shadow:
    0 28px 92px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-window::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 34%);
  opacity: 1;
}

.service-window:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 36px 104px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-window-openai {
  --service-accent: #2997ff;
  --service-accent-soft: rgba(41, 151, 255, 0.16);
}

.service-window-claude {
  --service-accent: #f5f5f7;
  --service-accent-soft: rgba(245, 245, 247, 0.12);
}

.service-logo {
  width: 58px;
  height: 58px;
  filter: none;
  opacity: 0.94;
}

.service-logo-openai span {
  width: 38px;
  height: 21px;
  border-color: rgba(245, 245, 247, 0.76);
  border-width: 1.6px;
}

.service-logo-claude::before {
  background: rgba(245, 245, 247, 0.82);
}

.service-logo-claude::after {
  background: #161617;
}

.brand-wordmark {
  font-weight: 700;
  letter-spacing: -0.055em;
}

.service-balance {
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-balance strong {
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 700;
}

.balance-convert {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 980px;
  color: rgba(245, 245, 247, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 400;
}

.balance-convert:hover,
.balance-convert[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.service-chart {
  min-height: 292px;
  padding-top: 20px;
}

.chart-axis-label {
  top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.chart-grid {
  stroke: rgba(245, 245, 247, 0.105);
  stroke-width: 1;
}

.chart-area {
  opacity: 0.1;
}

.chart-line-soft {
  stroke-width: 8;
  opacity: 0.22;
}

.chart-line {
  stroke-width: 1;
}

.chart-node {
  fill: rgba(245, 245, 247, 0.54);
  stroke: none;
  opacity: 1;
}

.chart-cursor-line {
  stroke: rgba(245, 245, 247, 0.48);
  stroke-dasharray: 3 6;
}

.chart-tooltip rect {
  fill: rgba(245, 245, 247, 0.94);
  stroke: rgba(255, 255, 255, 0.72);
}

.chart-tooltip text {
  fill: #1d1d1f;
  font-weight: 700;
}

.chart-scale {
  gap: 6px;
  margin-top: -4px;
}

.chart-scale button {
  min-height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  font-size: 12px;
}

.chart-scale button:hover,
.chart-scale button[aria-pressed="true"] {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.09);
  border-top-color: transparent;
}

.service-action-button {
  min-width: 112px;
  min-height: 44px;
  color: rgba(245, 245, 247, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 400;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.service-action-button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

body.auth-ready .hero-copy {
  opacity: 0.24;
  transform: translateY(6px) scale(0.995);
}

body.auth-ready .hero-particle-scene {
  filter: drop-shadow(0 0 28px rgba(245, 245, 247, 0.1));
}

body.auth-ready::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 245, 247, 0.13), transparent 30%),
    radial-gradient(circle at 50% 44%, rgba(41, 151, 255, 0.09), transparent 36%),
    linear-gradient(180deg, #000 0%, #050505 58%, #000 100%);
}

@media (max-width: 980px) {
  .workspace-surface {
    width: min(760px, 100%);
  }

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

  .recharge-shell {
    width: min(760px, calc(100vw - 28px));
    grid-template-columns: 1fr;
  }

  .recharge-preview-stage {
    min-height: 240px;
  }

  .key-card {
    width: min(760px, calc(100vw - 28px));
  }
}

@media (max-width: 640px) {
  .minimal-home .hero {
    padding-top: 52px;
  }

  .minimal-home .hero-particle-scene {
    width: 134vw;
    height: 58svh;
    margin-top: -11svh;
  }

  .minimal-home .hero h1 {
    font-size: clamp(62px, 19vw, 104px);
  }

  .minimal-home .hero-copy {
    transform: translateY(clamp(2px, 1svh, 14px));
  }

  .minimal-home .hero-actions {
    transform: translate(-50%, clamp(164px, 21svh, 226px));
  }

  .auth-card {
    padding: 24px;
    border-radius: 24px;
  }

  .profile-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .profile-header {
    align-items: center;
  }

  .profile-close {
    min-height: 36px;
    padding-inline: 12px;
  }

  .password-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .password-header {
    align-items: center;
  }

  .password-close {
    min-height: 36px;
    padding-inline: 12px;
  }

  .recharge-surface {
    padding: 16px;
  }

  .recharge-shell {
    width: min(100vw - 20px, 720px);
    padding: 14px;
    border-radius: 24px;
  }

  .recharge-config,
  .recharge-preview {
    padding: 18px;
    border-radius: 22px;
  }

  .recharge-header,
  .recharge-preview-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .recharge-header-actions {
    justify-content: flex-start;
  }

  .recharge-amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recharge-preview-stage {
    min-height: 220px;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .key-surface {
    padding: 16px;
  }

  .key-card {
    width: min(100vw - 20px, 720px);
    padding: 18px;
    border-radius: 24px;
  }

  .key-header,
  .key-overview,
  .key-list-head,
  .key-row {
    display: grid;
  }

  .key-header-actions {
    justify-content: flex-start;
  }

  .key-overview {
    padding: 16px;
  }

  .key-secret-panel,
  .key-list-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .key-row {
    padding: 14px;
    border-radius: 18px;
  }

  .key-row-revoke {
    width: fit-content;
  }

  .workspace-shell {
    padding: 14px 10px 32px;
  }

  .service-window {
    min-height: 440px;
    padding: 22px;
    border-radius: 26px;
  }

  .service-balance {
    flex-wrap: wrap;
  }

  .service-chart {
    min-height: 218px;
  }

  .chart-scale {
    margin-left: 42px;
  }

  .chart-toolbar {
    top: 8px;
    gap: 8px;
  }

  .chart-window-indicator {
    font-size: 10px;
  }

  .chart-window-button {
    width: 24px;
    height: 24px;
  }

  .chart-timeline {
    height: 12px;
    margin-top: -1px;
    margin-right: 16px;
    margin-left: 42px;
    font-size: 9px;
  }
}

/* User correction: windows remain grey translucent */
.auth-card,
.service-window {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(92, 92, 98, 0.34);
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(34px) saturate(1.18);
}

.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(88, 88, 94, 0.38);
}

.service-window::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%);
  opacity: 0.82;
}

.service-window:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.07)),
    rgba(104, 104, 110, 0.4);
  box-shadow:
    0 38px 108px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.workspace-identity,
.workspace-logout {
  background: rgba(92, 92, 98, 0.3);
}

.workspace-identity-menu {
  background: rgba(41, 41, 46, 0.88);
}

.balance-convert {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.72);
}

.chart-node {
  fill: rgba(92, 92, 98, 0.76);
}

.service-window-openai .chart-node {
  fill: rgba(245, 245, 247, 0.54);
  stroke: none;
}

.service-logo-claude::after {
  background: rgba(92, 92, 98, 0.72);
}

/* User correction: match window grey to logout button exactly */
.auth-card,
.service-window,
.service-window:hover {
  background: rgba(92, 92, 98, 0.3);
  backdrop-filter: blur(34px) saturate(1.18);
}

.service-window::before {
  opacity: 0;
}

.auth-card {
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-window {
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-window:hover {
  box-shadow:
    0 38px 108px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
  body.minimal-home {
    overflow-x: hidden;
  }

  .minimal-home .hero,
  body.legacy-browser .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
    padding: 56px 20px 96px;
    gap: 18px;
  }

  .minimal-home .hero-particle-scene,
  body.legacy-browser .hero-particle-scene {
    width: min(92vw, 430px);
    height: min(46svh, 430px);
    margin: 0 auto;
    align-self: center;
  }

  .minimal-home .hero-copy,
  body.legacy-browser .hero-copy {
    display: grid;
    justify-items: center;
    width: min(92vw, 420px);
    margin: 0 auto;
    padding: 0;
    text-align: center;
    transform: none;
    align-self: center;
  }

  .minimal-home .hero h1,
  body.legacy-browser .hero h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(48px, 17vw, 88px);
    line-height: 0.94;
  }

  .minimal-home .token-wordmark,
  body.legacy-browser .token-wordmark {
    width: 100%;
    min-height: 1em;
    letter-spacing: -0.05em;
  }

  .minimal-home .token-face-token,
  body.legacy-browser .token-face-token {
    transform: none;
  }

  .minimal-home .hero-actions,
  body.legacy-browser .hero-actions {
    position: static;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    transform: none;
  }

  .minimal-home .hero-actions .button-ghost,
  .minimal-home .hero-actions .button-primary,
  body.legacy-browser .hero-actions .button-ghost,
  body.legacy-browser .hero-actions .button-primary {
    min-width: 156px;
  }

  body.legacy-browser .legacy-browser-note {
    margin-top: 14px;
  }
}

.workspace-legacy-note {
  display: none;
}

body.legacy-browser.is-authenticated .workspace-legacy-note {
  display: block;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgba(245, 245, 247, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

body.legacy-browser.is-authenticated [data-workspace-menu-trigger],
body.legacy-browser.is-authenticated [data-recharge-open],
body.legacy-browser.is-authenticated [data-key-open] {
  opacity: 0.46;
  cursor: not-allowed;
}
