/* Lootbag: warm black, one gold accent, green for buys. Space Grotesk throughout. Sidebar on desktop, tab bar on phones. */
:root {
  --bg: #0b0906; --side: rgba(24,19,12,.45); --card: #13100b; --card2: #1d170e; --panel: #141009;
  --line: #221c13; --line2: #2e2619; --ink: #f7f2e8; --mute: #a0957f; --dim: #6d6352;
  --blue: #f4b740; --blue2: #ffcf6e; --buy: #34d399; --buy-ink: #03241a; --sell: #f2606b;
  --hero-a: #3a2708; --hero-b: #1d1407; --hero-c: #0f0c07; --card-a: #1b160d; --acc-rgb: 244,183,64; --acc-soft: #ffe3a8; --acc-line: #a37a2c; --acc-ink: #1c1405;
  --ink2: #ddd4c3; --ink3: #d3cab8; --field: #100d08; --field2: #0d0b07; --hover: #1f190f; --chip: #2b2216; --line3: #4a3c24; --sell-ink: #1b0507; --logo-acc: #f4b740; --logo-bg: #3d2b0a;
  --f: 'Space Grotesk', system-ui, -apple-system, sans-serif; --fm: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--ink); }
.num { font-feature-settings: 'tnum'; }
.mono { font-family: var(--fm); font-size: .92em; }
.mute { color: var(--mute); } .dim { color: var(--dim); } .up { color: var(--buy); } .dn { color: var(--sell); } .blue { color: var(--blue2); } .gold { color: var(--blue2); }

/* shell */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--side); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.brand img { width: 30px; height: 30px; }
.brand b { font: 700 22px/1 var(--f); letter-spacing: .14em; }
.nav { padding: 8px 12px; }
.nav h6 { margin: 22px 12px 8px; font: 600 11px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink2); font-weight: 500; font-size: 14px; }
.nav a svg { width: 17px; height: 17px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.03); color: var(--ink); }
.nav a.on { background: var(--hover); color: var(--ink); }
.nav a.on::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.side .grow { flex: 1; }
.side .acts { padding: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--line2); transition: filter .12s, border-color .12s, transform .12s; white-space: nowrap; }
.btn:hover { border-color: var(--line3); }
.btn:active { transform: translateY(1px); }
.btn.gold, .btn.blue { background: var(--blue); color: var(--acc-ink); border: 0; }
.btn.gold:hover, .btn.blue:hover { filter: brightness(1.08); }
.btn.pill { border-radius: 999px; height: 52px; padding: 0 32px; font-size: 16px; }
.btn.green { background: var(--buy); color: var(--buy-ink); border: 0; }
.btn.red { background: var(--sell); color: var(--sell-ink); border: 0; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; font-weight: 500; color: var(--ink2); }
.btn.block { width: 100%; }

