/* Jade — Zyn's launchpad, in Zyn's stone. The same ground as Lend: obsidian
   and mineral, jade as a material (brushed, never flat), mint for what rises
   and oxide for what falls. Numbers are set in Geist Mono. */

@font-face { font-family: Archivo; src: url(/assets/fonts/Archivo-Variable.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: Geist; src: url(/assets/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --obsidian: #06110e;
  --stone-1: #0b1915;
  --stone-2: #10221d;
  --stone-3: #173029;
  --stone-4: #22403a;
  --mineral: #f2f1eb;
  --mineral-2: #d8d6cb;
  --steel: #8a9691;
  --steel-2: #6b7772;
  --jade: #0b7a61;
  --jade-2: #13a07e;
  --jade-3: #58e8bb;
  --mint: #35e6ae;
  --oxide: #e8794f;
  --display: Archivo, 'Arial Black', sans-serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
  --line: rgba(242, 241, 235, 0.09);
  --brushed: linear-gradient(100deg, #0a6b55 0%, #1fb489 22%, #7af5cf 38%, #16a07d 52%, #0b7a61 70%, #3fd8a8 86%, #0b7a61 100%);
  --brushed-text: linear-gradient(100deg, #2fc497 0%, #6ff0c8 30%, #c6fff0 42%, #45dcac 56%, #20b387 76%, #5ee9bd 100%);
  --cut: radial-gradient(circle at 72% 12%, rgba(122, 245, 207, 0.32), transparent 34%), linear-gradient(128deg, #052a22, #0b7a61 46%, #06362d 72%, #031a15);
  --up: var(--mint);
  --down: var(--oxide);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; min-width: 320px; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(1200px 640px at 85% 0%, #10251f 0%, rgba(6, 17, 14, 0) 70%) no-repeat, var(--obsidian); color: var(--mineral); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
dd, .j-table, .j-card-cap, .j-card-meta, .j-zecusd { font-variant-numeric: tabular-nums; }

.grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: 0.055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------ header (as Lend's) */
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 14px max(var(--gutter), calc((100vw - var(--max)) / 2)); background: rgba(6, 17, 14, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 850 21px/1 var(--display); font-stretch: 125%; letter-spacing: 0.02em; }
.lockup img { width: 34px; height: 34px; }
.lockup-app { font-weight: 500; font-stretch: 100%; letter-spacing: 0.01em; color: var(--steel); padding-left: 11px; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 26px; font-size: 15px; justify-self: center; }
.tabs a { text-decoration: none; color: var(--steel); padding: 6px 0; transition: color .2s; }
.tabs a:hover { color: var(--mineral); }
.tabs a[aria-current='page'] { color: var(--mineral); box-shadow: inset 0 -1px 0 var(--jade-3); }
.top-right { display: flex; align-items: center; gap: 12px; }
.j-zecusd { font: 500 12px/1 var(--mono); color: var(--steel); white-space: nowrap; }
.net { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--jade-3); padding: 7px 9px; border: 1px solid rgba(88, 232, 187, 0.28); border-radius: 999px; text-decoration: none; transition: border-color .2s; }
.net:hover { border-color: var(--jade-3); }
.connect { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; color: #03120d; background: var(--brushed); background-size: 180% 100%; transition: background-position .5s; white-space: nowrap; }
.connect:hover { background-position: 100% 0; }
.connect.on { color: var(--mineral); background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); font-family: var(--mono); font-weight: 500; font-size: 13px; }

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 60px) var(--gutter) 72px; }

/* ------------------------------------------------------------ type */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--jade-3); margin-bottom: 16px; }
.display { font: 850 clamp(44px, 7vw, 92px)/0.95 var(--display); font-stretch: 118%; letter-spacing: -0.01em; text-wrap: balance; background: var(--brushed-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.display-s { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px; }
.lede { max-width: 52ch; margin-top: 18px; font-size: clamp(16px, 1.5vw, 18px); color: var(--mineral-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.j-muted { color: var(--steel); }
.j-note { margin: 14px 0 0; color: var(--steel); font-size: 13px; line-height: 1.5; }
.j-status { min-height: 18px; margin: 10px 0 0; color: var(--jade-3); font-size: 13.5px; line-height: 1.45; }
.j-hint { min-height: 0; margin: 8px 0 0; color: var(--oxide); font-size: 13px; line-height: 1.45; }
.j-hint:empty { display: none; }
.j-link { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--jade-3); font: inherit; text-decoration: underline; }
.j-ticker { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--steel); }

/* ------------------------------------------------------------ shared pieces */
.j-panel { min-width: 0; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, var(--stone-1), rgba(11, 25, 21, 0.6)); box-shadow: inset 0 0 0 1px var(--line); }
.j-panel-head { margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.j-panel-head h2, .j-about h2 { font: 750 18px/1.15 var(--display); font-stretch: 112%; }
.j-panel-head span { color: var(--steel); font-size: 12.5px; }
.j-primary { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--brushed); background-size: 180% 100%; color: #03120d; font-size: 15px; font-weight: 650; transition: background-position .5s, opacity .2s; }
.j-primary:hover:not(:disabled) { background-position: 100% 0; }
.j-primary:disabled { opacity: .4; cursor: not-allowed; }

/* A coin's square: its picture, or a cut of jade with its letter. */
.j-thumb { flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--cut); box-shadow: inset 0 0 0 1px rgba(122, 245, 207, 0.14); color: #e6fff6; font: 800 28px/1 var(--display); font-stretch: 112%; }
.j-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-thumb-lg { width: 92px; height: 92px; border-radius: 16px; font-size: 36px; }

.j-bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--stone-3); }
.j-bar i { height: 100%; display: block; border-radius: inherit; background: var(--brushed); background-size: 220% 100%; transition: width .4s ease; }
.j-bar-lg { height: 10px; }

/* ------------------------------------------------------------ coins */
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; padding-bottom: clamp(28px, 4vw, 44px); }
.ledger { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ledger div { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.ledger div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.ledger div:nth-child(even) { padding-left: 18px; }
.ledger div.wide { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
.ledger dt { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 9px; }
.ledger dd { font: 500 clamp(19px, 2vw, 24px)/1.1 var(--mono); }

.j-spotlight { margin-bottom: 26px; }
.j-spot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'pic body figs' 'pic bar bar'; gap: 14px 22px; align-items: center; padding: 22px; border-radius: 18px; text-decoration: none; background: radial-gradient(600px 220px at 0% 0%, rgba(53, 230, 174, 0.12), transparent 70%), var(--stone-1); box-shadow: inset 0 0 0 1px rgba(88, 232, 187, 0.22); transition: box-shadow .2s; }
.j-spot:hover { box-shadow: inset 0 0 0 1px var(--jade-3); }
.j-spot .j-thumb { grid-area: pic; }
.j-spot-body { grid-area: body; min-width: 0; }
.j-spot-body .eyebrow { margin-bottom: 10px; }
.j-spot-body h2 { font: 800 clamp(22px, 2.6vw, 30px)/1.1 var(--display); font-stretch: 112%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-spot-body h2 .j-ticker { font-size: 13px; margin-left: 6px; }
.j-spot-body .j-desc { margin-top: 6px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.j-spot-figs { grid-area: figs; display: flex; gap: 28px; }
.j-spot-figs div { display: grid; gap: 6px; }
.j-spot-figs span { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.j-spot-figs b { font: 500 18px/1.1 var(--mono); white-space: nowrap; }
.j-spot-bar { grid-area: bar; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.j-spot-bar span { font: 500 13px/1 var(--mono); color: var(--jade-3); }

.j-tools { padding: 0 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.j-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.j-sorts button, .j-tf button, .j-sides button, .j-presets button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--line); color: var(--mineral-2); font-size: 13px; font-weight: 500; transition: color .15s, box-shadow .15s, background .15s; }
.j-sorts button:hover, .j-tf button:hover, .j-presets button:hover { color: var(--mineral); box-shadow: inset 0 0 0 1px var(--stone-4); }
.j-sorts button.active, .j-tf button.active { color: #03120d; background: var(--jade-3); box-shadow: none; font-weight: 600; }
.j-search { width: min(100%, 340px); height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--line); }
.j-search:focus-within { box-shadow: inset 0 0 0 1px var(--jade-2); }
.j-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.j-search input::placeholder { color: var(--steel-2); }
.j-search kbd { padding: 1px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); color: var(--steel); font: 500 11px/1.4 var(--mono); }

.j-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.j-card { min-width: 0; padding: 16px; display: flex; gap: 14px; border-radius: 16px; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s, background .15s; }
.j-card:hover { background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); transform: translateY(-2px); }
.j-card-body { min-width: 0; flex: 1; display: grid; gap: 7px; align-content: start; }
.j-card h3 { overflow: hidden; font-size: 16px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.j-card h3 .j-ticker { margin-left: 6px; }
.j-desc { color: var(--mineral-2); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.j-card .j-desc { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--steel); }
.j-card-cap { display: flex; align-items: baseline; gap: 10px; font: 500 14px/1.2 var(--mono); }
.j-card-cap span { font-size: 12.5px; }
.j-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; white-space: nowrap; color: var(--steel); font-size: 12px; }
.j-card-preview:hover { transform: none; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--line); }
.j-empty { grid-column: 1 / -1; padding: 50px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); color: var(--steel); text-align: center; }
.j-empty a { color: var(--jade-3); font-weight: 600; }

/* ------------------------------------------------------------ create */
.j-create { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.j-create-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); }
.j-create-form label { display: grid; gap: 7px; }
.j-create-form label > span { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.j-create-form label em { font-style: normal; text-transform: none; letter-spacing: 0; }
.j-create-form input[type='text'], .j-create-form textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--stone-4); font-size: 16px; }
.j-create-form input[type='text']:focus, .j-create-form textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--jade-3); }
.j-create-form textarea { resize: vertical; line-height: 1.45; }
.j-create-form small { color: var(--steel); font-size: 12px; }
.j-file input { font-size: 13px; color: var(--steel); }
.j-file input::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--stone-3); color: var(--mineral); font: 500 13px var(--sans); cursor: pointer; }
.j-terms { padding: 12px 14px; border-radius: 10px; background: rgba(53, 230, 174, 0.07); box-shadow: inset 0 0 0 1px rgba(88, 232, 187, 0.18); color: var(--mineral-2); font-size: 13.5px; line-height: 1.5; }
.j-facts { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--steel); font-size: 13.5px; line-height: 1.45; }
.j-facts b { color: var(--mineral); font-weight: 600; }
.j-preview { position: sticky; top: 100px; display: grid; gap: 4px; }

