/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0d;
  --bg-elev: #131316;
  --bg-elev-2: #1a1a1e;
  --line: #25252a;
  --line-soft: #1e1e22;
  --ink: #f4f1e8;          /* warm off-white */
  --ink-dim: #a5a59d;
  --ink-mute: #6e6e69;
  --accent: #d1ff3a;        /* acid lime */
  --accent-ink: #0a0a0b;
  --accent-soft: rgba(209, 255, 58, 0.12);
  --danger: #ff6a4a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6), 0 8px 24px -8px rgba(0,0,0,0.4);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Typography utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 600;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.eyebrow.muted { color: var(--ink-mute); }
.ink { color: var(--accent); font-style: italic; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: #38383e; background: var(--bg-elev); }
.btn-accent {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.btn-accent:hover { background: #c0ee27; }
.btn-primary {
  background: var(--ink); color: var(--accent-ink);
}
.btn-primary:hover { background: #fff; }
.btn-block { width: 100%; padding: 15px 18px; font-size: 15px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-name { font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand-tld { color: var(--ink-mute); }
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 14px; color: var(--ink-dim); position: relative;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }


/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: -0.04em;
  margin: 18px 0 22px;
}
.lede {
  color: var(--ink-dim);
  font-size: clamp(16px, 1.25vw, 18px);
  max-width: 540px;
  line-height: 1.55;
}
.hero-points {
  list-style: none; padding: 0; margin: 26px 0 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--ink-dim);
}
.hero-points .check {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 13px;
}
.trust-row {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-dim); font-size: 13.5px;
}
.trust-row strong { color: var(--ink); font-weight: 600; }
.trust-stars { display: inline-flex; color: var(--accent); gap: 2px; }
.trust-row .sep { color: var(--ink-mute); }

/* ---------- Swap card ---------- */
.swap-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.swap-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.seg {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--bg-elev-2); border-radius: 999px; border: 1px solid var(--line);
}
.seg-btn {
  border: 0; background: transparent; color: var(--ink-dim);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.seg-btn.is-active { background: var(--ink); color: var(--accent-ink); }
.net-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(209,255,58,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(209,255,58,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(209,255,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(209,255,58,0); }
}

.swap-leg {
  background: var(--bg-elev-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
}
.leg-label {
  font-size: 12px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  margin-bottom: 6px;
}
.leg-row { display: flex; align-items: center; gap: 12px; }
.leg-row input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font-size: 28px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em;
  padding: 2px 0;
}
.leg-meta {
  margin-top: 8px; font-size: 12.5px; color: var(--ink-mute);
}
.coin-select {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px 6px 6px;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
  font-weight: 600; color: var(--ink);
}
.coin-select:hover { border-color: #3a3a40; background: #1d1d22; }
.coin-ico {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  overflow: hidden;
}
.coin-ico img,
.coin-row-ico img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.coin-row-ico { overflow: hidden; background: var(--bg-elev-2); border: 1px solid var(--line); }
.coin-ico-letter {
  font-weight: 600; font-size: 12px;
  color: var(--ink-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.coin-row-ico .coin-ico-letter { font-size: 13px; }
.coin-tkr { font-size: 14px; letter-spacing: 0.01em; }

.flip-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin: -12px auto;
  position: relative; z-index: 2;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.15s ease;
}
.flip-btn:hover { border-color: var(--accent); transform: rotate(180deg); color: var(--accent); }

.rate-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-dim);
  margin: 14px 4px 14px;
}
.rate-diff { color: var(--accent); font-weight: 600; }

.swap-foot {
  display: flex; justify-content: center; gap: 8px; align-items: center;
  margin-top: 12px;
  font-size: 12px; color: var(--ink-mute);
}

/* ---------- Exchanges strip ---------- */
.exchanges-strip {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}
.exchanges-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
  white-space: nowrap;
}
.exchanges-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.exchanges-list li {
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-dim);
  background: var(--bg-elev);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.exchanges-list li:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- Mode tabs (Swap / Buy) ---------- */
.mode-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; padding: 5px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}
.mode-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  border: 0; background: transparent;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-dim);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.mode-tab.is-active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mode-tab.is-disabled {
  cursor: not-allowed;
  color: var(--ink-mute);
  opacity: 0.7;
}
.mode-tab.is-disabled:hover { color: var(--ink-mute); }
.mode-badge {
  font-size: 10px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head.row {
  max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: end;
}
.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-top: 14px;
}
.section-sub { color: var(--ink-dim); max-width: 420px; font-size: 16px; }

