/* KymaSwap: original design, inspired by the friendly rounded look of the big DEX front-ends. */
:root {
  --r-card: 26px; --r-in: 18px; --r-btn: 16px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --p1: #7c5cff; --p2: #22d3c5;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3c5 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,197,.18));
}
:root[data-theme="dark"] {
  --bg1: #0c0820; --bg2: #191038;
  --card: rgba(31, 24, 58, .86); --card-solid: #1f183a; --card2: #2a2150; --input: #150f2f;
  --line: rgba(160, 140, 230, .18); --text: #f6f2ff; --muted: #a89fd0; --faint: #6f668f;
  --up: #37d5a8; --down: #ff6b8b; --warn: #ffb648;
  --shadow: 0 24px 60px -18px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.04) inset;
  --hover: rgba(255,255,255,.06);
}
:root[data-theme="light"] {
  --bg1: #f6f2ff; --bg2: #e4fbf8;
  --card: rgba(255,255,255,.9); --card-solid: #ffffff; --card2: #f0ebfd; --input: #f3effd;
  --line: rgba(110, 80, 200, .16); --text: #2a2050; --muted: #6f6598; --faint: #a59cc6;
  --up: #0fae87; --down: #e5385f; --warn: #d98a12;
  --shadow: 0 24px 50px -22px rgba(96, 62, 190, .35), 0 2px 0 rgba(255,255,255,.9) inset;
  --hover: rgba(100, 70, 200, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text);
  background: var(--bg1); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--p2); outline-offset: 2px; border-radius: 10px; }

/* background bubbles */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(160deg, var(--bg1), var(--bg2)); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.o1 { width: 460px; height: 460px; background: #6a4dff; left: -120px; top: 60px; }
.o2 { width: 400px; height: 400px; background: #10c9b8; right: -100px; top: 320px; animation-delay: -5s; }
.o3 { width: 320px; height: 320px; background: #b04dff; left: 44%; bottom: -140px; animation-delay: -9s; opacity: .35; }
[data-theme="light"] .orb { opacity: .28; }
@keyframes float { 0%,100% { transform: translate(0,0) } 50% { transform: translate(30px,-26px) } }
header, main, footer, .demo-bar { position: relative; z-index: 1; }

/* demo bar */
.demo-bar { background: linear-gradient(90deg, rgba(255,182,72,.16), rgba(255,107,139,.14)); border-bottom: 1px solid var(--line);
  font-size: 13px; text-align: center; padding: 8px 40px; color: var(--text); }
.demo-bar b { color: var(--warn); }
.demo-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 8px; box-shadow: 0 0 0 4px rgba(255,182,72,.2); }
.demo-bar .x { position: absolute; right: 14px; top: 3px; font-size: 22px; color: var(--muted); }
.demo-bar.hide { display: none; }

/* header */
.topbar { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg1) 62%, transparent); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(124,92,255,.5)); }
.logo.sm { width: 26px; height: 26px; filter: none; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: 14px; font-weight: 700; color: var(--muted); font-size: 15px; transition: .18s; display: inline-flex; align-items: center; gap: 4px; }
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a.active { color: var(--text); background: var(--grad-soft); box-shadow: 0 0 0 1px var(--line) inset; }
.ext { width: 13px; height: 13px; opacity: .7; }
.right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(55,213,168,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(55,213,168,0) } 100% { box-shadow: 0 0 0 0 rgba(55,213,168,0) } }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); transition: .18s; }
.icon-btn:hover { transform: translateY(-1px); background: var(--hover); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.menu { display: none; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: var(--r-btn);
  font-weight: 800; font-size: 16px; letter-spacing: .1px; transition: transform .15s, box-shadow .2s, filter .2s, opacity .2s; }
.btn.small { padding: 10px 16px; font-size: 14px; border-radius: 14px; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(124,92,255,.65), 0 -3px 0 rgba(0,0,0,.14) inset; }
.btn.primary:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 30px -10px rgba(124,92,255,.75), 0 -3px 0 rgba(0,0,0,.14) inset; }
.btn.primary:active:not(:disabled) { transform: translateY(0) scale(.99); }
.btn.ghost { background: var(--card2); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--hover); }
.btn.block { width: 100%; padding: 17px; font-size: 17px; }
.btn:disabled { background: var(--card2); color: var(--faint); box-shadow: none; cursor: not-allowed; }
.btn.warn { background: linear-gradient(135deg, #ff8a5c, #ff5c8a); color: #fff; }
.spin { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg) } }