/* ------------------------------------------------------------ one coin */
.crumbs { padding-bottom: 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); color: var(--steel); font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.crumbs a { color: var(--jade-3); text-decoration: none; }
.crumbs strong { color: var(--mineral); font-weight: 500; }
.j-coin-head { padding: 24px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.j-coin-id { min-width: 0; }
.j-coin-id .eyebrow { margin-bottom: 10px; }
.j-coin-id h1 { overflow: hidden; font: 850 clamp(28px, 3.6vw, 46px)/1 var(--display); font-stretch: 115%; text-overflow: ellipsis; white-space: nowrap; }
.j-coin-sub { margin-top: 10px; color: var(--steel); font-size: 14px; }
.j-coin-sub #coin-symbol { color: var(--mineral); font-family: var(--mono); }
.j-copy { padding: 3px 8px; border: 0; border-radius: 6px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--steel); font: 500 12px var(--mono); }
.j-copy:hover { color: var(--mineral); }
.j-coin-cap { display: grid; justify-items: end; gap: 6px; text-align: right; }
.j-coin-cap span { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.j-coin-cap strong { font: 500 clamp(22px, 2.6vw, 30px)/1.1 var(--mono); }
.j-coin-cap b { font: 500 14px/1 var(--mono); }

.j-coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; align-items: start; }
.j-coin-main, .j-coin-side { min-width: 0; display: grid; gap: 16px; }
.j-coin-side { position: sticky; top: 92px; }
.j-chart-panel { padding: 16px; }
.j-chart-tools { margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.j-tf { display: flex; gap: 4px; }
.j-tf button { min-height: 30px; padding: 0 11px; font: 500 12px var(--mono); }
.j-chart { width: 100%; height: 400px; }
.j-progress-top { margin-bottom: 12px; display: flex; justify-content: space-between; font-weight: 600; }
.j-progress-top b { font: 500 15px/1.4 var(--mono); color: var(--jade-3); }
.j-progress p { margin-top: 12px; color: var(--steel); font-size: 13.5px; line-height: 1.5; }

.j-table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.j-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.j-table th { position: sticky; top: 0; padding: 9px 10px; background: var(--stone-1); color: var(--steel); font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-align: left; text-transform: uppercase; }
.j-table td { padding: 10px; border-top: 1px solid var(--line); white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.j-table a { color: var(--jade-3); text-decoration: none; font-family: var(--sans); font-weight: 500; }

.j-trade { display: grid; gap: 12px; }
.j-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--line); }
.j-sides button { min-height: 40px; font-size: 14px; font-weight: 600; background: transparent; box-shadow: none; }
.j-sides button[data-trade='buy'].active { background: var(--mint); color: #03120d; }
.j-sides button[data-trade='sell'].active { background: var(--oxide); color: #1a0a04; }
.j-balance { color: var(--steel); font: 500 12.5px/1.4 var(--mono); }
.j-amount { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-radius: 12px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--stone-4); }
.j-amount:focus-within { box-shadow: inset 0 0 0 1px var(--jade-3); }
.j-amount input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 22px/1 var(--mono); }
.j-amount b { color: var(--steel); font: 500 12.5px var(--mono); white-space: nowrap; }
.j-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.j-presets button { min-height: 32px; padding: 0 4px; font: 500 12px var(--mono); }
.j-quote, .j-facts-list { display: grid; gap: 9px; }
.j-quote div, .j-facts-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; }
.j-quote dt, .j-facts-list dt { color: var(--steel); }
.j-quote dd, .j-facts-list dd { font: 500 13px/1.4 var(--mono); text-align: right; overflow-wrap: anywhere; }
.j-quote select { padding: 4px 8px; border: 0; border-radius: 6px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); font: 500 13px var(--mono); }
.j-trade .trade-submit { margin-top: 2px; }
.j-about { display: grid; gap: 12px; }
.j-curve-mini summary { color: var(--jade-3); font-size: 14px; font-weight: 500; cursor: pointer; }
.j-curve-mini .price-chart { width: 100%; height: auto; margin-top: 8px; display: block; overflow: visible; }
.chart-grid path { fill: none; stroke: var(--stone-3); stroke-width: 1; }
.chart-fill { fill: rgba(53, 230, 174, 0.1); }
.chart-line { fill: none; stroke: var(--jade-3); stroke-width: 4; stroke-linecap: round; }
.chart-end { fill: var(--mint); stroke: var(--obsidian); stroke-width: 4; filter: drop-shadow(0 0 8px rgba(53, 230, 174, 0.6)); }

