:root {
  color-scheme: dark;
  --bg: #101010;
  --surface: #171717;
  --surface-2: #1d1d1d;
  --line: #333;
  --text: #f5f5f3;
  --muted: #969696;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
.page-loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: #101010; pointer-events: none; animation: loader-fallback .35s .9s forwards; }
.page-loader.done { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.loader-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid white; font-size: 20px; font-weight: 800; }
.loader-name { color: #ddd; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.loader-bar { width: 120px; height: 2px; margin-top: 7px; background: #333; overflow: hidden; }
.loader-bar:after { content: ''; display: block; width: 40%; height: 100%; background: white; animation: load-progress .8s ease-in-out infinite; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes load-progress { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; } }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.hidden { display: none !important; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header { height: 84px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid white; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.brand-light { color: #999; font-weight: 500; }
.site-header nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 12px; color: #aaa; white-space: nowrap; }
.site-header nav a:hover, .footer-bottom a:hover, .text-link:hover { color: white; }
.site-header nav .nav-account { display: none; }
body[data-page="home"] .nav-home, body[data-page="account"] .nav-account { color: white; }
.site-header nav .nav-sell { padding: 8px 11px; margin-top: -8px; border: 1px solid #eee; border-radius: 3px; color: white; }
.site-header nav .nav-sell:hover { background: white; color: #111; }
.profile-chip { width: 52px; height: 52px; flex: none; display: grid; place-items: center; padding: 4px; border: 1px solid #484848; border-radius: 4px; background: #1b1b1b; transition: border-color .2s, transform .2s; }
.profile-chip:hover { border-color: #ddd; transform: translateY(-2px); }
.profile-chip img { width: 43px; height: 43px; object-fit: contain; image-rendering: pixelated; }

main { display: flex; flex-direction: column; }
body[data-page="home"] .workspace-section { display: none; }
body[data-page="sell"] .hero, body[data-page="sell"] .rate-section, body[data-page="sell"] .how-section, body[data-page="sell"] .support-section, body[data-page="sell"] .account-sidebar, body[data-page="sell"] .account-action, body[data-page="sell"] .account-summary, body[data-page="sell"] #account-settings, body[data-page="sell"] .activity-card, body[data-page="sell"] .privacy-content { display: none !important; }
body[data-page="account"] .hero, body[data-page="account"] .rate-section, body[data-page="account"] .how-section, body[data-page="account"] .support-section, body[data-page="account"] .workspace-aside, body[data-page="account"] #invoice-form { display: none !important; }
body[data-page="admin"] .hero, body[data-page="admin"] .rate-section, body[data-page="admin"] .how-section, body[data-page="admin"] .support-section, body[data-page="admin"] .workspace-section { display: none !important; }
body:not([data-page="admin"]) .admin-page { display: none; }
body[data-page="action"] .hero, body[data-page="action"] .rate-section, body[data-page="action"] .how-section, body[data-page="action"] .support-section, body[data-page="action"] .workspace-section { display: none !important; }
body[data-page="action"] #quick-action { display: block; }
body[data-page="admin"] #quick-action { display: none; }
body[data-page="action"] #admin { display: none; }
body[data-page="account"] .workspace-grid { grid-template-columns: 1fr; }
body[data-page="account"] .account-action { display: flex; justify-content: flex-end; margin: 0 0 23px; }
body[data-page="account"] .privacy-content { display: none; }
body[data-section="statistics"] .workspace-grid, body[data-section="statistics"] #invoice-section .compact, body[data-section="statistics"] #invoice-list, body[data-section="statistics"] .account-action { display: none; }
body[data-section="invoices"] .workspace-grid, body[data-section="invoices"] .account-summary, body[data-section="invoices"] .activity-card { display: none !important; }
body[data-section="settings"] .account-summary, body[data-section="settings"] #invoice-section { display: none !important; }
body[data-section="privacy"] .workspace-grid, body[data-section="privacy"] .account-summary, body[data-section="privacy"] #invoice-section, body[data-section="privacy"] .account-action { display: none !important; }
body[data-section="privacy"] .privacy-content { display: block; }
body[data-section="statistics"]:not([data-signed="true"]) .workspace-grid, body[data-section="invoices"]:not([data-signed="true"]) .workspace-grid { display: grid; }
.hero { order: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 40px; align-items: center; padding-block: 75px 78px; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 760px; }
.eyebrow, .kicker, .tiny-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #aaa; }
.eyebrow span { color: #5d5d5d; padding-inline: 7px; }
.hero h1 { margin: 22px 0 17px; font-size: clamp(46px, 5vw, 69px); line-height: 1.04; letter-spacing: -.065em; font-weight: 650; }
.hero p { margin: 0; max-width: 570px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 29px; }
.button { min-height: 43px; display: inline-flex; justify-content: space-between; align-items: center; gap: 22px; border: 1px solid #efefef; border-radius: 4px; padding: 11px 15px; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.button.primary { background: #f3f3f1; color: #111; }
.button.primary:hover { background: #d7d7d5; transform: translateY(-2px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button span { font-size: 17px; font-weight: 400; line-height: 1; }
.button.full { width: 100%; }
.text-link { font-size: 12px; color: #bbb; }
.text-link span { margin-left: 6px; }
.transfer-demo { min-width: 0; padding: 22px; border: 1px solid #424242; border-radius: 5px; background: #171717; }
.transfer-head, .transfer-steps { display: flex; justify-content: space-between; gap: 8px; color: #a9a9a9; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.transfer-frames { position: relative; height: 235px; margin-block: 20px 15px; }
.transfer-frame { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px; border: 1px solid #484848; border-radius: 3px; background: #101010; opacity: 0; animation: transfer-frame 12s infinite; }
.chat-frame { animation-delay: 0s; }
.site-frame { animation-delay: 4s; }
.wallet-frame { animation-delay: 8s; }
.frame-label { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid #2e2e2e; color: #aaa; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.frame-dot { width: 6px; height: 6px; border-radius: 50%; background: #eee; }
.chat-lines { display: grid; gap: 9px; margin-top: auto; color: #8f8f8f; font: 11px monospace; }
.chat-command { margin-top: 15px; padding: 12px; border: 1px solid #555; background: #1e1e1e; font: 12px monospace; white-space: nowrap; overflow: hidden; }
.chat-command .prompt { color: #aaa; }
#demo-command { display: inline-block; max-width: 85%; vertical-align: bottom; overflow: hidden; animation: type-command 12s steps(22, end) infinite; }
.chat-cursor { display: inline-block; width: 1px; height: 13px; margin-left: 2px; background: white; vertical-align: middle; animation: blink .8s steps(1) infinite; }
.site-detect { display: grid; justify-items: center; align-content: center; gap: 12px; flex: 1; text-align: center; }
.detect-orbit { width: 31px; height: 31px; border: 2px solid #444; border-top-color: white; border-radius: 50%; animation: spin .9s linear infinite; }
.site-detect strong { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.site-detect small, .wallet-note { color: #999; font-size: 10px; }
.wallet-caption { margin-top: auto; color: #999; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
#demo-payout { display: block; margin: 10px 0; font-size: clamp(31px, 4vw, 43px); font-weight: 600; letter-spacing: -.055em; }
.wallet-note { margin-bottom: auto; }
.transfer-steps { padding-top: 14px; border-top: 1px solid #3b3b3b; }
.transfer-demo p { margin: 13px 0 0; color: #999; font-size: 10px; }
@keyframes transfer-frame { 0%, 29% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes type-command { 0%, 2% { max-width: 0; } 18%, 100% { max-width: 85%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.workspace-section { order: 1; padding-block: 65px 85px; scroll-margin-top: 20px; }
.rate-section { order: 2; padding-block: 66px 80px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.how-section { order: 3; padding-block: 66px 86px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.support-section { order: 4; scroll-margin-top: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 23px; }
.section-head h2, .support-section h2, .legal-panel h2 { margin: 10px 0 0; font-size: clamp(27px, 3.3vw, 38px); letter-spacing: -.045em; line-height: 1.1; font-weight: 600; }
.section-head > p { margin: 0; max-width: 335px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.account-layout { min-width: 0; }
body[data-page="account"] .account-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 34px; align-items: start; }
.account-content { min-width: 0; }
.account-sidebar { position: sticky; top: 24px; display: grid; padding: 14px; border: 1px solid var(--line); background: #151515; }
.sidebar-label, .sidebar-footer > span { padding: 12px 11px 17px; color: #929292; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.account-sidebar > a { display: flex; justify-content: space-between; gap: 15px; padding: 14px 11px; border-radius: 3px; color: #aaa; font-size: 12px; }
.account-sidebar > a:hover { background: #222; color: white; }
.account-sidebar > a span:last-child { color: #777; }
.sidebar-signout { margin: 10px 11px 0; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: #aaa; font-size: 11px; text-align: left; }
.sidebar-signout:hover { color: white; }
body:not([data-signed="true"]) .sidebar-signout { display: none; }
body[data-section="statistics"] .side-statistics, body[data-section="invoices"] .side-invoices, body[data-section="settings"] .side-settings, body[data-section="privacy"] .side-privacy { background: #eee; color: #111; font-weight: 700; }
body[data-section="statistics"] .side-statistics span:last-child, body[data-section="invoices"] .side-invoices span:last-child, body[data-section="settings"] .side-settings span:last-child, body[data-section="privacy"] .side-privacy span:last-child { color: #333; }
.sidebar-footer { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-footer > span { padding-left: 11px; }
.sidebar-footer p { margin: 12px 11px 5px; color: #999; font-size: 11px; line-height: 1.6; }
.sidebar-footer strong { color: #ddd; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 12px; }
.account-action { display: none; }
.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.account-summary > div { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.account-summary span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.account-summary strong { font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.privacy-content h3 { margin: 17px 0; font-size: 28px; font-weight: 600; letter-spacing: -.05em; }
.privacy-content > p, .privacy-grid p { color: #aaa; font-size: 12px; line-height: 1.7; }
.privacy-content > p { max-width: 640px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.privacy-grid > div { padding: 18px; border: 1px solid var(--line); background: #111; }
.privacy-grid span { display: block; margin-bottom: 28px; color: #999; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.privacy-grid strong { font-size: 12px; }
.privacy-grid p { margin-bottom: 0; font-size: 11px; }
.panel, .workspace-aside { padding: 27px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.panel-top { display: flex; justify-content: space-between; align-items: center; }
.panel-symbol { display: none; }
.tabs { display: flex; gap: 26px; margin: 25px 0 22px; border-bottom: 1px solid var(--line); }
.tab { padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: #888; font-size: 12px; }
.tab.active { color: white; border-color: white; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-stack label { display: flex; flex-direction: column; gap: 8px; color: #ddd; font-size: 11px; font-weight: 600; }
.form-stack input, .form-stack select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #3c3c3c; border-radius: 3px; background: #111; color: white; font-size: 12px; outline: none; }
.form-stack input::placeholder { color: #777; }
.form-stack input:focus, .form-stack select:focus { border-color: white; }
.field-help, .muted { margin: -3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.workspace-aside { display: flex; flex-direction: column; }
.workspace-aside h3 { margin: 32px 0 10px; max-width: 290px; font-size: 28px; font-weight: 600; letter-spacing: -.05em; line-height: 1.15; }
.workspace-aside p { margin: 0; max-width: 310px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.aside-line { height: 1px; margin: auto 0 20px; background: var(--line); }
.aside-detail { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; font-size: 10px; }
.aside-detail span { color: var(--muted); }
.aside-detail strong { text-align: right; font-size: 11px; }
.recovery-box { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.recovery-box strong { font-size: 14px; }
.recovery-box p { margin: 0; color: var(--muted); font-size: 11px; }
.recovery-box code { padding: 14px; border: 1px solid var(--line); background: #111; color: white; font-size: 11px; overflow-wrap: anywhere; }
.small-button, .plain-button { padding: 4px 0; border: 0; background: none; color: white; font-size: 11px; text-align: left; text-decoration: underline; }
.dashboard-panel h3 { margin: 24px 0 8px; font-size: 26px; letter-spacing: -.04em; }
.separator { height: 1px; margin: 24px 0; background: var(--line); }
.quote-box { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); background: #121212; color: var(--muted); font-size: 11px; }
.quote-box strong { color: white; font-size: 15px; }
.invoice-section { margin-top: 46px; }
body[data-section="statistics"] .invoice-section, body[data-section="invoices"] .invoice-section { margin-top: 0; }
.activity-card { margin-bottom: 37px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.activity-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.activity-title h3 { margin: 7px 0 0; font-size: 19px; letter-spacing: -.03em; }
.activity-title > span { color: var(--muted); font-size: 11px; }
.activity-chart { display: grid; gap: 13px; }
.chart-row { display: grid; grid-template-columns: 105px minmax(0, 1fr) 25px; align-items: center; gap: 15px; color: #bbb; font-size: 11px; }
.chart-track { height: 8px; background: #2d2d2d; overflow: hidden; }
.chart-fill { display: block; width: 0; height: 100%; background: #f3f3f1; transition: width .7s ease-out; }
.chart-row strong { color: #eee; font-size: 11px; text-align: right; }
.invoice-list { display: grid; gap: 10px; }
.invoice-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 20px; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 20px; }
.invoice-card.current-invoice { border-color: #ddd; }
.invoice-card h3 { margin: 0 0 8px; font-size: 14px; }
.invoice-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.invoice-state { color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.invoice-actions { grid-column: 1/-1; display: flex; align-items: center; gap: 13px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; }
.invoice-actions code { overflow-wrap: anywhere; }
.invoice-actions > span { width: 100%; color: #aaa; }
.invoice-actions .pay-command { display: block; width: 100%; padding: 13px 15px; border: 1px solid #555; background: #101010; color: white; font-size: 14px; user-select: all; }
.invoice-actions button { padding: 9px 12px; border: 1px solid #999; background: transparent; color: white; font-size: 11px; }

.rate-card { border: 1px solid var(--line); background: var(--surface); }
.rate-head, .rate-row { display: grid; grid-template-columns: 1fr 1.35fr .45fr; align-items: center; padding-inline: 22px; }
.rate-head { min-height: 43px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.rate-head span:last-child, .rate-row > span:last-child { text-align: right; }
.rate-row { min-height: 60px; border-bottom: 1px solid #292929; }
.rate-row:last-child { border-bottom: 0; }
.asset-name { display: flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 700; }
.asset-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #777; border-radius: 50%; font-size: 13px; }
.rate-value { font-size: 13px; font-weight: 600; }
.rate-value small { margin-left: 4px; color: var(--muted); font-weight: 400; }
.status-live, .status-paused { font-size: 10px; color: #aaa; }
.status-live:before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #eee; }
.loading-row { padding: 22px; color: var(--muted); font-size: 12px; }
.loading-row a { color: white; text-decoration: underline; }
.rate-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps article { min-height: 165px; padding: 21px; border: 1px solid var(--line); background: var(--surface); }
.steps article > span { font-size: 10px; color: var(--muted); }
.steps h3 { margin: 25px 0 7px; font-size: 16px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.support-section { display: flex; align-items: center; min-height: 155px; margin-bottom: 75px; padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.support-section h2 { font-size: 29px; }
.support-section p { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.support-section strong { color: white; }
.site-footer { padding-block: 30px; border-top: 1px solid var(--line); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-top > span, .footer-bottom { color: var(--muted); font-size: 11px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-bottom > div { display: flex; gap: 19px; }

.legal-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; overflow: auto; background: #000d; }
.legal-overlay:target { display: grid !important; }
.legal-panel { position: relative; width: min(650px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 31px; border: 1px solid #666; background: var(--surface); }
.legal-panel h2 { margin-bottom: 22px; }
.legal-panel p { color: #bbb; font-size: 12px; line-height: 1.75; }
.legal-panel strong { color: white; }
.close-link { position: absolute; top: 17px; right: 22px; color: #aaa; font-size: 27px; }
.admin-page { min-height: 65vh; padding-block: 65px 85px; }
.admin-login-panel { max-width: 460px; }
.admin-login-panel h3 { margin: 20px 0; font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.admin-tabs { display: flex; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--line); color: #aaa; font-size: 12px; }
.admin-tabs a:hover { color: white; }
.admin-section { padding-top: 45px; scroll-margin-top: 20px; }
.admin-section + .admin-section { margin-top: 55px; border-top: 1px solid var(--line); }
.queue-count { color: #888; font-size: 18px; vertical-align: middle; }
.admin-settings { max-width: 760px; }
.admin-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-invoices { display: grid; gap: 11px; }
.admin-item { padding: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; }
.admin-item-top { display: flex; justify-content: space-between; gap: 15px; }
.admin-item-top strong { font-size: 14px; font-weight: 600; }
.admin-item-top strong span { color: #777; }
.admin-status { color: #aaa; text-transform: uppercase; white-space: nowrap; font-size: 10px; letter-spacing: .08em; }
.admin-item p { margin: 9px 0; color: #aaa; line-height: 1.55; overflow-wrap: anywhere; }
.admin-item code { color: #ddd; overflow-wrap: anywhere; }
.admin-item .actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.admin-item .actions button { padding: 9px 11px; border: 1px solid #777; background: transparent; color: white; font-size: 11px; }
.admin-item .actions button:first-child { background: white; color: #111; }
.admin-item .admin-edit { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-edit .actions { margin-top: 0; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: 320px; padding: 12px 15px; border: 1px solid #777; background: #ededed; color: #111; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .site-header { height: auto; min-height: 76px; flex-wrap: wrap; column-gap: 12px; }
  .site-header nav { order: 3; display: flex; width: 100%; gap: 23px; margin: 0; padding: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav .nav-account { display: inline; }
  .site-header nav a[href="/#how"] { display: none; }
  .site-header nav .nav-sell { margin: 0; padding: 0; border: 0; color: #eee; }
  .profile-chip { margin: 11px 0 11px auto; }
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .transfer-demo { max-width: 500px; }
  .workspace-grid { grid-template-columns: 1fr; }
  body[data-page="account"] .account-layout { grid-template-columns: 1fr; gap: 18px; }
  .account-sidebar { position: static; display: flex; align-items: center; gap: 4px; padding: 8px; overflow-x: auto; }
  .account-sidebar > a { white-space: nowrap; }
  .sidebar-signout { flex: none; margin: 0 4px; padding: 12px 8px; border: 0; white-space: nowrap; }
  .account-sidebar > a span:last-child, .sidebar-label, .sidebar-footer { display: none; }
  body[data-page="account"] .account-action { margin: 0 0 23px; }
  .workspace-aside { min-height: 220px; }
  .aside-line { margin-top: 25px; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, 1120px); }
  .site-header { min-height: 72px; }
  .brand { font-size: 11px; }
  .profile-chip { width: 43px; height: 43px; }
  .profile-chip img { width: 35px; height: 35px; }
  .hero { padding-block: 52px 58px; }
  .hero h1 { font-size: clamp(42px, 10.5vw, 59px); }
  .hero p { font-size: 13px; }
  .transfer-frames { height: 225px; }
  .workspace-section, .rate-section, .how-section { padding-block: 48px 60px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 12px; }
  .panel, .workspace-aside { padding: 20px; }
  .rate-head, .rate-row { grid-template-columns: 1fr 1fr; padding-inline: 13px; }
  .rate-head span:last-child, .rate-row > span:last-child { display: none; }
  .rate-value { text-align: right; font-size: 12px; }
  .asset-name { font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: 125px; }
  .steps h3 { margin-top: 14px; }
  .invoice-card { grid-template-columns: 1fr; }
  .invoice-state { text-align: left; }
  .chart-row { grid-template-columns: 80px minmax(0, 1fr) 20px; gap: 10px; }
  .footer-top > span { display: none; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .footer-bottom > div { flex-wrap: wrap; gap: 13px; }
  .admin-rates { grid-template-columns: 1fr; }
  .admin-tabs { gap: 18px; overflow-x: auto; white-space: nowrap; }
  .admin-item-top { flex-direction: column; }
  .account-summary { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  body[data-page="account"] .account-action { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-loader { display: none; }
  .reveal { opacity: 1; transform: none; }
  .transfer-frame { animation: none; }
  .chat-frame { opacity: 1; }
  #demo-command, .chat-cursor, .detect-orbit { animation: none; }
  .button, .profile-chip, .chart-fill { transition: none; }
}
