/* NXT Cloud — black and baby blue */

:root {
  --black: #020409;
  --ink: #060c15;
  --navy: #0b1626;
  --navy-2: #102038;
  --line: #16283d;
  --line-strong: #24405c;
  --sky: #89cff0;
  --mist: #dcf1fc;
  --slate: #93a8bb;
  --electric: #1e9bff;
  --display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--mist);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 3rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--sky); color: #04121c; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--sky); color: #04121c; }
.btn-primary:hover { background: var(--mist); }
.btn-ghost { border-color: var(--line-strong); color: var(--mist); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 4, 9, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { width: 46px; height: 46px; mix-blend-mode: screen; }
.brand span { font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: 0.05em; }

.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.93rem; color: var(--slate); }
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--mist); }
.nav a[aria-current="page"] { color: var(--sky); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--mist); border-radius: 10px; padding: 0.5rem 0.7rem; cursor: pointer; font: inherit; font-size: 0.9rem;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 11rem; isolation: isolate; background: var(--black); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; background: linear-gradient(180deg, transparent, var(--black)); pointer-events: none; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, rgba(220, 241, 252, 0.7), transparent),
    radial-gradient(1px 1px at 17% 64%, rgba(220, 241, 252, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 31% 12%, rgba(137, 207, 240, 0.7), transparent),
    radial-gradient(1px 1px at 44% 38%, rgba(220, 241, 252, 0.45), transparent),
    radial-gradient(1px 1px at 52% 78%, rgba(220, 241, 252, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 63% 18%, rgba(220, 241, 252, 0.6), transparent),
    radial-gradient(1px 1px at 74% 52%, rgba(137, 207, 240, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 30%, rgba(220, 241, 252, 0.6), transparent),
    radial-gradient(1px 1px at 93% 72%, rgba(220, 241, 252, 0.4), transparent),
    radial-gradient(1px 1px at 3% 84%, rgba(220, 241, 252, 0.4), transparent);
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }

.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em;
  color: #fff;
}
.hero .lede { margin-top: 1.6rem; max-width: 34rem; font-size: 1.15rem; color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--slate); display: flex; align-items: center; gap: 0.6rem; }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(137, 207, 240, 0.18); }

.scene { position: relative; width: min(100%, 540px); margin-inline: auto; aspect-ratio: 1; }
.scene .glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 155, 255, 0.42) 0%, rgba(30, 155, 255, 0.12) 45%, transparent 70%);
  filter: blur(18px);
}
.scene .logo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  mix-blend-mode: screen; animation: float 9s ease-in-out infinite;
}
.scene .orbits { position: absolute; inset: -4%; width: 108%; height: 108%; animation: spin 90s linear infinite; }

.clouds { position: absolute; left: 0; right: 0; bottom: 0; height: 380px; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute; bottom: 0; border-radius: 50%; filter: blur(34px);
  background: radial-gradient(ellipse at center, rgba(137, 207, 240, 0.34) 0%, rgba(30, 110, 190, 0.22) 45%, transparent 72%);
}
.cloud.c1 { left: -10%; width: 55%; height: 240px; animation: drift 46s ease-in-out infinite alternate; }
.cloud.c2 { left: 22%; width: 60%; height: 300px; bottom: -70px; opacity: 0.85; animation: drift 62s ease-in-out infinite alternate-reverse; }
.cloud.c3 { right: -12%; width: 58%; height: 260px; animation: drift 54s ease-in-out infinite alternate; }
.cloud.c4 { left: 8%; width: 84%; height: 150px; bottom: -40px;
  background: radial-gradient(ellipse at center, rgba(11, 22, 38, 0.95) 0%, rgba(11, 22, 38, 0.6) 55%, transparent 75%);
  animation: none; filter: blur(22px);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(6%); } }

/* Sections */
.section { padding: 6.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section h2, .band h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; color: #fff;
}
.section-head p { margin-top: 1rem; color: var(--slate); }