/* ------------------------------------------------------------ portfolio */
.j-portfolio { display: grid; gap: 16px; }
.j-portfolio .eyebrow { margin-bottom: 0; }
.j-grid-small { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ------------------------------------------------------------ wallet dialog */
.jade-wallet { width: min(440px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 18px; background: var(--stone-1); color: var(--mineral); box-shadow: inset 0 0 0 1px var(--stone-4), 0 30px 80px rgba(0, 0, 0, 0.6); }
.jade-wallet::backdrop { background: rgba(3, 9, 7, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.jade-wallet .eyebrow { margin-bottom: 10px; }
.jade-wallet h2 { margin-bottom: 18px; font: 800 24px/1.1 var(--display); font-stretch: 112%; }
.jade-wallet-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--steel); font-size: 24px; }
.jade-wallet-x:hover { color: var(--mineral); }
.jade-wallet-body { display: grid; gap: 10px; }
.jade-wallet-body p { color: var(--mineral-2); }
.jade-wallet-option { display: grid; gap: 4px; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); text-align: left; transition: box-shadow .15s; }
.jade-wallet-option:hover, .jade-wallet-option:focus-visible { box-shadow: inset 0 0 0 1px var(--jade-3); outline: none; }
.jade-wallet-option small { color: var(--steel); }
.jade-wallet-status { min-height: 18px; font-size: 13.5px; color: var(--jade-3) !important; }
.jade-wallet-fine { font-size: 12.5px; color: var(--steel) !important; }
.jade-wallet-off { padding: 11px; border: 0; border-radius: 10px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); }