.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 520px; position: relative; }
.search > svg { position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; color: var(--mute); pointer-events: none; transition: color .15s; }
.search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: var(--field); padding: 0 44px 0 40px; outline: none; font-size: 14.5px; transition: border-color .15s, box-shadow .15s, background .15s; }
.search input::placeholder { color: var(--dim); }
.search input:hover { border-color: var(--line3); }
.search input:focus { border-color: var(--acc-line); background: var(--card); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .14); }
.search:focus-within > svg { color: var(--blue); }
.search kbd { position: absolute; right: 11px; top: 11px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 6px; font: 500 11.5px/1 var(--fm); color: var(--dim); pointer-events: none; }
.search:focus-within kbd { display: none; }
.sres { position: absolute; top: 50px; left: 0; right: 0; z-index: 40; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); max-height: min(440px, 70vh); overflow: auto; }
.sres .sh { padding: 8px 10px 6px; font: 600 11px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sres a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.sres a.on { background: var(--hover); }
.sres .sn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sres .sn b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sres .sn small { color: var(--mute); font-size: 12.5px; }
.sres .sv { text-align: right; display: flex; flex-direction: column; } .sres .sv b { font-size: 14px; font-weight: 600; } .sres .sv small { font-size: 12.5px; }
.sres .sempty { padding: 18px 12px; color: var(--mute); font-size: 14px; text-align: center; }
.msearch, .scancel { display: none; }
@media (max-width: 900px) {
  .top .search { display: none; }
  .msearch { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 10px; color: var(--ink2); background: var(--field); }
  .msearch svg { width: 18px; height: 18px; }
  .top.searching > *:not(.search):not(.scancel) { display: none !important; }
  .top.searching .search { display: block; max-width: none; }
  .top.searching .scancel { display: block; color: var(--ink2); font-weight: 500; font-size: 14.5px; padding: 0 2px; }
  .search kbd { display: none; }
}
.top .sp { flex: 1; }
.chip-price { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.chip-price b { font-weight: 700; } .chip-price .px { font-weight: 500; }
.chip-price .sep { width: 1px; height: 18px; background: var(--line2); }
.chip-price .ca { color: var(--mute); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.top .x { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink2); }
.top .x svg { width: 17px; height: 17px; }
.top .mlogo, .top .mconnect { display: none; }
.view { padding: 22px 24px 80px; max-width: 1220px; }

/* phones */
.tabbar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 0 16px; gap: 12px; height: 64px; }
  .top .mlogo { display: block; width: 32px; height: 32px; }
  .top .mconnect { display: inline-flex; height: 40px; padding: 0 16px; font-size: 14px; }
  .chip-price { display: none; }
  .view { padding: 22px 16px 120px; }
  .tabbar { display: flex; justify-content: space-between; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line2); border-radius: 18px; padding: 8px; }
  .tabbar a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink2); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { background: var(--hover); }
  .tabbar a.plus { background: var(--blue); color: var(--acc-ink); }
}

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line2); background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 50%, var(--hero-c) 100%); padding: 56px 40px 52px; }
.hero .waves { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 150px; opacity: .55; pointer-events: none; }
.hero > div { position: relative; }
.hero h1 { margin: 0; font: 700 52px/1.02 var(--f); letter-spacing: -.02em; }
.hero h1 span { color: var(--blue); }
.hero p { margin: 16px 0 30px; max-width: 448px; color: var(--ink3); font-size: 15.5px; line-height: 1.625; }
.hero .acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero { padding: 36px 24px 40px; } .hero h1 { font-size: 40px; } .hero p { font-size: 16px; } }