/* Pills */
.pill { display: inline-flex; align-items: center; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
.pill--soon { background: var(--sky); color: #04121c; }
.pill--dev { border: 1px solid #3e7595; color: var(--sky); }
.pill--plan { border: 1px dashed #3a566f; color: var(--slate); }

/* Products */
.products { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; }
.card { background: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; display: flex; flex-direction: column; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.01em; color: #fff; margin: 1.1rem 0 0.35rem; }
.card .tag { color: var(--sky); font-size: 0.95rem; font-weight: 600; }
.card p.body { margin-top: 0.9rem; color: var(--slate); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 1.4rem; color: var(--sky); font-weight: 600; font-size: 0.93rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.card .more:hover { color: var(--mist); }

.card--main {
  grid-row: span 2; padding: 2.5rem; border: 1.5px solid var(--sky);
  background: radial-gradient(120% 90% at 100% 0%, rgba(30, 155, 255, 0.18), transparent 60%), var(--navy);
}
.card--main h3 { font-size: 2rem; margin-top: 1.4rem; }
.card--main p.body { font-size: 1.05rem; max-width: 30rem; }
.card--dev { border-color: var(--line-strong); }
.card--plan { border-style: dashed; border-color: #2a4258; }

.checks { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--mist); font-size: 0.98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 4px rgba(137, 207, 240, 0.16);
}
.card--main .btn { margin-top: 2rem; align-self: flex-start; }

/* Roadmap */
.roadmap { background: linear-gradient(180deg, var(--black), var(--ink) 40%, var(--black)); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.stage { position: relative; padding-top: 2.6rem; }
.stage::before { content: ""; position: absolute; top: 9px; left: 0; right: -2rem; height: 2px; background: var(--line-strong); }
.stage:last-child::before { right: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
.stage::after { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--black); border: 2px solid var(--sky); }
.stage--now::after { background: var(--sky); box-shadow: 0 0 0 6px rgba(137, 207, 240, 0.2); }
.stage--next::after { background: radial-gradient(circle, var(--sky) 0 35%, var(--black) 40%); }
.stage--later::after { border: 2px dashed #4a6a85; }
.stage .when { font-family: var(--display); font-size: 0.95rem; color: var(--sky); }
.stage h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: #fff; margin: 0.4rem 0 0.6rem; }
.stage p { color: var(--slate); font-size: 0.98rem; max-width: 22rem; }

/* White paper band */
.band { padding: 0 0 6.5rem; }
.band-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 28px; padding: 3.25rem;
  background: radial-gradient(90% 120% at 0% 0%, rgba(30, 155, 255, 0.16), transparent 60%), var(--navy);
}
.band-card p { color: var(--slate); margin: 1rem 0 1.8rem; max-width: 30rem; }
.toc-preview { columns: 2; column-gap: 2rem; counter-reset: sec; font-size: 0.95rem; color: var(--mist); }
.toc-preview li { counter-increment: sec; break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.toc-preview li::before { content: counter(sec) "  "; color: var(--sky); font-weight: 700; margin-right: 0.35rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--slate); font-size: 0.92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand p { margin-top: 0.7rem; max-width: 20rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; align-content: flex-start; }
.footer-links a:hover { color: var(--mist); }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* White paper page */
.doc-hero { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.doc-hero::after { content: ""; position: absolute; right: -8%; top: -60%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(30, 155, 255, 0.22), transparent 65%); filter: blur(30px); z-index: -1; }
.doc-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; color: #fff; }
.doc-hero p { margin-top: 1.2rem; color: var(--slate); max-width: 38rem; }
.doc-meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; font-size: 0.9rem; color: var(--slate); align-items: center; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4.5rem; padding: 3.5rem 0 6rem; }
.toc { position: sticky; top: 104px; align-self: start; font-size: 0.92rem; }
.toc p { font-family: var(--display); font-size: 0.85rem; color: var(--mist); margin-bottom: 0.9rem; }
.toc a { display: block; padding: 0.4rem 0.9rem; color: var(--slate); border-left: 2px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--mist); }
.toc a.is-active { color: var(--sky); border-left-color: var(--sky); }

.doc { max-width: 44rem; }
.doc section { padding-top: 3.25rem; }
.doc section:first-child { padding-top: 0; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.015em; color: #fff; margin-bottom: 1.1rem; }
.doc h3 { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--mist); margin: 1.8rem 0 0.5rem; }
.doc p { color: #c2d5e3; margin-bottom: 1rem; line-height: 1.75; }
.doc ul.bullets { margin: 0.5rem 0 1.2rem; display: grid; gap: 0.6rem; }
.doc ul.bullets li { position: relative; padding-left: 1.5rem; color: #c2d5e3; line-height: 1.7; }
.doc ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.doc a.inline { color: var(--sky); border-bottom: 1px solid rgba(137, 207, 240, 0.4); }
.doc a.inline:hover { border-bottom-color: var(--sky); }
.doc .callout { background: var(--navy); border: 1px solid var(--line-strong); border-radius: 16px; padding: 1.4rem 1.6rem; margin: 1.5rem 0; }
.doc .callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 32rem; }
th, td { text-align: left; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--mist); background: var(--navy); }
td { color: #c2d5e3; }
tr:last-child td { border-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(2, 4, 9, 0.97); border-bottom: 1px solid var(--line); padding: 0.75rem 1.5rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; width: 100%; }
  .nav .btn { width: auto; margin-top: 0.5rem; }
  .hero { padding: 3rem 0 9rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .scene { width: min(100%, 400px); order: -1; }
  .products { grid-template-columns: 1fr; }
  .card--main { grid-row: auto; }
  .band-card { grid-template-columns: 1fr; padding: 2.25rem; gap: 2rem; }
  .doc-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
  .toc nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; }
  .toc a.is-active { border-color: var(--sky); }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .stage { padding: 0 0 2.5rem 2.6rem; }
  .stage::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .stage:last-child::before { background: linear-gradient(180deg, var(--line-strong), transparent); }
  .toc-preview { columns: 1; }
  .brand span { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene .logo, .scene .orbits, .cloud { animation: none; }
  .btn { transition: none; }
}

/* ==========================================================================
   NXT PAD additions
   ========================================================================== */

/* Test-mode bar */
.testbar {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.5rem 1rem; text-align: center;
  background: var(--navy); border-bottom: 1px solid var(--line);
  font-size: 0.82rem; color: var(--slate);
}
.testbar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(137, 207, 240, 0.18); }

/* Buttons */
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; padding: 1rem 1.5rem; }
.btn-ghost.is-connected { border-color: var(--sky); color: var(--sky); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe3a1; box-shadow: 0 0 0 3px rgba(95, 227, 161, 0.18); }
button.btn { font-family: inherit; }
button.btn-ghost { background: transparent; }

.hint { margin-top: 0.5rem; font-size: 0.85rem; color: var(--slate); line-height: 1.5; }
.err { margin-top: 0.4rem; font-size: 0.85rem; color: #ff9aa6; min-height: 0; }
.err:empty { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.opt { font-weight: 500; color: var(--slate); font-size: 0.8rem; margin-left: 0.35rem; }

/* Chain badge */
.chain-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--navy-2); color: var(--sky);
  font-family: var(--display); font-size: 0.55rem; letter-spacing: 0.02em;
}
.chain-badge--lg { width: 52px; height: 52px; font-size: 0.7rem; border-color: var(--sky); box-shadow: 0 0 0 5px rgba(137, 207, 240, 0.12); }

/* Chains section */
.chains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.chain-card h3 { margin-top: 1.3rem; }
.chain-card .more { margin-top: auto; }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.5rem; }
.seg-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; text-align: center;
  padding: 0.75rem 0.5rem; border-radius: 14px; cursor: pointer; font: inherit; font-size: 0.85rem;
  background: var(--black); color: var(--slate); border: 1px solid var(--line-strong);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.seg-btn strong { color: var(--mist); font-size: 0.95rem; }
.seg-btn:hover { border-color: var(--sky); }
.seg-btn.is-active { border-color: var(--sky); background: var(--navy-2); box-shadow: 0 0 0 3px rgba(137, 207, 240, 0.14); }
.seg-btn.is-active strong { color: #fff; }
.seg--lg .seg-btn { padding: 1rem 0.5rem; gap: 0.4rem; }

/* Modal */
dialog.modal {
  padding: 0; border: 1px solid var(--line-strong); border-radius: 22px;
  background: var(--ink); color: var(--mist);
  width: min(460px, 100% - 2rem); max-height: calc(100% - 2rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(30, 155, 255, 0.08);
}
dialog.modal::backdrop { background: rgba(2, 4, 9, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: #fff; letter-spacing: -0.01em; }
.modal-x { background: none; border: 1px solid var(--line-strong); color: var(--mist); width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.modal-x:hover { border-color: var(--sky); color: var(--sky); }
.modal-body { padding: 1.5rem; display: grid; gap: 1.1rem; }
.modal-note { font-size: 0.9rem; color: var(--slate); line-height: 1.55; }
.modal-note strong { color: var(--mist); }
.modal-fine { font-size: 0.82rem; color: var(--slate); }
.modal-error { font-size: 0.9rem; color: #ff9aa6; background: rgba(255, 90, 110, 0.08); border: 1px solid rgba(255, 90, 110, 0.35); border-radius: 12px; padding: 0.75rem 1rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
a.inline { color: var(--sky); border-bottom: 1px solid rgba(137, 207, 240, 0.4); }
a.inline:hover { border-bottom-color: var(--sky); }

.wallet-list { display: grid; gap: 0.6rem; }
.wallet-item {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left; cursor: pointer;
  padding: 0.8rem 1rem; border-radius: 14px; font: inherit; color: var(--mist);
  background: var(--black); border: 1px solid var(--line-strong); transition: border-color 0.2s, background 0.2s;
}
.wallet-item:hover { border-color: var(--sky); background: var(--navy); }
.wallet-item img, .wallet-fallback { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wallet-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--navy-2); color: var(--sky); font-weight: 700; }
.wallet-name { font-weight: 600; flex: 1; }
.wallet-tag { font-size: 0.75rem; color: var(--slate); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.15rem 0.6rem; }
.wallet-empty { border: 1px dashed #2a4258; border-radius: 14px; padding: 1.25rem; display: grid; gap: 0.9rem; justify-items: start; color: var(--slate); font-size: 0.95rem; }

.busy { display: grid; gap: 1rem; justify-items: center; text-align: center; padding: 1rem 0; color: var(--slate); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--sky); animation: spin 0.9s linear infinite; }

.acct { display: flex; align-items: center; gap: 0.85rem; }
.acct strong { display: block; color: #fff; }
.acct-net { font-size: 0.85rem; color: var(--slate); }
.addr { display: block; word-break: break-all; font-size: 0.85rem; background: var(--black); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0.8rem 1rem; color: var(--mist); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; transform: translate(-50%, 20px);
  background: var(--navy-2); border: 1px solid var(--line-strong); color: var(--mist);
  padding: 0.7rem 1.2rem; border-radius: 999px; font-size: 0.9rem; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Launch layout */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; padding: 3rem 0 6rem; align-items: start; }
.launch-form { display: grid; gap: 1.25rem; }
.summary { position: sticky; top: 96px; }

.panel { background: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; }
.panel--main { border: 1.5px solid var(--sky); background: radial-gradient(120% 90% at 100% 0%, rgba(30, 155, 255, 0.16), transparent 60%), var(--navy); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem; }
.panel-head h2 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: #fff; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.7rem; }
.panel-head p { margin-top: 0.4rem; color: var(--slate); font-size: 0.95rem; max-width: 34rem; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: #04121c; font-family: var(--body); font-weight: 700; font-size: 0.8rem; }
.panel:target { border-color: var(--sky); }

.panel-body { display: grid; gap: 1.1rem; transition: opacity 0.2s; }
.panel-body.is-off { opacity: 0.4; }
.panel-body.is-off .hint { display: none; }

.field { display: grid; gap: 0.45rem; align-content: start; }
.field + .field { margin-top: 0; }
.launch-form .panel > .field, .launch-form .panel > .grid-2, .launch-form .panel > .grid-3 { margin-top: 1rem; }
.launch-form .panel > .panel-head + .field { margin-top: 0; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--mist); }
.field output { color: var(--sky); font-weight: 700; }
.field .hint, .field .err { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

input[type="text"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--mist);
  background: var(--black); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 0.8rem 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #5b7186; }
input:hover, select:hover, textarea:hover { border-color: #33566f; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(137, 207, 240, 0.18); }
input[aria-invalid="true"] { border-color: #ff9aa6; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2389cff0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
select option { background: var(--ink); color: var(--mist); }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line-strong); outline-offset: 6px; padding: 0; border: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sky); border: 3px solid var(--black); box-shadow: 0 0 0 2px var(--sky); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sky); border: 3px solid var(--black); box-shadow: 0 0 0 2px var(--sky); cursor: pointer; }

/* Switch */
.switch { position: relative; flex: none; cursor: pointer; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { display: block; width: 50px; height: 28px; border-radius: 999px; background: var(--line-strong); border: 1px solid #33566f; position: relative; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mist); transition: transform 0.2s; }
.switch input:checked + .track { background: var(--sky); border-color: var(--sky); }
.switch input:checked + .track::after { transform: translateX(22px); background: #04121c; }
.switch input:focus-visible + .track { outline: 2px solid var(--sky); outline-offset: 3px; }

/* Summary */
.sum-top { display: flex; align-items: center; gap: 0.9rem; }
.sum-top strong { display: block; color: #fff; font-size: 1.1rem; line-height: 1.25; word-break: break-word; }
.sum-sub { font-size: 0.85rem; color: var(--slate); }
.sum-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--navy-2); border: 1px solid var(--sky); color: var(--sky); font-family: var(--display); font-size: 1rem; }
.sum-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sum-h { font-family: var(--display); font-weight: 500; font-size: 0.8rem; color: var(--sky); margin: 1.5rem 0 0.7rem; letter-spacing: 0.02em; }

.dist { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line-strong); gap: 2px; }
.dist span { display: block; height: 100%; transition: width 0.25s; }
.seg-creator { background: var(--mist); }
.seg-early { background: var(--electric); }
.seg-public { background: var(--sky); }
.legend { margin-top: 0.8rem; display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--slate); }
.legend li { display: flex; align-items: center; gap: 0.6rem; }
.legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend span { flex: 1; }
.legend strong { color: var(--mist); }

.sum-list { display: grid; gap: 0.55rem; font-size: 0.9rem; }
.sum-list li { position: relative; padding-left: 1.5rem; color: var(--mist); line-height: 1.45; }
.sum-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(137, 207, 240, 0.16); }
.sum-list li.off { color: var(--slate); }
.sum-list li.off::before { background: transparent; border: 1.5px dashed #4a6a85; box-shadow: none; }

.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.6rem 0 1.1rem; padding: 1rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.fee-label { display: block; font-weight: 600; color: var(--mist); }
.fee-note { display: block; font-size: 0.8rem; color: var(--slate); }
.fee-val { text-align: right; }
.fee-val strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: #fff; }
.fee-val span { font-size: 0.85rem; color: var(--slate); white-space: nowrap; }
.sum-fine { margin-top: 0.9rem; font-size: 0.8rem; color: var(--slate); line-height: 1.5; }

/* Progress steps + results */
.steps { display: grid; gap: 1rem; }
.steps li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--slate); }
.steps strong { display: block; color: var(--slate); font-weight: 600; }
.steps .st-sub { display: block; font-size: 0.85rem; min-height: 1.2em; }
.st-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px dashed #4a6a85; margin-top: 1px; position: relative; }
.steps li.is-active strong, .steps li.is-done strong { color: #fff; }
.steps li.is-active .st-ic { border: 3px solid var(--line-strong); border-top-color: var(--sky); animation: spin 0.9s linear infinite; }
.steps li.is-done .st-ic { border: 0; background: var(--sky); }
.steps li.is-done .st-ic::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #04121c; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.steps li.is-error strong { color: #ff9aa6; }
.steps li.is-error .st-ic { border: 2px solid #ff9aa6; }

.pg-result { background: var(--black); border: 1px solid var(--line-strong); border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: 0.7rem; }
.res-title { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.res-title strong { color: #fff; }
.res-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--slate); }
.res-row code { color: var(--mist); }

/* Launches page */
.section-tight { padding: 3rem 0 6rem; }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-row .seg { grid-auto-flow: column; grid-auto-columns: minmax(90px, auto); }
.filter-row .seg-btn { padding: 0.55rem 1.1rem; }
.token-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.token-card { padding: 1.5rem; }
.token-card h3 { margin: 0; font-size: 1.1rem; }
.tc-top { display: flex; align-items: center; gap: 0.85rem; }
.tc-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.token-card .body { font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-meta { margin: 1.1rem 0 0; display: grid; gap: 0.5rem; font-size: 0.88rem; }
.tc-meta div { display: flex; justify-content: space-between; gap: 1rem; }
.tc-meta dt { color: var(--slate); }
.tc-meta dd { margin: 0; color: var(--mist); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.chips li { font-size: 0.78rem; color: var(--mist); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.25rem 0.7rem; background: var(--navy); }
.empty { text-align: center; border: 1px dashed #2a4258; border-radius: 22px; padding: 4rem 1.5rem; display: grid; gap: 0.9rem; justify-items: center; }
.empty h2 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: #fff; }
.empty p { color: var(--slate); }

@media (max-width: 1100px) {
  .launch-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .token-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .panel { padding: 1.35rem; }
  .testbar { font-size: 0.78rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner, .steps li.is-active .st-ic { animation: none; }
  .toast, .dist span, .panel-body { transition: none; }
}
.res-plain { color: var(--mist); }

[hidden] { display: none !important; }

.card > .pill { align-self: flex-start; }