.dark-band {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.steps li {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  font-size: 13px; color: var(--accent); font-weight: 600;
  letter-spacing: 0.1em; margin-bottom: 28px;
}
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 32px 28px;
}
.feature-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }

/* ---------- Partners card ---------- */
.partners-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 48px;
  position: relative; overflow: hidden;
}
.partners-copy h2 { margin: 14px 0 18px; font-size: clamp(26px, 3vw, 36px); }
.partners-copy p { color: var(--ink-dim); max-width: 460px; margin-bottom: 28px; }
.partner-stats {
  display: flex; gap: 36px; margin-bottom: 32px; flex-wrap: wrap;
}
.partner-stats > div {
  display: flex; flex-direction: column; gap: 4px;
}
.partner-stats strong {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent);
}
.partner-stats span { font-size: 13px; color: var(--ink-mute); }

.partner-checklist {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.partner-checklist li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--ink-dim);
}
.partner-checklist span {
  color: var(--accent); font-weight: 600;
}

/* ---------- Partner form ---------- */
.partner-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; z-index: 1;
}
.partner-form header { margin-bottom: 4px; }
.partner-form header h3 {
  font-size: 20px; margin-bottom: 6px;
}
.partner-form header p {
  color: var(--ink-mute); font-size: 13.5px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute); font-weight: 600;
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder { color: #565651; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #0e0e10;
}
.field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e69' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; color: var(--ink-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.partner-fineprint {
  font-size: 12px; color: var(--ink-mute); text-align: center;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 4px;
}
.faq details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; font-size: 22px; color: var(--ink-mute);
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq p {
  color: var(--ink-dim); font-size: 14.5px; margin-top: 12px;
  max-width: 680px; line-height: 1.65;
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 56px 48px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 40px); }
.cta-band p { color: var(--ink-dim); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #08080a;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 48px;
}
.foot-brand { max-width: 320px; }
.foot-brand .brand-name {
  display: inline-block; margin-top: 8px;
  font-size: 18px;
}
.foot-brand p {
  color: var(--ink-mute); font-size: 13.5px;
  margin-top: 14px; line-height: 1.6;
}
.footer-grid h4 {
  font-size: 13px; color: var(--ink-mute); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 14px; font-weight: 600;
}
.footer-grid a {
  display: block; color: var(--ink-dim); font-size: 14px;
  padding: 4px 0; transition: color 0.15s ease;
}
.footer-grid a:hover { color: var(--ink); }
.foot-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px; font-size: 12.5px; color: var(--ink-mute);
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.blog-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px;
  background: #0a0a0b;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.2s ease, background 0.15s ease;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: #0d0d0f;
}
.blog-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute); font-weight: 600;
}
.blog-meta span:first-child {
  color: var(--accent);
}
.blog-meta span:not(:first-child)::before {
  content: "·"; margin-right: 10px; color: var(--ink-mute);
}
.blog-card h3 {
  font-size: 18px; line-height: 1.3; margin: 4px 0 0;
}
.blog-card p {
  color: var(--ink-dim); font-size: 14px; line-height: 1.55; flex: 1;
}
.blog-link {
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-top: 6px;
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.2s ease;
  color: inherit;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  flex: 0 0 auto;
}
.contact-card h3 {
  font-size: 13px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; margin-bottom: 4px;
}
.contact-card p {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  word-break: break-all;
}