/* board */
.bar { display: flex; align-items: flex-end; gap: 22px; margin: 26px 0 16px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.tab { padding: 0 0 12px; color: var(--mute); font-weight: 500; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--ink); font-weight: 600; border-color: var(--blue); }
.bar .live { margin-left: auto; padding-bottom: 12px; font-size: 13px; color: var(--mute); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fchip { height: 33px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mute); font-size: 13px; font-weight: 500; }
.fchip:hover { color: var(--ink); }
.fchip.on { background: rgba(var(--acc-rgb),.14); color: var(--ink); border-color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1150px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: linear-gradient(160deg, var(--card-a) 0%, var(--card) 100%); border: 1px solid var(--line2); border-radius: 16px; }
.coin { position: relative; overflow: hidden; display: block; padding: 20px; height: 184px; transition: border-color .15s; }
.coin:hover { border-color: var(--line3); }
.coin .ghost { position: absolute; right: -32px; top: 50%; width: 170px; height: 170px; transform: translateY(-50%); border-radius: 50%; overflow: hidden; opacity: .25; transition: opacity .2s; }
.coin:hover .ghost { opacity: .35; }
.coin .ghost .av { width: 100% !important; height: 100% !important; border-radius: 50% !important; font-size: 60px !important; }
.coin .badge { position: absolute; right: 16px; top: 16px; height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--blue); color: var(--acc-soft); font-size: 12px; display: flex; align-items: center; background: rgba(6,10,20,.4); }
.coin .in { position: relative; }
.coin .tkl { margin-top: 12px; font-size: 13px; } .coin .tkl b { font-weight: 600; } .coin .tkl span { color: var(--dim); margin-left: 5px; font-size: 12.5px; }
.coin .mc { margin-top: 4px; font: 700 28px/1.2 var(--f); letter-spacing: -.01em; }
.coin .l1 { margin-top: 10px; font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.coin .l1 b { font-weight: 600; color: var(--ink); }
.coin .l2 { margin-top: 4px; font-size: 12.5px; color: var(--mute); }
.coin .nd { position: absolute; left: 20px; right: 20px; bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(var(--acc-rgb),.14); color: var(--acc-soft); font-size: 12px; font-weight: 500; }
.pill.green { background: rgba(52,211,153,.12); color: var(--buy); }
.pill.gray { background: var(--hover); color: var(--mute); }
.av { flex: none; display: grid; place-items: center; border-radius: 50%; font: 700 14px/1 var(--f); color: #fff; }
.stk { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 700 8px/1 var(--f); color: #fff; letter-spacing: -.02em; }
.stack { display: inline-flex; } .stack .stk, .stack img { margin-left: -5px; box-shadow: 0 0 0 2px var(--hover); } .stack > :first-child { margin-left: 0; }

/* coin page */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); margin-bottom: 18px; font-weight: 500; font-size: 14.5px; }
.cp { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .cp { grid-template-columns: 1fr; } }
.chead { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line2); }
.chead .lg { position: relative; }
.chead .lg .av { border-radius: 10px !important; }
.chead .lg .pb { position: absolute; right: -8px; bottom: -8px; box-shadow: 0 0 0 3px var(--bg); border-radius: 50%; }
.chead h1 { margin: 0; font: 700 26px/1.2 var(--f); }
.chead h1 span { font-size: 15px; color: var(--mute); font-weight: 500; margin-left: 6px; }
.chead .sub { color: var(--mute); font-size: 14px; margin-top: 4px; }
.chead .sub b { color: var(--blue2); font-weight: 500; }
.chead .links { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.kpis span { display: block; font-size: 13px; color: var(--mute); }
.kpis b { font: 700 19px/1.5 var(--f); }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.chart { padding: 14px; background: var(--panel); }
.chart .tools { display: flex; gap: 4px; align-items: center; padding: 0 4px 12px; }
.chart .tools button { padding: 5px 11px; border-radius: 7px; color: var(--mute); font-size: 13px; font-weight: 500; }
.chart .tools button.on { background: var(--chip); color: var(--ink); }
.chart .tog { margin-left: auto; display: flex; background: var(--field); border: 1px solid var(--line2); border-radius: 999px; padding: 3px; }
.chart .tog button { border-radius: 999px; padding: 4px 12px; }
.chart .tog button.on { background: var(--ink); color: var(--field); }
#cv { height: 360px; }
.panel { padding: 18px; }
.panel h3 { margin: 0 0 10px; font: 600 15px/1.3 var(--f); }
.side-col .card { background: var(--panel); }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--field); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.bs button { height: 40px; border-radius: 8px; font-weight: 600; color: var(--mute); }
.bs .on.b { background: var(--buy); color: var(--buy-ink); } .bs .on.s { background: var(--sell); color: var(--sell-ink); }
.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.inp { width: 100%; height: 54px; border-radius: 10px; border: 1px solid var(--line2); background: var(--field); padding: 0 16px; outline: none; font-size: 20px; }
textarea.inp { height: 92px; padding: 12px 14px; font-size: 14.5px; resize: vertical; }
.inp.t { font-size: 15px; height: 46px; }
.inp:focus { border-color: var(--blue); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.presets button { height: 34px; border-radius: 8px; border: 1px solid var(--line2); color: var(--ink2); font-size: 13px; }
.route { font-size: 13px; color: var(--mute); margin: 2px 0 14px; line-height: 1.8; }
.route b { color: var(--ink); font-weight: 500; } .route a { color: var(--blue2); }
.paywith { display: flex; gap: 6px; align-items: center; }
.paywith button { padding: 2px 8px; border-radius: 6px; color: var(--mute); }
.paywith button.on { background: var(--chip); color: var(--ink); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.kv span { color: var(--mute); } .kv b { font-weight: 500; text-align: right; }
.sect { padding: 18px 0; border-top: 1px solid var(--line2); }
.sect h4 { margin: 0 0 10px; font: 600 12px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.meter { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.rot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.rot span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 5px; border-radius: 99px; background: var(--hover); border: 1px solid var(--line2); font-size: 13px; }
.rot span.cur { border-color: var(--blue); }
.count { font: 700 28px/1 var(--f); }
.stabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line2); padding: 14px 16px 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12.5px; padding: 10px 16px; }
table.t td { padding: 10px 16px; border-top: 1px solid var(--line); }
table.t .r { text-align: right; }
.tw { overflow-x: auto; }
.lootbox { background: var(--panel); }
.drop-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }

/* create */
.cg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .cg { grid-template-columns: 1fr; } }
.sec { padding: 22px; margin-bottom: 16px; background: var(--panel); }
.sec h2 { margin: 0 0 4px; font: 600 13px/1.3 var(--f); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sec > p { margin: 0 0 16px; color: var(--mute); font-size: 13.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.up-img { display: flex; align-items: center; gap: 16px; }
.up-img .ph { width: 88px; height: 88px; border-radius: 50%; border: 1.5px dashed var(--line2); display: grid; place-items: center; color: var(--dim); background: var(--field) center/cover; cursor: pointer; font-size: 26px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { padding: 14px; border-radius: 12px; border: 1px solid var(--line2); text-align: left; background: var(--field); }
.seg button b { display: block; font-size: 15px; font-weight: 600; }
.seg button small { color: var(--mute); font-size: 12px; }
.seg button.on { border-color: var(--blue); background: rgba(var(--acc-rgb),.08); }
.picker { max-height: 252px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 10px; }
.picker button { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); text-align: left; font-size: 13px; background: var(--field); }
.picker button small { display: block; color: var(--mute); font-size: 11px; }
.picker button.on { border-color: var(--blue); background: rgba(var(--acc-rgb),.1); }
.picker button .n { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: var(--acc-ink); font: 700 11px/20px var(--f); text-align: center; }
.note { font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.note.warn { color: #ffcf7a; }
.sticky { position: sticky; top: 84px; }

/* pages */
.ph1 { margin: 4px 0 22px; }
.ph1 h1 { margin: 0; font: 700 34px/1.15 var(--f); letter-spacing: -.02em; }
.ph1 p { margin: 8px 0 0; color: var(--mute); max-width: 640px; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stat3 .card { padding: 18px; } .stat3 span { font-size: 13px; color: var(--mute); } .stat3 b { display: block; font: 700 26px/1.3 var(--f); margin-top: 4px; }
@media (max-width: 800px) { .stat3 { grid-template-columns: 1fr; } }
.lrow { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line2); }
.lrow:first-child { border: 0; }
.lrow .grow { flex: 1; min-width: 0; }
.bags { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bagc { padding: 10px; text-align: center; }
.bagc svg { width: 100%; height: auto; border-radius: 10px; display: block; }
.bagc b { display: block; margin-top: 8px; font-size: 14px; } .bagc small { color: var(--buy); font-size: 12.5px; }
.doc { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 34px; }
.doc nav { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.doc nav a { padding: 7px 10px; border-radius: 8px; color: var(--mute); font-size: 14px; }
.doc nav a:hover { color: var(--ink); background: var(--hover); }
.doc section { margin-bottom: 36px; }
.doc h2 { font: 600 22px/1.3 var(--f); margin: 0 0 10px; }
.doc p, .doc li { color: var(--ink3); line-height: 1.7; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.doc table td, .doc table th { padding: 9px 12px; border: 1px solid var(--line2); text-align: left; }
.doc table th { color: var(--mute); font-weight: 500; background: var(--panel); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc nav { display: none; } }
footer.foot { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot a { color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; background: var(--hover); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 18px; box-shadow: 0 20px 50px -10px #000; font-size: 14px; }
.main > .preview-bar + .top { top: 0; }
.preview-bar { background: rgba(var(--acc-rgb),.12); color: var(--acc-soft); font-size: 12.5px; text-align: center; padding: 7px 12px; border-bottom: 1px solid rgba(var(--acc-rgb),.25); }

/* ---- pages matched to the reference layout ---- */
.lbl { font: 600 11.5px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cform { padding: 28px; background: var(--panel); }
.cform .ch { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.cform .ch h1 { margin: 0; font: 700 21px/1.2 var(--f); }
.crow { display: grid; grid-template-columns: 148px 1fr; gap: 20px; }
.imgbox { height: 148px; border-radius: 12px; border: 1px dashed var(--line3); background: var(--field2) center/cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--mute); cursor: pointer; text-align: center; }
.imgbox b { font: 600 11px/1 var(--f); letter-spacing: .12em; color: var(--ink2); margin-top: 4px; } .imgbox small { font-size: 10.5px; color: var(--dim); }
.cfields .field label span:last-child { font-size: 11.5px; color: var(--dim); }
.pre-in { position: relative; } .pre-in span { position: absolute; left: 14px; top: 12px; color: var(--mute); } .pre-in input { padding-left: 28px; }
.fs { padding: 22px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.crow + .fs { border: 0; margin-top: 18px; }
.fh { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; }
.fh > span:last-child:not(.lbl) { font-size: 12.5px; color: var(--mute); }
.fp { margin: 0 0 14px; font-size: 13.5px; color: var(--ink3); line-height: 1.6; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.icon-in { position: relative; } .icon-in svg { position: absolute; left: 14px; top: 15px; color: var(--mute); } .icon-in input { padding-left: 40px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg3 button { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--field2); font-weight: 500; font-size: 14px; }
.seg3 button.on { border-color: var(--acc-line); background: var(--card2); }
.cats { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line2); background: var(--field2); margin-bottom: 12px; flex-wrap: wrap; }
.cats button { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink2); }
.cats button i { font-style: normal; color: var(--dim); font-size: 11.5px; margin-left: 3px; }
.cats button.on { background: var(--chip); color: var(--ink); }
.srch { position: relative; margin-bottom: 12px; } .srch svg { position: absolute; left: 15px; top: 15px; width: 16px; height: 16px; color: var(--mute); } .srch input { padding-left: 42px; border-radius: 999px; }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 300px; overflow: auto; padding-right: 2px; }
.tgrid button { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line2); text-align: left; background: var(--field2); }
.tgrid button b { display: block; font-size: 13.5px; font-weight: 600; } .tgrid button small { font-size: 11.5px; color: var(--dim); }
.tgrid button.on { border-color: var(--blue); background: rgba(var(--acc-rgb),.1); }
.tgrid button em { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: var(--acc-ink); font: 700 10.5px/18px var(--f); text-align: center; font-style: normal; }
.devrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.devrow .cats { margin: 0; }
.amt-in { position: relative; width: 144px; } .amt-in input { text-align: right; padding-right: 48px; } .amt-in span { position: absolute; right: 14px; top: 13px; color: var(--mute); font-size: 14px; }
.sumhead { display: flex; align-items: center; gap: 14px; }
.sumimg { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line2); background: var(--field2) center/cover; display: grid; place-items: center; color: var(--dim); }
@media (max-width: 760px) { .crow { grid-template-columns: 1fr; } .three, .seg3 { grid-template-columns: 1fr; } .tgrid { grid-template-columns: repeat(2, 1fr); } .cform { padding: 20px; } }

.ph1 h1 { font-size: 32px; }
.ph1 p { font-size: 14.5px; line-height: 1.6; color: var(--ink3); max-width: 668px; }
.ph1.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.ph1r { display: flex; gap: 12px; align-items: center; }
.ph1r .srch { width: 224px; } .ph1r .srch input { border-radius: 8px; height: 38px; font-size: 14px; } .ph1r .srch svg { top: 11px; }
.tog { display: inline-flex; padding: 3px; border: 1px solid var(--line2); border-radius: 8px; background: var(--field2); }
.tog button { padding: 6px 11px; border-radius: 6px; font-size: 13px; color: var(--ink2); } .tog button.on { background: var(--ink); color: var(--field); }
.srow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 22px 0; gap: 16px; margin-bottom: 30px; }
.srow > div span { display: block; font-size: 13px; color: var(--mute); }
.srow > div b { display: block; font: 700 17px/1.6 var(--f); }
.srow > div small { font-size: 12px; color: var(--mute); }
.srow.big { grid-template-columns: repeat(3, 1fr); padding: 30px 0; }
.srow.big > div b { font-size: 38px; line-height: 1.35; letter-spacing: -.01em; }
.meter.thin { height: 4px; margin: 6px 0 10px; max-width: 360px; }
@media (max-width: 800px) { .srow, .srow.big { grid-template-columns: 1fr 1fr; } }
.lookup { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.lookup .inp { width: 474px; max-width: 100%; height: 40px; border-radius: 999px; font-size: 13.5px; }
.lookup .btn { height: 44px; border-radius: 8px; }
.lh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 8px 0 12px; flex-wrap: wrap; }
.lh h3 { margin: 0; font: 600 15px/1.3 var(--f); } .lh span { font-size: 13px; color: var(--mute); }
.prow { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.prow .av { border-radius: 8px !important; }
.prow b { font-size: 16px; } .prow .mute { font-size: 13px; }
.prow .pays { display: flex; align-items: center; gap: 8px; font-size: 13px; } .prow .pays b { font-size: 13px; }
.fine { margin: 46px 0 0; max-width: 668px; color: var(--mute); font-size: 13px; line-height: 1.6; }
table.lb td { padding: 11px 0; } table.lb th { padding: 10px 0; } table.lb tr td:nth-child(2) { padding-left: 0; }
table.lb td:first-child, table.lb th:first-child { width: 40px; }
.past { display: flex; gap: 26px; align-items: center; padding: 14px 0; font-size: 14px; flex-wrap: wrap; } .past .sp { flex: 1; }
.scard { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; background: var(--panel); margin-bottom: 14px; }
.scard > div { padding: 20px; border-left: 1px solid var(--line2); } .scard > div:first-child { border: 0; }
.scard span { display: block; font-size: 13px; color: var(--mute); }
.scard b { display: block; font: 600 22px/1.7 var(--f); } .scard b span { display: inline; font-size: 14px; color: var(--mute); }
.scard small { font-size: 11.5px; color: var(--dim); }
@media (max-width: 800px) { .scard { grid-template-columns: 1fr 1fr; } .scard > div:nth-child(3) { border-left: 0; } }
.nextp { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--panel); font-size: 13.5px; flex-wrap: wrap; }
.nextp > b { font-size: 20px; }
.metal { display: flex; gap: 18px; font-size: 12.5px; color: var(--dim); margin: 12px 4px 20px; flex-wrap: wrap; }
.gridcard { padding: 20px; background: var(--panel); }
.gh { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.gh .cats { margin: 0; border-radius: 8px; } .gh .cats button { border-radius: 6px; } .gh .srch input { height: 38px; font-size: 14px; } .gh .srch svg { top: 11px; }
.nftgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .nftgrid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 640px) { .nftgrid { grid-template-columns: repeat(2, 1fr); } }
.nft { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--card); }
.nft .art svg, .recv .art svg, .mintc .art svg { display: block; width: 100%; height: auto; }
.nft .nb { padding: 12px 12px 14px; } .nft .nb b { display: block; font-size: 14px; } .nft .nb span { display: block; font-size: 13px; margin: 2px 0 10px; } .nft .nb span i { font-style: normal; color: var(--mute); }
.nft .nb .btn { height: 42px; font-size: 14px; }
.mintgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .mintgrid { grid-template-columns: 1fr; } }
.mintc { padding: 0; background: var(--panel); overflow: hidden; }
.mintc h4 { margin: 0 0 14px; font: 600 11.5px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ms { padding: 22px 20px 18px; background: var(--hover); }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.mrow i { font-style: normal; color: var(--mute); font-size: 12px; margin-left: 6px; } .mrow .big { font-size: 22px; font-weight: 600; }
.mintc .arrow { width: 30px; height: 30px; margin: -15px auto; position: relative; z-index: 1; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); display: grid; place-items: center; color: var(--mute); }
.mr { padding: 26px 20px 22px; }
.recv { display: flex; gap: 16px; align-items: flex-start; } .recv .art { width: 96px; flex: none; border-radius: 12px; overflow: hidden; }
.pillish { border-radius: 999px; height: 48px; margin-top: 14px; }
.yours { padding: 22px 20px; background: var(--panel); } .yours .empty { border: 1px solid var(--line2); border-radius: 10px; padding: 30px; text-align: center; color: var(--mute); font-size: 14px; margin-top: 14px; }
.how3 { padding: 22px 20px; background: var(--panel); } .how3 h3 { margin: 0 0 16px; font: 600 15px/1.3 var(--f); }
.how3 .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; } .how3 p { margin: 10px 0 0; color: var(--ink3); font-size: 14px; line-height: 1.6; }
.how3 .ct { display: flex; align-items: center; gap: 10px; } .how3 .n { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--field); font: 700 11px/20px var(--f); text-align: center; }
@media (max-width: 800px) { .how3 .cols { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 16px; }
@media (max-width: 1150px) { .tiles { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile .sq { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); }
.tile .sq .av { width: 100% !important; height: 100% !important; border-radius: 0 !important; font-size: 64px !important; }
.tile .tb { position: absolute; right: 10px; top: 10px; height: 22px; padding: 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 75%, transparent); color: #fff; font: 600 10.5px/22px var(--f); letter-spacing: .04em; }
.tile .tb.gr { left: 10px; right: auto; color: var(--buy); }
.tile .tt { margin-top: 10px; font-size: 14px; } .tile .tt b { font-weight: 700; } .tile .tt span { color: var(--dim); font-size: 12.5px; }
.tile .tm { font-size: 13px; color: var(--mute); margin: 2px 0 10px; }
.tile .btn { height: 42px; font-size: 14px; }
.doc nav a.on { background: var(--hover); color: var(--ink); box-shadow: inset 2px 0 0 var(--blue); }
.doc { grid-template-columns: 200px minmax(0, 760px); }
.doc h2 { font-size: 20px; margin-top: 8px; }
footer.foot { display: block; margin: 70px -24px 0; padding: 26px 24px 30px; border-top: 1px solid var(--line); }
footer.foot .fr { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
footer.foot .fr b { color: var(--ink2); } footer.foot .fr span { display: flex; gap: 20px; } footer.foot p { margin: 18px 0 0; max-width: 640px; line-height: 1.6; font-size: 13px; }
@media (max-width: 900px) { footer.foot { margin: 60px -16px 0; padding: 24px 16px 30px; } }
.prow .grow { flex: 1; min-width: 0; }
.chart { padding: 12px 10px 8px; } #cv { height: 372px; }
.hr { padding: 24px 0 0; } .hr h3 { margin: 0 0 8px; font: 600 15px/1.3 var(--f); } .hr p { margin: 0 0 14px; color: var(--ink3); font-size: 14px; line-height: 1.6; }
.hrow { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; } .hrow > b { font-size: 15px; } .hrow .sp { flex: 1; } .hrow .stk { border-radius: 8px; }
.rs { padding: 22px 2px 4px; border-top: 1px solid var(--line2); margin-top: 18px; }
.side-col .card + .rs { border-top: 0; margin-top: 18px; padding-top: 18px; }
.rs .rh { display: flex; justify-content: space-between; font-size: 14px; } .rs .rh b { font-weight: 600; }
.rs p { margin: 6px 0 0; color: var(--ink3); font-size: 13.5px; line-height: 1.6; }
.rs .rt { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.rs .rt2 { margin: 20px 0 8px; font: 600 11.5px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.unit-in { position: relative; } .unit-in span { position: absolute; right: 16px; top: 17px; color: var(--ink2); font-size: 14px; } .unit-in .inp { padding-right: 70px; }
.cp > div:first-child .back { margin-bottom: 18px; }
.cp .chead { padding-bottom: 18px; } .cp .chead h1 { font-size: 24px; } .cp .chead .links .btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.cp .side-col { margin-top: 0; }
.chart { padding: 10px 8px 6px; } #cv { height: 420px; }
@media (max-width: 1000px) { .cp { grid-template-columns: 1fr; } }
.cp .chead { flex-wrap: nowrap; } .cp .chead > div:nth-child(2) { flex: 1; } .cp .chead .links { flex: none; flex-wrap: nowrap; gap: 6px; }
.cp .chead .sub { font-size: 13.5px; line-height: 1.45; }
@media (max-width: 760px) { .cp .chead { flex-wrap: wrap; } .cp .chead .links { flex-wrap: wrap; margin-left: 0; } }
@media (max-width: 1000px) { .cp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .chart .tools { flex-wrap: nowrap; overflow-x: auto; } .chart .tools button { padding: 5px 8px; flex: none; } .chart .tog button { white-space: nowrap; }
  #cv { height: 320px; } .hrow .sp { display: none; } .hrow .mute { flex-basis: 100%; }
}
@media (max-width: 760px) { .cp .chead .links { flex: 1 1 100%; } }
@media (max-width: 700px) { .ph1r { flex-wrap: wrap; width: 100%; } .ph1r .srch { flex: 1; width: auto; min-width: 0; } }
.chart .mode { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
.chart .mode button { padding: 5px 8px; border-radius: 7px; color: var(--mute); font-size: 13px; font-weight: 500; background: none; }
.chart .mode button.on { color: var(--ink); background: none; }
.chart .mode i { width: 1px; height: 14px; background: var(--line2); }
@media (max-width: 700px) { .chart .tools { overflow: visible; gap: 0; } .chart .tools button { padding: 5px 7px; } }
.stk.lg { background: var(--field); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.stk.lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stk.lg.lt { background: #e9edf5; }
img.tkl { flex: none; display: inline-block; vertical-align: middle; box-sizing: border-box; object-fit: contain; }
.av.art { overflow: hidden; background: var(--field); }
.av.art svg, .av.art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.seg3.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .seg3.four { grid-template-columns: repeat(2, 1fr); } }

/* the hidden attribute wins over any display a class sets */
[hidden] { display: none !important; }
/* live build: a coin's links (up to six) sit on their own row under its name; small filled buttons keep dark text */
.cp .chead { flex-wrap: wrap; }
.cp .chead .links { flex: 1 1 100%; flex-wrap: wrap; margin-left: 0; }
.btn.sm.blue { color: var(--acc-ink); font-weight: 600; }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.t a { color: inherit; }
.t a:hover { text-decoration: underline; }

/* create page: the form alone, at a readable width */
.cg.one { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* docs on a phone: one full-width column (a later rule had put the two-column grid back) */
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } }
/* the contracts list: name and role on one line, the whole address under them */
.caddrs { border-top: 1px solid var(--line2); margin-top: 12px; }
.caddr { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.caddr b { font-weight: 600; }
.caddr span { color: var(--mute); }
.caddr a { grid-column: 1 / -1; font-size: 13px; color: var(--ink3); overflow-wrap: anywhere; }
.caddr a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 520px) { .caddr { grid-template-columns: minmax(0, 1fr); } }
