:root {
  color-scheme: dark;
  --bg: #070908;
  --bg-elevated: #0b0e0d;
  --surface: #101412;
  --surface-raised: #141a17;
  --surface-hover: #18211d;
  --line: #242b28;
  --line-strong: #333d38;
  --text: #f3f6f4;
  --text-soft: #c5cec9;
  --muted: #87938d;
  --green: #19c784;
  --green-strong: #24df98;
  --green-soft: rgba(25, 199, 132, 0.12);
  --red: #f05252;
  --red-soft: rgba(240, 82, 82, 0.12);
  --warning: #e9b949;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  --page: 1480px;
  --header-height: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong,
.price,
.stat-card strong,
.metric strong {
  color: var(--text);
}

.hidden {
  display: none !important;
}

.muted,
.section-subtitle,
small {
  color: var(--muted);
}

.positive,
.up,
.profit {
  color: var(--green-strong) !important;
}

.negative,
.down,
.loss {
  color: var(--red) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 max(22px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 8, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--surface);
  color: var(--text);
  outline: none;
}

body[data-page="home"] .nav a[href="/"],
body[data-page="assets"] .nav a[href^="/assets"],
body[data-page="asset"] .nav a[href^="/assets"],
body[data-page="futures"] .nav a[href="/futures.html"],
body[data-page="news"] .nav a[href="/news.html"],
body[data-page="wallet"] .nav a[href="/wallet.html"] {
  background: var(--green-soft);
  color: var(--green-strong);
}

main,
.wallet-page,
.beginner-page {
  width: min(var(--page), calc(100% - 44px));
  margin: 0 auto;
}

body[data-page="asset"] main {
  width: min(1780px, calc(100% - 32px));
}

.footer {
  width: min(var(--page), calc(100% - 44px));
  margin: 48px auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.page-title,
.wallet-hero,
.asset-hero,
.beginner-hero {
  padding: 42px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-title h1,
.wallet-hero h1,
.asset-hero h1,
.beginner-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-title p,
.wallet-hero p,
.asset-hero p,
.beginner-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.eyebrow,
.asset-type,
.section-kicker,
.market-badge,
.tag,
.asset-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.section {
  padding: 30px 0;
}

.section-heading,
.asset-owned-head,
.asset-hot-news-head,
.orderbook-head,
.related-assets-head,
.chart-toolbar,
.beginner-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2,
.asset-owned-head h2,
.asset-hot-news-head h2,
.orderbook-head h2,
.related-assets-head h2,
.chart-toolbar h2,
.beginner-section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: 0.88rem;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: end;
  min-height: 330px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.98) 0%, rgba(7, 9, 8, 0.86) 46%, rgba(7, 9, 8, 0.34) 100%),
    url("/img/nrwsmp-hero.png") 72% center / cover no-repeat;
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 780px;
  padding: clamp(28px, 4vw, 54px);
}

.hero-copy h1 {
  max-width: 680px;
  margin: 14px 0 16px;
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.stats-grid,
.metrics,
.card-grid,
.news-grid,
.futures-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card,
.metric,
.market-card,
.news-card,
.future-card,
.wallet-card,
.info-box,
.price-stack,
.asset-owned-panel,
.asset-hot-news,
.related-assets,
.trade-ticket,
.orderbook,
.chart-card,
.wallet-panel,
.wallet-position-section,
.news-board,
.news-side-box,
.lead-news-card,
.futures-empty,
.beginner-section,
.beginner-showcase,
.beginner-tip,
.market-terminal-panel,
.top-volume-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-card,
.metric {
  min-height: 94px;
  padding: 16px;
}

.stat-card span,
.metric span,
.price-stack span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.stat-card strong,
.metric strong,
.price-stack strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.market-card,
.news-card,
.future-card,
.wallet-card {
  padding: 16px;
  transition: border-color 150ms ease, background 150ms ease;
}

.market-card:hover,
.news-card:hover,
.future-card:hover,
.wallet-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.split,
.top-volume-layout,
.detail-grid,
.news-dashboard,
.beginner-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.top-volume-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
}

.top-volume-panel,
.market-terminal-panel {
  min-height: 170px;
  padding: 16px;
}

.top-volume-row,
.mover-row,
.asset-list-row,
.wallet-row,
.position-row,
.order-row,
.asset-owned-row,
.orderbook-row {
  display: grid;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.top-volume-row:last-child,
.mover-row:last-child,
.asset-list-row:last-child,
.wallet-row:last-child,
.position-row:last-child,
.order-row:last-child,
.asset-owned-row:last-child,
.orderbook-row:last-child {
  border-bottom: 0;
}

.top-volume-row,
.mover-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(90px, 0.65fr) minmax(80px, 0.5fr);
  gap: 12px;
  min-height: 48px;
}

.market-terminal-panel label,
.trade-ticket label,
.wallet-panel label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: #090c0a;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #626c67;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

button,
.button,
.link-button,
.small-button,
.beginner-corner-button,
.trade-login-link,
.asset-owned-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

button:hover,
.button:hover,
.link-button:hover,
.small-button:hover,
.beginner-corner-button:hover,
.trade-login-link:hover,
.asset-owned-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--text);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

button.active,
.active[data-filter],
.segmented .active,
.trade-ticket-tabs .active,
.trade-order-type .active,
[aria-selected="true"] {
  border-color: rgba(25, 199, 132, 0.45);
  background: var(--green-soft);
  color: var(--green-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.message,
.empty-state,
.status,
.chart-status,
.futures-empty {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.message.error,
.error {
  border-color: rgba(240, 82, 82, 0.32);
  background: var(--red-soft);
  color: #ffb8b8;
}

.beginner-footer-action {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
}

.beginner-corner-button {
  border-color: rgba(25, 199, 132, 0.38);
  background: #102019;
  color: var(--green-strong);
  box-shadow: var(--shadow);
}

/* Market list */
.market-list-shell {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.asset-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.asset-filter-bar input,
#asset-search,
#futures-search {
  max-width: 360px;
  margin-left: auto;
}

.asset-sort-strip,
.asset-market-head,
.asset-market-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(110px, 0.8fr)) minmax(90px, 0.55fr);
  align-items: center;
  gap: 12px;
}

.asset-sort-strip,
.asset-market-head {
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.asset-sort-strip button {
  min-height: 30px;
  padding: 4px 8px;
  border-color: transparent;
  background: transparent;
}

.asset-market-row {
  min-height: 62px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease;
}

.asset-market-row:hover {
  background: var(--surface-hover);
}

.asset-market-row:last-child {
  border-bottom: 0;
}

.asset-market-row > *,
.asset-sort-strip > * {
  min-width: 0;
}

.asset-market-row strong,
.asset-market-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Asset / chart workspace */
.asset-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.asset-hero-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.asset-header-icon,
.asset-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.price-stack {
  min-width: 230px;
  padding: 14px 16px;
  text-align: right;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  margin-top: 16px;
}

.detail-main,
.detail-side {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.chart-card,
.asset-owned-panel,
.asset-hot-news,
.related-assets,
.orderbook,
.trade-ticket,
.info-box {
  padding: 14px;
}

.chart-card {
  min-width: 0;
}

.chart-toolbar {
  flex-wrap: wrap;
}

.segmented,
.chart-indicators,
.trade-ticket-tabs,
.trade-order-type,
.trade-percent-row,
.future-risk-presets,
.related-assets-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button,
.chart-indicators button,
.trade-ticket-tabs button,
.trade-order-type button,
.trade-percent-row button,
.future-risk-presets button,
.related-assets-tabs button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 0.74rem;
}

.chart-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #090c0a;
}

.volume-label {
  position: absolute;
  z-index: 4;
  bottom: 82px;
  left: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 5px;
  background: rgba(7,10,8,.78);
  color: var(--muted);
  font-size: .67rem;
  line-height: 1;
  pointer-events: none;
}

.volume-label span { color: var(--text-soft); font-variant-numeric: tabular-nums; }

#chart {
  width: 100%;
  min-height: 430px;
}

