/* noidchange — tokens, layout, components
   Spacing follows a 4px grid. Nested corners are concentric: inner radius = outer radius − padding. */

@font-face { font-family: 'Archivo NC'; src: url(/fonts/archivo.woff2) format('woff2-variations'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter NC'; src: url(/fonts/inter.woff2) format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Mono NC'; src: url(/fonts/mono.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #F3F1EC;
  --bg-2: #EAE7E0;
  --surface: #FFFFFF;
  --surface-2: #F6F5F1;
  --ink: #0A0A0A;
  --ink-2: #2A2A28;
  --muted: #6E6C67;
  --faint: #A3A09A;
  --line: #E4E1DA;
  --line-2: #D3CFC5;
  /* Palette: Electric #753BFF · Cyber #9D4EDD · Deep #38156B · Neon #B84DFF */
  --accent: #753BFF;
  --accent-ink: #FFFFFF;
  --accent-text: #6A2FF5;
  --cyber: #9D4EDD;
  --deep: #38156B;
  --neon: #B84DFF;
  --glow-a: rgba(117,59,255,.08);
  --glow-b: rgba(184,77,255,.05);
  /* Glow around the swap card. A box-shadow only paints outside the box, so it never tints the card itself. */
  --glow: 40px -24px 96px -32px var(--glow-a), -40px 24px 96px -32px var(--glow-b);
  --danger: #C4363B;
  --shadow: 0 1px 0 rgba(10,10,10,.03), 0 24px 60px -28px rgba(10,10,10,.28);
  --display: 'Archivo NC', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter NC', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Mono NC', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* Swap card: 28px outside, 8px padding, so everything touching its edge is 20px. */
  --r-card: 28px;
  --r-in: 20px;
  --r-sm: 12px;
  --r: 24px;
  --x: 20px; /* text inset inside fields and rows */
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0C; --bg-2: #141416; --surface: #151517; --surface-2: #1B1B1E;
    --ink: #F3F1EC; --ink-2: #D9D6CF; --muted: #9A9892; --faint: #64625D;
    --line: #232327; --line-2: #313136; --accent-text: #B84DFF; --danger: #EE5F64;
    --glow-a: rgba(117,59,255,.14); --glow-b: rgba(56,21,107,.28);
    --shadow: 0 1px 0 rgba(255,255,255,.03), 0 30px 70px -30px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0C; --bg-2: #141416; --surface: #151517; --surface-2: #1B1B1E;
  --ink: #F3F1EC; --ink-2: #D9D6CF; --muted: #9A9892; --faint: #64625D;
  --line: #232327; --line-2: #313136; --accent-text: #B84DFF; --danger: #EE5F64;
  --glow-a: rgba(117,59,255,.14); --glow-b: rgba(56,21,107,.28);
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 30px 70px -30px rgba(0,0,0,.9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
img, svg { display: block; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: .92em; }
/* Read by screen readers only (live status announcements). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
/* Turnstile: invisible while Cloudflare is happy; a centred card when it wants the visitor to confirm they are human. */
.ts-box { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.ts-box.need { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s; }
.ts-card { display: grid; justify-items: center; gap: 14px; padding: 22px 22px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(8px) scale(.98); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.ts-box.need .ts-card { transform: none; }
.ts-card p { margin: 0; font-size: 15px; font-weight: 650; }

.display {
  font-family: var(--display); font-stretch: 68%; font-weight: 850; text-transform: uppercase;
  line-height: .88; letter-spacing: -.02em; margin: 0;
}
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Figures that update in place keep their width. */
.amount, #rateText, .qlist dd, .rows .v, .copyable, .timer, .leg-foot, .kpi .n { font-variant-numeric: tabular-nums; }

/* ---------- Nav ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.nav .wrap { height: 76px; display: flex; align-items: center; gap: 4px; }
.brand { margin-right: auto; display: flex; align-items: center; }
/* The O sits on the baseline and is exactly cap height (Archivo caps = .69em), so it lines up with N and D. */
.wordmark {
  font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 30px; letter-spacing: .01em;
  text-transform: uppercase; line-height: 1; display: inline-flex; align-items: baseline;
}
.wordmark .o { width: .475em; height: .69em; margin: 0 .05em; overflow: visible; }
.wordmark .o .bar { stroke: var(--accent-text); }
.nav-search {
  display: none; align-items: center; height: 40px; width: 280px; padding: 0 4px 0 16px; margin-right: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); animation: grow .18s ease-out;
}
@keyframes grow { from { width: 160px; opacity: 0; } }
.nav.searching .nav-search { display: flex; }
.nav-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; font-family: var(--mono); }
.nav-search input::placeholder { font-family: var(--sans); color: var(--muted); }
.nav-search button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.nav-search button svg { width: 16px; height: 16px; }
.nav.searching [data-act="search"] { background: var(--bg-2); }
@media (max-width: 560px) {
  .nav.searching .nav-search { position: absolute; left: 16px; right: 16px; top: 18px; width: auto; margin: 0; z-index: 2; }
}
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn { font: 700 12px/1 var(--sans); letter-spacing: .06em; }
.theme-ico-dark { display: none; }
[data-theme-active="dark"] .theme-ico-dark { display: block; }
[data-theme-active="dark"] .theme-ico-light { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 650; font-size: 15px;
  background: var(--ink); color: var(--bg);
}
.btn:hover { filter: brightness(1.05); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-lg { height: 60px; width: 100%; border-radius: var(--r-in); font-size: 17px; font-weight: 700; }
.btn-cta { height: 56px; padding: 0 28px; }
.btn[disabled] { cursor: not-allowed; transform: none; filter: none; }
.btn-accent[disabled] { background: var(--line); color: var(--muted); }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding: 128px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(52px, 5.8vw, 80px); }
.hero h1 em { font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(90deg, var(--accent), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.hero .sub { margin: 24px 0 0; max-width: 400px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.trust { list-style: none; margin: 32px 0 0; padding: 0; max-width: 400px; border-top: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 550; color: var(--ink-2);
  transition: padding-left .45s cubic-bezier(.16,1,.3,1), color .3s; }
.trust li:hover { padding-left: 4px; color: var(--ink); }
.t-ico { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent-text);
  transition: border-color .3s, transform .5s cubic-bezier(.34,1.45,.64,1), background-color .3s; }
.t-ico svg { width: 14px; height: 14px; }
.trust li:hover .t-ico { border-color: var(--accent); transform: rotate(-8deg) scale(1.06); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.coins-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 13px; font-weight: 550; color: var(--muted); }
.stack { display: flex; }
.stack img { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); margin-left: -6px; transition: transform .5s cubic-bezier(.34,1.45,.64,1); }
.stack img:first-child { margin-left: 0; }
.coins-row:hover .stack img { transform: translateX(calc(var(--k) * 3px)); }
@media (max-width: 960px) {
  .hero { padding: 104px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero .sub { margin: 20px auto 0; font-size: 16px; }
  .trust, .coins-row { display: none; }
  .swap { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* ---------- Swap card ----------
   A column of 20px-radius blocks, 8px apart. Every line of text inside starts 20px from its block's edge. */
.swap {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow), var(--glow);
}
.leg { background: var(--surface-2); border-radius: var(--r-in); padding: 18px 12px 14px var(--x); border: 1px solid transparent; transition: border-color .15s; }
.leg:focus-within { border-color: var(--line-2); }
/* The amount has no outline of its own: its block shows focus the way .input does. */
.leg:has(.amount:not([readonly]):focus) { border-color: var(--ink); }
.leg-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.amount {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0;
  font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 40px; letter-spacing: -.02em; line-height: 1.15;
}
.amount::placeholder { color: var(--faint); }
.amount.loading { color: transparent; background: linear-gradient(90deg, var(--line) 0 30%, var(--line-2) 50%, var(--line) 70% 100%) 0 50%/300% 60% no-repeat; border-radius: 8px; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 50%; } }
.leg-foot { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: 4px; }
.leg-foot button { color: var(--danger); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.asset-btn {
  flex: none; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s;
}
.asset-btn:hover { border-color: var(--line-2); }
.asset-btn .txt { text-align: left; line-height: 1.15; }
.asset-btn .sym { font-weight: 700; font-size: 16px; display: block; }
.asset-btn .net { font-size: 11px; color: var(--muted); }
.asset-btn .chev { width: 14px; height: 14px; color: var(--muted); }
.coin { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; }
.coin img { width: 100%; height: 100%; border-radius: 50%; }
.coin .fallback { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 12px; }
.coin .chain { position: absolute; right: -3px; bottom: -3px; width: 45%; height: 45%; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); background: var(--surface); }
.coin-xs { width: 20px; height: 20px; }

/* The flip button straddles the 8px gap between the legs. */
.flip-wrap { position: relative; height: 0; margin: -4px 0; z-index: 2; }
.flip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--surface); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.flip:hover { transform: translate(-50%, -50%) rotate(180deg); }
.flip svg { width: 16px; height: 16px; }

/* Rate · fee · details chevron on the left, fixed-rate switch on the right. One row at every width. */
.rate-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 2px 12px 2px var(--x); font-size: 13px; color: var(--muted); }
.rate-l { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
#rateText { display: inline-flex; align-items: center; min-width: 0; }
.rate-flip { color: inherit; font: inherit; text-decoration: underline dotted var(--faint); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; }
.rate-flip:hover { color: var(--ink); }
.fee-now { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line-2); color: var(--ink-2); font-weight: 550; display: inline-flex; align-items: center; gap: 2px; }
.route { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.route i { font-style: normal; color: var(--faint); }
.route .via { padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 750; }
.q-toggle { flex: none; width: 24px; height: 24px; margin-left: 2px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: transform .35s cubic-bezier(.16,1,.3,1), color .2s, background-color .2s; }
.q-toggle svg { width: 14px; height: 14px; }
.q-toggle:hover { color: var(--ink); background: var(--surface-2); }
.q-toggle.open { transform: rotate(180deg); color: var(--ink); }
.qlist { margin: 0; padding: 12px var(--x); border-radius: var(--r-in); background: var(--surface-2); display: grid; gap: 8px; }
.qlist div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.qlist dt { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
.qlist dd { margin: 0; font-weight: 600; text-align: right; }
.qlist .m-only { display: none; }

.switch { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; cursor: pointer; user-select: none; font-weight: 550; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 30px; height: 18px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(12px); }
.switch input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch .info { margin-left: -2px; }

.input {
  display: block; width: 100%; height: 56px; padding: 0 var(--x); border-radius: var(--r-in); border: 1px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: 14px; outline: 0; transition: border-color .15s; text-overflow: ellipsis;
}
.input:focus { border-color: var(--ink); }
.input::placeholder { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.input.invalid { border-color: var(--danger); }
.addr-wrap { position: relative; }
.addr-wrap .input { padding-right: 96px; }
.paste { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 40px; padding: 0 12px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.paste:hover { background: var(--bg-2); color: var(--ink); }
.paste svg { width: 16px; height: 16px; }
.form-msg { padding: 0 var(--x); font-size: 13px; color: var(--danger); }
.form-msg:empty { display: none; }

/* "+ Opções": privacy mode and refund address, folded away by default. */
.more-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.more-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: border-color .15s, background .15s; }
.more-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.more-btn .plus { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); transition: transform .2s, background .2s; }
.more-btn .plus::before, .more-btn .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.more-btn .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.more-btn.open .plus { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.more-on { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.more-on .tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.more-on .tag svg { width: 13px; height: 13px; }
.more-on .tag.pv { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.more { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-in); background: var(--surface-2); }
.more .input { background: var(--surface); border-radius: var(--r-sm); }
.more-label { display: flex; align-items: center; gap: 4px; padding: 8px 12px 0; }

.privacy-row {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.privacy-row:hover { border-color: var(--line-2); }
.privacy-row.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.pv-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.pv-ico svg { width: 16px; height: 16px; }
.privacy-row.on .pv-ico { background: var(--accent); color: var(--accent-ink); }
.pv-txt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.pv-txt b { display: block; font-size: 14px; font-weight: 650; }

/* ---------- "i" tooltip (one shared bubble, positioned by common.js) ---------- */
.info { position: relative; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); flex: none; vertical-align: middle; cursor: help; }
/* 32px touch target around the 20px icon, so a near miss doesn't flip the switch next to it. */
.info::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.info svg { width: 15px; height: 15px; }
.info:hover, .info:focus-visible { color: var(--ink); }
.tip-float {
  position: fixed; z-index: 120; max-width: min(300px, calc(100vw - 24px)); padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); font: 450 13px/1.45 var(--sans); box-shadow: 0 16px 40px -14px rgba(10,10,10,.5);
  opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity .14s, transform .14s, visibility .14s; pointer-events: none;
}
.tip-float.show { opacity: 1; visibility: visible; transform: none; }


@media (max-width: 480px) {
  .leg { padding: 16px 10px 12px 16px; }
  .rate-line { padding-left: 16px; padding-right: 10px; }
  .input { padding: 0 16px; }
  .qlist { padding: 12px 16px; }
  .form-msg { padding: 0 16px; }
  .amount { font-size: clamp(28px, 9vw, 40px); }
  /* Keep the rate line on one row: the rate itself moves into the details. */
  .rate-flip, #rateText .route { display: none; }
  .fee-now { margin-left: 0; padding-left: 0; border-left: 0; }
  .qlist .m-only { display: flex; }
}

/* ---------- Picker ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(10,10,10,.45); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 420px; max-height: min(640px, 86vh); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.modal-head { padding: 16px 12px 8px var(--x); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.modal-search { padding: 0 12px 8px; }
.modal-search .input { height: 48px; font-family: var(--sans); background: var(--surface-2); border-radius: var(--r-sm); padding: 0 16px; }
.asset-list { overflow: auto; padding: 4px 8px 8px; }
.asset-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-align: left; }
.asset-item:hover, .asset-item.kb { background: var(--surface-2); }
.asset-item .n { flex: 1; line-height: 1.25; }
.asset-item .n b { font-weight: 650; }
.asset-item .n span { display: block; font-size: 12px; color: var(--muted); }
.asset-item[aria-current="true"] .n b::after { content: ' ✓'; }
.empty { padding: 32px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Sections: big title on the left, content on the right ---------- */
section.block { padding: 80px 0; }
.sec-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.sec-grid h2 { font-size: clamp(44px, 5vw, 64px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 16px; }
.steps b { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 40px; line-height: .9; color: var(--accent-text); }
.steps h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
/* "Mostrar mais": the full paragraph opens under the short line; its grid row animates from 0 to its own height. */
.step-b { min-width: 0; }
.xp { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .45s cubic-bezier(.16,1,.3,1), opacity .25s, visibility 0s .45s; }
.xp-in { min-height: 0; overflow: hidden; }
/* Only the current mode's paragraph takes space, so the button sits right under the text. */
.how:not([data-mode="pv"]) .xp .t-pv, .how[data-mode="pv"] .xp .t-std { display: none; }
.steps .xp p { padding-top: 12px; font-size: 14px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.xp.open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .55s cubic-bezier(.16,1,.3,1), opacity .4s .08s, visibility 0s; }
.xp-btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 0; font-size: 13px; font-weight: 600; color: var(--accent-text); transition: color .2s; }
.xp-btn:hover { color: var(--ink); }
.xp-btn .chev svg { width: 14px; height: 14px; display: block; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.xp-btn[aria-expanded="true"] .chev svg { transform: rotate(180deg); }

/* ---------- How it works: Normal / Privacy switch over a route diagram ----------
   The route is a 5-column grid. Normal collapses the two privacy-only columns (0fr), so the
   middle node is always at 50% and the packets (motion.css) can hand over there in both modes. */
.how-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.seg-row { display: flex; align-items: center; gap: 4px; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; min-width: 0; height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: color .35s; }
.seg button:hover { color: var(--ink); }
.seg button[disabled] { opacity: .45; cursor: not-allowed; }
.seg button[aria-checked="true"] { color: var(--bg); }
.seg-ico svg { width: 14px; height: 14px; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .55s cubic-bezier(.34,1.3,.64,1), background-color .4s; }
.how[data-mode="pv"] .seg-thumb { transform: translateX(100%); background: var(--accent); }
.how[data-mode="pv"] .seg button[aria-checked="true"] { color: var(--accent-ink); }
.how-cta { display: inline-flex; align-items: center; gap: 6px; height: 32px; font-size: 14px; font-weight: 650; color: var(--accent-text); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .3s, transform .5s cubic-bezier(.16,1,.3,1); }
.how-cta .arr svg { width: 14px; height: 14px; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.how-cta:hover .arr svg { transform: translateX(3px); }
.how[data-mode="pv"] .how-cta { opacity: 1; transform: none; pointer-events: auto; transition-delay: .2s; }

.how-body { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.flow {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 0fr 1fr 0fr 1fr; padding: 40px 0 32px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: grid-template-columns .7s cubic-bezier(.16,1,.3,1), border-color .5s;
}
.how[data-mode="pv"] .flow { grid-template-columns: repeat(5, 1fr); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
/* A faint wash of the accent from the top while privacy is on. */
.flow::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); transition: opacity .6s; }
.how[data-mode="pv"] .flow::before { opacity: 1; }
.flow-rail { position: absolute; top: 67px; left: 16.667%; right: 16.667%; height: 2px; transition: left .7s cubic-bezier(.16,1,.3,1), right .7s cubic-bezier(.16,1,.3,1); }
.how[data-mode="pv"] .flow-rail { left: 10%; right: 10%; }
.flow-rail > i { position: absolute; top: 0; height: 2px; width: 50%; border-radius: 2px; background: var(--line-2); }
.flow-rail .seg-a { left: 0; }
.flow-rail .seg-b { left: 50%; }
/* Privacy: the visible trail fades out into Monero; a new, dashed one leaves it. */
.how[data-mode="pv"] .seg-a { background: linear-gradient(90deg, var(--line-2) 55%, transparent); }
.how[data-mode="pv"] .seg-b { background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }
/* One lane per hop, disc edge to disc edge: the light leaves a disc, rides the line and docks against the next one,
   which is the moment that disc lights up. Normal has two hops (lanes a and c); privacy has four, one per stop.
   --a / --w: where the hop starts and how long it is, as a share of the rail. --dr: the disc radius plus a hair.
   --k: the hop's turn in the loop (motion.css staggers them); --T and --n: the loop length and the hop count. */
.flow { --T: 5.2s; --n: 2; }
.how[data-mode="pv"] .flow { --T: 6.4s; --n: 4; }
.flow-rail { --dr: 30px; }
.lane { position: absolute; top: -4px; left: calc(var(--a) + var(--dr)); width: calc(var(--w) - var(--dr) * 2); height: 10px; }
.lane.la { --a: 0%; --w: 50%; --k: 0; }
.lane.lc { --a: 50%; --w: 50%; --k: 1; }
.lane.lb, .lane.ld { display: none; }
.how[data-mode="pv"] .lane { --w: 25%; }
.how[data-mode="pv"] .lane.lb { display: block; --a: 25%; --k: 1; }
.how[data-mode="pv"] .lane.lc { --a: 50%; --k: 2; }
.how[data-mode="pv"] .lane.ld { display: block; --a: 75%; --k: 3; }
.mover { position: absolute; inset: 0; }
/* The light is a thin streak lying on the line (same 2px height, same centre): a short bright head and a fading trail. */
.pk { position: absolute; left: -8px; top: 4px; width: 8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #fff), #fff); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 80%, transparent); opacity: 0; }
.pk::before { content: ''; position: absolute; right: 100%; top: 0; width: 64px; height: 2px; border-radius: 2px; transform-origin: 100% 50%; transform: scaleX(0); background: linear-gradient(90deg, transparent, var(--accent)); }
/* Privacy: after Monero the light is neon, on the fresh dashed trail. */
.how[data-mode="pv"] :is(.lc, .ld) .pk { background: linear-gradient(90deg, color-mix(in srgb, var(--neon) 60%, #fff), #fff); box-shadow: 0 0 6px color-mix(in srgb, var(--neon) 80%, transparent); }
.how[data-mode="pv"] :is(.lc, .ld) .pk::before { background: linear-gradient(90deg, transparent, var(--neon)); }
/* Which disc each hop lights up when it arrives (same --k as the hop). */
.n-mid { --k: 0; } .n-to { --k: 1; }
.how[data-mode="pv"] .n-p1 { --k: 0; }
.how[data-mode="pv"] .n-mid { --k: 1; }
.how[data-mode="pv"] .n-p2 { --k: 2; }
.how[data-mode="pv"] .n-to { --k: 3; }
.disc > .ico { display: grid; place-items: center; }

.node { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.disc { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.disc > *, .node small > * { grid-area: 1 / 1; }
.disc img { width: 32px; height: 32px; border-radius: 50%; }
.disc svg { width: 20px; height: 20px; }
.node small { display: grid; justify-items: center; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pv-only { opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s cubic-bezier(.16,1,.3,1); }
.how[data-mode="pv"] .pv-only { opacity: 1; transform: none; transition-delay: .18s; }
.face { transition: opacity .35s, transform .55s cubic-bezier(.16,1,.3,1); }
.face.f-pv { opacity: 0; transform: scale(.6) rotate(-40deg); }
.how[data-mode="pv"] .face.f-std { opacity: 0; transform: scale(.6) rotate(40deg); }
.how[data-mode="pv"] .face.f-pv { opacity: 1; transform: none; transition-delay: .12s; }
.node small .face.f-pv, .how[data-mode="pv"] .node small .face.f-std { transform: translateY(4px); }
.how[data-mode="pv"] .n-mid .disc { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); }
.orbit { position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent); opacity: 0; transform: scale(.85); transition: opacity .5s, transform .7s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.how[data-mode="pv"] .orbit { opacity: 1; transform: none; }
/* Arrival flash: the disc itself lights up purple, behind the coin, without growing. */
.ping { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 75%, transparent); background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; pointer-events: none; }
.disc:has(.ping) > :not(.ping):not(.orbit) { position: relative; z-index: 1; }

/* Steps: Normal and Privacy texts share one cell and cross-fade, one step after the other. */
.swapt { display: grid; }
.swapt > div { grid-area: 1 / 1; transition: opacity .4s, transform .55s cubic-bezier(.16,1,.3,1), visibility 0s; transition-delay: calc(var(--i, 0) * 70ms); }
.swapt > .t-pv, .how[data-mode="pv"] .swapt > .t-std { opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .4s; }
.swapt > .t-pv { transform: translateY(8px); }
.how[data-mode="pv"] .swapt > .t-std { transform: translateY(-8px); }
.how[data-mode="pv"] .swapt > .t-pv { opacity: 1; visibility: visible; transform: none; transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 40px 20px 0; color: var(--muted); font-size: 15px; }
.faq .ans p { margin: 0; }
@media (max-width: 860px) {
  section.block { padding: 56px 0; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps li { flex-direction: row; gap: 16px; }
  .steps b { width: 40px; flex: none; font-size: 32px; }
  .steps .step-b { flex: 1; }
  .faq .ans { padding-right: 0; }
  .how-head { gap: 20px; }
  .how-body { gap: 32px; }
}
@media (max-width: 560px) {
  .flow { padding: 28px 0 24px; }
  .flow-rail { top: 49px; --dr: 24px; }
  .disc { width: 44px; height: 44px; }
  .disc img { width: 26px; height: 26px; }
  .disc svg { width: 18px; height: 18px; }
  .node { gap: 10px; }
  .node small { font-size: 11px; }
  .pk::before { width: 40px; }
}

/* ---------- Footer (McLaren Automotive layout) ---------- */
.footer { background: var(--surface); padding: 64px 0 0; border-top: 1px solid var(--line); }
.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; max-width: 760px; }
.f-col h4, .f-col .f-h { margin: 0 0 16px; font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.f-col a { display: block; padding: 6px 0; font-size: 15px; color: var(--muted); }
.f-col a:hover { color: var(--ink); }
.f-bottom { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px 0 92px; }
.f-word { display: inline-flex; }
.f-word .wordmark { font-size: 28px; }
.f-legal { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.f-legal a, .f-legal span { font-size: 12px; color: var(--muted); }
.f-legal a:hover { color: var(--ink); }
.f-lang { display: flex; justify-content: flex-end; }
.f-lang button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.f-lang svg { width: 16px; height: 16px; }
.lang-menu { position: fixed; z-index: 130; min-width: 168px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.lang-menu button { display: block; width: 100%; padding: 10px 14px; border-radius: 8px; text-align: left; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--surface-2); }
.lang-menu button[aria-current] { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
  .f-bottom { grid-template-columns: 1fr auto; }
  .f-legal { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 16px; }
}
@media (max-width: 640px) { .f-bottom { padding-bottom: 84px; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Support chat ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 52px; height: 52px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg);
  /* Black, so it disappears on the dark pages and only shows when something light passes behind the button. */
  box-shadow: 0 0 18px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.12);
}
.chat-fab .lbl { display: none; }
.chat-fab svg { width: 20px; height: 20px; }
/* Unread badge: centred on the button's edge at 45 degrees, cut out by a ring in the page colour. */
.chat-fab .dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 560px) {
  .chat-fab { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  .chat-fab .dot { top: 1px; right: 1px; }
}

.chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 69; width: 400px; height: min(640px, calc(100vh - 112px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 30px 80px -24px rgba(10,10,10,.45); overflow: hidden;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 12px var(--x); border-bottom: 1px solid var(--line); }
.chat-head .wordmark { font-size: 22px; }
.chat-tools { display: flex; gap: 2px; position: relative; }
.chat-menu { position: absolute; right: 40px; top: 40px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 4px; }
.chat-menu button { white-space: nowrap; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--danger); font-weight: 550; }
.chat-menu button:hover { background: var(--surface-2); }
.chat-body { flex: 1; overflow-y: auto; padding: 24px var(--x) 12px; display: flex; flex-direction: column; gap: 12px; }
.chat-welcome h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.chat-welcome h3 em { font-style: normal; color: var(--accent-text); }
.chat-welcome p { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.chat-welcome .eyebrow { font-size: 11px; margin-bottom: 12px; }
.chat-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-topics button {
  text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 88px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.chat-topics button:hover { border-color: var(--accent); }
.chat-topics button span { color: var(--accent-text); }
.chat-topics svg { width: 18px; height: 18px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: 11px; color: var(--muted); margin: 0 0 4px 4px; font-weight: 600; }
/* Who answered: photo (or initials) + name above the first message of a run. */
.msg .agent-who { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; color: var(--ink-2); }
.msg .agent-who .ava { width: 20px; height: 20px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); color: var(--accent-text); font-size: 8.5px; font-weight: 700; letter-spacing: .02em; }
.msg .agent-who .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg.cont { margin-top: -6px; }
.msg .b { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: 14px; line-height: 1.45; word-break: break-word; }
.msg.user .b { background: var(--ink); color: var(--bg); border-radius: 18px 18px 6px 18px; }
.msg .tm { margin: 3px 6px 0; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chat-ended { align-self: center; display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.chat-ended button { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; }
.chat-actions { display: flex; justify-content: center; padding: 0 12px; }
.chat-actions button, .chat-human-w { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.chat-actions button:hover, .chat-human-w:hover { background: var(--surface-2); }
.chat-actions svg, .chat-human-w svg { width: 16px; height: 16px; }
.chat-human-w { margin-top: 12px; }
.msg.agent .b { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.chat-link { display: block; width: max-content; margin-top: 8px; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 18px; }
.chat-composer:focus-within { border-color: var(--ink); }
.chat-composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; font: 15px/1.4 var(--sans); padding: 8px 0; max-height: 120px; }
.chat-composer textarea::placeholder { color: var(--muted); }
.chat-composer button { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.chat-composer button[disabled] { background: var(--line); color: var(--faint); cursor: default; }
.chat-composer button svg { width: 18px; height: 18px; }
.chat-confirm { position: absolute; inset: 0; z-index: 4; background: rgba(10,10,10,.4); display: grid; place-items: center; padding: 24px; }
.chat-confirm .box { background: var(--surface); border-radius: 20px; padding: 20px; width: 100%; box-shadow: var(--shadow); }
.chat-confirm p { margin: 0 0 16px; font-weight: 600; }
.chat-confirm .row { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 640px) {
  /* Phones: the chat takes the whole screen; height follows the visible viewport (keyboard, browser bars). */
  .chat-panel {
    top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 100vh; height: 100dvh; height: var(--chat-h, 100dvh);
    border-radius: 0; border: 0; box-shadow: none;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
  .chat-open, .chat-open body { overflow: hidden; height: 100%; overscroll-behavior: none; }
  .chat-open .chat-fab { display: none; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 90; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Order page ---------- */
.order-page { padding: 48px 0 80px; }
.order-wrap { max-width: 640px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.order-top .id { display: inline-flex; align-items: center; gap: 4px; }
.order-top .icon-btn { width: 32px; height: 32px; }
.order-top .icon-btn svg { width: 15px; height: 15px; }
.order-page h1 { font-size: clamp(44px, 8vw, 72px); margin-bottom: 12px; }
.order-page .lead { margin: 0 0 32px; max-width: 520px; color: var(--muted); font-size: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card + .card { margin-top: 12px; }
.order-wrap > .actions { margin: 0 0 32px; }

.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 24px; }
.stepper:last-child { margin-bottom: 0; }
.stepper .bar { height: 4px; border-radius: 99px; background: var(--line); }
.stepper .s.done .bar { background: var(--ink); }
.stepper .s.now .bar { background: linear-gradient(90deg, var(--ink) 0 40%, var(--line) 40%); background-size: 250% 100%; animation: prog 1.6s ease-in-out infinite; }
@keyframes prog { from { background-position: 100% 0; } to { background-position: 0 0; } }
.stepper .lbl { margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.stepper .s.done .lbl, .stepper .s.now .lbl { color: var(--ink); }
/* Phones: up to six steps don't fit with labels; the bars show progress and the page title names the step. */
@media (max-width: 560px) { .stepper .lbl { display: none; } }

.send-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
@media (max-width: 560px) { .send-box { grid-template-columns: minmax(0, 1fr); } .qr { justify-self: center; order: -1; margin-top: 0 !important; width: 172px !important; height: auto !important; } }
.kv + .kv { margin-top: 16px; }
.kv .k { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; }
.kv .v { display: flex; align-items: center; gap: 8px; }
.copyable { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-family: var(--mono); font-size: 14px; word-break: break-all; line-height: 1.45; }
.copyable.big { font-family: var(--display); font-stretch: 85%; font-weight: 750; font-size: 28px; word-break: normal; min-height: 48px; padding: 4px 14px; line-height: 40px; }
.copyable.big span { color: var(--muted); }
.copyable.range { font-family: var(--sans); color: var(--muted); font-size: 15px; font-weight: 550; line-height: 1.6; word-break: normal; }
.range-l { display: block; }
.range-l b { font-family: var(--display); font-stretch: 85%; font-weight: 750; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.qr-view { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); outline: 0; }
.qr-big { width: min(100%, 520px, calc(100dvh - 32px)); aspect-ratio: 1; padding: 24px; border-radius: 24px; background: #fff; color: #000; }
.qr-big svg { display: block; width: 100%; height: 100%; }
html.qr-open, html.qr-open body { overflow: hidden; }
.id-tip { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.id-card { position: relative; width: min(100%, 380px); padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.id-card h2 { margin: 0 32px 8px 0; font-size: 18px; font-weight: 700; }
.id-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.id-val { padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--surface-2); font-size: 16px; text-align: center; }
.id-copy { width: 100%; }
.pv-auto { flex: none; color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
.st-list { margin: 32px 0 48px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.st-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-list dt { color: var(--muted); }
.st-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.st-dot.ok { background: #3ddc97; }
.st-dot.bad { background: #ff6b6b; }
.st-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 20px; }
.st-table { overflow-x: auto; }
.st-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { padding: 12px 16px 12px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.st-table th { color: var(--muted); font-weight: 550; font-size: 13px; }
.st-pair { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.st-pair img + img { margin-left: -9px; margin-right: 4px; }
.st-at { margin-top: 14px; color: var(--muted); font-size: 13px; }
.id-card h2.cancel-q { margin: 0 0 20px; }
.cancel-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.id-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.id-x:hover { background: var(--surface-2); color: var(--ink); }
.id-x svg { width: 16px; height: 16px; }
.addr-fit { display: block; height: 48px; padding: 0 14px; white-space: nowrap; overflow: hidden; text-align: left; line-height: 48px; word-break: normal; cursor: pointer; color: var(--ink); transition: color .15s; }
.addr-fit:hover { color: var(--accent); }
.copy-btn { flex: none; height: 48px; width: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.copy-btn svg { width: 18px; height: 18px; }
.qr { display: block; cursor: zoom-in; width: 172px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.qr svg { width: 100%; height: auto; }
.note { margin: 20px 0 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--ink); }
.timer { font-family: var(--mono); color: var(--ink); }

.rows .r { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rows .r:first-child { border-top: 0; padding-top: 0; }
.rows .r:last-child { padding-bottom: 0; }
.rows .k { color: var(--muted); flex: none; }
.rows .v { text-align: right; font-weight: 600; min-width: 0; word-break: break-all; }
.rows .v a { text-decoration: underline; text-underline-offset: 2px; }
.rows .v .coin { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; margin-right: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.demo-flag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 800 10px/1 var(--sans); letter-spacing: .08em; margin-right: 6px; }
.big-ok { width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 20px; }
.big-ok svg { width: 26px; height: 26px; }

/* ---------- Docs / legal / track / 404 ---------- */
.doc { padding: 128px 0 96px; }
.doc h1 { font-size: clamp(52px, 8vw, 96px); margin-bottom: 32px; }
.doc .lead { margin: 0 0 32px; color: var(--muted); }
.doc .prose { max-width: 720px; }
.doc .prose h2 { font-size: 18px; margin: 32px 0 8px; }
.doc .prose p { color: var(--muted); margin: 0 0 12px; }
.track-big { max-width: 520px; display: flex; gap: 8px; }
.track-big .input { font-family: var(--sans); }
.track-big .btn { height: 56px; border-radius: var(--r-in); padding: 0 24px; }
/* Russian: the site's fonts have no Cyrillic. Headings and text use one system face each, so letters and spaces match. */
html[lang='ru'] { --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
html[lang='ru'] .display { font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; letter-spacing: 0; }
[data-lang-block] { display: none; }
[data-lang-block].on { display: block; }
@media (max-width: 860px) { .doc { padding: 104px 0 64px; } }

/* ---------- Affiliates ---------- */
.aff-page .wrap { max-width: 768px; }
.aff-page h1 { margin-bottom: 16px; }
.aff-sub { max-width: 560px; margin: 0 0 32px; color: var(--muted); }
.aff-sub .info { margin-left: 2px; vertical-align: -3px; }
.aff-form { display: flex; gap: 8px; max-width: 640px; }
.aff-form .addr-wrap { flex: 1; min-width: 0; }
.aff-form .btn { height: 56px; border-radius: var(--r-in); }
.aff-msg { padding: 8px 0 0; }
.aff-loading { padding: 48px 0; display: grid; place-items: center; color: var(--muted); }
.aff-loading .spin { width: 22px; height: 22px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.aff-new { max-width: 640px; }
.aff-addr { margin: 12px 0 0; word-break: break-all; font-size: 15px; }
.aff-new .actions { margin-top: 20px; }
.aff-link { margin-bottom: 24px; }
.aff-change { font-size: 12px; font-weight: 600; color: var(--accent-text); }
.aff-who { margin: 8px 0 0; font-size: 12px; color: var(--muted); word-break: break-all; }
.aff-tier { padding: 24px; }
.aff-tier-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.aff-prog-n { margin-top: 12px; font-family: var(--display); font-stretch: 85%; font-weight: 750; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.aff-prog-n span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); }
.aff-rate { text-align: right; }
.aff-rate b { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 850; font-size: 40px; line-height: 1; color: var(--accent-text); }
.aff-rate span { font-size: 12px; color: var(--muted); }
.aff-bar { position: relative; height: 8px; margin: 20px 0 24px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.aff-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--neon)); transition: width .8s cubic-bezier(.16,1,.3,1); }
.aff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aff-stats div { padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aff-stats span { font-size: 12px; color: var(--muted); }
.aff-stats b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aff-h2 { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 12px; font-size: 17px; font-weight: 650; }
.aff-h2 span { font-size: 13px; font-weight: 550; color: var(--muted); }
.aff-st { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 6px; border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.aff-st.pending { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.aff-st.paid { background: var(--surface-2); color: var(--ink-2); }
.aff-pair { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; word-break: normal; }
.aff-pair .coin { margin: 0; }
.aff-pair i { font-style: normal; color: var(--faint); }
.aff-pair .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aff-vol { color: var(--muted); font-weight: 500; margin-left: 4px; }
.aff-pair b { margin-left: 8px; color: var(--accent-text); }
.aff-empty { margin: 0; padding: 24px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 560px) {
  .aff-form { flex-direction: column; }
  .aff-stats { grid-template-columns: minmax(0, 1fr); }
  .aff-stats div { flex-direction: row; justify-content: space-between; align-items: center; }
  .aff-rate b { font-size: 32px; }
  .aff-prog-n { font-size: 26px; }
}
.aff-prog-n span, .aff-rate span { white-space: nowrap; }
@media (max-width: 560px) { .aff-prog-n span { display: block; margin-top: 8px; } }
/* Headline lines (motion.js splits them): one block per line, with or without animation. */
.ln { display: block; }
/* The coin stack fans out on hover (last coin moves 5 × 3px); the label slides with it. */
#coinCount { transition: transform .5s cubic-bezier(.34,1.45,.64,1); }
.coins-row:hover #coinCount { transform: translateX(15px); }

/* Order page: confirmations count on the "Confirm" step, the bar filling with them */
.stepper .s.now .bar[style*="--fill"] { background: linear-gradient(90deg, var(--ink) var(--fill), var(--line-2) var(--fill)); }
/* Status title with the confirmations count on the same line, at the right edge (the cards' edge). */
.status-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.status-row h1 { min-width: 0; }
.conf-big { flex: none; font-family: var(--display); font-weight: 850; font-stretch: 68%; font-size: clamp(44px, 8vw, 72px); line-height: .88; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Order ID at the bottom: the whole row copies the ID */
.oid-copy { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; transition: color .2s; }
.oid-copy:hover, .oid-copy:hover .mono { color: var(--ink); }
.oid-copy .mono { color: var(--ink-2); letter-spacing: .02em; }
.oid-copy .ic { display: grid; }
.oid-copy .ic svg { width: 15px; height: 15px; }
.oid-copy.copied { color: var(--good, #3DD68C); }

/* Finished order: the check next to the title; the next-step button on the page itself */
.display.done-h { display: flex; align-items: center; gap: 16px; }
.done-h .ok-ic { flex: none; width: .82em; height: .82em; display: grid; place-items: center; border-radius: .2em; background: var(--accent); color: var(--accent-ink, #fff); }
.done-h .ok-ic svg { width: 50%; height: 50%; }
.order-wrap > .actions { margin: 0 0 24px; }
.order-wrap > .actions.order-cancel { margin: 12px 0 0; padding-left: 25px; justify-content: flex-start; }
.link-cancel { min-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .15s; }
.link-cancel:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pair pages (/trocar/x-para-y, /swap/x-to-y) ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); transition: color .15s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.crumbs span[aria-hidden] { color: var(--faint); }
.pair-head { display: grid; gap: 20px; }
.pair-coins { display: flex; }
.pair-coins img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--bg); }
.pair-coins img + img { margin-left: -14px; }
.pair-head h2 em { font-style: normal; color: var(--accent-text); }
.pair-body { display: grid; gap: 28px; }
.pair-intro { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.pair-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pf { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pf:nth-child(3n) { border-right: 0; }
.pf:nth-last-child(-n+3) { border-bottom: 0; }
.pf dt { font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pf dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); font-variant-numeric: tabular-nums; }
.psteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; counter-reset: s; }
.psteps li { display: flex; gap: 18px; }
.psteps b { flex: none; width: 48px; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 40px; line-height: .9; color: var(--accent-text); }
.psteps h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.psteps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.pair-cta { margin-top: 36px; }
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s var(--e-out, ease); }
.pp:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.pp img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); }
.pp img + img { margin-left: -24px; }
.pp span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pp b { font-size: 15px; font-weight: 650; }
.pp small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s, color .2s; }
.pp:hover svg { transform: translateX(3px); color: var(--accent-text); }
@media (max-width: 860px) {
  .pair-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf:nth-child(3n) { border-right: 1px solid var(--line); }
  .pf:nth-child(2n) { border-right: 0; }
  .pf:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .pf:nth-last-child(-n+2) { border-bottom: 0; }
  .psteps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .pair-coins img { width: 44px; height: 44px; }
}
@media (max-width: 420px) {
  .pf { padding: 16px; }
  .pf dd { font-size: 14px; }
}
.pair-steps .sec-grid > h2, .pair-more .sec-grid > h2 { font-size: clamp(36px, 4vw, 52px); }
@media (max-width: 960px) { .crumbs { justify-content: center; } }
@media (max-width: 560px) { .pair-intro { font-size: 16px; line-height: 1.65; } .pair-head { justify-items: start; } }

/* Footer: "All coins" closes the popular pairs and opens /moedas (/coins). */
.f-col a.f-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--accent-text); }
.f-col a.f-all svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.34,1.45,.64,1); }
.f-col a.f-all:hover svg { transform: translateX(3px); }
/* The coin stack in the hero opens the same page. */
a.coins-row { width: fit-content; transition: color .2s; }
a.coins-row:hover { color: var(--ink); }
