/* N8N Capital — design system */

:root {
  --bg: #f7f3ea;
  --bg-rgb: 247, 243, 234;
  --bg-elev: #ffffff;
  --bg-elev-2: #efe9dd;
  --border: #e2dac5;
  --border-soft: #ebe4d4;
  --text: #1b1a17;
  --text-dim: #665f51;
  --text-faint: #8a8172;
  --accent: #0e8f5f;
  --accent-rgb: 14, 143, 95;
  --accent-dim: #0b7a4f;
  --accent-ink: #fbf8f2;
  --accent-2: #3454c8;
  --accent-2-rgb: 52, 84, 200;
  --warn: #a15c07;
  --warn-rgb: 161, 92, 7;
  --danger: #c22626;
  --radius: 10px;
  --radius-lg: 16px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.brand .logo-mark { width: 28px; height: 28px; }
.brand .cap { color: var(--text-faint); font-weight: 600; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.mobile-nav.open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; padding: 12px 24px 20px; gap: 4px; }
.mobile-nav a {
  padding: 12px 4px;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Ticker ---------- */
.ticker-bar {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elev);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 9px 0;
  animation: scroll-ticker 32s linear infinite;
}
.ticker-track span { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.ticker-track b { color: var(--text); }
.ticker-track .up { color: var(--accent); }
.ticker-track .down { color: var(--danger); }
@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.16), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.2);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  max-width: 820px;
}
.hero .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 620px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
  gap: 20px;
}
.hero-stats .stat-label { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.hero-stats .stat-value { font-family: var(--mono); font-size: 22px; font-weight: 700; }

/* ---------- Section shells ---------- */
section { padding: 88px 0; border-top: 1px solid var(--border-soft); }
section:first-of-type { border-top: none; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { margin-top: 14px; color: var(--text-dim); font-size: 16px; }
.section-foot { margin-top: 40px; }

/* ---------- Workflow / rotation diagram ---------- */
.workflow-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.node-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.node-card .node-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),0.3);
  background: rgba(var(--accent-rgb),0.08);
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.node-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.node-card p { color: var(--text-dim); font-size: 14px; }
.node-arrow {
  display: none;
  position: absolute;
  top: 32px;
  right: -27px;
  color: var(--text-faint);
  z-index: 2;
}
@media (min-width: 861px) {
  .node-arrow { display: block; }
}

