/* Arvora — app components (launchpad, create, coin detail), brutalist skin */

/* Launchpad uses only three core colours: forest, pale mint, and lime. */
.launchpad-page { background: #031f1b; color: #e9fff3; }
.launchpad-page main { min-height: 72vh; }
.launchpad-page .apphead h2 { color: #e9fff3; }
.launchpad-page main .muted { color: #6f9588; }
.launchpad-page .coincard { color: #e9fff3; }
.launchpad-page .coingrid .coincard { background: #06352d; }
.launchpad-page .scroller .coincard { background: #0b493d; }
.launchpad-page .coingrid .coincard:hover,
.launchpad-page .scroller .coincard:hover { box-shadow: 5px 5px 0 #63ff75; }
.launchpad-page .coincard__logo { background: #021a16; border-color: #021a16; }
.launchpad-page .coincard__ticker,
.launchpad-page .coincard__growth b { color: #63ff75; }
.launchpad-page .coincard__growth,
.launchpad-page .coincard__foot { color: #9fc7b9; }
.launchpad-page .progress { background: #021a16; border-color: #021a16; }
.launchpad-page .filters { padding: 14px; background: rgba(157,255,208,.025); border: 1px solid rgba(157,255,208,.14); }
.launchpad-page .filter { border-color: rgba(157,255,208,.22); color: #a7c5ba; }
.launchpad-page .filter:hover { border-color: #63ff75; color: #e9fff3; }
.launchpad-page .filter.is-active { background: #63ff75; border-color: #03231e; color: #03231e; box-shadow: 3px 3px 0 #03231e; }
.launchpad-page .searchbox,
.launchpad-page .select,
.launchpad-page .viewtoggle { background: #0a3029; border-color: rgba(157,255,208,.22); color: #e9fff3; }
.launchpad-page .searchbox input { color: #e9fff3; }
.launchpad-page .searchbox input::placeholder { color: #6f9588; }
.launchpad-page .viewtoggle__btn { color: #6f9588; }
.launchpad-page .viewtoggle__btn + .viewtoggle__btn { border-color: rgba(157,255,208,.18); }
.launchpad-page .viewtoggle__btn.is-active { background: #63ff75; color: #03231e; }
.launchpad-page .coinrow { background: #06352d; color: #e9fff3; }
.launchpad-page .coinrow:not(.coinrow--head):hover { background: #0b493d; }
.launchpad-page .coinrow--head { background: transparent; color: #6f9588; }
.launchpad-page .coinrow__logo { background: #021a16; }
.launchpad-page .coinrow > .mono,
.launchpad-page .coinrow__curve > span { color: #9fc7b9; }
.launchpad-page .data-empty,
.launchpad-page .empty { color: #6f9588; }

/* ---------- live trade ticker ---------- */
.ticker { border-bottom: 2.5px solid var(--ink-2); background: var(--ink-2); overflow: hidden; }
.ticker__track { display: flex; width: max-content; gap: 0; padding: 10px 0; white-space: nowrap; animation: tickerLoop 70s linear infinite; will-change: transform; }
.ticker__group { display: flex; flex: none; gap: 10px; padding-right: 10px; }
@keyframes tickerLoop { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.trade { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border: 2px solid var(--line); background: var(--navy); flex: none; }
.trade b.mono { font-weight: 700; }
.trade__side { font-family: var(--font-mono); font-weight: 700; font-size: 11px; text-transform: uppercase; }

/* ---------- app section headers ---------- */
.apphead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.apphead h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.trending-flame { position: relative; width: 27px; height: 34px; flex: none; display: inline-block; background: linear-gradient(155deg, #dffff0 0 18%, #63ff75 42%, #16a966 100%); clip-path: polygon(52% 0, 69% 25%, 88% 17%, 83% 45%, 100% 64%, 88% 89%, 66% 100%, 33% 97%, 10% 80%, 0 57%, 16% 31%, 25% 58%, 38% 43%); filter: drop-shadow(0 0 8px rgba(99,255,117,.28)); }
.trending-flame::before { content: ""; position: absolute; inset: 3px; background: #06352d; clip-path: inherit; }
.trending-flame::after { content: none; }
.trending-flame i { position: absolute; z-index: 1; left: 9px; bottom: 3px; width: 12px; height: 20px; background: linear-gradient(#dffff0, #63ff75); clip-path: polygon(55% 0, 100% 54%, 82% 88%, 52% 100%, 16% 89%, 0 62%, 29% 35%, 31% 68%); }

/* ---------- coin card ---------- */
.coincard { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.coingrid .coincard { background: #0a3029; border: 0; }
.scroller .coincard { background: #124238; border: 0; }
.coingrid .coincard:hover, .scroller .coincard:hover { box-shadow: 5px 5px 0 rgba(99,255,117,.45); }
.coincard__head { display: flex; align-items: center; gap: 12px; }
.coincard__logo { width: 58px; height: 58px; flex: none; display: grid; place-items: center; font-size: 30px; background: var(--navy); border: 2.5px solid var(--ink-2); box-shadow: 3px 3px 0 var(--ink-2); }
.coincard__logo img, .coinrow__logo img, .detail__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coincard__id { flex: 1; min-width: 0; }
.coincard__name { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coincard__ticker { font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: var(--gold); }
.coincard__meta { display: flex; align-items: flex-end; justify-content: space-between; }
.coincard__meta b { font-family: var(--font-head); font-size: 18px; }
.coincard__chg { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.coincard__growth { display: flex; justify-content: space-between; color: var(--text-mute); font-size: 8px; letter-spacing: .06em; }
.coincard__growth b { color: var(--gold); }
.coincard__foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.04em; text-transform: uppercase; }
.coincard__socials { display: flex; gap: 6px; margin-top: -2px; }
.coincard__socials span { padding: 4px 7px; background: var(--ink-2); color: var(--sky); font-size: 8px; letter-spacing: .08em; }

.progress { height: 8px; background: var(--ink-2); border: 2px solid var(--ink-2); overflow: hidden; }
.progress__bar { height: 100%; background: var(--gold); }

/* ---------- trending scroller ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.scroller > * { scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 10px; }
.scroller::-webkit-scrollbar-track { background: var(--ink-2); }
.scroller::-webkit-scrollbar-thumb { background: var(--gold); border: 2px solid var(--ink-2); }

/* ---------- filter bar ---------- */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 9px 14px; border: 2.5px solid var(--line); color: var(--text-dim); background: transparent; transition: 0.1s; }
.filter:hover { border-color: var(--gold); color: var(--text); }
.filter.is-active { background: var(--gold); border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink-2); }
.filters__spacer { flex: 1; }
.select { font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase; padding: 9px 14px; border: 2.5px solid var(--line); background: var(--navy); color: var(--text-dim); }
.searchbox { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2.5px solid var(--line); background: var(--navy); color: var(--text); }
.searchbox input { background: none; border: none; color: var(--text); font-family: var(--font-body); font-size: 14px; outline: none; width: 160px; }
.viewtoggle { display: flex; border: 2px solid var(--line); background: var(--navy); }
.viewtoggle__btn { padding: 9px 11px; border: 0; background: transparent; color: var(--text-mute); font: 700 10px/1 var(--font-mono); text-transform: uppercase; }
.viewtoggle__btn + .viewtoggle__btn { border-left: 2px solid var(--line); }
.viewtoggle__btn.is-active { background: var(--gold); color: var(--ink); }

.coingrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coingrid--table { display: grid; grid-template-columns: 1fr; gap: 2px; }
.coinrow { display: grid; grid-template-columns: minmax(210px, 1.5fr) .8fr .65fr 1fr .65fr .5fr; gap: 18px; align-items: center; min-width: 0; padding: 14px 16px; background: #0a3029; transition: background .12s, transform .12s; }
.coinrow:not(.coinrow--head):hover { background: #124238; transform: translateX(3px); }
.coinrow--head { padding-block: 10px; background: transparent; color: var(--text-mute); font: 700 9px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.coinrow__coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coinrow__logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--navy); font-size: 21px; }
.coinrow__coin b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; }
.coinrow__coin small { display: block; margin-top: 3px; color: var(--gold); font: 700 10px/1 var(--font-mono); }
.coinrow > strong { font-family: var(--font-head); font-size: 13px; }
.coinrow > .mono { color: var(--text-mute); font-size: 10px; }
.coinrow__curve > span { display: block; margin-bottom: 5px; color: var(--text-dim); font: 700 9px/1 var(--font-mono); text-transform: uppercase; }
.coinrow__curve .progress { height: 6px; border: 0; }
@media (max-width: 1080px) { .coingrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .coingrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .coingrid { grid-template-columns: 1fr; } }

/* ---------- create form ---------- */
.create-page { max-width: 1180px; }
.create-page > .lead { max-width: 720px; }
.create-page .detail { grid-template-columns: minmax(0, 1fr) 400px; gap: 30px; }
.create-form { gap: 14px; }
.create-block { background: #0a3029; padding: 22px; }
.create-block__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.create-block__head > b { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-family: var(--font-head); }
.create-block__head h2 { font-size: 18px; line-height: 1.1; }
.create-block__head p { margin-top: 5px; color: var(--text-mute); font-size: 13px; }
.identity-grid { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 20px; align-items: start; }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.identity-fields .field:last-child { grid-column: 1 / -1; }
.identity-fields textarea { min-height: 92px; }
.form { display: grid; gap: 20px; }
.field label { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.field input[type=text], .field input[type=url], .field textarea, .field input[type=number] { width: 100%; padding: 14px 15px; border: 2.5px solid var(--line); background: var(--ink-2); color: var(--text); font-family: var(--font-body); font-size: 15px; outline: none; transition: 0.12s; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 84px; }
.field .hint { font-size: 12px; color: var(--text-mute); margin-top: 6px; }

.field label.upload { border: 2.5px dashed var(--line-strong); width: 164px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; color: var(--text-mute); background: var(--ink-2); cursor: pointer; transition: 0.12s; overflow: hidden; font-family: var(--font-mono); margin-bottom: 0; }
.upload > img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.upload > img[hidden], .upload > div[hidden] { display: none; }
.upload > div { grid-area: 1 / 1; }
.upload:hover { border-color: var(--gold); color: var(--text-dim); }
.upload span { font-size: 40px; display: block; color: var(--gold); }
.upload small { font-size: 11px; display: block; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

.tierrow { display: flex; gap: 8px; flex-wrap: wrap; }
.tier { padding: 12px 18px; border: 2.5px solid var(--line); background: var(--ink-2); color: var(--text-dim); font-family: var(--font-head); font-size: 14px; transition: 0.1s; }
.tier.is-active { border-color: var(--ink); background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 var(--ink-2); }
.social-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sociallinks { display: flex; flex-wrap: wrap; gap: 8px; }
.sociallink { padding: 8px 11px; background: var(--ink-2); color: var(--sky); font: 700 9px/1 var(--font-mono); letter-spacing: .07em; }
.sociallink:hover { color: var(--gold); }

.launch-summary { background: #124238 !important; }
.launch-summary__label { color: var(--up); font-size: 10px; letter-spacing: .1em; margin-bottom: 18px; }
.allocationbar { display: flex; height: 14px; margin-top: 20px; border: 2px solid var(--ink-2); }
.allocationbar i { width: 80%; background: var(--gold); }
.allocationbar em { width: 20%; background: var(--sky); }
.allocationlegend { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0 16px; color: var(--text-mute); font-size: 8px; }
.launch-flow { display: flex; justify-content: center; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 18px; color: var(--text-mute); font-size: 8px; }
.launch-flow b { color: var(--gold); }
.launch-summary .kv b { text-align: right; }

/* ---------- coin detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 366px; gap: 22px; align-items: start; }
.detail .card { background: #0a3029; border: 0; }
.detail .tradebox .card { background: #124238; }
.detail .chart { background: rgba(10,17,34,.2); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .create-page .detail { grid-template-columns: 1fr; } }

.chart { height: 300px; position: relative; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart--live { margin-top: 18px; min-height: 300px; overflow: hidden; }
.dex-chart { width: 100%; height: 100%; min-height: inherit; display: block; border: 0; background: #071c18; }
.chart__loading { height: 100%; display: grid; place-items: center; color: var(--text-mute); font-size: 11px; }
.chart-grid line { stroke: rgba(157,255,208,.11); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--text-mute); font-size: 9px; }
.chart__foot a { color: inherit; text-decoration: none; }
.chart__foot a:hover { color: var(--accent); }
.market-panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.market-stats { display: flex; gap: 28px; text-align: right; }
.market-stats span { color: var(--text-mute); font: 700 9px/1.2 var(--font-mono); letter-spacing: .08em; }
.market-stats b { display: block; margin-top: 7px; color: var(--text); font: 400 18px/1 var(--font-head); }
.detail__titleline { flex-wrap: wrap; }
.detail__titleline h1 { font-size: 32px; font-family: var(--font-head); font-weight: 400; }
.detail__byline { font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; }
.growth-panel #growthPct { color: var(--gold); font: 400 23px/1 var(--font-head); }
.growth-labels { color: var(--text-mute); font-size: 9px; }
.about-copy { font-size: 15px; color: var(--text-dim); }
.swap-summary { margin-top: 8px; }
.slippage-select { border: 0; background: var(--ink-2); color: var(--gold); padding: 5px 7px; font: 700 11px/1 var(--font-mono); }
.swap-note { margin-top: 10px; text-align: center; font-size: 10px; }
.fee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fee-card { min-width: 0; padding: 13px; background: var(--ink-2); }
.fee-card span { display: block; color: var(--text-mute); font: 700 8px/1.35 var(--font-mono); letter-spacing: .06em; }
.fee-card b { display: block; margin-top: 9px; overflow: hidden; text-overflow: ellipsis; color: var(--gold); font: 400 15px/1 var(--font-head); }
.contract-short { font-size: 11px; }
.detail__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.detail__logo { width: 66px; height: 66px; display: grid; place-items: center; font-size: 34px; background: var(--ink-2); border: 2.5px solid var(--ink-2); box-shadow: var(--sh); }
.detail__price { font-family: var(--font-head); font-size: 42px; }

.tradebox { position: sticky; top: 84px; }
.tabs { display: flex; gap: 0; margin-bottom: 16px; border: 2.5px solid var(--ink-2); }
.tab { flex: 1; padding: 12px; border: none; background: var(--ink-2); color: var(--text-dim); font-family: var(--font-head); font-size: 14px; text-transform: uppercase; transition: 0.1s; }
.tab + .tab { border-left: 2.5px solid var(--ink-2); }
.tab.is-active[data-side=buy] { background: var(--up); color: var(--ink); }
.tab.is-active[data-side=sell] { background: var(--hot); color: var(--ink); }

.amount { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border: 2.5px solid var(--line); background: var(--ink-2); }
.amount input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--font-head); font-size: 26px; outline: none; width: 100%; }
.amount .unit { font-family: var(--font-mono); font-weight: 700; color: var(--gold); }
.quickrow { display: flex; gap: 6px; margin: 10px 0 16px; }
.quick { flex: 1; padding: 8px; border: 2.5px solid var(--line); background: transparent; color: var(--text-dim); font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.quick:hover { border-color: var(--gold); color: var(--text); }

.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 2px solid var(--ink-2); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .muted { color: var(--text-mute); font-family: var(--font-mono); font-size: 13px; }
.kv b { font-weight: 700; }

.bigprogress { height: 12px; background: var(--ink-2); border: 2.5px solid var(--ink-2); overflow: hidden; margin: 10px 0; }
.bigprogress__bar { height: 100%; background: var(--gold); }

/* trades table */
.ttable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ttable th, .ttable td { text-align: right; padding: 10px 12px; border-bottom: 2px solid var(--ink-2); font-family: var(--font-mono); }
.ttable th { color: var(--text-mute); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.ttable td:first-child, .ttable th:first-child { text-align: left; }

/* ---------- toast ---------- */
#av-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--gold); border: 2.5px solid var(--ink); color: var(--ink); padding: 13px 22px; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; z-index: 200; opacity: 0; pointer-events: none; transition: 0.2s ease; box-shadow: var(--sh); max-width: 90vw; text-align: center; }
#av-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-mute); font-family: var(--font-mono); }
.empty span { font-size: 40px; display: block; margin-bottom: 10px; }

/* ---------- activity + portfolio ---------- */
.dashboard-page { min-height: 68vh; }
.dashboard-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 14px; }
.dashboard-title h1 { font-size: clamp(48px, 7vw, 86px); }
.dashboard-title .lead { max-width: 680px; }
.activity-tabs { display: flex; gap: 8px; overflow-x: auto; }
.data-panel { background: #0a3029; overflow-x: auto; }
.data-table { display: grid; align-items: center; gap: 18px; min-width: 760px; padding: 15px 18px; }
.data-table--activity { grid-template-columns: .6fr .8fr 1fr 1.2fr .6fr .65fr .5fr; }
.data-table--activity small { font-size: 10px; }
.data-table--portfolio { grid-template-columns: 1.4fr 1fr 1fr 1.2fr .7fr; }
.data-table--history { grid-template-columns: .6fr .8fr 1.1fr 1.1fr .7fr .5fr; }
.history-title { font-size: clamp(24px, 3.2vw, 34px); }
.data-table__head { color: var(--text-mute); background: var(--ink-2); font: 700 9px/1 var(--font-mono); letter-spacing: .08em; }
.data-row { border-top: 2px solid var(--ink-2); color: var(--text-dim); font-size: 13px; transition: background .12s; }
.data-row:hover { background: #124238; }
.data-row a { color: var(--gold); font-weight: 700; }
.data-empty { padding: 64px 20px; text-align: center; color: var(--text-mute); font-size: 11px; }
.activity-type { display: inline-block; padding: 6px 8px; color: var(--ink); font: 700 9px/1 var(--font-mono); text-transform: uppercase; }
.activity-type--launch { background: var(--gold); }
.activity-type--buy { background: var(--up); }
.activity-type--sell { background: var(--hot); }
.portfolio-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.summary-card { padding: 20px; background: #124238; }
.summary-card span { color: var(--text-mute); font: 700 9px/1 var(--font-mono); letter-spacing: .08em; }
.summary-card b { display: block; margin-top: 12px; color: var(--gold); font: 400 clamp(18px,2vw,28px)/1 var(--font-head); overflow-wrap: anywhere; }
.summary-card small { display: block; margin-top: 9px; color: var(--text-mute); font: 700 8px/1.35 var(--font-mono); letter-spacing: .05em; }

@media (max-width: 900px) {
  .portfolio-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.portfolio-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portfolio-coin i { width: 42px; height: 42px; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--ink-2); font-style: normal; font-size: 22px; }
.portfolio-coin img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-coin b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-coin small { display: block; margin-top: 4px; color: var(--gold); font: 700 9px/1 var(--font-mono); }

/* ---------- mobile ---------- */
@media (max-width: 560px) {
  .apphead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .apphead h2 { font-size: 22px; }
  .apphead .btn { width: 100%; }
  .apphead a[href="#all"] { display: none; }

  /* filters: horizontal scroll strip so they never squeeze */
  .filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; margin-bottom: 14px; }
  .filter { flex: 0 0 auto; }
  .filters__spacer { display: none; }
  /* search + dex on their own full-width row below */
  .searchbox { order: 10; flex: 1 1 100%; }
  .searchbox input { width: 100%; }
  .select { order: 11; flex: 0 0 auto; }
  .viewtoggle { order: 12; width: 100%; }
  .viewtoggle__btn { flex: 1; }
  .coingrid--table { display: grid; grid-template-columns: 1fr; }
  .coinrow--head { display: none; }
  .coinrow { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 14px; }
  .coinrow__coin { grid-column: 1; grid-row: 1 / span 2; }
  .coinrow > strong { text-align: right; }
  .coinrow__curve { grid-column: 1 / -1; }
  .coinrow > .mono { display: none; }

  /* trending cards a bit wider so text isn't clipped */
  .scroller { grid-auto-columns: 82%; }

  /* coin detail: trade box below chart, price smaller */
  .detail { gap: 16px; }
  .detail__price { font-size: 34px; }
  .detail__logo { width: 54px; height: 54px; font-size: 28px; }
  .amount input { font-size: 22px; }
  /* name + pills wrap instead of overflowing */
  .detail__head { align-items: flex-start; gap: 12px; }
  .detail__head .flex { flex-wrap: wrap; row-gap: 8px; }
  .detail__head h1 { font-size: 26px !important; flex-basis: 100%; }
  .tradebox { position: static; }
  .market-panel__head { align-items: flex-start; }
  .market-stats { gap: 12px; flex-direction: column; }
  .market-stats b { font-size: 14px; }
  .chart--live { min-height: 230px; height: 230px; margin-inline: -8px; }
  .chart__foot { flex-wrap: wrap; }
  .growth-panel .flex.between { align-items: flex-start; gap: 14px; }
  .detail-kvs { grid-template-columns: 1fr; }
  .fee-cards { grid-template-columns: 1fr; }

  /* recent trades table scrolls */
  .ttable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ttable { min-width: 420px; }

  /* create: milestone tiers stay in a scroll row */
  .tierrow { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .tier { flex: 0 0 auto; }
  .create-block { padding: 16px; }
  .create-block__head { margin-bottom: 16px; }
  .identity-grid { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .identity-fields { grid-template-columns: 1fr; }
  .identity-fields .field:last-child { grid-column: auto; }
  .social-fields { grid-template-columns: 1fr; }
  .field label.upload { width: 96px; aspect-ratio: 1; }
  .upload span { font-size: 28px; }
  .upload small { font-size: 8px; }
  .launch-summary .kv { align-items: flex-start; gap: 14px; }
  .launch-summary .kv b { max-width: 55%; }
  .dashboard-title { align-items: flex-start; flex-direction: column; }
  .dashboard-title .btn { width: 100%; }
  .portfolio-summary { grid-template-columns: 1fr; }
  .data-table { min-width: 720px; }
}

/* Mobile app refinement — no desktop rules changed. */
@media (max-width: 560px) {
  .section--tight { padding-block: 28px 42px; }
  .ticker__track { padding-block: 7px; animation-duration: 48s; }
  .trade { padding: 6px 9px; gap: 6px; font-size: 11px; }
  .trade__side { font-size: 9px; }

  .apphead { margin-bottom: 14px; }
  .apphead h2 { font-size: 25px; }
  .trending-flame { width: 23px; height: 29px; }
  .scroller { width: calc(100% + 18px); grid-auto-columns: min(84vw, 310px); gap: 10px; padding-right: 18px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .scroller::-webkit-scrollbar { display: none; }
  .coincard { padding: 15px; }
  .coincard__logo { width: 62px; height: 62px; }
  .coincard__name { font-size: 14px; }

  .filters { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px; margin-inline: -2px; padding: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { min-height: 42px; padding: 9px 13px; }
  .searchbox { grid-column: 1 / span 4; grid-row: 2; width: min(78vw, 310px); min-height: 48px; order: initial; }
  .select { grid-column: 1 / span 2; grid-row: 3; min-height: 46px; order: initial; }
  .viewtoggle { grid-column: 3 / span 2; grid-row: 3; min-height: 46px; order: initial; }
  .coingrid { gap: 12px; }

  .detail { gap: 14px; }
  .detail__head { margin-bottom: 14px; }
  .detail__logo { width: 60px; height: 60px; }
  .detail__titleline { gap: 7px; }
  .detail__titleline h1 { font-size: clamp(24px, 8.5vw, 32px) !important; }
  .detail__byline { line-height: 1.5; }
  .market-panel, .growth-panel, .tradebox .card { padding: 16px; }
  .market-panel__head { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .market-stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
  .detail__price { font-size: clamp(29px, 10vw, 38px); overflow-wrap: anywhere; }
  .chart--live { width: calc(100% + 8px); height: 220px; min-height: 220px; margin: 14px -4px 0; }
  .tradebox { width: 100%; }
  .tabs { margin-bottom: 12px; }
  .tab { min-height: 48px; }
  .amount { min-height: 62px; padding: 12px 14px; }
  .quickrow { gap: 5px; }
  .quick { min-height: 44px; padding-inline: 4px; }
  .kv { align-items: flex-start; gap: 14px; font-size: 12px; }
  .kv b { max-width: 56%; text-align: right; overflow-wrap: anywhere; }
  .tradebox .btn--block { min-height: 54px; }
  #av-toast { bottom: max(18px, env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: none; padding: 13px 16px; }

  .create-page { padding-top: 28px; overflow: hidden; }
  .create-page, .create-page * { min-width: 0; }
  .create-page > h1 { max-width: 100%; font-size: clamp(37px, 11vw, 43px) !important; }
  .create-page > .lead { font-size: 15px; }
  .create-block { padding: 16px; }
  .create-block__head { gap: 11px; }
  .create-block__head > b { width: 34px; height: 34px; }
  .create-block__head h2 { font-size: 16px; }
  .identity-grid { grid-template-columns: 1fr; }
  .field label.upload { width: 122px; }
  .identity-fields { width: 100%; }
  .field input[type=text], .field input[type=url], .field textarea, .field input[type=number] { min-height: 50px; }
  .launch-summary { margin-top: 2px; }
  .allocationlegend { gap: 8px; font-size: 7px; }

  .dashboard-page { padding-top: 28px; }
  .dashboard-title { gap: 16px; }
  .dashboard-title h1 { font-size: clamp(39px, 13vw, 56px); }
  .dashboard-title .lead { font-size: 15px; }
  .activity-tabs { width: calc(100% + 18px); padding-right: 18px; scrollbar-width: none; }
  .activity-tabs::-webkit-scrollbar { display: none; }
  .activity-tabs .filter { min-height: 44px; white-space: nowrap; }
  .portfolio-summary { gap: 9px; }
  .summary-card { padding: 17px; }

  .data-panel { background: transparent; overflow: visible; }
  .data-table__head { display: none; }
  .data-table.data-row { display: grid; min-width: 0; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 9px; padding: 15px; background: #0a3029; border: 0; }
  .data-table--activity.data-row > span:nth-child(1),
  .data-table--activity.data-row > span:nth-child(2) { grid-row: 1; }
  .data-table--activity.data-row > span:nth-child(2) { text-align: right; }
  .data-table--activity.data-row > span:nth-child(3),
  .data-table--activity.data-row > span:nth-child(4) { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .data-table--activity.data-row > span:nth-child(5) { grid-row: 4; }
  .data-table--activity.data-row > span:nth-child(6) { grid-row: 4; text-align: right; }
  .data-table--activity.data-row > span:nth-child(6)::before { content: "BLOCK  "; color: var(--text-mute); font: 700 8px var(--font-mono); }
  .data-table--activity.data-row > span:nth-child(7) { grid-column: 1 / -1; text-align: right; }
  .data-table--history.data-row > span:nth-child(1),
  .data-table--history.data-row > span:nth-child(2) { grid-row: 1; }
  .data-table--history.data-row > span:nth-child(2) { text-align: right; }
  .data-table--history.data-row > span:nth-child(3)::before { content: "AMOUNT  "; color: var(--text-mute); font: 700 8px var(--font-mono); }
  .data-table--history.data-row > span:nth-child(4) { text-align: right; }
  .data-table--history.data-row > span:nth-child(6) { text-align: right; }
  .data-table--portfolio.data-row { grid-template-columns: 1fr auto; }
  .data-table--portfolio.data-row > span:first-child { grid-column: 1 / -1; }
  .data-table--portfolio.data-row > span:nth-child(2)::before { content: "MCAP  "; color: var(--text-mute); font: 700 8px var(--font-mono); }
  .data-table--portfolio.data-row > span:nth-child(3)::before { content: "BALANCE  "; color: var(--text-mute); font: 700 8px var(--font-mono); }
  .data-table--portfolio.data-row > span:nth-child(4) { grid-column: 1 / -1; }
  .data-table--portfolio.data-row > span:nth-child(5) { grid-column: 1 / -1; }
}
