:root {
  --ink: #181a17;
  --muted: #6d7269;
  --surface: #ffffff;
  --surface-soft: #f1f3ed;
  --line: #dfe2da;
  --accent: #c8ff62;
  --accent-dark: #618b14;
  --error: #b42318;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #f5f5f1; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f5f5f1;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(97, 139, 20, .25); outline-offset: 2px; }

.shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

.topbar-actions { display: flex; align-items: center; gap: 20px; }
.secure { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
.secure > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #58a52c; }

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
}

.language-switcher button {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.language-switcher button:hover { color: var(--ink); }
.language-switcher button.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(20, 24, 18, .1); }

.payment-card {
  min-height: 570px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(30, 35, 25, .06);
}

.intro-panel {
  display: flex;
  flex-direction: column;
  padding: 52px 48px 40px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
}

h1 { max-width: 390px; margin: 0; font-size: clamp(38px, 4.5vw, 52px); line-height: 1.04; letter-spacing: -.055em; }
.lede { max-width: 390px; margin: 22px 0 36px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.steps { display: flex; gap: 28px; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: 8px; color: #959a91; }
.step span { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #cdd1c8; border-radius: 50%; font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.step p { margin: 0; font-size: 10px; }
.step.active { color: var(--ink); }
.step.active span { border-color: var(--ink); color: var(--surface); background: var(--ink); }

.network-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; }
.network-note p { margin: 0; color: #7c8178; font-size: 10px; line-height: 1.55; }
.note-icon { flex: 0 0 auto; display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #aeb4aa; border-radius: 50%; font-size: 9px; font-weight: 700; }

.action-panel { display: grid; place-items: center; padding: 52px; }
.action-panel > div { width: min(100%, 430px); }
.panel-number { margin-bottom: 18px; color: #9aa096; font: 600 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
h2 { margin: 0 0 30px; font-size: clamp(26px, 3vw, 34px); line-height: 1.18; letter-spacing: -.04em; }

label { display: block; margin-bottom: 9px; color: #555b52; font-size: 11px; font-weight: 650; }
.input-wrap { height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border: 1px solid #cfd3ca; border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(97, 139, 20, .1); }
.input-wrap > span { color: #969c92; font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
input { min-width: 0; width: 100%; height: 100%; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 14px; }
input::placeholder { color: #a2a79e; }
input[aria-invalid='true'] { color: var(--error); }
.field-error { min-height: 19px; margin: 7px 0; color: var(--error); font-size: 10px; }

.primary-button { width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid var(--ink); border-radius: 10px; color: var(--surface); background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; transition: opacity .15s, transform .15s; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .55; }
.primary-button i { color: var(--accent); font-size: 20px; font-style: normal; font-weight: 400; }
.privacy { margin: 18px auto 0; max-width: 340px; color: #92978e; font-size: 9px; line-height: 1.55; text-align: center; }

.wallet-view h2 { margin-bottom: 10px; }
.wallet-intro { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.wallet-list { display: grid; gap: 9px; }
.wallet { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.wallet-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.coin { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; }
.coin img { display: block; width: 34px; height: 34px; object-fit: contain; }
.wallet h3 { margin: 0 0 2px; font-size: 12px; }
.wallet-top p { margin: 0; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.wallet code { grid-column: 1; overflow: hidden; color: #666c63; font: 400 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { grid-area: 1 / 2 / 3 / 3; align-self: stretch; min-width: 104px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d4d8cf; border-radius: 8px; color: #555b52; background: var(--surface); cursor: pointer; font-size: 9px; font-weight: 650; }
.copy-button:hover { color: var(--ink); border-color: #aeb4aa; }
.copy-icon { position: relative; width: 13px; height: 13px; flex: 0 0 auto; }
.copy-icon::before,
.copy-icon::after { content: ''; position: absolute; width: 8px; height: 9px; border: 1.5px solid var(--accent-dark); border-radius: 2px; background: var(--surface); }
.copy-icon::before { left: 0; top: 0; }
.copy-icon::after { right: 0; bottom: 0; }
.text-button { margin-top: 18px; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.text-button:hover { color: var(--ink); }

footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; color: #8b9087; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 5; padding: 11px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--surface); background: var(--ink); box-shadow: 0 8px 28px rgba(0,0,0,.16); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .18s ease; font-size: 10px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .payment-card { grid-template-columns: 1fr; }
  .intro-panel { min-height: 420px; border-right: 0; border-bottom: 1px solid var(--line); }
  .action-panel { min-height: 500px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1040px); }
  .topbar { min-height: 72px; }
  .topbar-actions { gap: 8px; }
  .secure { display: none; }
  .payment-card { border-radius: 14px; }
  .intro-panel { min-height: 390px; padding: 36px 26px 30px; }
  .action-panel { min-height: 470px; padding: 38px 24px; }
  h1 { font-size: 39px; }
  .steps { gap: 16px; }
  .step { gap: 5px; }
  .wallet { grid-template-columns: 1fr; }
  .copy-button { grid-area: auto; min-height: 40px; }
  footer { padding: 22px 3px; gap: 8px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