/* ---------- Coin picker modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.16s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 80vh;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px;
}
.modal-head h3 {
  font-size: 16px; font-weight: 600;
}
.modal-close {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink-dim); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover { color: var(--ink); border-color: var(--accent); }
.modal-search {
  position: relative;
  margin: 0 22px 12px;
}
.modal-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-mute);
}
.modal-search input {
  width: 100%;
  padding: 11px 12px 11px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink); font-size: 14px;
  outline: none; transition: border-color 0.15s ease;
}
.modal-search input:focus { border-color: var(--accent); }
.coin-list {
  list-style: none; padding: 4px 12px 14px; margin: 0;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: #2c2c30 transparent;
}
.coin-list::-webkit-scrollbar { width: 8px; }
.coin-list::-webkit-scrollbar-thumb { background: #2c2c30; border-radius: 4px; }
.coin-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.coin-row:hover { background: var(--bg-elev-2); }
.coin-row.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.coin-row.is-disabled:hover { background: transparent; }
.coin-row.is-current {
  background: var(--accent-soft);
}
.coin-row-ico {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.coin-row-name {
  display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0;
}
.coin-row-name strong {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
}
.coin-row-name em {
  font-style: normal; font-size: 12.5px; color: var(--ink-mute);
}
.coin-row-tag {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
}
.coin-row-tag.muted { color: var(--ink-mute); }
.coin-empty {
  padding: 24px; text-align: center;
  color: var(--ink-mute); font-size: 14px;
}
.coin-more {
  padding: 16px; text-align: center;
  color: var(--ink-mute); font-size: 12.5px;
  font-style: italic;
  border-top: 1px dashed var(--line-soft);
  margin-top: 6px;
}

/* ---------- "You get" placeholder text ---------- */
.leg-placeholder {
  flex: 1; min-width: 0;
  font-size: 14px;
  color: var(--ink-mute);
  padding: 6px 0;
  line-height: 1.4;
}

/* ---------- Offers page ---------- */
.offers-main {
  padding: 48px 0 96px;
  min-height: calc(100vh - 220px);
}
.offers-shell { max-width: 760px; margin: 0 auto; }
.offers-page-head { margin-bottom: 28px; }
.offers-page-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 10px;
  letter-spacing: -0.025em;
}
.offers-page-head .muted { color: var(--ink-dim); font-weight: 500; }

.offers-controls {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
}
.offers-controls .seg {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--bg);
  border-radius: 999px; border: 1px solid var(--line);
}
.offers-controls .seg-btn {
  border: 0; background: transparent; color: var(--ink-dim);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.offers-controls .seg-btn.is-active {
  background: var(--ink); color: var(--accent-ink);
}
.rate-explain {
  flex: 1; min-width: 200px;
  font-size: 13px; color: var(--ink-dim); line-height: 1.5;
}

.offers-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-elev);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-dim);
}
.offers-state h3 {
  font-size: 18px; color: var(--ink); margin-bottom: 8px;
}
.offers-state p { font-size: 14px; max-width: 380px; margin: 0 auto 16px; line-height: 1.55; }
.offers-state .spinner { margin: 0 auto 12px; }

/* On the offers page we use the existing .offers-list/.offer styles. */

/* ---------- Blog placeholder page ---------- */
.blog-page { padding: 80px 0 120px; min-height: calc(100vh - 200px); }
.blog-shell { max-width: 560px; }
.blog-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 12px 0 18px;
}
.blog-header p {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 28px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--accent-ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Offers list (inline below swap form) ---------- */
.offers { display: flex; flex-direction: column; gap: 12px; }
.offers-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2px;
}
.offers-back {
  background: transparent; border: 0; color: var(--ink-dim);
  font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 4px 0;
}
.offers-back:hover { color: var(--ink); }
.offers-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.offer {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 14px 14px 14px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.offer:hover { border-color: #34343a; transform: translateY(-1px); }
.offer.is-best {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(209,255,58,0.05), rgba(209,255,58,0));
}
.offer-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.offer-meta { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.offer-out  { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.offer-out span { color: var(--ink-mute); font-weight: 400; margin-left: 4px; }
.offer-diff { font-size: 12px; color: var(--ink-mute); margin-top: 2px; text-align: right; }
.offer.is-best .offer-diff { color: var(--accent); font-weight: 600; }
.offers-empty {
  text-align: center; color: var(--ink-mute); font-size: 13.5px;
  padding: 22px 8px;
}

/* ---------- Modal extras ---------- */
.modal-card-sm { max-width: 400px; }
.modal-body { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-desc { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 2px; }
.modal-fineprint {
  font-size: 12px; color: var(--ink-mute);
  text-align: center; line-height: 1.5;
}
.label-hint {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--ink-mute); margin-left: 6px; font-size: 11px;
}
.addr-summary {
  padding: 14px; background: var(--bg-elev-2);
  border: 1px solid var(--line-soft); border-radius: 12px;
}
.addr-summary-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
}
.addr-summary-label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-mute);
  font-weight: 600; margin-bottom: 4px;
}
.addr-summary strong { font-size: 14.5px; color: var(--ink); }
.addr-summary-arrow { color: var(--accent); font-weight: 600; font-size: 18px; }

