:root {
  color-scheme: dark;
  --canvas: #07080a;
  --surface: #0d0e10;
  --surface-raised: #1a1c20;
  --primary: #fff;
  --primary-active: #e8e9ee;
  --on-primary: #131416;
  --ink: #f4f4f6;
  --muted: #a4a5ab;
  --line: #2a2c31;
  --line-strong: #646872;
  --soft: #101113;
  --white: #fff;
  --focus: #9bd9ff;
  --red: #ff8d98;
  --green: #79d7ac;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  font-feature-settings: "calt", "kern", "liga", "ss03";
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input {
  font: inherit;
}
input {
  color: var(--ink);
}
input::placeholder {
  color: #878b95;
  opacity: 1;
}
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  font-weight: 600;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 100px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.primary {
  background: var(--primary);
  color: var(--on-primary);
}
.primary:hover:not(:disabled) {
  background: var(--primary-active);
}
.primary:active:not(:disabled) {
  background: #d9dbe2;
}
.secondary {
  background: var(--surface-raised);
  color: var(--ink);
}
.secondary:hover:not(:disabled) {
  background: #282b31;
}
.secondary:active:not(:disabled) {
  background: #30343b;
}
.text-button {
  background: transparent;
  color: var(--ink);
  padding: 8px;
}
.full {
  width: 100%;
}
.top {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}
.top-actions { display: flex; align-items: center; gap: 16px; }
.plan-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.plan-price del { color: var(--muted); font-size: 12px; font-weight: 400; }
@media (max-width: 600px) {
  .top-actions > a { display: none; }
  .top-actions button { padding: 10px 14px; font-size: 12px; }
  .top .brand { font-size: 13px; gap: 6px; }
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.brand-mark {
  flex: none;
  display: block;
  object-fit: contain;
}
main {
  max-width: 1032px;
  margin: auto;
  padding: 42px 24px 30px;
}
.heading {
  margin-bottom: 26px;
}
.eyebrow {
  font:
    600 11px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 10px;
}
h1 {
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -1px;
  font-weight: 450;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 24px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  margin: 0;
}
p {
  color: var(--muted);
  margin: 8px 0;
}
.notice {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13px;
}
.notice.demo {
  border-color: #5b4825;
  background: #201b11;
  color: #e8c980;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.checkout {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
}
.step-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  margin-bottom: 12px;
}
.step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  line-height: 22px;
}
.handle-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  background: var(--soft);
}
.handle-input:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: -1px;
}
.handle-input > span {
  color: var(--muted);
  font-size: 17px;
}
.handle-input input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 12px 8px;
  min-height: 48px;
  background: transparent;
}
.hint {
  font-size: 12px;
  margin: 9px 0 0;
  color: var(--muted);
}
.handle-input input:focus-visible {
  outline: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.plans {
  display: grid;
  gap: 8px;
}
.plan {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.plan:has(input:checked) {
  border-color: #d1d3da;
  box-shadow: inset 0 0 0 1px #d1d3da;
  background: var(--surface-raised);
}
.plan:hover:not(:has(input:checked)) {
  border-color: var(--line-strong);
  background: var(--soft);
}
.plan input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  margin: 0;
}
.plan strong {
  font-weight: 600;
}
.plan small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.plan .plan-price {
  margin-left: auto;
  white-space: nowrap;
  font-family: ui-monospace, monospace;
}
.wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.wallet-row p {
  font-size: 12px;
  word-break: break-all;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  margin: 23px 0 18px;
}
.consent input {
  margin: 4px 0;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--primary);
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.centered {
  text-align: center;
}
.summary {
  background: var(--soft);
  border-radius: 24px;
  padding: 28px;
}
.summary-top {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 28px;
  color: var(--muted);
}
.token {
  font-size: 18px;
  color: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  text-align: center;
  line-height: 28px;
}
.summary h2 {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 4px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 24px;
}
.price > span {
  font:
    400 46px/1.3 ui-monospace,
    monospace;
  letter-spacing: -2px;
}
.price small {
  font-size: 14px;
  color: var(--muted);
}
dl {
  margin: 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--muted);
  flex-shrink: 0;
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.summary-note {
  font-size: 12px;
  margin: 18px 0 22px;
}
.assurance {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
}
.assurance span {
  color: var(--green);
  padding-right: 8px;
}
.order-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  margin-top: 28px;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
}
.progress {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  gap: 12px;
  font-size: 12px;
}
.progress li {
  flex: 1;
  border-top: 3px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
}
.progress li.active {
  border-color: #d1d3da;
  color: var(--ink);
}
.progress #stage-done.active {
  border-color: var(--green);
  color: var(--green);
}
.order-info {
  font-size: 13px;
  margin-top: 20px;
}
.order-info dd {
  font-family: ui-monospace, monospace;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.error {
  color: var(--red);
  font-size: 13px;
}
.order-panel details {
  margin-top: 24px;
}
.inline {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.inline input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--soft);
}
.instructions {
  margin-top: 42px;
}
.instructions h2 {
  font-size: 18px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
details p {
  font-size: 13px;
  padding: 8px 0;
}
#history-panel {
  margin-top: 32px;
}
.history button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  width: 100%;
  gap: 16px;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 13px;
  padding: 14px 0;
}
.history small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.history button:hover:not(:disabled) {
  background: var(--soft);
}
.message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 14px 20px;
  border-radius: 12px;
  max-width: min(90vw, 650px);
  box-shadow: 0 4px 20px #0006;
  z-index: 5;
  font-size: 13px;
}
footer {
  max-width: 1032px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 24px;
  padding: 28px;
  max-width: 450px;
  width: calc(100% - 32px);
}
dialog::backdrop {
  background: #07080ac9;
}
dialog h2 {
  margin-bottom: 16px;
}
dialog p {
  overflow-wrap: anywhere;
}
dialog .actions {
  justify-content: flex-end;
}
.wallet-picker {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.wallet-picker-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 20px 0 16px;
}
.wallet-picker-list > button {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}
.wallet-picker-cancel {
  width: 100%;
  min-height: 44px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .top {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 14px;
  }
  .top > a:last-child {
    font-size: 12px;
  }
  main {
    padding: 28px 18px 24px;
  }
  h1 {
    font-size: 27px;
  }
  .heading > p:last-child {
    font-size: 13px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .checkout,
  .summary,
  .order-panel {
    padding: 22px;
    border-radius: 20px;
  }
  .summary-top {
    margin-bottom: 16px;
  }
  .summary {
    order: 2;
  }
  .price > span {
    font-size: 38px;
  }
  .summary-note {
    margin: 14px 0;
  }
  .assurance {
    display: none;
  }
  .wallet-row {
    align-items: flex-start;
  }
  .wallet-row button {
    padding: 10px 15px;
    white-space: nowrap;
  }
  .progress {
    gap: 6px;
    font-size: 11px;
  }
  .inline {
    flex-direction: column;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
  .heading {
    margin-bottom: 20px;
  }
  .order-info > div {
    align-items: flex-start;
  }
  dt {
    max-width: 35%;
  }
  .history button {
    gap: 8px;
  }
}