/* ---------- Cards / grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pos-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.pos-card .pair { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pos-card .pair-name { font-weight: 650; font-size: 15px; }
.pos-card .pair-badge {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.25);
  padding: 3px 8px; border-radius: 999px;
}
.pos-card .pair-value { font-family: var(--mono); font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.pos-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); padding: 7px 0; border-top: 1px solid var(--border-soft); }
.pos-card a.view-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--accent-2); font-weight: 600; }

.guarantee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.guarantee-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-elev), transparent);
}
.guarantee-card .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(var(--accent-2-rgb),0.1);
  border: 1px solid rgba(var(--accent-2-rgb),0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.guarantee-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.guarantee-card p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
tbody td { padding: 15px 20px; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0,0,0,0.025); }
td.asset { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.asset-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--bg-elev-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  font-family: var(--mono);
}
.num { font-family: var(--mono); }
.chg-up { color: var(--accent); font-family: var(--mono); }
.chg-down { color: var(--danger); font-family: var(--mono); }
.pill {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-elev-2); color: var(--text-dim); border: 1px solid var(--border);
}

/* ---------- Fee breakdown ---------- */
.fee-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.fee-bar { height: 46px; border-radius: 999px; overflow: hidden; display: flex; border: 1px solid var(--border); }
.fee-seg { height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.fee-seg.a { background: var(--accent); color: var(--accent-ink); }
.fee-seg.b { background: var(--accent-2); color: var(--accent-ink); }
.fee-seg.c { background: var(--bg-elev-2); color: var(--text-dim); }
.fee-legend { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.fee-legend-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.fee-legend-item .swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.fee-legend-item .swatch.a { background: var(--accent); }
.fee-legend-item .swatch.b { background: var(--accent-2); }
.fee-legend-item .swatch.c { background: var(--bg-elev-2); border: 1px solid var(--border); }
.fee-legend-item .pct { font-family: var(--mono); font-weight: 700; margin-left: auto; }
.fee-legend-item .label-dim { color: var(--text-dim); font-size: 12.5px; margin-left: 24px; }
.fee-total { font-size: 15px; color: var(--text-dim); margin-top: 22px; }
.fee-total b { color: var(--text); font-family: var(--mono); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; padding: 26px 22px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); }
.step-card .step-num { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--border); margin-bottom: 14px; }
.step-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}
.faq-q .plus { flex-shrink: 0; color: var(--text-faint); transition: transform .2s ease; font-size: 20px; font-weight: 400; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--text-dim); font-size: 14.5px; max-width: 680px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.08), rgba(var(--accent-2-rgb),0.05));
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: 1.8rem; max-width: 480px; }
.cta-banner p { color: var(--text-dim); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer-disclaimer { max-width: 780px; line-height: 1.6; margin-top: 18px; font-size: 12px; color: var(--text-faint); }
.risk-banner {
  display: flex;
  gap: 12px;
  background: rgba(var(--warn-rgb),0.08);
  border: 1px solid rgba(var(--warn-rgb),0.3);
  color: var(--warn);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 40px;
  align-items: flex-start;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding: 64px 0 48px; border-top: none; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 720px; }
.page-hero p.lede { margin-top: 16px; color: var(--text-dim); font-size: 17px; max-width: 620px; }

/* ---------- Filters (marketplace/stocks) ---------- */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 6px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.filter-tab { padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; border: none; background: none; }
.filter-tab.active { background: var(--accent); color: var(--accent-ink); }
.search-input {
  flex: 1; min-width: 220px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.search-input::placeholder { color: var(--text-faint); }
.search-input:focus { border-color: var(--accent-dim); }

/* ---------- Log (token page) ---------- */
.log-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.log-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.log-row:last-child { border-bottom: none; }
.log-row .log-time { font-family: var(--mono); color: var(--text-faint); width: 150px; flex-shrink: 0; }
.log-row .log-badge { width: 90px; flex-shrink: 0; }
.log-row .log-detail { color: var(--text-dim); flex: 1; }
.log-row .log-amt { font-family: var(--mono); font-weight: 600; }

.contract-pending { color: var(--text-faint); font-style: italic; }

/* ---------- Legal page ---------- */
.legal-shell { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.legal-toc a { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-dim); }
.legal-toc a:hover { background: var(--bg-elev); color: var(--text); }
.legal-body h2 { font-size: 20px; margin-top: 44px; margin-bottom: 14px; scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; }
.legal-body strong { color: var(--text); }
.updated-badge { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-bottom: 8px; display: block; }

/* ---------- Deposit widget (liquidity desk) ---------- */
.widget {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.widget-tabs { display: flex; gap: 4px; background: var(--bg-elev-2); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.widget-tab { flex: 1; text-align: center; padding: 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; }
.widget-tab.active { background: var(--bg-elev); color: var(--text); }
.widget-input-row { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.widget-input-row label { font-size: 12px; color: var(--text-faint); }
.widget-input-row .amt-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.widget-input-row input { background: none; border: none; color: var(--text); font-size: 22px; font-family: var(--mono); width: 60%; outline: none; }
.widget-stats { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; font-size: 13.5px; }
.widget-stats .row { display: flex; justify-content: space-between; color: var(--text-dim); }
.widget-stats .row b { color: var(--text); font-family: var(--mono); }

/* ---------- Page loader ---------- */
body.is-loading { overflow: hidden; }
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease;
}
.page-loader.loaded { opacity: 0; pointer-events: none; }
.page-loader-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  animation: page-loader-pulse 1.1s ease-in-out infinite;
}
@keyframes page-loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .7; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: min(90vw, 380px);
  text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Wallet connect (demo modal + menu) ---------- */
.btn.wallet-connected { font-family: var(--mono); }
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wallet-modal[hidden] { display: none; }
.wallet-modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.wallet-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.wallet-modal-head h3 { font-size: 17px; }
.wallet-modal-x {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text-faint); padding: 4px;
}
.wallet-modal-x:hover { color: var(--text); }
.wallet-modal-body { display: flex; flex-direction: column; gap: 10px; }
.wallet-provider {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.wallet-provider:hover { border-color: var(--accent-dim); background: var(--bg-elev); }
.wallet-provider-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.wallet-provider-icon { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.wallet-empty-note { font-size: 13.5px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.5; }
.wallet-error { font-size: 13.5px; color: var(--danger); padding: 10px 4px 4px; }
.wallet-connecting {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 4px; color: var(--text-dim); font-size: 14.5px;
}
.wallet-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: wallet-spin .7s linear infinite;
}
@keyframes wallet-spin { to { transform: rotate(360deg); } }

.wallet-menu {
  position: absolute;
  z-index: 100;
  width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.wallet-menu-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-radius: 8px;
  padding: 10px 12px; font-size: 13.5px; font-weight: 500;
  color: var(--text); cursor: pointer;
}
.wallet-menu-item:hover { background: var(--bg-elev-2); }
.wallet-menu-danger { color: var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .guarantee-grid, .card-grid, .steps, .workflow-diagram { grid-template-columns: repeat(2, 1fr); }
  .fee-wrap { grid-template-columns: 1fr; gap: 32px; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .guarantee-grid, .card-grid, .steps, .workflow-diagram, .footer-top { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 26px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
}