/* ------------------------------------------------------------ info bubbles (tip.js) */
.tip { display: inline-grid; place-items: center; width: 17px; height: 17px; margin: 0 0 0 6px; padding: 0; vertical-align: 1px; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; opacity: 0.55; font: italic 700 10.5px/1 Georgia, serif; transition: opacity .15s; }
.tip:hover, .tip[aria-expanded='true'] { opacity: 1; }
.tip-bubble { position: absolute; z-index: 100; padding: 12px 14px; border-radius: 10px; background: var(--stone-2); color: var(--mineral); font: 13px/1.5 var(--sans); box-shadow: inset 0 0 0 1px var(--stone-4), 0 14px 40px rgba(0, 0, 0, 0.5); }

/* ------------------------------------------------------------ footer (as Lend's) */
.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px max(var(--gutter), calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--steel); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--mineral); }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 1080px) {
  /* One column: chart, then the trade panel, then the rest. */
  .j-coin-grid { display: flex; flex-direction: column; }
  .j-coin-main, .j-coin-side { display: contents; }
  .j-chart-panel { order: 1; }
  .j-trade { order: 2; }
  .j-progress { order: 3; }
  .j-about { order: 4; }
  .j-fills { order: 5; }
  .j-create { grid-template-columns: 1fr; }
  .j-preview { position: static; }
}
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .j-spot { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'pic body' 'figs figs' 'bar bar'; }
}
@media (max-width: 720px) {
  .top { grid-template-columns: auto auto; gap: 12px 16px; padding-top: 10px; padding-bottom: 0; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-around; gap: 0; }
  .tabs a { padding: 10px 2px 12px; }
  .top-right { justify-self: end; gap: 8px; }
  .j-zecusd { display: none; }
  .lockup-app { padding-left: 9px; }
  .j-sorts { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .j-sorts button { flex: 0 0 auto; }
  .j-search { width: 100%; }
  .j-grid { grid-template-columns: 1fr; }
  .j-spot { padding: 16px; gap: 12px 14px; }
  .j-spot .j-thumb-lg { width: 64px; height: 64px; font-size: 26px; }
  .j-spot-figs { gap: 20px; }
  .j-coin-head { grid-template-columns: auto minmax(0, 1fr); }
  .j-coin-cap { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .j-coin-head .j-thumb-lg { width: 64px; height: 64px; font-size: 26px; }
  .j-chart { height: 300px; }
  .j-panel { padding: 16px; }
  .j-table th, .j-table td { padding: 8px 6px; }
}
@media (max-width: 420px) {
  .net { display: none; }
  .connect { padding: 9px 14px; font-size: 13px; }
  .j-card { padding: 13px; gap: 12px; }
  .j-thumb { width: 60px; height: 60px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.j-primary:disabled { background: var(--stone-3); color: var(--steel); opacity: 1; }