#volume-chart {
  width: 100%;
  min-height: 110px;
  border-top: 1px solid var(--line);
}

.market-strip,
.supply-panel,
.chart-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.market-strip > div,
.supply-panel > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.market-strip span,
.supply-panel span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.69rem;
}

.market-strip strong,
.supply-panel strong {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.orderbook-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 30px;
  font-size: 0.74rem;
}

.orderbook-row.ask span:first-child {
  color: var(--red);
}

.orderbook-row.bid span:first-child {
  color: var(--green-strong);
}

.trade-ticket-form,
.future-risk-entry,
.spot-order-preview,
.future-order-preview {
  display: grid;
  gap: 10px;
}

.trade-ticket-row,
.spot-order-preview > div,
.future-order-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#trade-submit {
  width: 100%;
  border-color: var(--green);
  background: var(--green);
  color: #04120c;
}

#trade-submit.sell {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.asset-owned-table {
  overflow-x: auto;
}

.asset-owned-row {
  grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(90px, 0.75fr));
  gap: 10px;
  min-height: 44px;
  font-size: 0.76rem;
}

.asset-owned-row.head {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.asset-hot-news-list,
.related-assets-list,
.grouped-orders,
.asset-open-orders {
  display: grid;
  gap: 8px;
}

.asset-hot-news-card,
.related-asset-card,
.spot-order-group {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

/* Futures */
.futures-title,
.news-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.futures-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.future-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 258px;
  padding: 18px;
  overflow: hidden;
  border-color: rgba(130,151,139,.18);
  background: linear-gradient(145deg,rgba(18,26,22,.98),rgba(9,13,11,.98));
}

.future-card::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg,var(--green),transparent 72%); content: ""; opacity: .75; }

.future-card-head,
.future-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.future-card-head { align-items: flex-start; }
.future-card-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.future-card-identity .asset-icon { width: 42px; height: 42px; flex: 0 0 42px; border-color: rgba(255,255,255,.12); box-shadow: 0 0 0 4px rgba(255,255,255,.025); }
.future-card-identity h2 { margin: 3px 0 0; font-size: 1rem; }
.future-card-identity p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.future-card-change { display: grid; justify-items: end; gap: 3px; font-size: .8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.future-card-change small { color: var(--muted); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.future-card-quote { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 16px; padding: 15px 0; border-block: 1px solid rgba(255,255,255,.065); }
.future-card-quote > span { display: grid; gap: 5px; }
.future-card-quote small, .future-card-grid small { color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .055em; }
.future-card-quote > span:first-child strong { font-size: 1.42rem; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.future-leverage { justify-items: end; }
.future-leverage strong { padding: 4px 8px; border: 1px solid rgba(28,224,130,.25); border-radius: 6px; background: rgba(28,224,130,.08); color: var(--green-strong); }
.future-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.future-card-grid > span { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 7px; background: rgba(255,255,255,.018); }
.future-card-grid strong { font-size: .75rem; font-variant-numeric: tabular-nums; }
.future-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--text-soft); font-size: .72rem; font-weight: 700; }
.future-action b { color: var(--green); font-size: 1rem; transition: transform 150ms ease; }
.future-card:hover .future-action b { transform: translateX(4px); }

/* News */
.news-feature {
  margin-top: 20px;
}

.lead-news-card {
  min-height: 250px;
  padding: clamp(22px, 4vw, 42px);
}

.news-dashboard {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  align-items: start;
}

.news-board,
.news-side-box {
  padding: 16px;
}

.news-grid,
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.news-card {
  min-height: 180px;
}

.news-meta,
.asset-hot-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

/* Wallet */
.wallet-panel,
.wallet-position-section {
  margin-top: 18px;
  padding: 18px;
}

.wallet-login-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  max-width: 620px;
}

.wallet-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.wallet-content {
  margin-top: 18px;
}

.wallet-table,
.positions-table,
.history-table {
  width: 100%;
  overflow-x: auto;
}

/* Beginner */
.beginner-page {
  max-width: 1320px;
}

.beginner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
}

.beginner-nav,
.beginner-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.beginner-nav a,
.beginner-quick-nav a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.78rem;
}

.beginner-section,
.beginner-showcase,
.beginner-tip {
  margin-top: 28px;
  padding: clamp(24px, 3.5vw, 40px);
}

.beginner-section p,
.beginner-showcase p,
.beginner-tip p {
  color: var(--text-soft);
}

