/* bros.run — the community as a live trading room (reference: alphabros-dual-ui/bros-run-ui). Dark, dense. */
:root { --bg:#07080d; --panel:#0d1119; --panel2:#121824; --line:#20293a; --text:#f7f8fb; --muted:#8f99ab; --purple:#7a4dff; --purple2:#aca2ff; --green:#1ed37a; --red:#ff5d68; --gold:#f4b448; --blue:#4aa4ff; --font:"Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(circle at 80% 0, rgba(122,77,255,.10), transparent 30%), var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
a { color: var(--purple2); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: 12px; } .pad { padding: 16px; } .buy { color: var(--green); } .sell { color: var(--red); } .warn { color: var(--gold); }
.boot, .center { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
button { font-family: inherit; }
.outline, .primary, .text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #111620; color: #fff; padding: 9px 13px; cursor: pointer; font: 600 13px var(--font); text-decoration: none !important; white-space: nowrap; }
.primary { background: linear-gradient(135deg, #6841ff, #8e58ff); border-color: #8c6bff; }
.outline:hover { border-color: #3a4660; }
.sm { padding: 6px 10px; font-size: 12px; }
.wide { width: 100%; margin-top: 8px; }
.wide-btn > * { width: 100%; margin-top: 8px; }
button[disabled] { opacity: .55; cursor: default; }
.text-btn { border: 0; background: transparent; color: var(--purple2); padding: 0; }
.link { border: 0; background: none; color: var(--purple2); cursor: pointer; font: inherit; padding: 0; }
.eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 800; color: #8d82ff; }
.card { background: linear-gradient(180deg, #111620, #0d1119); border: 1px solid var(--line); border-radius: 11px; }
.note { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.badge { font-size: 9px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line); padding: 3px 7px; border-radius: 999px; color: #aab2c2; }
.badge.gold { color: var(--gold); background: #211a0c; border-color: #5f4920; }
.badge.green { color: var(--green); background: #0b2117; border-color: #1d5a3b; }
.badge.purple { color: var(--purple2); background: #19142e; border-color: #3b2f6e; }
.badge.red { color: var(--red); background: #2a1014; border-color: #5e2029; }
.av, .logo, .tok { flex: none; object-fit: cover; display: inline-block; }
.av { border-radius: 10px; }
.logo { border-radius: 12px; }
.tok { border-radius: 50%; background: #1a2030; }
.av-letter, .logo-letter, .tok-letter { display: inline-grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #2a2055, #7644ff); color: #fff; }
.av-letter { background: #1c2331; color: #cfd5e2; }
.tok-letter { font-size: 12px; background: #1a2030; color: #cfd5e2; }
/* shell */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: #090b11; padding: 16px; display: flex; flex-direction: column; }
.powered { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none !important; }
.powered img { border-radius: 9px; }
.powered b { display: block; font-size: 14px; }
.powered span { display: block; font-size: 10px; color: var(--muted); }
.community-mini { margin: 22px 0 16px; position: relative; }
.cover-mini { height: 70px; border-radius: 10px; background: linear-gradient(135deg, #281d55, #7a4dff 50%, #0f7893); }
.mini-logo { position: absolute; left: 12px; top: 46px; border: 3px solid #090b11; }
.community-mini h2 { margin: 28px 0 0; font-size: 16px; line-height: 1.25; }
.handle { font-size: 11px; color: var(--muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.tab { height: 42px; border: 1px solid transparent; background: transparent; color: #909aad; border-radius: 9px; padding: 0 10px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; text-decoration: none !important; font-weight: 600; }
.tab i { font-style: normal; }
.tab em { font-style: normal; font-size: 11px; }
.tab.active, a.tab:hover { background: #141925; color: #fff; border-color: #232c3d; }
.tab.soon { opacity: .55; cursor: default; }
.tab.soon em { font-size: 8px; font-weight: 800; color: var(--gold); border: 1px solid #5f4920; border-radius: 999px; padding: 1px 5px; }
.sidebar-bottom { margin-top: auto; }
.main { min-width: 0; }
.topbar { height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; background: rgba(8,10,15,.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.search { width: min(560px, 50vw); height: 38px; border: 1px solid var(--line); background: #0b0f16; border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #687389; }
.search input { width: 100%; background: transparent; border: 0; outline: 0; color: #fff; font: 13px var(--font); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.live { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--green); border: 1px solid #1e5e40; background: #0c1e16; padding: 7px 9px; border-radius: 999px; white-space: nowrap; }
.live i, .blink { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 5px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.wallet { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #111620; color: #fff; padding: 5px 10px 5px 6px; font-weight: 600; font-size: 13px; text-decoration: none !important; }
.view { padding: 22px; max-width: 1500px; margin: auto; }
/* home */
.hero { overflow: hidden; }
.cover { height: 170px; background: linear-gradient(110deg, #24194a 0, #6d43ff 40%, #3f76d5 66%, #092b35 100%); position: relative; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 40%, rgba(255,255,255,.18), transparent 12%), linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent); }
.hero-body { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: end; padding: 0 20px 16px; margin-top: -32px; position: relative; }
.logo.big { border: 4px solid #111620; border-radius: 16px; }
.hero-main { padding-top: 38px; min-width: 0; }
.title-line h1 { margin: 0; font-size: 26px; }
.hero-main p { max-width: 760px; color: #a8b0bf; margin: 8px 0 0; }
.hero-metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: #0a0e15; }
.hero-metrics > div { padding: 12px 16px; border-right: 1px solid var(--line); }
.hero-metrics > div:last-child { border-right: 0; }
.hero-metrics strong { display: block; font-size: 17px; }
.hero-metrics span { font-size: 10px; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-top: 18px; }
.section-head, .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 12px 0; }
.section-head h2, .page-head h1 { margin: 2px 0; }
.page-head h1 { font-size: 24px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.activity { padding: 13px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; color: var(--text); text-decoration: none !important; cursor: pointer; }
.activity:hover { border-color: #33405a; }
.activity b { display: block; }
.activity span { font-size: 11px; color: var(--muted); }
.activity > div:last-child { font-size: 11px; font-weight: 800; }
.right-stack { display: flex; flex-direction: column; gap: 12px; }
.access-card { padding: 16px; }
.access-card h3 { margin: 5px 0 12px; }
.req, .detail { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #1b2330; font-size: 13px; }
.req span, .detail span { color: var(--muted); font-size: 11px; }
/* live market */
.mk-mini { padding: 14px 0 6px; }
.mk-head { display: flex; justify-content: space-between; padding: 0 14px 8px; }
.mk-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; }
.mk-row:hover, .lt-row:hover { background: #121826; }
.mk-who { flex: 1; min-width: 0; }
.mk-who b, .mk-val b { display: block; font-size: 13px; }
.mk-who small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-val { text-align: right; }
.mk-val small { font-size: 11px; font-weight: 700; }
sub { font-size: 9px; }
.spark { width: 60px; height: 22px; flex: none; display: block; }
.spark.up { color: var(--green); } .spark.down { color: var(--red); }
/* chat room */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
.chat-panel { height: calc(100vh - 108px); display: grid; grid-template-rows: auto 1fr auto; min-height: 420px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head span { display: block; font-size: 10px; color: var(--muted); }
.mk-toggle, .mk-close { display: none; }
.messages { overflow: auto; padding: 18px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; margin: 0 0 16px; }
.msg-head { display: flex; gap: 8px; align-items: center; }
.msg-head a { color: #fff; }
.msg-head span { font-size: 10px; color: var(--muted); }
.msg-body { color: #d9dce3; overflow-wrap: anywhere; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 10px; padding: 2px 8px; border-radius: 6px; background: #151b28; color: #aab2c2; border: 1px solid var(--line); }
.chip.bullish { color: var(--green); background: #0b2117; border-color: #1d5a3b; }
.chip.bearish { color: var(--red); background: #2a1014; border-color: #5e2029; }
.msg-acts { display: flex; gap: 12px; margin-top: 4px; }
.msg-acts button, .msg-acts a { border: 0; background: none; color: #6c7587; font: 600 11px var(--font); cursor: pointer; padding: 0; text-decoration: none !important; }
.msg-acts button:hover, .msg-acts a:hover { color: #c0c7d3; }
.msg-acts .on { color: #ff4f8b; }
.trade-card { margin-top: 6px; border: 1px solid #243044; background: #0a0f17; border-radius: 9px; padding: 11px; cursor: pointer; }
.trade-card:hover { border-color: #3a4a66; }
.trade-line { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(5, minmax(60px, auto)); gap: 12px; align-items: center; }
.tl-tok { display: flex; align-items: center; gap: 8px; }
.trade-line b { font-size: 13px; }
.trade-line small { display: block; color: #7f899c; font-size: 9px; }
.trade-line strong { font-size: 12px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; resize: none; background: #0a0e15; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: #fff; font: 14px var(--font); min-height: 40px; max-height: 140px; outline: none; }
.composer textarea:focus { border-color: #4b3aa0; }
.composer .send { width: 42px; height: 40px; border: 0; background: #7047ff; color: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; }
.join-bar { justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.market-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.context { padding: 14px; }
.ctx-top { display: flex; gap: 10px; align-items: center; }
.ctx-top > div:nth-child(2) { flex: 1; min-width: 0; }
.token-large { font-size: 22px; font-weight: 900; line-height: 1.1; }
.ctx-price { text-align: right; }
.ctx-price b { display: block; font-size: 16px; }
.ctx-price small { font-size: 11px; font-weight: 700; }
.hp { margin-top: 10px; padding: 9px 11px; border-radius: 8px; background: #2a1014; border: 1px solid #5e2029; color: #ff8a93; font-size: 12px; font-weight: 600; }
.chart { width: 100%; height: 230px; border: 1px solid #1d2634; border-radius: 9px; margin-top: 12px; background: #0a0e15; }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.context-box { padding: 9px 10px; background: #0a0e15; border: 1px solid #1d2634; border-radius: 8px; }
.context-box span { display: block; color: var(--muted); font-size: 10px; }
.context-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buybtn, .sellbtn { text-align: center; padding: 10px; border-radius: 8px; font-weight: 700; text-decoration: none !important; }
.buybtn { background: #0d2b1d; color: #34e994; border: 1px solid #1b6d45; }
.sellbtn { background: #321217; color: #ff7884; border: 1px solid #7a2630; }
.mk-panel { overflow: hidden; }
.mk-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.mk-tabs button { flex: 1; border: 1px solid transparent; background: transparent; color: #909aad; border-radius: 8px; padding: 7px; cursor: pointer; font: 700 12px var(--font); display: inline-flex; align-items: center; justify-content: center; }
.mk-tabs button.on { background: #141925; color: #fff; border-color: #232c3d; }
.mk-list { max-height: 360px; overflow: auto; padding: 4px 0; }
.lt-row { width: 100%; display: grid; grid-template-columns: 8px 22px 1fr auto auto 32px; gap: 8px; align-items: center; padding: 7px 12px; border: 0; background: none; color: var(--text); cursor: pointer; font-size: 12px; text-align: left; }
.lt-row small { color: var(--muted); font-size: 10px; text-align: right; }
.lt-usd { font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.buy { background: var(--green); } .dot.sell { background: var(--red); }
/* trades, members, about */
.filters { display: flex; gap: 6px; }
.filters button { border: 1px solid var(--line); background: #111620; color: #9ba5b7; padding: 8px 12px; border-radius: 8px; cursor: pointer; font: 600 12px var(--font); }
.filters button.active { color: #fff; background: #171d2a; }
.trade-list, .member-list { overflow: hidden; }
.trade-row { display: grid; grid-template-columns: 1.3fr 1.1fr repeat(5, .75fr) auto; gap: 12px; padding: 12px 15px; border-top: 1px solid #19212f; align-items: center; cursor: pointer; font-size: 13px; }
.trade-row:first-child { border-top: 0; }
.trade-row:hover { background: #10151f; }
.trade-row small { display: block; font-size: 9px; color: var(--muted); }
.tr-who, .tr-tok { display: flex; gap: 8px; align-items: center; min-width: 0; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-top: 1px solid #19212f; }
.member-row:first-child { border-top: 0; }
.m-who { display: flex; gap: 10px; align-items: center; flex: 1; color: var(--text); text-decoration: none !important; }
.role { font-size: 9px; font-weight: 800; border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; color: #aab2c2; }
.role.owner { color: var(--gold); border-color: #5f4920; }
.role.admin { color: var(--purple2); border-color: #3b2f6e; }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.about-card { padding: 18px; }
.about-card h3 { margin: 0 0 10px; }
.about-card ol { padding-left: 20px; color: #a7afbd; }
.soon-card { padding: 24px; }
/* locked */
.locked { text-align: center; padding: 44px 24px; max-width: 760px; margin: 20px auto; }
.lock-orb { width: 80px; height: 80px; border-radius: 50%; margin: auto; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle, #3d2f78, #181427); box-shadow: 0 0 50px rgba(122,77,255,.25); }
.locked h1 { font-size: 30px; margin: 10px 0; }
.locked > p { color: var(--muted); }
.unlock-grid { display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; margin: 22px 0; }
.unlock { padding: 18px; text-align: left; }
.unlock h3 { margin: 4px 0 10px; }
/* post thread */
.back { margin-bottom: 12px; }
.thread { max-width: 820px; }
.thread-sep { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); border-top: 1px solid var(--line); padding: 12px 0 14px; text-transform: uppercase; }
/* landing */
.landing { max-width: 1100px; margin: 0 auto; padding: 0 18px 60px; }
.land-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.land-hero { text-align: center; padding: 40px 0 34px; }
.land-hero h1 { font-size: 40px; margin: 8px 0 10px; letter-spacing: -.02em; }
.land-hero p { color: #a8b0bf; max-width: 560px; margin: 0 auto 20px; font-size: 15px; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.land-card { position: relative; overflow: hidden; color: var(--text); text-decoration: none !important; }
.land-card:hover { border-color: #3a4660; }
.lc-cover { height: 60px; background: linear-gradient(110deg, #24194a, #6d43ff 50%, #3f76d5); }
.lc-logo { position: absolute; left: 14px; top: 36px; border: 3px solid #111620; }
.lc-body { padding: 30px 14px 14px; }
.lc-body b { display: block; font-size: 15px; }
.lc-body small { color: var(--muted); font-size: 11px; }
.lc-body p { font-size: 12px; color: #a8b0bf; margin: 6px 0 0; }
.center-card { text-align: center; max-width: 440px; }
/* join / sign-in panel */
.flow-back { position: fixed; inset: 0; background: rgba(2, 3, 8, .7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.flow { width: 100%; max-width: 460px; background: #0f1420; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.flow header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
.flow header h2 { margin: 0; font-size: 18px; }
.flow .x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.flow-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 20px 12px; flex-wrap: wrap; }
.flow-steps li { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); }
.flow-steps li span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1a2030; font-size: 10px; }
.flow-steps li.now { color: var(--purple2); } .flow-steps li.now span { background: var(--purple); color: #fff; }
.flow-steps li.done span { background: #0b2117; color: var(--green); }
.flow-steps li + li::before { content: "›"; color: #3a4660; margin-right: 2px; }
.flow-gate { margin: 0 20px 8px; padding: 10px 12px; border-radius: 10px; background: #211a0c; border: 1px solid #5f4920; color: var(--gold); font-size: 12px; }
.flow-body { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.flow-body p { margin: 0; line-height: 1.5; }
.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #111620; color: var(--text); font: 600 14px var(--font); cursor: pointer; text-align: left; }
.wallet-opt:hover { border-color: var(--purple); }
.wallet-opt img { border-radius: 8px; }
.w-dot { width: 28px; height: 28px; border-radius: 8px; background: #1a2030; }
.terms { max-height: 220px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; background: #0a0e15; color: #c0c7d3; }
.terms p { margin: 0 0 8px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; }
.agree input { margin-top: 3px; }
.uid { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #0a0e15; }
.uid span { padding: 0 4px 0 12px; color: var(--muted); }
.uid input { flex: 1; border: 0; background: transparent; padding: 10px 12px 10px 0; font: 14px var(--font); color: var(--text); outline: none; }
.flow-err { padding: 10px 12px; border-radius: 10px; background: #2a1014; border: 1px solid #5e2029; color: #ff8a93; font-size: 13px; }
.flow-ok { width: 44px; height: 44px; border-radius: 50%; background: #0b2117; color: var(--green); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.flow-body h3 { margin: 0; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: #f7f8fb; color: #07080d; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 13px; transition: .2s; pointer-events: none; z-index: 60; }
#toast.on { opacity: 1; transform: translateX(-50%); }
/* responsive */
@media (max-width: 1180px) {
  .chat-layout { grid-template-columns: 1fr; }
  .market-col { display: none; }
  .market-col.open { display: flex; position: fixed; inset: 64px 0 0 auto; width: min(380px, 100vw); background: var(--bg); border-left: 1px solid var(--line); padding: 12px; overflow: auto; z-index: 20; }
  .mk-toggle, .market-col.open .mk-close { display: inline-flex; }
  .mk-close { align-self: flex-end; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 72px 1fr; }
  .powered > div, .community-mini h2, .community-mini .handle, .community-mini .badges, .tab span, .tab em, .sidebar-bottom { display: none; }
  .sidebar { padding: 12px 10px; align-items: center; }
  .community-mini { width: 100%; } .cover-mini { display: none; } .mini-logo { position: static; margin: auto; display: grid; }
  .tab { grid-template-columns: 1fr; text-align: center; padding: 0; }
  .content-grid { grid-template-columns: 1fr; }
  .trade-row { grid-template-columns: 1.3fr 1.1fr repeat(3, .8fr) auto; }
  .trade-row > div:nth-child(6), .trade-row > div:nth-child(7) { display: none; }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: fixed; bottom: 0; top: auto; height: 62px; width: 100%; z-index: 10; border-right: 0; border-top: 1px solid var(--line); flex-direction: row; justify-content: center; padding: 8px; }
  .powered, .community-mini, .sidebar-bottom { display: none; }
  .sidebar nav { flex-direction: row; }
  .tab { width: 48px; height: 44px; }
  .topbar { padding: 0 12px; } .search { width: 42vw; } .hide-sm, .live { display: none; }
  .wallet span { display: none; }
  .view { padding: 14px 14px 80px; }
  .cover { height: 110px; }
  .hero-body { grid-template-columns: auto 1fr; align-items: center; }
  .hero-body > .primary, .hero-body > .outline { grid-column: 1 / -1; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); } .hero-metrics > div:nth-child(n+4) { display: none; }
  .chat-panel { height: calc(100vh - 150px); }
  .trade-line { grid-template-columns: 1fr 1fr 1fr; } .trade-line > *:nth-child(n+4) { display: none; }
  .trade-row { grid-template-columns: 1fr auto; } .trade-row > *:nth-child(n+3):not(:last-child) { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .land-hero h1 { font-size: 30px; }
}

/* right column: Swap · Community · Market */
.side { overflow: hidden; display: flex; flex-direction: column; }
.side-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.side-tabs button { border: 1px solid transparent; background: transparent; color: #909aad; border-radius: 8px; padding: 8px; cursor: pointer; font: 700 12.5px var(--font); }
.side-tabs button.on { background: #1a1531; color: #fff; border-color: #3b2c7a; }
.side-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.side-body .chart { height: 200px; margin-top: 0; }
.side-body .context-grid { margin: 2px 0 0; }
.side-head { padding: 12px 14px 4px; }
.side-head b { display: block; font-size: 13.5px; }
.side-head small { color: var(--muted); font-size: 11px; }
.chipbar { display: flex; gap: 6px; padding: 8px 14px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chipbar button { border: 1px solid #232c3d; background: #0f141e; color: #aab3c4; border-radius: 999px; padding: 5px 10px; font: 700 11px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.chipbar button.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.side-list { max-height: 560px; overflow: auto; padding: 4px 0; }
.mk-val small.muted { color: var(--muted); font-weight: 600; }
.cm-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; }
.cm-row:hover { background: #121826; }
.cm-row .mk-who small { display: flex; align-items: center; gap: 6px; }
.avs { display: inline-flex; }
.avs .av { border: 1.5px solid var(--panel); margin-left: -5px; border-radius: 50%; }
.avs .av:first-child { margin-left: 0; }
.bs { display: block; height: 4px; border-radius: 4px; background: #4a1c24; margin-top: 6px; max-width: 140px; overflow: hidden; }
.bs i { display: block; height: 100%; background: var(--green); }
.sw-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #0a0e15; border: 1px solid #1d2634; border-radius: 10px; }
.sw-seg button { border: 0; background: transparent; color: #909aad; padding: 8px; border-radius: 7px; font: 800 13px var(--font); cursor: pointer; }
.sw-seg .buy-on { background: #0d2b1d; color: #34e994; }
.sw-seg .sell-on { background: #321217; color: #ff7884; }
.sw-field { background: #0a0e15; border: 1px solid #1d2634; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.sw-lbl { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.sw-in { display: flex; align-items: center; gap: 8px; }
.sw-in input, .sw-in output { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 800 22px var(--font); outline: none; padding: 0; }
.sw-in output { color: #6f7a8e; }
.sw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #151b28; border: 1px solid #232c3d; font-weight: 800; font-size: 13px; white-space: nowrap; }
.tok-letter.eth { background: #2b3350; color: #c9d2ff; }
.sw-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-quick button { border: 1px solid #232c3d; background: #111723; color: #c4cbda; border-radius: 7px; padding: 4px 8px; font: 700 11px var(--font); cursor: pointer; }
.sw-rows { display: grid; gap: 6px; font-size: 12px; padding: 0 2px; }
.sw-rows div { display: flex; justify-content: space-between; }
.sw-rows span { color: var(--muted); }
.linkish { border: 0; background: none; color: var(--purple2); font: 700 12px var(--font); cursor: pointer; padding: 0 0 0 6px; text-decoration: underline; }
.sw-go { padding: 12px; border-radius: 10px; font: 800 14px var(--font); cursor: pointer; border: 1px solid transparent; }
.go-buy { background: var(--green); color: #04150c; }
.go-sell { background: var(--red); color: #1d0508; }
.side, .side-body, .sw-field { min-width: 0; }
.sw-in input { width: 100%; }
.chipbar.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chipbar.scroll button { flex: none; }
@media (min-width: 1181px) {
  .chat-layout > .market-col { height: calc(100vh - 108px); min-height: 420px; overflow-y: auto; scrollbar-width: thin; }
  .chat-layout > .market-col .side-list { max-height: none; }
}
.chipbar.scroll { gap: 4px; } .chipbar.scroll button { padding: 5px 8px; }

/* Swap tab */
.chart-slot { height: 200px; border: 1px solid #1d2634; border-radius: 9px; background: #0a0e15; }
.chart-float { position: fixed; margin: 0; border: 0; border-radius: 9px; z-index: 21; background: #0a0e15; }
.sw-err { padding: 9px 11px; border-radius: 8px; background: #2a1014; border: 1px solid #5e2029; color: #ff9aa2; font-size: 12px; line-height: 1.45; }
.sw-check { padding: 9px 11px; border-radius: 8px; background: #111723; border: 1px solid #232c3d; color: #c4cbda; font-size: 12px; }
.sw-check.ok { background: #0b2117; border-color: #1b6d45; color: #6ff0b0; }
.sw-busy { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #d9ddff; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3b2c7a; border-top-color: var(--purple2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sw-review { display: grid; gap: 10px; padding: 12px; border: 1px solid #2c2352; border-radius: 10px; background: #0e0c1a; }
.sw-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.sw-go:disabled { background: #1a2030; color: #6f7a8e; cursor: not-allowed; border-color: #232c3d; }
.sw-slips { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-slips button { border: 1px solid #232c3d; background: #111723; color: #c4cbda; border-radius: 7px; padding: 5px 9px; font: 700 11.5px var(--font); cursor: pointer; }
.sw-slips button.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.sw-pick { display: grid; gap: 4px; padding: 10px; border: 1px solid #232c3d; border-radius: 10px; }
.sw-pick .outline { justify-content: flex-start; }
.sw-risk { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #ff9aa2; }
.sw-done { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; text-align: center; }
.sw-done a { font-weight: 700; color: var(--purple2); }
.cover-mini, .lc-cover { overflow: hidden; position: relative; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .cover-img { z-index: 0; }

/* Market page */
.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.mkt-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mkt-main .page-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.mkt-main .page-head p { margin: 4px 0 0; font-size: 13px; }
.mkt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mkt-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mkt-stats b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.mkt-stats span { color: var(--muted); font-size: 11px; }
.mkt-card { overflow: hidden; }
.mkt-card .chipbar { border-bottom: 1px solid var(--line); }
.mkt-scroll { overflow-x: auto; }
.mkt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mkt-table th { text-align: left; color: var(--muted); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mkt-table td { padding: 9px 10px; border-bottom: 1px solid #151b27; white-space: nowrap; }
.mkt-table .r { text-align: right; }
.mkt-table tbody tr[data-act] { cursor: pointer; }
.mkt-table tbody tr:hover { background: #111724; }
.mkt-table.sm td, .mkt-table.sm th { padding: 7px 10px; }
.mkt-table .tk { display: inline-flex; align-items: center; gap: 9px; }
.mkt-table .tk small { display: block; color: var(--muted); font-size: 10.5px; }
.mkt-table a { color: var(--purple2); text-decoration: none; }
.mkt-table .bs.wide { display: inline-block; width: 60px; margin: 0 6px 0 0; vertical-align: middle; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 11.5px; }
.side-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.side-pill.buy { background: #0d2b1d; color: #34e994; }
.side-pill.sell { background: #321217; color: #ff7884; }
.flag { font-size: 9.5px; font-weight: 800; color: var(--gold); border: 1px solid #5a4318; border-radius: 999px; padding: 0 5px; }
.back { color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: none; }
.tk-head { display: flex; align-items: center; gap: 16px; padding: 16px; flex-wrap: wrap; }
.tk-id { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.tk-id h1 { margin: 0; font-size: 24px; }
.tk-price { text-align: right; }
.tk-price b { display: block; font-size: 22px; }
.tk-price span { font-size: 12px; font-weight: 700; }
.tk-links { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-slot.big { height: 440px; }
.tk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tk-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tk-members .tm-row { display: flex; align-items: center; gap: 9px; padding: 7px 14px; font-size: 12.5px; }
.tk-members .tm-row small { margin-left: auto; }
.chat-mini { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: calc(100vh - 170px); min-height: 420px; }
.chat-mini .messages { padding: 12px; }
.chat-mini .msg .trade-line { grid-template-columns: 1fr; }
@media (min-width: 1181px) { .market-layout > .market-col { position: sticky; top: 14px; max-height: calc(100vh - 100px); overflow-y: auto; } }
@media (max-width: 1180px) {
  .market-layout { grid-template-columns: 1fr; }
  .mkt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-cols { grid-template-columns: 1fr; }
  .chart-slot.big { height: 320px; }
}
/* Telegram-style replies */
.reply-bar { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 8px 10px; border-left: 3px solid var(--purple); background: #13112a; border-radius: 6px 6px 0 0; font-size: 12px; }
.reply-bar i { color: var(--purple2); font-style: normal; }
.reply-bar div { flex: 1; min-width: 0; }
.reply-bar b { display: block; color: var(--purple2); }
.reply-bar span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.quote { display: block; width: 100%; text-align: left; margin: 4px 0 6px; padding: 6px 10px; border: 0; border-left: 3px solid var(--purple); background: #13112a; border-radius: 6px; color: var(--text); cursor: pointer; font: 12px var(--font); }
.quote b { display: block; color: var(--purple2); font-size: 11.5px; }
.quote span { display: block; color: #aab3c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote.gone span { font-style: italic; }
.msg.flash { background: #1b1640; transition: background .3s; border-radius: 10px; }
/* hero: the 3:1 cover is the background of everything above the metrics */
.hero-top { position: relative; aspect-ratio: 3 / 1; min-height: 260px; max-height: 420px; width: 100%; background: linear-gradient(110deg, #24194a 0, #6d43ff 40%, #3f76d5 66%, #092b35 100%); display: flex; align-items: flex-end; overflow: hidden; }
.hero-top .cover-img { z-index: 0; }
.hero-top::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 8, 13, 0) 30%, rgba(7, 8, 13, .55) 62%, rgba(7, 8, 13, .92) 100%); }
.hero-top .hero-body { position: relative; z-index: 2; width: 100%; margin: 0; padding: 0 24px 20px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 18px; }
.hero-top .logo.big { width: 84px !important; height: 84px !important; border: 3px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.hero-top .hero-main { padding: 0; }
.hero-top h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; font-size: 12.5px; color: #d6dae3; }
.hero-meta .handle { color: #fff; font-weight: 700; }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.hero-meta .badge { background: rgba(10, 12, 20, .55); backdrop-filter: blur(4px); }
.hero-top .hero-main p { margin: 8px 0 0; max-width: 680px; color: #e3e6ee; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hero-top .hero-body > .primary, .hero-top .hero-body > .outline { align-self: end; }
@media (max-width: 760px) {
  .hero-top { aspect-ratio: auto; min-height: 300px; }
  .hero-top .hero-body { grid-template-columns: auto minmax(0, 1fr); padding: 0 16px 16px; }
  .hero-top .logo.big { width: 60px !important; height: 60px !important; }
  .hero-top h1 { font-size: 22px; }
}
.hero-top .hero-body > .outline, .hero-top .hero-body > .primary.joined { background: rgba(10, 12, 20, .55); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }

/* Manage (owner / admins) on the About page */
#manage { margin-top: 14px; }
.manage { padding: 20px; display: grid; gap: 16px; }
.mg-head h3 { margin: 4px 0 2px; font-size: 20px; }
.mg-head p { margin: 0; font-size: 12.5px; }
.mg-pics { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: stretch; }
.mg-cover { position: relative; aspect-ratio: 3 / 1; border-radius: 12px; overflow: hidden; background: linear-gradient(110deg, #24194a 0, #6d43ff 40%, #3f76d5 66%, #092b35 100%); border: 1px solid var(--line); display: grid; place-items: center; }
.mg-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mg-cover > span { color: #e0e3ec; font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.mg-pic-acts { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.mg-pic-acts .outline, .mg-logo .outline { background: rgba(10, 12, 20, .65); backdrop-filter: blur(6px); cursor: pointer; }
.mg-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #0a0e15; }
.mg-logo .logo { border-radius: 16px; }
.mg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.mg-field { display: grid; gap: 6px; min-width: 0; }
.mg-field.wide { grid-column: 1 / -1; }
.mg-field > span { font-size: 11.5px; font-weight: 700; color: #aeb6c6; }
.mg-field small { color: var(--muted); font-weight: 500; }
.mg-field input, .mg-field select, .mg-field textarea { width: 100%; box-sizing: border-box; background: #0a0e15; border: 1px solid #232c3d; border-radius: 9px; color: var(--text); padding: 9px 11px; font: 13.5px var(--font); resize: vertical; }
.mg-field input:focus, .mg-field select:focus, .mg-field textarea:focus { outline: none; border-color: var(--purple); }
.mg-checks { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.mg-check { display: flex; gap: 7px; align-items: center; font-size: 13px; }
.mg-save { display: flex; justify-content: flex-end; gap: 8px; }
.mg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.mg-cols h4 { margin: 0 0 4px; }
.mg-cols p { font-size: 12.5px; margin: 0 0 8px; }
.mg-invite { display: flex; gap: 6px; }
.mg-invite input { flex: 1; min-width: 0; background: #0a0e15; border: 1px solid #232c3d; border-radius: 8px; color: var(--text); padding: 7px 9px; font: 12px var(--font); }
.mg-req { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.mg-req .grow { flex: 1; }
@media (max-width: 760px) { .mg-pics, .mg-grid, .mg-cols { grid-template-columns: 1fr; } .mg-field.wide { grid-column: auto; } }
.mg-check input { width: auto; padding: 0; accent-color: var(--purple); }
.mg-check { white-space: nowrap; }
@media (max-width: 760px) {
  .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-metrics > div { border-bottom: 1px solid var(--line); }
}
.mg-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.manage.editing { border-color: #3b2c7a; box-shadow: 0 0 0 1px #3b2c7a inset; }

.locked-mini { padding: 36px 20px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.locked-mini h3 { margin: 4px 0 0; }
.locked-mini p { margin: 0 0 8px; }

/* sign-in: last used wallet, AlphaBros option, help when the wallet shows nothing */
.wallet-opt .last { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--green); border: 1px solid #1b6d45; border-radius: 999px; padding: 1px 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; margin: 12px 0 8px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso { flex-direction: column; gap: 2px; padding: 10px 12px; }
.sso small { color: var(--muted); font-weight: 500; font-size: 11px; }
.sign-help { margin-top: 10px; padding: 11px 12px; border: 1px solid #3b2c7a; background: #13112a; border-radius: 10px; display: grid; gap: 6px; font-size: 12.5px; }
.sign-help span { color: #c4cbda; }
.sign-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.flow .spin { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.chg-note { display: block; font-size: 9.5px; color: var(--muted); font-weight: 600; }

/* chat: photos, emoji, reactions */
.c-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #232c3d; background: #111723; border-radius: 10px; cursor: pointer; font-size: 17px; }
.c-btn:hover, .c-btn.on { border-color: var(--purple); background: #1a1531; }
.photo-previews { display: flex; gap: 8px; padding: 10px 14px 0; flex-wrap: wrap; }
.pp { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid #2a3346; background: #0a0e15; }
.pp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp.busy img { opacity: .45; }
.pp .spin { position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -7px; }
.pp.bad { border-color: #7a2630; }
.pp span { position: absolute; inset: auto 0 0 0; background: rgba(50, 10, 16, .9); color: #ff9aa2; font-size: 9px; padding: 2px 4px; line-height: 1.2; }
.pp button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; cursor: pointer; }
.emoji-picker { margin: 8px 14px 0; padding: 8px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; background: #0e1320; border: 1px solid #232c3d; border-radius: 12px; }
.emoji-picker button { border: 0; background: none; font-size: 19px; padding: 4px 0; border-radius: 8px; cursor: pointer; }
.emoji-picker button:hover { background: #1a2130; }
.msg-photos { display: grid; gap: 4px; margin-top: 6px; max-width: 420px; border-radius: 12px; overflow: hidden; }
.msg-photos.n2, .msg-photos.n4 { grid-template-columns: 1fr 1fr; }
.msg-photos.n3 { grid-template-columns: 1fr 1fr; }
.msg-photos.n3 .ph:first-child { grid-column: 1 / -1; }
.msg-photos .ph { border: 0; padding: 0; background: #0a0e15; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.msg-photos.n1 .ph { aspect-ratio: auto; max-height: 360px; }
.msg-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.msg-acts .react { border: 1px solid #232c3d; background: #111723; color: #d6dae3; border-radius: 999px; padding: 2px 9px; font: 600 12px var(--font); cursor: pointer; }
.msg-acts .react.on { border-color: var(--purple); background: #231a4a; color: #fff; }
.msg-acts .react.ghost { opacity: 0; transition: opacity .15s; }
.msg:hover .react.ghost, .react-add:focus-within .react.ghost, .react.ghost:focus { opacity: 1; }
@media (hover: none) { .msg-acts .react.ghost { opacity: 1; } }
.react-add { position: relative; display: inline-flex; }
.react-pick { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 2px; padding: 5px 6px; background: #151b29; border: 1px solid #2c3650; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.react-pick button { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 2px 3px; border-radius: 50%; transition: transform .1s; }
.react-pick button:hover { transform: scale(1.25); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(2, 3, 8, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox .x { position: fixed; top: 16px; right: 20px; font-size: 30px; color: #fff; background: none; border: 0; cursor: pointer; }
/* dark scrollbars everywhere (the chat and the columns) */
* { scrollbar-width: thin; scrollbar-color: #2b3347 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2b3347; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #3d4863; background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

/* price chart (Lightweight Charts) */
.chart-slot { height: 220px; border: 1px solid #1d2634; border-radius: 10px; background: #0a0e15; }
.chart-slot.big { height: 420px; }
.chart-float { position: fixed; z-index: 21; border-radius: 10px; overflow: hidden; background: #0a0e15; border: 1px solid #1d2634; margin: 0; }
.chart-float[hidden] { display: none !important; }
.chart-msg { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: var(--muted); font-size: 12.5px; pointer-events: none; }
.chart-msg[hidden] { display: none; }
.chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart-tfs { display: flex; gap: 3px; padding: 3px; background: #0a0e15; border: 1px solid #1d2634; border-radius: 9px; }
.chart-tfs button { border: 0; background: none; color: #8f99ab; font: 700 11.5px var(--font); padding: 4px 9px; border-radius: 7px; cursor: pointer; }
.chart-tfs button.on { background: #1a1531; color: #fff; }
.chart-src { color: #5f6a7e; font-size: 10.5px; }
.chart-card { padding: 12px; display: grid; gap: 10px; }
.side-body .chart-bar { margin-bottom: -2px; }
.chat-panel.dropping, .chat-mini.dropping { outline: 2px dashed var(--purple); outline-offset: -6px; }
.chat-panel.dropping .messages::after, .chat-mini.dropping .messages::after { content: "Drop photos to attach"; position: sticky; bottom: 12px; display: block; width: max-content; margin: 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 700; font-size: 13px; }
/* the like: a faded grey thumbs-up until you like it, then full colour */
.msg-acts .react.like i { font-style: normal; filter: grayscale(1); opacity: .5; transition: filter .15s, opacity .15s; }
.msg-acts .react.like:hover i { opacity: .8; }
.msg-acts .react.like:not(.on) { background: transparent; border-color: #1f2736; color: #7d879a; }
.msg-acts .react.like.on i { filter: none; opacity: 1; }

/* ---- chat as bubbles (Telegram / WhatsApp): yours right in purple, others left in dark with a coloured name ---- */
.messages { background: #080a10 radial-gradient(circle at 20% 10%, rgba(122, 77, 255, .05), transparent 40%), radial-gradient(circle at 80% 90%, rgba(74, 164, 255, .04), transparent 40%); padding: 14px 16px; }
.msg { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 3px; }
.msg.last { margin-bottom: 12px; }
.msg.mine { justify-content: flex-end; }
.b-av, .av-space { flex: none; width: 34px; align-self: flex-end; }
.av-space { height: 1px; }

.b-col { display: flex; flex-direction: column; max-width: min(72%, 620px); min-width: 0; }
.msg.mine .b-col { align-items: flex-end; }
.bubble { position: relative; padding: 7px 11px 6px; border-radius: 14px; background: #182131; color: #e8ebf1; box-shadow: 0 1px 1px rgba(0, 0, 0, .35); min-width: 70px; max-width: 100%; overflow-wrap: anywhere; }
.msg.theirs.last .bubble { border-bottom-left-radius: 4px; }
.msg.mine .bubble { background: linear-gradient(160deg, #4a36b8, #3a2a95); color: #fff; }
.msg.mine.last .bubble { border-bottom-right-radius: 4px; }
.b-name { display: block; font-weight: 800; font-size: 12.5px; margin-bottom: 2px; text-decoration: none !important; }
.bubble .msg-body { color: inherit; line-height: 1.42; font-size: 14px; }
.b-time { float: right; margin: 6px 0 -3px 10px; font-size: 10.5px; color: rgba(220, 225, 235, .5); line-height: 1; position: relative; top: 3px; }
.msg.mine .b-time { color: rgba(255, 255, 255, .6); }
.bubble.photo-only { padding: 3px; background: transparent; box-shadow: none; }
.bubble.photo-only .msg-photos { margin: 0; }
.bubble.photo-only > .b-time { position: absolute; right: 10px; bottom: 10px; float: none; margin: 0; background: rgba(0, 0, 0, .55); color: #fff; padding: 3px 6px; border-radius: 8px; }
.bubble .msg-photos { margin: 4px -7px 4px; border-radius: 10px; }
.bubble .quote { background: rgba(255, 255, 255, .06); border-left: 3px solid var(--qc, var(--purple2)); margin: 3px 0 5px; }
.bubble .quote b { color: var(--qc, var(--purple2)); }
.msg.mine .bubble .quote { background: rgba(255, 255, 255, .12); border-left-color: #fff; }
.msg.mine .bubble .quote b { color: #fff; }
.msg.mine .bubble .quote span { color: rgba(255, 255, 255, .78); }
.bubble.trade { padding: 6px 6px 5px; }
.bubble.trade .b-name { margin: 1px 5px 3px; }
.bubble .trade-card { margin: 0; background: #0b1018; }
.msg.mine .bubble .trade-card { background: rgba(10, 8, 30, .45); border-color: rgba(255, 255, 255, .15); }
.bubble.trade > .b-time { margin: 5px 5px 0 10px; }
.bubble .chips { margin-top: 4px; }
.msg-acts { margin-top: 3px; min-height: 0; }
.msg-acts:empty { display: none; }
.msg-acts .act-ghost { opacity: 0; transition: opacity .15s; }
.msg:hover .act-ghost, .msg-acts .act-ghost:focus, .react-add:focus-within .act-ghost { opacity: 1; }
@media (hover: none) { .msg-acts .act-ghost { opacity: .75; } }
.msg-acts > button:not(.react) { color: #6f7a8e; }
.msg.flash .bubble { box-shadow: 0 0 0 2px var(--purple2); }
.msg.flash { background: none; }
.day-chip { display: flex; justify-content: center; margin: 8px 0 12px; position: sticky; top: 0; z-index: 2; }
.day-chip span { background: rgba(24, 33, 49, .92); color: #c9cfdb; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.chat-mini .b-col { max-width: 86%; }
@media (max-width: 760px) { .b-col { max-width: 86%; } }
/* token gate block in Edit */
.mg-gate { border: 1px solid #2c2352; background: #0e0c1a; border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.mg-gate-head b { display: block; font-size: 14px; }
.mg-gate-head small { color: var(--muted); font-size: 12px; }
.mg-gate-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
.tk-verify { border: 1px solid #232c3d; background: #0a0e15; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; display: grid; gap: 8px; }
.tk-verify.ok { border-color: #1b6d45; background: #08160f; }
.tk-verify.bad { border-color: #7a2630; background: #1d0b0f; color: #ff9aa2; }
.tv-head b { color: #6ff0b0; font-size: 14px; }
.tv-head b span { color: #b6c0cf; font-weight: 600; }
.tv-head small { display: block; color: #9aa4b6; margin-top: 2px; }
.tv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tv-grid span { display: block; color: var(--muted); font-size: 10.5px; }
.tv-grid b { font-size: 12.5px; }
.tv-warn { color: #ffcf7a; font-weight: 600; }
.amt-in { display: flex; align-items: stretch; border: 1px solid #232c3d; border-radius: 9px; background: #0a0e15; overflow: hidden; }
.amt-in input { border: 0 !important; border-radius: 0 !important; flex: 1; }
.amt-in em { font-style: normal; font-weight: 800; padding: 0 12px; display: grid; place-items: center; background: #151b28; color: #d6dae3; }
@media (max-width: 760px) { .mg-gate-row, .tv-grid { grid-template-columns: 1fr 1fr; } }

.tv-nets { font-size: 12px; color: #c4cbda; }
.tv-src { color: #5f6a7e; font-size: 10.5px; }

/* leaderboard */
.lb-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.lb-sum div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.lb-sum b { display: block; font-size: 20px; }
.lb-sum span { color: var(--muted); font-size: 11.5px; }
.podiums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; align-items: end; }
.podium { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 12px 14px; text-align: center; text-decoration: none !important; color: var(--text); }
.podium.p1 { border-color: #6b5620; background: linear-gradient(180deg, #221c0c, var(--panel)); padding-top: 26px; }
.podium.p2 { border-color: #3a4152; }
.podium.p3 { border-color: #4b3322; }
.podium.me { box-shadow: 0 0 0 2px var(--purple) inset; }
.podium .medal { position: absolute; top: 8px; right: 10px; font-size: 22px; }
.podium b { font-size: 14px; margin-top: 4px; }
.podium small { color: var(--muted); font-size: 11px; }
.podium strong { font-size: 18px; margin-top: 4px; }
.podium span.muted { font-size: 11px; }
.lb-table tr.me td { background: #16123a; }
.lb-table .tk { text-decoration: none; color: var(--text); }
.you { font-style: normal; font-size: 9.5px; font-weight: 800; color: #fff; background: var(--purple); border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
/* profile */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.pf-card { padding: 18px; display: grid; gap: 12px; }
.pf-photo { display: flex; align-items: center; gap: 14px; }
.pf-photo .av { border-radius: 50%; }
.pf-photo-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-photo-acts label { cursor: pointer; }
.pf-card .uid { display: flex; align-items: center; border: 1px solid #232c3d; border-radius: 9px; background: #0a0e15; padding-left: 10px; }
.pf-card .uid input { border: 0 !important; }
.w-list { display: grid; gap: 8px; }
.w-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #232c3d; border-radius: 10px; background: #0a0e15; }
.w-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1a1531; color: var(--purple2); flex: none; }
.w-main { flex: 1; min-width: 0; }
.w-main b { display: block; font-size: 13.5px; }
.w-main small { color: var(--muted); }
.w-main input { width: 100%; background: #111723; border: 1px solid #2c3650; border-radius: 7px; color: var(--text); padding: 5px 8px; font: 13px var(--font); }
.w-acts { display: flex; gap: 6px; flex: none; }
.tag { color: #6ff0b0; font-weight: 700; }
.outline.danger { color: #ff8a93; border-color: #5e2029; }
.link-box { border: 1px solid #3b2c7a; background: #13112a; border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 13px; }
.wallet.on { border-color: var(--purple); }
@media (max-width: 900px) { .pf-grid, .podiums, .lb-sum { grid-template-columns: 1fr; } }
/* Community tab of the right column: Leaderboard / Tokens */
.cm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 14px 0; }
.cm-sub button { border: 1px solid #232c3d; background: #0f141e; color: #aab3c4; border-radius: 9px; padding: 7px; font: 700 12px var(--font); cursor: pointer; }
.cm-sub button.on { background: #1a1531; border-color: #3b2c7a; color: #fff; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--text); text-decoration: none !important; }
.lb-row:hover { background: #121826; }
.lb-row.me { background: #16123a; }
.lb-rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; flex: none; }
.side-more { display: block; padding: 10px 14px 12px; font-weight: 700; font-size: 12.5px; color: var(--purple2); text-decoration: none; border-top: 1px solid var(--line); }

/* chat: pinned message, message menu, edited / deleted, live */
.pin-bar { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: #0d1220; }
.pin-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; border-left: 3px solid var(--purple2); }
.pin-main i { font-style: normal; }
.pin-main b { display: block; font-size: 11.5px; color: var(--purple2); }
.pin-main span { display: block; font-size: 12.5px; color: #c9cfdb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-x { border: 0; background: none; color: var(--muted); padding: 0 14px; cursor: pointer; font-size: 14px; }
.msg-menu { position: relative; display: inline-flex; }
.menu-pop { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 6; display: grid; min-width: 170px; padding: 5px; background: #151b29; border: 1px solid #2c3650; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.msg.theirs .menu-pop { left: 0; right: auto; }
.menu-pop button { border: 0; background: none; color: #e1e5ee; text-align: left; padding: 8px 10px; border-radius: 8px; font: 600 12.5px var(--font); cursor: pointer; }
.menu-pop button:hover { background: #1f2738; }
.menu-pop button.danger { color: #ff8a93; }
.bubble.gone { background: transparent; border: 1px dashed #2a3346; box-shadow: none; }
.msg.mine .bubble.gone { background: transparent; }
.gone-text { color: #7d879a; font-style: italic; font-size: 13px; }
.reply-bar.edit { border-left-color: var(--gold); }
.reply-bar.edit b { color: var(--gold); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(30, 211, 122, .2); vertical-align: middle; margin: 0 2px 1px 0; }
/* phones/tablets: the chat column never grows past the screen (long pinned text and photos used to widen it) */
@media (max-width: 1180px) {
  .chat-layout, .market-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-panel, .chat-mini, .messages, .pin-bar, .b-col, .bubble, .msg-photos, .msg-photos .ph { min-width: 0; }
}
/* phones: the bottom tab bar shares the width between all tabs instead of 48 px each (the last tab was cut off) */
@media (max-width: 760px) {
  .sidebar nav { width: 100%; }
  .sidebar nav .tab { width: auto; flex: 1 1 0; min-width: 0; }
}
/* Buy / Sell on a member's trade card in the chat: opens the Swap tab on that token */
.trade-acts { display: flex; gap: 8px; margin-top: 10px; }
.trade-acts button { flex: 1 1 0; min-width: 0; min-height: 36px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.trade-acts .tr-buy { background: #0d2b1d; color: #34e994; border-color: #1c5a3b; }
.trade-acts .tr-sell { background: #321217; color: #ff7884; border-color: #6a2630; }
.trade-acts .tr-buy:hover { background: #12402a; }
.trade-acts .tr-sell:hover { background: #461920; }
/* Buy / Sell at the end of each row on the Trades page */
.tr-acts { display: flex; align-items: center; gap: 6px; }
.tr-acts .tr-buy, .tr-acts .tr-sell { min-height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
.tr-acts .tr-buy { background: #0d2b1d; color: #34e994; border-color: #1c5a3b; }
.tr-acts .tr-sell { background: #321217; color: #ff7884; border-color: #6a2630; }
.tr-acts .tr-buy:hover { background: #12402a; } .tr-acts .tr-sell:hover { background: #461920; }
/* Trades page on phones: the trade's details as a small grid under the member and token
   (Amount · Price, then Value · MCap · Liquidity), and full-width Buy / Sell */
@media (max-width: 720px) {
  .trade-list .trade-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; padding: 13px 14px; }
  .trade-list .trade-row > .tr-who { grid-column: span 3; min-width: 0; }
  .trade-list .trade-row > .tr-tok { grid-column: span 3; justify-self: end; min-width: 0; }
  .trade-list .trade-row > div:nth-child(n+3):not(:last-child) { display: block; grid-column: span 2; min-width: 0; background: #0b1018; border: 1px solid #19212f; border-radius: 8px; padding: 7px 9px; }
  .trade-list .trade-row > div:nth-child(3):not(:last-child), .trade-list .trade-row > div:nth-child(4):not(:last-child) { grid-column: span 3; }
  .trade-list .trade-row > div:nth-child(n+3):not(:last-child) b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trade-list .trade-row > .tr-acts { grid-column: 1 / -1; }
  .trade-list .tr-acts .tr-buy, .trade-list .tr-acts .tr-sell { flex: 1 1 0; min-height: 38px; }
}
/* Chain badge in the corner of a token's logo, and the Market's chain filter */
.tok-wrap { position: relative; display: inline-flex; flex: none; }
.tok-wrap > .tok { width: 100%; height: 100%; }
.chain-badge { position: absolute; right: -3px; bottom: -3px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #0b0f17; box-sizing: content-box; }
.chain-badge svg { display: block; }
.sw-chip .chain-badge, .chain-chips .chain-badge, .muted .chain-badge, .sw-rows .chain-badge { position: static; border: 0; display: inline-grid; vertical-align: -3px; }
.chain-chips { margin-bottom: 6px; }
.chain-chips button { display: inline-flex; align-items: center; gap: 6px; }
/* the token chip in the Swap form already sits under "Network": no badge squeezed into its name */
.sw-chip .tok-wrap .chain-badge { display: none; }
/* Swap tab: the wallet menu (your account's wallets, another app, add one) and "not enough": fund or switch */
.sw-wbtn { margin-left: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid #2c3a52; background: #121a27; color: #c9d4e8; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.sw-wbtn:hover { border-color: #7c5cff; color: #fff; }
.sw-wmenu, .sw-fund { margin: 10px 0; padding: 12px; border-radius: 12px; border: 1px solid #243044; background: #0b111b; display: grid; gap: 8px; }
.sw-fund { border-color: #5a2a33; background: #170d12; }
.sw-fund p { margin: 0; font-size: 12px; color: #c9d4e8; }
.sw-wmenu-head { display: flex; align-items: baseline; gap: 8px; }
.sw-wmenu-head .linkish { margin-left: auto; }
.sw-wrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border-radius: 9px; background: #111824; }
.sw-wrow.on { outline: 1px solid #3b2f78; }
.sw-wwho { min-width: 0; display: grid; }
.sw-wwho b, .sw-wwho small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-wbal { font-variant-numeric: tabular-nums; color: #c9d4e8; white-space: nowrap; }
.sw-wmenu-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sw-wmenu-acts button, .sw-fund > button { min-height: 34px; }
/* own messages: your picture on the right of your bubbles (others' on the left) */
.msg.mine { flex-direction: row-reverse; justify-content: flex-start; }
/* copy-contract button next to the token name in the Swap tab */
.tok-copy { margin-left: 6px; padding: 2px 6px; border-radius: 6px; border: 1px solid #2c3a52; background: #121a27; color: #9fb0c9; font-size: 12px; line-height: 1.2; cursor: pointer; vertical-align: 3px; }
.tok-copy:hover { color: #fff; border-color: #7c5cff; }

/* ---------- announcements: the owner's notices (Announcements tab + highlighted cards in the chat) */
.ann-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.ann-compose { padding: 16px; display: grid; gap: 10px; margin-bottom: 16px; }
.ann-compose input, .ann-compose textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--text); padding: 10px 12px; font: inherit; resize: vertical; }
.ann-compose input:focus, .ann-compose textarea:focus { outline: none; border-color: var(--purple); }
.ann-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ann-row small { flex: 1; min-width: 200px; }
.ann-list { display: grid; gap: 12px; }
.ann-card { padding: 16px 18px; border-left: 3px solid var(--gold); }
.ann-card h3 { font-size: 17px; margin: 8px 0 4px; }
.ann-card p, .ann-chat p { margin: 6px 0 10px; line-height: 1.55; overflow-wrap: anywhere; }
.ann-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ann-foot a, .ann-tools { margin-left: auto; }
.ann-tools { display: inline-flex; gap: 12px; }
.ann-tools .danger { color: var(--red); }
.ann-chat { margin: 12px auto; max-width: 560px; width: 100%; padding: 14px 16px; border: 1px solid #4a3b16; border-left: 3px solid var(--gold); border-radius: 11px; background: linear-gradient(180deg, #17140b, #100f0b); }
.ann-chat h4 { margin: 6px 0 2px; font-size: 15px; }
.ann-reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
/* announcement media: photos / GIFs in a grid (tap to open), a video plays in place; composer upload tiles */
.ann-media { display: grid; gap: 6px; margin: 4px 0 10px; border-radius: 10px; overflow: hidden; }
.ann-media.n2, .ann-media.n4 { grid-template-columns: 1fr 1fr; }
.ann-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.ann-media.n3 .ph:first-child { grid-row: 1 / 3; }
.ann-media .ph { padding: 0; border: 0; background: #000; cursor: zoom-in; display: block; min-height: 0; }
.ann-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.ann-media.n1 img { object-fit: contain; max-height: 480px; }
.ann-media video { width: 100%; max-height: 480px; background: #000; display: block; border-radius: 10px; }
.ann-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ann-attach small { flex-basis: 100%; }
.ann-pick { cursor: pointer; }
.ann-tile { position: relative; width: 84px; height: 84px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.ann-tile img, .ann-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-tile.busy img, .ann-tile.busy video { opacity: .45; }
.ann-tile em { position: absolute; inset: auto 0 6px; text-align: center; font-size: 10px; font-style: normal; color: #fff; }
.ann-tile .ann-vid { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 22px; text-shadow: 0 1px 6px #000; pointer-events: none; }
.ann-tile .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; line-height: 1; }
.ann-wait { display: grid; place-items: center; width: 100%; height: 100%; font-size: 20px; font-weight: 800; color: var(--muted); background: var(--panel2); }
.ann-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--purple); transition: width .2s; }
.ann-err { flex-basis: 100%; color: var(--red); font-size: 12.5px; background: rgba(255, 93, 104, .08); border: 1px solid rgba(255, 93, 104, .3); border-radius: 8px; padding: 8px 10px; }
/* trade card in the chat: fits any bubble width — token and position on top, figures wrap, Buy / Sell below */
.b-col:has(> .bubble.trade) { width: min(520px, 100%); }
.bubble.trade { width: 100%; }
.trade-card.tc { min-width: 0; }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; min-width: 0; }
.tc-head .tl-tok { min-width: 0; }
.tc-head .tl-tok b { white-space: nowrap; }
.tc-head .tl-tok small { display: block; color: #7f899c; font-size: 10px; margin-top: 1px; }
.tc-head .tl-tok b { font-size: 14px; }
.tc-pos { flex: none; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #c9d1de; white-space: nowrap; }
.tc-pos.buy { color: #34e994; background: rgba(30, 211, 122, .1); border-color: rgba(30, 211, 122, .35); }
.tc-pos.sell { color: #ff7884; background: rgba(255, 93, 104, .1); border-color: rgba(255, 93, 104, .35); }
.tc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tc-stats > div { min-width: 0; }
.tc-stats strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-stats small { display: block; color: #7f899c; font-size: 10px; margin-top: 1px; }
.msg.mine .tc-stats { border-top-color: rgba(255, 255, 255, .14); }

/* daily leaderboard card in the chat, and the "link more wallets" nudge under the side leaderboard */
.lb-chat .lbc-rows { display: grid; gap: 2px; margin: 8px 0 6px; }
.lbc-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none !important; min-width: 0; }
.lbc-row:hover { background: #1d1a10; }
.lbc-row.me { background: #16123a; }
.lbc-row .lb-rank { width: 22px; text-align: center; flex: none; }
.lbc-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lbc-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbc-who small, .lbc-val small { font-size: 11.5px; color: var(--muted); }
.lbc-val { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.lb-chat p.lbc-note { margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; background: #1a1710; font-size: 12.5px; line-height: 1.5; }
.lb-nudge { margin: 10px 14px 4px; padding: 10px 12px; border: 1px solid #3a3170; border-radius: 10px; background: #15122e; display: grid; gap: 6px; font-size: 12.5px; }
.lb-nudge b { font-size: 13px; }
.lb-nudge p { margin: 0; line-height: 1.5; color: #cfd3e6; }
.lb-nudge .primary { justify-self: start; text-decoration: none; }
.lbc-range { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.lbc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.lbc-acts a { text-decoration: none !important; }
/* reactions on announcement and leaderboard cards: outlined and grey until you react, purple and in colour once you have */
.ann-reacts .react { border: 1px solid #2a2a33; background: transparent; color: #8b93a5; border-radius: 999px; padding: 2px 10px; font: 600 12px var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.ann-reacts .react:hover:not(:disabled) { border-color: #4a4560; color: #d6dae3; }
.ann-reacts .react:disabled { cursor: default; }
.ann-reacts .react i { font-style: normal; }
.ann-reacts .react.like:not(.on) i { filter: grayscale(1); opacity: .55; transition: filter .15s, opacity .15s; }
.ann-reacts .react.like:hover:not(:disabled) i { opacity: .85; }
.ann-reacts .react.on { border-color: var(--purple); background: #231a4a; color: #fff; }

/* top search: token results across chains (our store first, then DexScreener) */
.search { position: relative; }
.ts-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: min(70vh, 560px); overflow-y: auto; overflow-x: hidden; background: #0e1320; border: 1px solid #263048; border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); padding: 6px; }
.ts-group { font: 700 10.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.ts-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; text-decoration: none !important; }
.ts-row:hover, .ts-row:focus-visible { background: #172036; outline: none; }
.ts-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ts-id b { font-size: 13.5px; }
.ts-id small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.ts-px { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: 12.5px; }
.ts-px small { font-size: 11.5px; }
.ts-none { margin: 0; padding: 12px 10px; color: var(--muted); font-size: 13px; }
.ts-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; border-top: 1px solid #1d2638; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.ts-foot .spin { width: 11px; height: 11px; border: 2px solid #2c3650; border-top-color: var(--purple); border-radius: 50%; animation: tsspin .8s linear infinite; }
@keyframes tsspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ts-foot .spin { animation: none; } }
/* filter on top of the market token list */
.mk-filter { display: flex; align-items: center; gap: 8px; margin: 12px 14px 4px; padding: 0 12px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #0b0f16; color: var(--muted); }
.mk-filter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: 13px var(--font); }
.mk-filter:focus-within { border-color: var(--purple); }
.act-trophy { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #1d1a10; flex: none; }
.sol-soon { margin-top: 12px; padding: 12px 14px; border: 1px dashed #2c3650; border-radius: 10px; background: #0e1320; } .sol-soon b { display: block; margin-bottom: 4px; } .sol-soon p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Solana swaps: wallet picker, connected account, waiting states */
.sol-connect { margin-top: 12px; display: grid; gap: 8px; padding: 12px; border: 1px solid #1d2634; border-radius: 10px; background: #0a0e15; }
.sol-connect p { margin: 0 0 4px; }
.sol-w { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sol-w img, .sol-acct img { border-radius: 5px; }
.sol-acct { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; font-size: 12.5px; color: var(--muted); }
.sol-acct span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sol-wait { animation: solpulse 1.2s ease-in-out infinite; }
@keyframes solpulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sol-wait { animation: none; } }
.sw-rows .linkish.on { color: var(--text); text-decoration: underline; }
/* Solana wallets on the profile */
.sol-wallets { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid #1d2634; border-radius: 10px; background: #0a0e15; }
.sol-wallets-head { display: grid; gap: 2px; }
.sol-link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-link-row .sol-w { display: inline-flex; align-items: center; gap: 6px; }
.side-lock { margin: 12px; padding: 18px 14px; text-align: center; }
/* sidebar footer: © AlphaBros · X · Community */
.sidebar-social { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--muted); }
.sidebar-social a { color: #b8a6ff; text-decoration: none; font-weight: 600; }
.sidebar-social a:hover { text-decoration: underline; }
.land-foot { margin: 40px 0 8px; text-align: center; font-size: 12.5px; color: var(--muted); } .land-foot a { color: #b8a6ff; text-decoration: none; font-weight: 600; } .land-foot a:hover { text-decoration: underline; }

.hp.soft { background: #2a2210; border-color: #5e4a20; color: #ffcf7a; }
