/* xfund — warm gradient glass theme */
:root {
  --ink: #2a1a1f;
  --ink-2: #4f3a40;
  --muted: #8a6d70;
  --hot-a: #ff8a3d;
  --hot-b: #ff3d77;
  --hot: linear-gradient(135deg, var(--hot-a), var(--hot-b));
  --coral: #ff5a5f;
  --peach: #ffc9a3;
  --good: #14915a;
  --bad: #e5384f;
  --glass: rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-line: rgba(255, 255, 255, 0.75);
  --line: 1px solid rgba(255, 255, 255, 0.7);
  --soft-line: rgba(42, 26, 31, 0.08);
  --shadow: 0 10px 40px -12px rgba(170, 60, 70, 0.35);
  --shadow-sm: 0 4px 16px -6px rgba(170, 60, 70, 0.3);
  --r: 24px;
  --r-sm: 14px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: linear-gradient(160deg, #ffe3c4 0%, #ffc4cf 38%, #ffb08a 72%, #ff9f7a 100%) fixed;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #ff3d77; color: #fff; }

/* Floating colour blobs behind the glass */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: drift 22s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 520px; height: 520px; background: #ffd27a; top: -140px; left: -120px; }
.blobs i:nth-child(2) { width: 460px; height: 460px; background: #ff7aa2; top: 30%; right: -160px; animation-duration: 28s; }
.blobs i:nth-child(3) { width: 420px; height: 420px; background: #ff9b57; bottom: -160px; left: 30%; animation-duration: 34s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

/* ---------- Top nav ---------- */
.topnav { position: sticky; top: 0; z-index: 30; padding: 14px 20px 0; }
.topnav-in {
  max-width: 1200px; margin: 0 auto; border-radius: 999px; padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 18px; position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.5px; text-decoration: none; }
.brand-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--hot); color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: var(--shadow-sm); }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s; }
.nav a:hover { background: rgba(255,255,255,.55); }
.nav a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.price-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.55); }
.price-pill .dot, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(20,145,90,.2); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(20,145,90,0); } }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: none; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }

.ticker { max-width: 1200px; margin: 12px auto 0; overflow: hidden; white-space: nowrap; padding: 0 20px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 12px; animation: scroll 50s linear infinite; }
.ticker-track span { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); }
.ticker-track b { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes scroll { to { transform: translateX(-50%); } }

.content { max-width: 1200px; margin: 0 auto; padding: 40px 20px 72px; }
.footer { padding: 0 20px 28px; }
.footer-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.6); }
.footer .brand { font-size: 20px; }
.footer .brand-ic { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--glass-strong); font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-hot { background: var(--hot); color: #fff; border-color: transparent; }
.btn-hot:hover { filter: brightness(1.05) saturate(1.1); }
.btn-ink { background: var(--ink); color: #fff; border-color: transparent; }
.btn-lime { background: #fff; color: var(--ink); }
.btn-lime::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden;
}
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.card-h .tag { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.card-b { padding: 18px 22px; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid var(--glass-line); }
.kicker::before { content: "✦"; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7.2vw, 88px); line-height: .98; letter-spacing: -0.04em; margin: 20px 0 18px; }
.h1 em, .h2 em, .grad { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; margin: 14px 0 8px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.page-head { margin-bottom: 28px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 620px; font-size: 16px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.pos { color: var(--good); }
.neg { color: var(--bad); }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.75); }
.pill.hot { background: var(--hot); color: #fff; }
.pill.lime { background: #d6f5e3; color: #0f6b43; }
.pill.sky { background: #fff0c9; color: #8a5a00; }

.av {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; font-family: var(--display);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.av.lg { width: 58px; height: 58px; font-size: 22px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font-family: var(--mono); color: var(--muted); font-size: 11px; }

.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: 1.6fr 1fr; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 30px 0 20px; }
.hero-search {
  max-width: 560px; margin: 32px auto 0; display: flex; align-items: center; gap: 6px;
  padding: 7px 7px 7px 22px; border-radius: 999px;
}
.hero-search .at { font-family: var(--display); font-weight: 800; font-size: 22px; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 18px; font-weight: 600; padding: 10px 4px; }
.hero-search input::placeholder { color: var(--muted); font-weight: 500; }
.hero-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.hero-note a { font-weight: 700; }
.floaters { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 44px 0 10px; }
.floater { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; text-decoration: none; animation: bob 5s ease-in-out infinite; }
.floater:nth-child(2n) { animation-delay: -2s; }
.floater:nth-child(3n) { animation-delay: -3.5s; }
.floater b { font-family: var(--display); }
.floater small { display: block; font-size: 12px; color: var(--ink-2); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 28px; }
.stat { padding: 20px 22px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.stat .k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1.2; }
.stat .d { font-size: 13px; color: var(--ink-2); }

/* receipt-style breakdown (cash out) */
.receipt { background: rgba(255,255,255,.55); border-radius: var(--r-sm); padding: 14px 18px; font-size: 14px; }
.receipt .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(42,26,31,.15); }
.receipt .row span:last-child { font-family: var(--mono); }
.receipt .total { border: none; font-weight: 800; font-size: 17px; padding-top: 10px; }

/* ---------- Ledger table ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 22px; }
.ledger td { padding: 11px 22px; border-top: 1px solid var(--soft-line); vertical-align: middle; }
.ledger tbody tr { transition: background .15s; }
.ledger tbody tr:hover { background: rgba(255,255,255,.4); }
.ledger .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ledger tr.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(255, 220, 160, .9); } to { background: transparent; } }
.table-wrap { overflow-x: auto; padding-bottom: 8px; }

.rank-list { list-style: none; margin: 0; padding: 0 0 8px; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 22px; border-top: 1px solid var(--soft-line); }
.rank-list .n { font-family: var(--display); font-weight: 800; font-size: 15px; width: 22px; color: var(--muted); }
.rank-list .r { margin-left: auto; font-family: var(--mono); text-align: right; font-size: 14px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.step { padding: 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--hot); color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; box-shadow: var(--shadow-sm); }
.step b { display: block; font-family: var(--display); font-size: 19px; margin: 14px 0 4px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.section-title { text-align: center; margin-top: 64px; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.6); padding: 12px 16px; outline: none;
  border-radius: var(--r-sm); transition: box-shadow .15s, background .15s;
}
.input:focus, .select:focus, .textarea:focus { background: #fff; box-shadow: 0 0 0 4px rgba(255, 61, 119, .18); }
.textarea { min-height: 96px; resize: vertical; }
.input-group { display: flex; align-items: stretch; background: rgba(255,255,255,.6); border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.85); }
.input-group:focus-within { background: #fff; box-shadow: 0 0 0 4px rgba(255, 61, 119, .18); }
.input-group .prefix { padding: 12px 4px 12px 16px; font-weight: 800; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; display: flex; align-items: center; }
.input-group .input { flex: 1; min-width: 0; border: none; background: transparent; box-shadow: none; }
.input-xl { font-size: 22px; font-weight: 700; font-family: var(--display); }
.help { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--glass-line); background: rgba(255,255,255,.5); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .15s; }
.chip:hover { background: rgba(255,255,255,.8); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.toolbar .input { max-width: 340px; border-radius: 999px; padding-left: 20px; }

/* ---------- Token cards ---------- */
.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.tok {
  border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.tok:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tok-top { display: flex; gap: 12px; align-items: center; padding: 18px 18px 6px; }
.tok-top .av { width: 48px; height: 48px; font-size: 18px; border-radius: 16px; }
.tok-sym { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tok-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.tok-body { padding: 12px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.tok-body div { background: rgba(255,255,255,.45); border-radius: 12px; padding: 8px 10px; }
.tok-body div small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.tok-body div b { font-family: var(--mono); font-size: 14px; }
.tok-foot { padding: 12px 18px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ---------- Claim ---------- */
.claim-box { max-width: 720px; margin: 0 auto; }
.claim-box .page-head { text-align: center; }
.claim-box .page-head p { margin: 0 auto; }
.claim-result { margin-top: 24px; }
.big-amt { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.04em; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.progress { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.progress li { padding: 7px 0; display: flex; gap: 10px; align-items: center; opacity: .45; font-weight: 600; }
.progress li.done, .progress li.doing { opacity: 1; }
.progress li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; flex: none; }
.progress li.doing::before { border-color: var(--hot-b); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done::before { content: "✓"; border: none; background: var(--good); color: #fff; font-size: 11px; display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Launch ---------- */
.preview { position: sticky; top: 110px; }
.split-row { display: grid; grid-template-columns: 1fr 90px 40px; gap: 8px; margin-bottom: 8px; }
.split-row .btn-sm { padding: 0; border-radius: 12px; }
.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-top: 12px; background: rgba(255,255,255,.5); gap: 2px; }
.split-bar div { height: 100%; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: 260px; display: block; }
.chart .bar { fill: url(#barGrad); }
.chart .bar.hover { fill: var(--ink); }
.chart .grid-l { stroke: rgba(42,26,31,.08); stroke-width: 1; }
.chart .axis-t { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.chart-wrap { position: relative; }
.tip {
  position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px;
  padding: 6px 10px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-sm);
  transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .1s; z-index: 5;
}
.tip.show { opacity: 1; }
.hbar { display: grid; grid-template-columns: 120px 1fr 64px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13px; font-weight: 600; }
.hbar .track { height: 10px; background: rgba(255,255,255,.55); border-radius: 999px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--hot); border-radius: 999px; }
.hbar:hover .fill { background: var(--ink); }
.hbar .val { text-align: right; font-family: var(--mono); font-weight: 400; }

.flow svg { width: 100%; height: auto; display: block; }
.flow text { font-family: var(--sans); font-size: 13px; fill: var(--ink); font-weight: 700; }
.flow .sub { font-family: var(--mono); font-size: 11px; font-weight: 400; fill: var(--ink-2); }
.flow .link { fill: none; stroke-opacity: .4; transition: stroke-opacity .15s; }
.flow .link:hover { stroke-opacity: .75; }

/* ---------- Help ---------- */
details.faq { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); margin-bottom: 12px; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow: hidden; }
details.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); background: var(--hot); color: #fff; }
details.faq p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; background: var(--ink); color: #fff; border-radius: 999px;
  padding: 12px 22px; max-width: calc(100% - 32px); font-size: 14px; box-shadow: var(--shadow);
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .3s cubic-bezier(.2,.9,.3,1.2), visibility .3s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: #ffc29e; }

.empty { padding: 40px; text-align: center; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .g-main { grid-template-columns: 1fr; }
  .g4, .stats, .steps { grid-template-columns: 1fr 1fr; }
  .preview { position: static; }
  .nav a { padding: 8px 10px; }
  .price-pill { display: none; }
}
@media (max-width: 860px) {
  .topnav { padding: 10px 16px 0; }
  .topnav-in { border-radius: 26px; padding: 8px 8px 8px 16px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 8px;
    border-radius: 22px; background: rgba(255, 245, 240, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 16px; }
  .nav-right { margin-left: auto; }
  .ticker { padding: 0 16px; }
  .content { padding: 28px 16px 56px; }
  .footer { padding: 0 16px 24px; }
  .g2, .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .stat .v { font-size: 26px; }
  .g4, .steps { grid-template-columns: 1fr; }
  .big-amt { font-size: 48px; }
  .hbar { grid-template-columns: 96px 1fr 52px; }
  .ledger th, .ledger td { padding-left: 14px; padding-right: 14px; }
  .card-h, .card-b { padding-left: 16px; padding-right: 16px; }
  .hero-search { padding-left: 16px; }
  .hero-search .btn { padding: 11px 16px; }
  .floater:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* fixes */
.floater { text-align: left; }
@media (max-width: 860px) {
  .flow .card-b { overflow-x: auto; }
  .flow svg { min-width: 680px; }
}
@media (max-width: 520px) {
  .feed-table th:nth-child(4), .feed-table td:nth-child(4) { display: none; }
}

/* ================= multichain + market builder ================= */
.cdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.chain-pick { position: relative; }
.chain-btn { display: inline-flex; align-items: center; gap: 8px; border: none; background: rgba(255,255,255,.65); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chain-btn .caret { font-size: 10px; opacity: .6; }
.chain-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; border-radius: 20px; padding: 8px; display: none; z-index: 40; background: rgba(255,247,242,.94); }
.chain-menu.open { display: block; }
.chain-opt { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: none; background: transparent; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.chain-opt:hover:not(:disabled), .chain-opt.on { background: #fff; }
.chain-opt:disabled { opacity: .45; cursor: not-allowed; }
.chain-opt b { display: block; font-size: 14px; }
.chain-opt small { font-size: 12px; color: var(--muted); }

.rchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 18px 0; }
.card-b .rchips, .h2 + .muted + .rchips { padding: 10px 0 0; }
.rchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px 3px 4px; border-radius: 999px; background: color-mix(in srgb, var(--t) 14%, white); color: color-mix(in srgb, var(--t) 70%, #2a1a1f); }
.rchip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--t); color: #fff; font-size: 10px; }

.chain-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--soft-line); }
.chain-row:first-child { border-top: none; }
.chain-row small { display: block; font-size: 12px; color: var(--muted); }

/* builder */
.bsec { margin-bottom: 20px; }
.bsec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bsec-h b { font-family: var(--display); font-size: 20px; }
.bnum { width: 28px; height: 28px; border-radius: 10px; background: var(--hot); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; }
.chain-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chain-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 20px; border: 2px solid transparent; background: var(--glass); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .15s, border-color .15s; }
.chain-card:hover:not(:disabled) { transform: translateY(-2px); }
.chain-card.on { border-color: var(--ink); background: #fff; }
.chain-card b { font-family: var(--display); font-size: 18px; }
.chain-card small { font-size: 12px; color: var(--muted); }
.chain-card:disabled { opacity: .5; cursor: not-allowed; }
.chain-card .cdot { width: 14px; height: 14px; margin-bottom: 6px; }

.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.preset { text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.45); cursor: pointer; }
.preset b { display: block; font-size: 14px; }
.preset small { font-size: 11.5px; color: var(--ink-2); }
.preset.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.preset.on small { color: rgba(255,255,255,.75); }
.preset:disabled:not(.on) { opacity: .5; cursor: default; }

.rules { display: grid; gap: 12px; }
.rule { border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; transition: box-shadow .2s; position: relative; }
.rule::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t); opacity: .25; transition: opacity .2s; }
.rule.on::before { opacity: 1; }
.rule.on { box-shadow: 0 8px 30px -14px color-mix(in srgb, var(--t) 70%, transparent); }
.rule-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; }
.rule-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--t) 16%, white); color: var(--t); font-size: 18px; flex: none; }
.rule.on .rule-ic { background: var(--t); color: #fff; }
.rule-t { flex: 1; min-width: 0; }
.rule-t b { display: block; font-family: var(--display); font-size: 17px; }
.rule-t small { display: block; font-size: 12.5px; color: var(--ink-2); }
.rule-b { padding: 0 18px 16px 20px; display: none; }
.rule.on .rule-b, .rule[data-rule="creator"] .rule-b { display: block; }
.mini { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 10px 0 6px; }
.knob { display: flex; align-items: center; gap: 12px; }
.knob output { font-family: var(--mono); font-size: 14px; min-width: 52px; text-align: right; font-weight: 500; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,.7); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--t, var(--hot-b)); box-shadow: var(--shadow-sm); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--t, var(--hot-b)); cursor: pointer; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(42,26,31,.15); cursor: pointer; transition: background .2s; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--t, var(--hot-b)); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.55); }
.seg button { border: none; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button.on { background: #fff; box-shadow: var(--shadow-sm); }
.seg-sm button { padding: 6px 11px; font-size: 12.5px; }
.input-group .suffix { display: flex; align-items: center; padding: 0 14px; font-weight: 700; color: var(--ink-2); }

/* simulator */
.sim-in { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.sim-in .input-group { flex: 1; min-width: 140px; }
.flowbar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.5); gap: 2px; }
.fseg { height: 100%; transition: flex .35s ease; }
.flowbar.run .fseg { animation: grow .7s ease both; transform-origin: left; }
.flowbar.run .fseg:nth-child(2) { animation-delay: .1s; }
.flowbar.run .fseg:nth-child(3) { animation-delay: .2s; }
.flowbar.run .fseg:nth-child(4) { animation-delay: .3s; }
@keyframes grow { from { transform: scaleX(0); } }
.flowlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin: 10px 0 6px; color: var(--ink-2); }
.flowlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.sim-steps { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.sim-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: rgba(42,26,31,.1); }
.sim-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; transition: opacity .25s, transform .25s; }
.sim-steps li.off { opacity: .45; }
.sim-steps .sic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #fff; color: var(--t, var(--ink)); font-size: 15px; box-shadow: var(--shadow-sm); position: relative; z-index: 1; transition: background .25s, color .25s, transform .25s; }
.sim-steps li b { display: block; font-size: 14px; }
.sim-steps li small { display: block; font-size: 12.5px; color: var(--ink-2); }
.sim-steps li.swap .sic { background: #2a1a1f; color: #fff; }
.sim-steps li.final .sic { background: var(--hot); color: #fff; }
.sim-steps li.final .big { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); }
.sim-steps.playing li { opacity: .35; }
.sim-steps li.lit .sic { transform: scale(1.15); background: var(--t, var(--hot-b)); color: #fff; }
.sim-steps li.lit { opacity: 1; transform: translateX(4px); }
#simSteps:has(.lit) li:not(.lit):not(.done) { opacity: .35; }

.recipe { margin-top: 16px; }
.recipe-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.recipe-head b { display: block; font-family: var(--display); font-size: 18px; }
.recipe-head small { font-size: 12.5px; color: var(--muted); }
.feeline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--display); }
.feeline span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.feeline span:not(:first-child) { margin-left: 10px; }
.feeline b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.feeline em { font-style: normal; font-size: 18px; color: var(--hot-b); font-weight: 700; }
.errs { margin: 10px 0 14px; padding: 10px 14px 10px 30px; border-radius: 14px; background: #ffe3e6; color: #9b1c2e; font-size: 13px; }

@media (max-width: 1080px) {
  .chain-cards { grid-template-columns: repeat(2, 1fr); }
  .presets { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .presets { grid-template-columns: 1fr 1fr; }
  .chain-btn { padding: 8px 10px; font-size: 13px; }
  .chain-menu { right: -60px; }
  .feeline b { font-size: 24px; }
}
@media (max-width: 520px) {
  .topnav-in { gap: 8px; padding-left: 12px; }
  .brand { font-size: 20px; }
  .brand-ic { width: 28px; height: 28px; }
  .chain-btn .cname { display: none; }
  .chain-btn { padding: 10px 12px; }
  .nav-right { gap: 6px; }
  #walletBtn { padding: 9px 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}
.brand-mark { width: 34px; height: 34px; display: block; filter: drop-shadow(0 4px 10px rgba(255, 61, 119, .3)); transition: transform .3s cubic-bezier(.2,.9,.3,1.3); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.footer .brand-mark { width: 26px; height: 26px; }
@media (max-width: 520px) { .brand-mark { width: 28px; height: 28px; } }
.add-funds-btn { background: rgba(255,255,255,.7); }
@media (max-width: 860px) { .add-funds-btn { display: none; } }