.beginner-grid,
.beginner-card-grid,
.beginner-steps,
.beginner-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.beginner-card,
.beginner-step,
.beginner-example,
.beginner-feature {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .detail-grid,
  .news-dashboard {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .futures-grid,
  .news-grid,
  .news-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  main,
  .wallet-page,
  .beginner-page,
  body[data-page="asset"] main,
  .footer {
    width: min(100% - 24px, var(--page));
  }

  .hero-home,
  .beginner-hero {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: 360px;
    background-position: 62% center;
  }

  .hero-copy {
    background: linear-gradient(90deg, rgba(7, 9, 8, 0.98), rgba(7, 9, 8, 0.72));
  }

  .stats-grid,
  .metrics,
  .wallet-summary,
  .market-strip,
  .supply-panel,
  .chart-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .top-volume-layout,
  .beginner-split {
    grid-template-columns: 1fr;
  }

  .asset-filter-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .asset-filter-bar input,
  #asset-search,
  #futures-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .asset-sort-strip,
  .asset-market-head,
  .asset-market-row {
    grid-template-columns: minmax(170px, 1.4fr) repeat(2, minmax(90px, 0.7fr));
  }

  .asset-sort-strip > :nth-child(n+4),
  .asset-market-row > :nth-child(n+4) {
    display: none;
  }

  .asset-hero,
  .futures-title,
  .news-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-stack {
    width: 100%;
    text-align: left;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 56px;
  }

  body {
    font-size: 14px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand-mark {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .nav a {
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .page-title,
  .wallet-hero,
  .asset-hero,
  .beginner-hero {
    padding-top: 28px;
  }

  .hero-home {
    min-height: 420px;
    margin-top: 12px;
    background-position: 65% center;
  }

  .hero-copy {
    padding: 24px 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .stats-grid,
  .metrics,
  .wallet-summary,
  .market-strip,
  .supply-panel,
  .chart-metrics,
  .futures-grid,
  .news-grid,
  .news-page-grid,
  .beginner-grid,
  .beginner-card-grid,
  .beginner-steps,
  .beginner-feature-grid {
    grid-template-columns: 1fr;
  }

  .asset-sort-strip,
  .asset-market-head,
  .asset-market-row {
    grid-template-columns: minmax(150px, 1.3fr) minmax(90px, 0.7fr);
    gap: 8px;
    padding-inline: 12px;
  }

  .asset-sort-strip > :nth-child(n+3),
  .asset-market-row > :nth-child(n+3) {
    display: none;
  }

  #chart {
    min-height: 330px;
  }

  .chart-card,
  .asset-owned-panel,
  .asset-hot-news,
  .related-assets,
  .orderbook,
  .trade-ticket,
  .info-box,
  .wallet-panel,
  .wallet-position-section {
    padding: 11px;
  }

  .wallet-login-form {
    grid-template-columns: 1fr;
  }

  .beginner-footer-action {
    right: 10px;
    bottom: 10px;
  }
}

/* Beginner learning graphics */
.beginner-footer-action {
  position: static;
  z-index: auto;
  display: flex;
  width: min(var(--page), calc(100% - 44px));
  margin: 28px auto 0;
  justify-content: flex-end;
}

.beginner-corner-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(28,224,130,.38);
  border-radius: 9px;
  background: linear-gradient(135deg, #10261d, #0d1914);
  color: var(--green-strong);
  font-size: .8rem;
  font-weight: 750;
}

.beginner-chart-demo {
  min-height: 330px;
  background-color: #080b09;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
}
.demo-candles { position: absolute; inset: 44px 22px 82px; display: flex; align-items: center; gap: clamp(5px,1.2vw,11px); }
.demo-candles i { position: relative; width: 10px; height: 54px; flex: 1; max-width: 18px; border-radius: 2px; background: var(--green); transform: translateY(18px); }
.demo-candles i::before { position: absolute; top: -16px; bottom: -16px; left: 50%; width: 1px; background: inherit; content: ""; }
.demo-candles i.down { background: var(--red); transform: translateY(-10px); }
.demo-candles i.tall { height: 82px; }
.demo-candles i.wide { max-width: 22px; }
.demo-volume { position: absolute; right: 20px; bottom: 20px; left: 20px; display: flex; align-items: end; gap: 7px; height: 52px; padding-top: 8px; border-top: 1px solid var(--line); }
.demo-volume i { flex: 1; height: 35%; background: rgba(28,224,130,.5); }
.demo-volume i:nth-child(2n) { height: 72%; background: rgba(255,81,59,.48); }
.demo-volume i:nth-child(3n) { height: 52%; }
.demo-ema { position: absolute; right: 22px; left: 22px; height: 2px; z-index: 2; border-radius: 50%; transform: rotate(-6deg); }
.demo-ema.yellow { top: 44%; background: #f0bf4c; box-shadow: 60px -18px #f0bf4c, 130px 8px #f0bf4c; }
.demo-ema.blue { top: 55%; background: #60a5fa; transform: rotate(3deg); opacity: .75; }
.demo-label { position: absolute; z-index: 3; padding: 4px 7px; border-radius: 5px; background: #17211c; color: var(--text-soft); font-size: .65rem; }
.demo-label.price { top: 18px; right: 18px; color: var(--green-strong); }
.demo-label.volume { bottom: 22px; left: 18px; }

.wide-chart-intervals { display: flex; flex-wrap: wrap; gap: 6px; }
.wide-chart-intervals span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .62rem; }
.wide-chart-intervals .active { border-color: rgba(28,224,130,.35); background: var(--green-soft); color: var(--green-strong); }
.wide-chart-legend { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.wide-chart-legend span { position: relative; display: grid; min-width: 0; min-height: 50px; padding: 8px 8px 8px 25px; border: 1px solid var(--line); border-radius: 7px; background: rgba(7,10,8,.65); }
.wide-chart-legend span::before { position: absolute; top: 12px; left: 9px; width: 8px; height: 22px; border-radius: 4px; background: var(--green); content: ""; }
.wide-chart-legend b { color: var(--text); font-size: .7rem; }
.wide-chart-legend small { overflow: hidden; color: var(--muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.wide-chart-legend .legend-ema30::before { background: #f0bf4c; }
.wide-chart-legend .legend-ema80::before { background: #60a5fa; }
.wide-chart-legend .legend-ema150::before { background: #c084fc; }
.wide-chart-legend .legend-entry::before { background: #aeb8b3; }
.wide-chart-legend .legend-limit::before { background: #65a7ff; }
.wide-chart-legend .legend-trigger::before { background: #20d39a; }
.wide-chart-legend .legend-tp::before { background: #2fe398; }
.wide-chart-legend .legend-sl::before, .wide-chart-legend .legend-liq::before { background: var(--red); }

.tutorial-chart-bg { fill: #090c0a; }
.tutorial-grid path { fill: none; stroke: rgba(255,255,255,.055); stroke-width: 1; }
.tutorial-split { stroke: rgba(255,255,255,.12); }
.tutorial-candles .up line, .tutorial-candles .up rect { stroke: #39d98a; fill: #20b873; }
.tutorial-candles .down line, .tutorial-candles .down rect { stroke: #ff6b57; fill: #e44f3b; }
.tutorial-volume .green { fill: rgba(32,184,115,.48); }
.tutorial-volume .red { fill: rgba(228,79,59,.42); }
.tutorial-ema { fill: none; stroke-width: 2.2; }
.tutorial-ema.ema30 { stroke: #f0bf4c; }
.tutorial-ema.ema80 { stroke: #60a5fa; }
.tutorial-ema.ema150 { stroke: #c084fc; }
.tutorial-current-line { stroke: #2fe398; stroke-width: 1.5; stroke-dasharray: 4 3; }
.tutorial-entry-line, .tutorial-limit-line, .tutorial-trigger-line, .tutorial-tp-line, .tutorial-sl-line, .tutorial-liq-line { stroke-width: 1.2; stroke-dasharray: 6 5; }
.tutorial-entry-line { stroke: #fff; }.tutorial-limit-line { stroke: #60a5fa; }.tutorial-trigger-line { stroke: #c084fc; }.tutorial-tp-line { stroke: #2fe398; }.tutorial-sl-line, .tutorial-liq-line { stroke: #ff6b57; }
.tutorial-labels text { fill: #66716c; font-size: 10px; }
.tutorial-callout path { fill: none; stroke: #77827d; stroke-width: 1; }
.tutorial-tag rect { fill: #18211d; stroke: #33413a; }.tutorial-tag text { fill: #dfe7e3; font-size: 10px; font-weight: 700; }
.tutorial-tag.current rect, .tutorial-tag.tp rect, .tutorial-tag.buy rect { fill: #123224; stroke: #2fe398; }
.tutorial-tag.sl rect, .tutorial-tag.liq rect { fill: #321713; stroke: #ff6b57; }
.tutorial-callout.ema30 path { stroke: #f0bf4c; stroke-width: 2; }.tutorial-tag.ema30 rect { fill: #2c2615; stroke: #f0bf4c; }.tutorial-tag.ema30 text { fill: #ffe3a0; }
.tutorial-callout.ema80 path { stroke: #60a5fa; stroke-width: 2; }.tutorial-tag.ema80 rect { fill: #14243a; stroke: #60a5fa; }.tutorial-tag.ema80 text { fill: #b9d7ff; }
.tutorial-callout.ema150 path { stroke: #c084fc; stroke-width: 2; }.tutorial-tag.ema150 rect { fill: #29183a; stroke: #c084fc; }.tutorial-tag.ema150 text { fill: #dfc2ff; }
.tutorial-callout.entry path { stroke: #d4ddd8; stroke-width: 1.7; }.tutorial-tag.entry rect { fill: #222926; stroke: #d4ddd8; }
.tutorial-callout.limit path { stroke: #65a7ff; stroke-width: 1.7; }.tutorial-tag.limit rect { fill: #14243a; stroke: #65a7ff; }
.tutorial-callout.trigger path { stroke: #20d39a; stroke-width: 1.7; }.tutorial-tag.trigger rect { fill: #123227; stroke: #20d39a; }
.tutorial-callout.tp path, .tutorial-callout.buy path, .tutorial-callout.current path { stroke: #2fe398; stroke-width: 1.8; }
.tutorial-callout.sl path, .tutorial-callout.liq path { stroke: #ff6b57; stroke-width: 1.8; }

.beginner-orderbook-demo { padding: 16px; }
.orderbook-title, .book-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 7px 8px; font-size: .72rem; }
.orderbook-title { color: var(--muted); border-bottom: 1px solid var(--line); }
.book-row { position: relative; overflow: hidden; font-variant-numeric: tabular-nums; }
.book-row::before { position: absolute; inset: 2px 0 2px auto; width: var(--depth,42%); background: rgba(255,81,59,.09); content: ""; }
.book-row.buy::before { background: rgba(28,224,130,.09); }
.book-row.sell span:first-child { color: var(--red); }.book-row.buy span:first-child { color: var(--green-strong); }
.book-now { margin: 8px 0; padding: 9px; border-block: 1px solid var(--line); color: var(--green-strong); text-align: center; font-weight: 750; }

.beginner-order-card, .future-panel { position: relative; overflow: hidden; }
.beginner-order-card::before, .future-panel::before { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--green); content: ""; opacity: .65; }
.beginner-future-demo { display: grid; place-items: center; padding: 22px; }
.future-meter { position: relative; width: min(270px,80%); aspect-ratio: 2/1; overflow: hidden; border-radius: 160px 160px 0 0; background: conic-gradient(from 270deg at 50% 100%, var(--green) 0 28%, #f0bf4c 28% 56%, var(--red) 56% 75%, transparent 75%); }
.future-meter::after { position: absolute; inset: 34px 34px 0; border-radius: 130px 130px 0 0; background: #090c0a; content: ""; }
.future-actions { display: flex; gap: 8px; margin-top: 18px; }
.future-actions span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: .72rem; }

@media (max-width: 560px) {
  .beginner-footer-action { width: calc(100% - 24px); margin-top: 20px; }
  .wide-chart-toolbar { align-items: flex-start; flex-direction: column; }
  .wide-chart-legend { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Interactive trading layer and richer visual finish */
body {
  background:
    radial-gradient(circle at 12% 3%, rgba(28,224,130,.055), transparent 25rem),
    radial-gradient(circle at 88% 24%, rgba(82,126,255,.035), transparent 30rem),
    var(--bg);
}

.site-header {
  box-shadow: 0 10px 34px rgba(0,0,0,.24);
}

.page-title,
.wallet-hero,
.asset-hero,
.beginner-hero {
  position: relative;
}

.page-title::after,
.wallet-hero::after,
.asset-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(28vw, 340px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
  content: "";
}

.stat-card,
.metric,
.market-card,
.future-card,
.wallet-card,
.chart-card,
.asset-owned-panel,
.asset-hot-news,
.related-assets,
.trade-ticket,
.orderbook,
.info-box,
.wallet-panel,
.news-board,
.news-side-box,
.lead-news-card,
.beginner-section,
.beginner-showcase {
  background: linear-gradient(145deg, rgba(19,25,22,.98), rgba(12,16,14,.98));
  box-shadow: 0 14px 38px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025);
}

.future-card,
.market-card,
.news-card,
.wallet-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.future-card:hover,
.market-card:hover,
.news-card:hover,
.wallet-card:hover {
  transform: translateY(-2px);
  border-color: #33413a;
  background: linear-gradient(145deg, #151c18, #0e1310);
}

.side-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.side-stack > .trade-ticket { order: 1; border-top: 2px solid var(--green); }
.side-stack > .orderbook { order: 2; }
.side-stack > .info-box { order: 3; }
.side-stack > .related-assets { order: 4; }

.trade-ticket-tabs {
  margin: -14px -14px 14px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
}

.trade-ticket-tabs button {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.trade-ticket-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--green-strong);
}

.trade-ticket-row { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.trade-ticket-form { margin-top: 12px; }
.trade-ticket-form label { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.future-leverage-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border-color: rgba(28,224,130,.35); background: var(--green-soft); color: var(--green-strong); }
.future-leverage-button small { color: var(--muted); font-size: .65rem; }

.asset-owned-identity,
.related-asset-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.asset-owned-identity > span:last-child,
.related-asset-identity > span:last-child { display: grid; min-width: 0; }
.asset-owned-identity .asset-icon { width: 28px; height: 28px; flex-basis: 28px; }
.related-asset-identity .asset-icon { width: 30px; height: 30px; flex-basis: 30px; }
.asset-owned-identity .asset-icon svg,
.related-asset-identity .asset-icon svg { width: 22px; height: 22px; }

.related-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 140ms ease, background 140ms ease;
}
.related-asset:hover { border-color: var(--line); background: var(--surface-hover); }
.related-asset > span:last-child { display: grid; justify-items: end; }
.related-asset small { color: var(--muted); font-size: .66rem; }

.asset-owned-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.asset-owned-action { min-height: 27px; padding: 4px 7px; font-size: .68rem; }
.asset-owned-action:last-child { border-color: rgba(255,81,59,.34); color: #ff8c7c; }

.future-action-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(2,5,4,.82);
  backdrop-filter: blur(10px);
  animation: dialog-fade 140ms ease-out;
}

.future-action-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #33423b;
  border-top: 2px solid var(--green);
  border-radius: 14px;
  background: linear-gradient(145deg, #151c18, #0b0f0d);
  box-shadow: 0 30px 90px rgba(0,0,0,.58);
  animation: dialog-rise 180ms ease-out;
}

.future-action-card h3 { margin: 0 42px 7px 0; font-size: 1.25rem; }
.future-action-card > p { margin-bottom: 20px; color: var(--muted); font-size: .86rem; }
.future-action-close { position: absolute; top: 14px; right: 14px; width: 32px; min-height: 32px; padding: 0; border-radius: 50%; font-size: 1.2rem; }
.future-action-form { display: grid; gap: 10px; }
.future-action-form > label { margin-top: 4px; color: var(--text-soft); font-size: .75rem; font-weight: 700; }
.future-action-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.future-action-buttons button[type="submit"], .future-action-buttons button:last-child { border-color: var(--green); background: var(--green); color: #04120c; }

.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatches button { position: relative; width: 38px; min-height: 38px; padding: 0; border-radius: 10px; background: var(--swatch); }
.color-swatches button::after { position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.36); border-radius: 6px; content: ""; }
.color-swatches button.active { outline: 2px solid #fff; outline-offset: 2px; }
.candle-tool-button { width: 34px; padding: 0; }
.candle-tool-icon { display: block; width: 15px; height: 18px; margin: auto; border-left: 4px solid var(--green); border-right: 4px solid var(--red); }

.leverage-dialog-value { display: flex; align-items: baseline; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elevated); }
.leverage-dialog-value strong { color: var(--green-strong); font-size: 2rem; }
.leverage-dialog-scale, .future-risk-slider-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.future-action-form input[type="range"] { width: 100%; accent-color: var(--green); }
.future-risk-slider-block { display: grid; gap: 8px; margin-top: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elevated); }
.future-risk-slider-block.stop-loss { border-color: rgba(255,81,59,.22); }
.future-risk-slider-head, .future-risk-close-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; }
.future-risk-slider-head { display: flex; justify-content: space-between; }
.future-risk-slider-head strong { color: var(--green-strong); }
.future-risk-slider-block.stop-loss .future-risk-slider-head strong { color: var(--red); }
.future-risk-price-input { display: grid; gap: 5px; }
.future-risk-price-preview, .future-dialog-help { color: var(--muted); font-size: .72rem; }
.wallet-fee-list { display: grid; gap: 7px; }
.wallet-fee-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elevated); }
.wallet-fee-row strong { color: var(--green-strong); }
.wallet-fee-row small { grid-column: 1 / -1; color: var(--muted); }

.tv-lightweight-charts a[href*="tradingview"],
.tv-lightweight-charts [class*="attribution"],
#chart a[href*="tradingview"],
#volume-chart a[href*="tradingview"] { display: none; }

@keyframes dialog-fade { from { opacity: 0; } }
@keyframes dialog-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }

@media (max-width: 1180px) {
  .detail-grid { grid-template-columns: minmax(0,1fr) 290px; }
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .side-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .side-stack > .trade-ticket,
  .side-stack > .orderbook,
  .side-stack > .info-box,
  .side-stack > .related-assets { order: initial; }
}

@media (max-width: 560px) {
  .side-stack { grid-template-columns: 1fr; }
  .side-stack > .trade-ticket { order: 1; }
  .side-stack > .orderbook { order: 2; }
  .side-stack > .info-box { order: 3; }
  .side-stack > .related-assets { order: 4; }
  .future-action-dialog { align-items: end; padding: 0; }
  .future-action-card { width: 100%; max-height: 88vh; padding: 20px 16px; border-radius: 16px 16px 0 0; }
  .future-risk-close-row { grid-template-columns: 1fr; }
}

/* Page-specific polish for the existing application markup */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.asset-sort-strip {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  padding: 3px 6px 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.asset-sort-strip span {
  margin: 0 4px;
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.asset-sort-strip .sort-arrow {
  width: 27px;
  min-height: 27px;
  padding: 0;
  border: 0;
  border-radius: 5px;
}

.asset-sort-strip .sort-arrow:hover { background: var(--surface-hover); color: var(--green-strong); }
.asset-market-list > .error-state,
.asset-market-list > .empty-state,
.futures-grid > .error-state,
.futures-grid > .empty-state { grid-column: 1 / -1; min-height: 130px; }

.wallet-login-form label { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; font-weight: 700; }
.wallet-login-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; }
.wallet-login-form { display: block; }
.wallet-login-form label { display: block; margin-bottom: 7px; }

.beginner-hero { align-items: center; padding-bottom: 32px; }
.beginner-hero-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.beginner-hero-actions a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); font-size: .75rem; font-weight: 650; }
.beginner-hero-actions a:first-child { border-color: rgba(28,224,130,.35); background: var(--green-soft); color: var(--green-strong); }
.beginner-terminal { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #090c0a; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.terminal-top, .terminal-lines, .invest-card-head, .market-school-top, .wide-chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.terminal-top { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.terminal-top strong, .terminal-price span { color: var(--green-strong); }
.terminal-price { margin: 28px 0 18px; font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 750; letter-spacing: -.04em; }
.terminal-chart { display: flex; align-items: end; gap: 7px; height: 92px; padding: 12px 4px; border-block: 1px solid var(--line); }
.terminal-chart i { flex: 1; height: 40%; border-radius: 2px 2px 0 0; background: var(--green); opacity: .55; }
.terminal-chart i:nth-child(2n) { height: 72%; opacity: .8; }
.terminal-chart i:nth-child(3n) { height: 54%; }
.terminal-lines { margin-top: 12px; color: var(--muted); font-size: .68rem; }

.beginner-section-head { display: block; max-width: 900px; margin-bottom: 22px; }
.beginner-section-head h2 { margin: 7px 0 8px; font-size: clamp(1.35rem,2.5vw,2rem); }
.beginner-section-head p { margin: 0; }
.beginner-roadmap, .market-school-grid, .invest-rules-grid, .chart-manual-grid, .timeframe-strip, .beginner-line-grid, .beginner-order-grid, .beginner-risk-grid, .beginner-wallet-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.beginner-roadmap { grid-template-columns: repeat(4,minmax(0,1fr)); }
.beginner-roadmap article, .market-school-card, .invest-card, .invest-timeline article, .invest-rules-grid article, .chart-manual-grid article, .timeframe-strip article, .beginner-line-grid article, .beginner-order-card, .beginner-risk-grid article, .beginner-wallet-grid article, .future-panel { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.beginner-roadmap article > span, .invest-timeline article > span { color: var(--green-strong); font: 700 .72rem/1 var(--font); letter-spacing: .08em; }
.beginner-page h3 { margin: 10px 0 7px; font-size: .95rem; }
.beginner-page article p, .beginner-page li { font-size: .86rem; line-height: 1.72; }
.market-school-top, .invest-card-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.market-school-card ul, .beginner-checklist { margin: 12px 0 0; padding-left: 18px; color: var(--text-soft); }
.volatility-note { display: flex; gap: 14px; margin-top: 10px; padding: 13px 15px; border-left: 2px solid var(--green); background: var(--green-soft); color: var(--text-soft); font-size: .82rem; }
.invest-example-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 16px; }
.invest-timeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.invest-price-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.invest-rules-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 10px; }
.beginner-showcase { display: grid; grid-template-columns: minmax(0,.85fr) minmax(360px,1.15fr); gap: 24px; align-items: center; }
.beginner-showcase.reverse { grid-template-columns: minmax(360px,1.15fr) minmax(0,.85fr); }
.beginner-chart-demo, .beginner-orderbook-demo, .beginner-wide-chart, .beginner-future-demo { position: relative; min-height: 280px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #090c0a; }
.beginner-wide-chart { min-height: 440px; margin-top: 18px; }
.wide-chart-toolbar { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wide-chart-toolbar span { display: block; color: var(--muted); font-size: .7rem; }
.wide-chart-svg { display: block; width: 100%; height: clamp(500px,48vw,650px); min-height: 500px; }
.timeframe-strip { grid-template-columns: repeat(6,minmax(0,1fr)); margin-bottom: 10px; }
.line-chip, .risk-badge { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-strong); font-size: .67rem; }
.beginner-order-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.order-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--green-soft); color: var(--green-strong); }
.beginner-tip { border-left: 2px solid var(--green); }
.beginner-tip h2 { margin-top: 0; }
.beginner-tip-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.beginner-tip-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #06110a; font-size: .78rem; font-weight: 780; }
.beginner-tip-actions a:last-child { border-color: var(--line-strong); background: transparent; color: var(--text); }
.beginner-tip-actions a:hover { transform: translateY(-1px); filter: brightness(1.06); }

@media (max-width: 860px) {
  .toolbar { align-items: stretch; flex-direction: column; }
  .asset-sort-strip { width: fit-content; }
  .asset-sort-strip > :nth-child(n) { display: initial; }
  .beginner-roadmap, .timeframe-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .beginner-showcase, .beginner-showcase.reverse, .invest-example-layout { grid-template-columns: 1fr; }
  .beginner-showcase.reverse > :first-child { order: 2; }
}

@media (max-width: 560px) {
  .wallet-login-row, .beginner-roadmap, .market-school-grid, .invest-timeline, .invest-rules-grid, .chart-manual-grid, .timeframe-strip, .beginner-line-grid, .beginner-order-grid, .beginner-risk-grid, .beginner-wallet-grid { grid-template-columns: 1fr; }
  .asset-sort-strip { width: 100%; overflow-x: auto; }
  .asset-sort-strip span { white-space: nowrap; }
  .beginner-terminal { padding: 14px; }
  .terminal-lines { align-items: flex-start; flex-direction: column; }
  .beginner-wide-chart { min-height: 300px; }
  .wide-chart-svg { height: 360px; min-height: 360px; }
  .volatility-note { flex-direction: column; gap: 4px; }
  .beginner-section, .beginner-showcase, .beginner-tip { margin-top: 18px; padding: 20px 16px; }
  .beginner-tip-actions a { width: 100%; }
}

.beginner-chart-demo { min-height: 330px; }

@media (max-width: 560px) {
  .beginner-chart-demo { min-height: 300px; }
}

/* Exchange design system v3 */
:root {
  --page: 1480px;
  --section-space: clamp(32px, 4vw, 58px);
  --surface-subtle: rgba(15, 20, 17, .72);
  --line-strong: #334039;
  --shadow-soft: 0 18px 60px rgba(0,0,0,.2);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  content: "";
}

.section { padding-block: var(--section-space); }
.section + .section { border-top: 1px solid rgba(255,255,255,.045); }

/* Free, edge-integrated overview hero */
.hero-home {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 40vw, 540px);
  margin: 0 0 10px;
  grid-template-columns: 1fr;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(5,8,6,.98) 0%, rgba(5,8,6,.87) 40%, rgba(5,8,6,.2) 78%, rgba(5,8,6,.72) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%),
    url("/img/nrwsmp-hero.png") 72% center / cover no-repeat;
}

body[data-page="home"] main { width: 100%; }
body[data-page="home"] .site-header { padding-right: max(22px,calc((100vw - 1720px)/2)); }
body[data-page="home"] main > .section { width: min(var(--page),calc(100% - 44px)); margin-inline: auto; }

.hero-home::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28,224,130,.48), transparent);
  content: "";
}

.hero-home .hero-copy {
  width: min(1720px, calc(100% - 44px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 100px) 0;
  background: none;
}
.hero-home .hero-copy h1 { max-width: 760px; text-wrap: balance; }
.hero-home .hero-copy p { max-width: 620px; }
.chart-control-bar { align-items: center; min-height: 0; margin-top: 10px; margin-bottom: 0; padding: 0 0 8px; }
.chart-control-bar .chart-indicators { margin: 0; }

/* News selection and hierarchy */
.news-dashboard.news-only { display: block; padding-top: 16px; }
.news-only .news-side-column { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.news-only .news-side-box { display: flex; min-height: 190px; flex-direction: column; justify-content: space-between; border-top: 2px solid var(--green); background: linear-gradient(145deg,rgba(18,25,21,.98),rgba(10,14,12,.98)); }
.news-only .news-side-box.daily { border-top-color: #60a5fa; }
.news-only .news-side-box.weekly { border-top-color: #c084fc; }
.news-only .news-side-box h2 { margin: 7px 0 10px; font-size: 1.15rem; }
.news-only .news-side-box p { color: var(--text-soft); line-height: 1.55; }
.news-only .news-side-box .link-button { width: fit-content; margin-top: 18px; }
.news-market-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px; }

@media (max-width: 860px) {
  .chart-control-bar { align-items: flex-start; flex-direction: column; }
  .news-only .news-side-column, .news-market-split { grid-template-columns: 1fr; }
}

/* Brand stays flush left on every page */
.site-header { padding-left: 0; }

/* Market tables and real sparklines */
.market-list-shell { border-inline: 0; border-radius: 0; background: transparent; }
.asset-market-head { background: rgba(10,14,12,.9); }
.asset-market-head, .asset-market-row { grid-template-columns: minmax(240px,1.5fr) minmax(120px,.8fr) minmax(85px,.55fr) minmax(150px,.95fr) minmax(105px,.65fr) minmax(130px,.8fr) minmax(68px,.4fr); }
.asset-market-row { border-inline: 1px solid transparent; }
.asset-market-row:hover { border-inline-color: var(--line-strong); background: linear-gradient(90deg, rgba(28,224,130,.045), rgba(255,255,255,.025)); }
.market-pair-cell .asset-icon { width: 34px; height: 34px; flex-basis: 34px; }
.mover-spark { min-height: 50px; }
.mover-spark svg { display: block; width: 120px; height: 50px; }
.sparkline-loading, .sparkline-empty { display: grid; min-height: 50px; place-items: center; color: var(--muted); font-size: .68rem; }

/* Asset workspace */
.chart-card { padding: 0; overflow: hidden; border-color: var(--line-strong); }
.chart-card > .market-strip, .chart-card > .chart-toolbar, .chart-card > .chart-indicators { margin-inline: 16px; }
.chart-card > .market-strip { margin-top: 16px; }
.chart-card > .chart-frame { border-inline: 0; border-radius: 0; }
.chart-card > .asset-statistics, .chart-card > .asset-owned-panel, .chart-card > .asset-hot-news, .chart-card > .chart-status { margin-inline: 16px; }
.asset-statistics {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 0;
  margin-block: 14px;
  border-block: 1px solid var(--line);
}
.asset-statistics > div { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); }
.asset-statistics > div:nth-child(5n) { border-right: 0; }
.asset-statistics span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .055em; }
.asset-statistics strong { display: block; overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.asset-statistics strong b { font-weight: 700; }
.side-stack > .trade-ticket { order: 1; }
.side-stack > .orderbook { order: 2; }
.side-stack > .related-assets { order: 3; }

.asset-owned-row.future-row { grid-template-columns: minmax(190px,1.55fr) repeat(8,minmax(105px,.78fr)) minmax(185px,1.35fr); min-width: 1380px; padding: 10px 12px; }
.asset-owned-row.future-row:not(.head) { margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; background: rgba(8,12,10,.52); }
.asset-owned-row.future-row:not(.head):hover { border-color: var(--line-strong); background: rgba(28,224,130,.035); }
.future-position-identity { display: flex; align-items: center; gap: 9px; }
.future-position-identity .asset-icon { width: 34px; height: 34px; flex-basis: 34px; }
.future-position-identity > span:last-child { display: grid; }
.future-position-identity small { width: fit-content; margin-top: 3px; padding: 2px 6px; border-radius: 999px; background: rgba(28,224,130,.1); color: var(--green-strong); font-size: .62rem; }
.future-position-identity.short small { background: rgba(255,81,59,.11); color: #ff8d7e; }

/* News: sentiment colors only headings and compact metadata */
.news-card p, .lead-news-card p, .asset-hot-news-card p, .world-news-card p { color: var(--text-soft) !important; }
.news-card.positive h3, .lead-news-card.positive h2, .asset-hot-news-card.positive h3 { color: #63dfa1; }
.news-card.negative h3, .lead-news-card.negative h2, .asset-hot-news-card.negative h3 { color: #ff8878; }
.news-card.neutral h3, .lead-news-card.neutral h2 { color: var(--text); }
.news-card.positive, .news-card.negative, .lead-news-card.positive, .lead-news-card.negative { color: inherit; }
.news-card { position: relative; border-top: 1px solid var(--line); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; background: transparent; box-shadow: none; }
.news-card:hover { transform: none; border-top-color: var(--line-strong); background: linear-gradient(90deg,rgba(255,255,255,.025),transparent); }
.news-meta span:first-child { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; }

/* Portfolio dashboard */
.wallet-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.wallet-summary { grid-template-columns: minmax(260px,1.5fr) repeat(3,minmax(155px,1fr)); }
.wallet-total-card { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 198px; border-color: rgba(28,224,130,.25); background: radial-gradient(circle at 80% 15%,rgba(28,224,130,.13),transparent 50%),linear-gradient(145deg,#14221b,#0b100d); }
.wallet-total-card strong { font-size: clamp(1.8rem,3vw,3rem); letter-spacing: -.045em; }
.wallet-total-card small { margin-top: 7px; color: var(--muted); }
.wallet-insights { display: grid; grid-template-columns: minmax(360px,1.35fr) repeat(2,minmax(220px,.75fr)); gap: 12px; margin: 18px 0; }
.wallet-insight-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,rgba(18,24,21,.96),rgba(10,14,12,.96)); box-shadow: var(--shadow-soft); }
.wallet-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .055em; }
.wallet-balance-card { grid-row: span 2; }
.wallet-allocation-donut { position: relative; display: grid; width: min(240px,70vw); margin: 12px auto 20px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(#c9d2ce 0 calc(var(--cash)*1%),#31d991 calc(var(--cash)*1%) calc(var(--stock)*1%),#5c8cff calc(var(--stock)*1%) calc(var(--crypto)*1%),#d09aff calc(var(--crypto)*1%) 100%); box-shadow: 0 0 44px rgba(28,224,130,.08); }
.wallet-allocation-donut::before { position: absolute; inset: 24%; border: 1px solid var(--line); border-radius: 50%; background: #0b0f0d; content: ""; }
.wallet-allocation-donut > span { position: relative; z-index: 1; display: grid; text-align: center; }
.wallet-allocation-donut > span strong { font-size: 1.15rem; }
.wallet-allocation-donut > span small { color: var(--muted); }
.wallet-allocation-legend { display: grid; gap: 7px; }
.wallet-allocation-item { display: grid; grid-template-columns: 8px 1fr auto auto; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.wallet-allocation-item > i { width: 8px; height: 8px; border-radius: 50%; background: #c9d2ce; }
.wallet-allocation-item.stock > i { background: #31d991; }.wallet-allocation-item.crypto > i { background: #5c8cff; }.wallet-allocation-item.future > i { background: #d09aff; }
.wallet-allocation-item small { min-width: 45px; color: var(--muted); text-align: right; }
.wallet-weight-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 11px; }
.wallet-weight-row i { grid-column: 1/-1; height: 4px; overflow: hidden; border-radius: 3px; background: #202723; }
.wallet-weight-row i b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.wallet-position-section { padding: 0; overflow-x: auto; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; box-shadow: none; }
.wallet-position-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px 12px; }
.wallet-section-stats { display: flex; flex-wrap: wrap; gap: 7px; }.wallet-section-stats em { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; font-style: normal; }
.wallet-holdings-head, .wallet-holding-row { display: grid; grid-template-columns: minmax(190px,1.35fr) repeat(5,minmax(110px,.8fr)) minmax(80px,.55fr); align-items: center; gap: 12px; min-width: 980px; padding: 10px 12px; }
.wallet-holdings-head { color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .05em; }
.wallet-holding-row { border-top: 1px solid rgba(255,255,255,.045); font-size: .76rem; transition: background 140ms ease; }.wallet-holding-row:hover { background: rgba(28,224,130,.035); }
.wallet-asset-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }.wallet-asset-cell .asset-icon { width: 34px; height: 34px; flex-basis: 34px; }.wallet-asset-cell > span:last-child { display: grid; min-width: 0; }.wallet-asset-cell small, .wallet-holding-row small { color: var(--muted); }
.wallet-future-row { grid-template-columns: minmax(190px,1.35fr) repeat(6,minmax(110px,.8fr)) minmax(90px,.6fr); min-width: 1120px; }
.wallet-future-row > span:nth-child(2) { width: fit-content; padding: 3px 8px; border-radius: 999px; background: rgba(28,224,130,.1); }
.wallet-future-row > span:nth-child(2).negative { background: rgba(255,81,59,.1); }
.wallet-order-head, .wallet-order-row { grid-template-columns: minmax(190px,1.35fr) repeat(5,minmax(110px,.8fr)) minmax(160px,1fr); }
.wallet-history-head, .wallet-history-row { grid-template-columns: minmax(130px,.8fr) minmax(190px,1.3fr) repeat(4,minmax(110px,.8fr)); }

/* Refined page headers and control bars */
.page-title, .wallet-hero, .asset-hero, .beginner-hero { padding-top: clamp(42px,5vw,74px); }
.toolbar { padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
input, select, textarea { background: rgba(7,10,8,.85); }
button { transition: background 140ms ease,border-color 140ms ease,color 140ms ease,transform 140ms ease; }
button:not(:disabled):active { transform: translateY(1px); }

/* Compact asset switcher */
.asset-title-row { display: flex; align-items: center; gap: 10px; }
.asset-title-row h1 { margin: 0; }
.asset-switcher-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(17,24,20,.95);
  color: var(--text);
  font-size: 1.15rem;
}
.asset-switcher-button:hover,
.asset-switcher-button[aria-expanded="true"] { border-color: var(--green); background: rgba(28,224,130,.09); color: var(--green-strong); }
.asset-switcher-dialog { position: fixed; z-index: 1200; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.asset-switcher-card { width: min(760px,100%); max-height: min(760px,88vh); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #0d120f; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.asset-switcher-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.asset-switcher-head h2 { margin: 4px 0 0; font-size: 1.35rem; }
.asset-switcher-close { width: 34px; height: 34px; padding: 0; border-radius: 8px; font-size: 1.25rem; }
.asset-switcher-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,.7fr); gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.asset-switcher-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-switcher-tabs button { min-height: 36px; padding: 7px 11px; }
.asset-switcher-tabs button.active { border-color: var(--green); background: var(--green); color: #07110b; }
.asset-switcher-settings-button { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); }
.asset-switcher-search { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5,8,6,.72); }
.asset-switcher-search:focus-within { border-color: var(--green); }
.asset-switcher-search input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; }
.asset-switcher-settings { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: rgba(28,224,130,.035); color: var(--text-soft); font-size: .74rem; }
.asset-switcher-settings label { display: flex; align-items: center; gap: 8px; color: var(--text); }
.asset-switcher-settings input { width: 15px; height: 15px; min-height: 0; margin: 0; padding: 0; flex: 0 0 15px; accent-color: var(--green); }
.asset-switcher-list-head,
.asset-switcher-item { display: grid; grid-template-columns: minmax(240px,1fr) 120px 90px; align-items: center; gap: 16px; }
.asset-switcher-list-head { padding: 10px 22px 7px; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.asset-switcher-list-head span:not(:first-child), .asset-switcher-item > :not(:first-child) { text-align: right; }
.asset-switcher-list { max-height: min(500px,58vh); overflow-y: auto; padding: 0 10px 12px; }
.asset-switcher-item { min-height: 58px; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.045); color: var(--text); }
.asset-switcher-item:hover { background: rgba(28,224,130,.055); }
.asset-switcher-item.active { border-color: rgba(28,224,130,.28); background: rgba(28,224,130,.09); }
.asset-switcher-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.asset-switcher-identity .asset-icon { width: 34px; height: 34px; flex: 0 0 34px; }
.asset-switcher-identity > span:last-child { display: grid; min-width: 0; }
.asset-switcher-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-switcher-identity small { margin-top: 2px; color: var(--muted); }
.asset-switcher-empty { padding: 42px 20px; color: var(--muted); text-align: center; }

@media (max-width: 1100px) {
  .asset-statistics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .asset-statistics > div:nth-child(5n) { border-right: 1px solid var(--line); }
  .asset-statistics > div:nth-child(3n) { border-right: 0; }
  .wallet-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .wallet-total-card { grid-column: 1/-1; grid-row: auto; min-height: 150px; }
  .wallet-insights { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wallet-balance-card { grid-row: span 2; }
}

@media (max-width: 760px) {
  .hero-home { min-height: 430px; background-position: 64% center; }
  .hero-home .hero-copy { width: calc(100% - 32px); padding-block: 58px; }
  .asset-statistics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .asset-statistics > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .asset-statistics > div:nth-child(2n) { border-right: 0; }
  .wallet-summary, .wallet-insights { grid-template-columns: 1fr; }
  .wallet-balance-card { grid-row: auto; }
  .asset-switcher-dialog { align-items: end; padding: 0; }
  .asset-switcher-card { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .asset-switcher-controls { grid-template-columns: 1fr; }
  .asset-switcher-list-head, .asset-switcher-item { grid-template-columns: minmax(170px,1fr) 92px 72px; gap: 8px; }
}

@media (max-width: 1100px) {
  .asset-market-head, .asset-market-row { grid-template-columns: minmax(210px,1.4fr) minmax(115px,.8fr) minmax(85px,.55fr) minmax(125px,.8fr) minmax(120px,.75fr); }
  .asset-market-head > :nth-child(4), .asset-market-row > :nth-child(4), .asset-market-head > :nth-child(5), .asset-market-row > :nth-child(5) { display: none; }
}

@media (max-width: 620px) {
  .asset-market-head, .asset-market-row { grid-template-columns: minmax(175px,1.25fr) minmax(105px,.75fr) minmax(80px,.55fr); }
  .asset-market-head > :nth-child(6), .asset-market-row > :nth-child(6), .asset-market-head > :nth-child(7), .asset-market-row > :nth-child(7) { display: none; }
}

@media (max-width: 480px) {
  .asset-statistics { grid-template-columns: 1fr; }
  .asset-statistics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-home .hero-copy h1 { font-size: clamp(2.25rem,12vw,3.4rem); }
}