/* page frame */
.main { flex: 1; padding-top: 34px; padding-bottom: 60px; outline: none; }
.page { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } }
.hero { text-align: center; margin: 4px 0 26px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; margin: 0 0 10px; letter-spacing: -1px; font-weight: 800; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 auto; color: var(--muted); max-width: 560px; font-size: 17px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 4px; }
.card-h h2 { margin: 0; font-size: 21px; font-weight: 800; }
.card-h small { display: block; color: var(--muted); font-weight: 600; font-size: 13.5px; margin-top: 3px; }
.card-b { padding: 16px 24px 24px; }
.tools { display: flex; gap: 6px; }
.tool { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: .18s; }
.tool:hover { background: var(--hover); color: var(--text); }
.tool svg { width: 21px; height: 21px; }
.tool.spinning svg { animation: rot .8s linear; }

/* swap layout */
.trade { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 26px; align-items: start; max-width: 1080px; margin: 0 auto; }
.swap { width: 100%; }
.trade > *, .liq > *, .stats > * { min-width: 0; }
body { overflow-x: hidden; }
.panel { background: var(--input); border: 1px solid var(--line); border-radius: var(--r-in); padding: 14px 16px 15px; transition: border-color .2s, box-shadow .2s; }
.panel:focus-within { border-color: color-mix(in srgb, var(--p2) 60%, transparent); box-shadow: 0 0 0 4px rgba(34,211,197,.12); }
.panel .row1 { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.panel .row1 .bal { cursor: pointer; }
.panel .row1 .bal:hover { color: var(--p2); }
.panel .row2 { display: flex; align-items: center; gap: 10px; }
.amt { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; text-align: right; color: var(--text); order: 2; }
.amt::placeholder { color: var(--faint); }
.tok-btn { order: 1; display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-weight: 800; font-size: 17px; transition: .18s; white-space: nowrap; }
.tok-btn:hover { background: var(--hover); transform: translateY(-1px); }
.tok-btn svg.chev { width: 16px; height: 16px; opacity: .7; }
.panel .row3 { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; min-height: 26px; font-size: 13px; color: var(--muted); font-weight: 700; }
.pcts { display: flex; gap: 6px; }
.pct { padding: 3px 9px; border-radius: 9px; background: var(--card2); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--p2); }
.pct:hover { background: var(--hover); }
.flip-wrap { display: grid; place-items: center; height: 0; position: relative; z-index: 2; }
.flip { width: 42px; height: 42px; border-radius: 14px; background: var(--card-solid); border: 4px solid var(--card-solid); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .35s; }
.flip:hover { transform: rotate(180deg); }
.flip svg { width: 20px; height: 20px; color: var(--p2); }
.swap .panel + .flip-wrap + .panel { margin-top: 0; }
.rate-line { display: flex; justify-content: space-between; align-items: center; margin: 14px 4px 4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.rate-line b { color: var(--text); }
.details { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--input); border: 1px solid var(--line); display: grid; gap: 9px; font-size: 13.5px; }
.details .kv { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-weight: 700; }
.details .kv b { color: var(--text); font-weight: 800; text-align: right; }
.route { display: inline-flex; align-items: center; gap: 4px; }
.route .arr { color: var(--faint); }
.impact-low { color: var(--up) !important; } .impact-mid { color: var(--warn) !important; } .impact-high { color: var(--down) !important; }
.swap .btn.block { margin-top: 14px; }

/* token badge */
.tk { position: relative; display: inline-grid; place-items: center; width: var(--s, 30px); height: var(--s, 30px); border-radius: 50%; color: #fff; font-weight: 900; font-size: calc(var(--s, 30px) * .46); flex: none;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 3px 8px rgba(0,0,0,.28), inset 0 -3px 0 rgba(0,0,0,.14), inset 0 2px 0 rgba(255,255,255,.28); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.pair { display: inline-flex; }
.pair .tk + .tk { margin-left: -10px; box-shadow: 0 0 0 3px var(--card-solid), 0 3px 8px rgba(0,0,0,.28); }

/* chart card */
.chart .head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pairsel { display: inline-flex; align-items: center; gap: 12px; }
.pairsel .name { font-weight: 800; font-size: 20px; }
.price-big { font-size: 32px; font-weight: 800; letter-spacing: -.6px; margin-top: 10px; }
.chg { font-size: 15px; font-weight: 800; margin-left: 8px; }
.up { color: var(--up); } .down { color: var(--down); }
.tf { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); gap: 2px; }
.tf button { padding: 7px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--muted); }
.tf button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(124,92,255,.7); }
.chart-svg { display: block; width: 100%; max-width: 100%; min-width: 0; height: 300px; margin-top: 10px; }
.chart .foot { display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 24px 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.chart .foot b { display: block; color: var(--text); font-size: 15px; margin-top: 2px; }
.tip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.35); font-size: 12.5px; font-weight: 700; transform: translate(-50%, -110%); white-space: nowrap; z-index: 5; opacity: 0; transition: opacity .12s; }
.chart .wrapc { position: relative; padding: 0 14px; }