/* ---------- Order page ---------- */
.order-main { padding: 40px 0 80px; min-height: calc(100vh - 200px); }
.order-loading {
  text-align: center; padding: 80px 0;
  color: var(--ink-mute); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.order-error {
  text-align: center; padding: 80px 0;
  max-width: 480px; margin: 0 auto;
}
.order-error h1 { font-size: 28px; margin-bottom: 12px; }
.order-error p { color: var(--ink-dim); }
.order-error a { color: var(--accent); }

.order-card {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.order-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.order-head h1 { font-size: 24px; margin-top: 8px; }
.status-pill {
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--bg-elev-2); color: var(--ink-dim);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.status-pill[data-s="waiting"]    { color: #ffd34a; border-color: rgba(255,211,74,0.3); background: rgba(255,211,74,0.08); }
.status-pill[data-s="confirming"],
.status-pill[data-s="exchanging"],
.status-pill[data-s="sending"]    { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.status-pill[data-s="finished"]   { color: #0a0a0b; background: var(--accent); border-color: var(--accent); }
.status-pill[data-s="failed"],
.status-pill[data-s="expired"]    { color: var(--danger); border-color: rgba(255,106,74,0.3); background: rgba(255,106,74,0.08); }
.status-pill[data-s="refunded"]   { color: var(--ink-dim); }

.order-steps {
  list-style: none; padding: 22px 32px; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.order-steps li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-mute);
  position: relative;
}
.order-steps li .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
  transition: background 0.2s ease;
}
.order-steps li.is-active { color: var(--ink); font-weight: 600; }
.order-steps li.is-active .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.order-steps li.is-done .dot { background: var(--accent); }

.order-section { padding: 28px 32px; border-bottom: 1px solid var(--line-soft); }
.order-section h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.addr-block {
  display: flex; gap: 10px; align-items: center;
  padding: 16px;
  background: #0a0a0b;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.addr-block code {
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; color: var(--ink); word-break: break-all;
  letter-spacing: 0;
}
.addr-meta {
  display: flex; gap: 10px; align-items: center;
  margin-top: 10px;
}
.addr-meta-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 600;
}
.addr-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--ink);
  padding: 6px 10px; background: #0a0a0b;
  border: 1px solid var(--line); border-radius: 6px;
}
.order-note {
  font-size: 13px; color: var(--ink-dim);
  margin-top: 14px; line-height: 1.55;
}

.order-summary dl {
  margin: 0;
  display: grid; gap: 14px 24px;
  grid-template-columns: 1fr 1fr;
}
.order-summary dl > div {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.order-summary dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute); font-weight: 600;
}
.order-summary dd {
  margin: 0; font-size: 14px; color: var(--ink); font-weight: 600;
  word-break: break-all;
}
.order-summary dd.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; font-weight: 400; color: var(--ink-dim);
}

.order-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; gap: 12px; flex-wrap: wrap;
}
.order-foot .updated { color: var(--ink-mute); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
  .section-head.row { grid-template-columns: 1fr; gap: 16px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 1px; }
  .partners-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .exchanges-strip { gap: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 720px) {
  .order-summary dl { grid-template-columns: 1fr; }
  .order-steps { grid-template-columns: repeat(2, 1fr); }
  .order-head, .order-section, .order-foot { padding-left: 22px; padding-right: 22px; }
  .addr-summary-row { grid-template-columns: 1fr; gap: 10px; }
  .addr-summary-arrow { display: none; }
  .offer { grid-template-columns: 1fr auto; }
  .offer-pick { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .header-actions .btn:not(.btn-accent) { display: none; }
  .header-inner { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .leg-row input { font-size: 22px; }
}