/* recent tx */
.recent { max-width: 1080px; margin: 24px auto 0; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.tx:first-child { border-top: 0; }
.tx .ok { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(55,213,168,.16); color: var(--up); flex: none; }
.tx .t { margin-left: auto; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; font-weight: 700; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }

/* liquidity */
.liq { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 26px; max-width: 1080px; margin: 0 auto; align-items: start; }
.pos { border: 1px solid var(--line); background: var(--input); border-radius: 20px; padding: 16px; margin-top: 12px; }
.pos .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; }
.pos .rows { display: grid; gap: 7px; margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 700; }
.pos .rows div { display: flex; justify-content: space-between; } .pos .rows b { color: var(--text); }
.pos .acts { display: flex; gap: 10px; margin-top: 14px; }
.pos .acts .btn { flex: 1; padding: 11px; font-size: 14px; }
.plus { display: grid; place-items: center; height: 0; position: relative; z-index: 2; }
.plus span { width: 34px; height: 34px; border-radius: 12px; background: var(--card-solid); border: 4px solid var(--card-solid); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-weight: 900; color: var(--p2); font-size: 18px; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--input); border: 1px solid var(--line); text-align: center; }
.lp-stats b { display: block; font-size: 15px; } .lp-stats span { font-size: 12px; color: var(--muted); font-weight: 700; }
.slider { width: 100%; accent-color: #7c5cff; margin: 12px 0 4px; }
.big-pct { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; }

/* pools */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { padding: 18px 20px; }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.stat b { display: block; font-size: 27px; margin-top: 5px; letter-spacing: -.5px; font-weight: 800; }
.stat i { font-style: normal; font-size: 13px; font-weight: 800; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 20px 24px 8px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); gap: 2px; }
.seg button { padding: 8px 15px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--grad); color: #fff; }
.search { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 0 14px; height: 42px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); min-width: 240px; }
.search input { background: none; border: 0; outline: 0; width: 100%; font-weight: 700; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: right; padding: 12px 16px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; }
.tbl td { text-align: right; padding: 16px; border-top: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 24px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 24px; }
.tbl tbody tr { transition: background .15s; } .tbl tbody tr:hover { background: var(--hover); }
.tbl .nm { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.tbl .nm small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.new-tag { display: inline-block; padding: 1px 7px; border-radius: 7px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .5px; vertical-align: 2px; margin-left: 6px; }
.apr { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(55,213,168,.14); color: var(--up); font-weight: 800; }
.scroll { overflow-x: auto; }

/* modal */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(8, 4, 24, .62); backdrop-filter: blur(6px); animation: fade .18s ease both; }
@keyframes fade { from { opacity: 0 } }
.modal { width: 100%; max-width: 440px; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; background: var(--card-solid); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.7); animation: pop .22s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96) } }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 8px; }
.modal header h3 { margin: 0; font-size: 20px; font-weight: 800; }
.modal .body { padding: 8px 22px 22px; overflow-y: auto; }
.close { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 24px; color: var(--muted); }
.close:hover { background: var(--hover); color: var(--text); }
.m-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 16px; background: var(--input); border: 1px solid var(--line); margin-bottom: 14px; }
.m-search input { flex: 1; background: none; border: 0; outline: 0; font-weight: 700; font-size: 16px; }
.m-search svg { width: 20px; height: 20px; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.quick button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-weight: 800; }
.quick button:hover { background: var(--hover); }
.list { display: grid; gap: 2px; margin: 0 -8px; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; text-align: left; transition: background .15s; }
.li:hover:not(:disabled) { background: var(--hover); }
.li:disabled { opacity: .45; cursor: not-allowed; }
.li .nm { font-weight: 800; font-size: 17px; } .li small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.li .b { margin-left: auto; font-weight: 800; text-align: right; } .li .b small { font-size: 12px; }
.demo-tag { display: inline-block; padding: 1px 7px; border-radius: 7px; background: rgba(255,182,72,.18); color: var(--warn); font-size: 10.5px; font-weight: 900; letter-spacing: .5px; vertical-align: 2px; margin-left: 5px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px; border-radius: 18px; border: 1px solid var(--line); background: var(--input); margin-top: 10px; text-align: left; transition: .18s; }
.opt:hover { transform: translateY(-2px); border-color: var(--p2); }
.opt .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); font-size: 24px; }
.opt b { font-size: 16.5px; display: block; } .opt small { color: var(--muted); font-weight: 700; }
.note { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 14px; line-height: 1.5; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 18px; }
.opts .pill { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); font-weight: 800; font-size: 14px; }
.opts .pill.on { background: var(--grad); color: #fff; border-color: transparent; }
.opts .custom { display: flex; align-items: center; gap: 4px; padding: 0 12px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); }
.opts .custom input { width: 52px; background: none; border: 0; outline: 0; text-align: right; font-weight: 800; }
.sec-h { font-weight: 800; margin: 16px 0 2px; display: flex; align-items: center; gap: 6px; }
.review .big { display: flex; align-items: center; justify-content: space-between; font-size: 26px; font-weight: 800; padding: 6px 0; }
.review .down-arrow { text-align: center; color: var(--p2); font-size: 22px; margin: 2px 0; }
.success { text-align: center; padding: 8px 0 4px; }
.success .ring { width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(34,211,197,.6); animation: pop .4s cubic-bezier(.2,.9,.3,1.3) both; }
.success .ring svg { width: 42px; height: 42px; }
.success h4 { margin: 0 0 6px; font-size: 22px; } .success p { color: var(--muted); font-weight: 700; margin: 0 0 12px; }

/* toasts */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.toast { display: flex; gap: 12px; align-items: flex-start; width: min(360px, calc(100vw - 36px)); padding: 14px 16px; border-radius: 18px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 20px 44px -12px rgba(0,0,0,.55); animation: slide .3s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes slide { from { opacity: 0; transform: translateX(30px) } }
.toast .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(55,213,168,.18); color: var(--up); flex: none; }
.toast.err .ic { background: rgba(255,107,139,.18); color: var(--down); }
.toast b { display: block; font-size: 15px; } .toast span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.toast .h { font-family: var(--mono); font-size: 12px; color: var(--p2); }

/* skeleton */
.skel { color: transparent !important; background: linear-gradient(90deg, var(--card2), var(--hover), var(--card2)); background-size: 200% 100%; animation: shimmer 1s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0 } }

.footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg1) 55%, transparent); backdrop-filter: blur(10px); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 68px; color: var(--muted); font-weight: 700; font-size: 14px; flex-wrap: wrap; }
.fl, .fr { display: flex; align-items: center; gap: 12px; } .fr { gap: 20px; } .fr a:hover { color: var(--text); }

/* responsive */
@media (max-width: 1000px) {
  .trade, .liq { grid-template-columns: 1fr; max-width: 520px; }
  .trade .chart { order: 2; } .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1140px) { .chip.net { display: none; } .bar { gap: 14px; } .nav a { padding: 9px 11px; } }
@media (max-width: 980px) {
  .nav { position: fixed; left: 0; right: 0; top: 108px; flex-direction: column; padding: 12px 16px 18px; background: var(--card-solid); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px rgba(0,0,0,.35); display: none; }
  .nav.open { display: flex; } .nav a { padding: 14px; font-size: 17px; }
  .icon-btn.menu { display: grid; } .chip.net { display: none; }
}
@media (max-width: 480px) { .brand span { display: none; } .right { gap: 8px; } .bar { gap: 8px; } }
@media (max-width: 560px) {
  .wrap { padding: 0 14px; } .bar { gap: 10px; } .card-h { padding: 18px 18px 2px; } .card-b { padding: 14px 18px 20px; }
  .hero h1 { font-size: 30px; } .hero p { font-size: 15px; } .price-big { font-size: 26px; }
  .amt { font-size: 26px; } .price-big { font-size: 27px; } .chart-svg { height: 240px; } .foot { height: auto; padding: 18px 14px; }
  .btn.small { padding: 9px 12px; } .demo-bar { font-size: 12px; padding: 8px 34px 8px 12px; text-align: left; }
  .tbl .hide-s { display: none; } .search { min-width: 0; width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
