:root {
  color-scheme: dark;
  --bg: #050a12;
  --panel: #0a1424;
  --panel-soft: #0e1a2d;
  --border: rgba(148, 163, 184, 0.22);
  --text: #edf5ff;
  --muted: #94a3b8;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.16);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --white-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 30rem),
    linear-gradient(180deg, #07101d 0%, var(--bg) 42%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.72);
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
}

input:focus {
  border-color: rgba(34, 197, 94, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100vw - 1180px) / 2));
  background: rgba(5, 10, 18, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.1rem;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(255, 255, 255, 0.08));
  color: #dcfce7;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.nav a,
.link-button,
.small-button,
.segmented button {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  transition: 160ms ease;
}

.nav a {
  padding: 0.58rem 0.76rem;
}

.nav a:hover,
.link-button:hover,
.small-button:hover,
.segmented button:hover,
.segmented button.active {
  color: var(--text);
  border-color: rgba(34, 197, 94, 0.55);
  background: var(--green-soft);
}

.hero,
.asset-hero,
.page-title {
  padding: 4rem 0 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 2rem;
}

.hero h1,
.page-title h1,
.asset-hero h1 {
  margin: 0.5rem 0 0;
  max-width: 820px;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-panel,
.stat-card,
.market-card,
.metric,
.chart-card,
.info-box,
.table-shell {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 26, 45, 0.92), rgba(10, 20, 36, 0.92));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.1rem;
}

.hero-panel label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow,
.asset-type {
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 1.5rem 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.chart-toolbar h2,
.info-box h2 {
  margin: 0;
  font-size: 1.15rem;
}

.link-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

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

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

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

.stat-card,
.market-card,
.metric {
  padding: 1rem;
}

.stat-card span,
.metric span,
.price-stack span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.stat-card strong,
.metric strong,
.price-stack strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.55rem;
}

.market-card {
  display: grid;
  gap: 0.7rem;
  min-height: 160px;
}

.market-card h3 {
  margin: 0.35rem 0 0;
}

.card-price {
  font-weight: 800;
}

.asset-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 0.7fr 1fr 0.7fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(10, 20, 36, 0.7);
  border-bottom: 1px solid var(--border);
}

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

.asset-row span,
.muted {
  color: var(--muted);
}

.asset-row strong,
td strong {
  display: block;
}

td span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.neutral {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px);
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.segmented {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.segmented button {
  cursor: pointer;
  padding: 0.72rem 0.92rem;
}

.table-shell {
  margin-bottom: 3rem;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.table-empty,
.empty-state,
.error-state {
  padding: 1.2rem;
  color: var(--muted);
  text-align: center;
}

.error-state {
  color: #fecaca;
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
}

.asset-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.price-stack {
  min-width: 260px;
  padding: 1.15rem;
  border: 1px solid rgba(34, 197, 94, 0.42);
  border-radius: 8px;
  background: var(--green-soft);
}

.metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  margin-bottom: 3rem;
}

.chart-card {
  min-width: 0;
  padding: 1rem;
}

.chart-frame {
  position: relative;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.market-strip div {
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(239, 211, 143, 0.14);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.035);
}

.market-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.market-strip strong {
  display: block;
  margin-top: 0.28rem;
  color: #fff7df;
  font-size: 0.94rem;
  white-space: nowrap;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.35rem 0 0.8rem;
}

.chart-indicators button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  border: 1px solid rgba(239, 211, 143, 0.16);
  border-radius: 999px;
  padding: 0.4rem 0.62rem;
  color: var(--muted);
  background: rgba(255, 249, 232, 0.035);
}

.chart-indicators button.active {
  color: #fff7df;
  border-color: rgba(88, 220, 76, 0.32);
  background: rgba(88, 220, 76, 0.08);
}

.chart-indicators i {
  width: 1.2rem;
  height: 0.18rem;
  border-radius: 999px;
  opacity: 0.45;
}

.chart-indicators button.active i {
  opacity: 1;
}

.ema-30 {
  background: #f0bf4c;
}

.ema-80 {
  background: #60a5fa;
}

.ema-150 {
  background: #c084fc;
}

.volume-label {
  position: absolute;
  left: 0.85rem;
  bottom: 1.05rem;
  z-index: 2;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(239, 211, 143, 0.1);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(5, 8, 6, 0.58);
  font-size: 0.72rem;
  pointer-events: none;
}

.volume-label span {
  color: #58dc4c;
  font-weight: 800;
}

#chart {
  width: 100%;
  height: 480px;
}

.chart-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.supply-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.supply-panel div {
  padding: 0.85rem;
  border: 1px solid rgba(239, 211, 143, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.035);
}

.supply-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.supply-panel strong {
  display: block;
  margin-top: 0.32rem;
  color: #fff7df;
  font-size: 1.08rem;
}

.info-box {
  align-self: start;
  padding: 1rem;
}

.side-stack {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.related-assets {
  padding: 1rem;
  border: 1px solid rgba(239, 211, 143, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.055), transparent),
    rgba(14, 20, 14, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.24);
}

.orderbook {
  padding: 1rem;
  border: 1px solid rgba(239, 211, 143, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.055), transparent),
    rgba(14, 20, 14, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.24);
}

.orderbook-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.orderbook-head h2 {
  margin: 0;
  color: #fff3c5;
  font-size: 1.08rem;
}

.orderbook-head span,
.orderbook-table-head {
  color: var(--muted);
  font-size: 0.72rem;
}

.orderbook-table-head,
.orderbook-row {
  display: grid;
  grid-template-columns: 1fr 0.82fr 0.9fr;
  gap: 0.5rem;
  align-items: center;
}

.orderbook-table-head {
  margin-bottom: 0.35rem;
}

.orderbook-table-head span:nth-child(n + 2),
.orderbook-row span:nth-child(n + 2) {
  text-align: right;
}

.orderbook-list {
  display: grid;
  gap: 0.12rem;
}

.orderbook-row {
  position: relative;
  min-height: 1.45rem;
  padding: 0.18rem 0.25rem;
  overflow: hidden;
  border-radius: 4px;
  color: #f7efd8;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.orderbook-row::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--depth);
  opacity: 0.42;
  transition: width 240ms ease;
}

.orderbook-row span {
  position: relative;
  z-index: 1;
}

.orderbook-row.ask span:first-child {
  color: #ff9a88;
}

.orderbook-row.ask::before {
  background: rgba(255, 81, 59, 0.22);
}

.orderbook-row.bid span:first-child {
  color: #8cff7f;
}

.orderbook-row.bid::before {
  background: rgba(88, 220, 76, 0.22);
}

.orderbook-mid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.6rem 0;
  padding: 0.58rem 0.25rem;
  border-top: 1px solid rgba(239, 211, 143, 0.12);
  border-bottom: 1px solid rgba(239, 211, 143, 0.12);
}

.orderbook-mid strong {
  color: #58dc4c;
  font-size: 1.08rem;
}

.orderbook-mid span {
  color: var(--muted);
  font-size: 0.72rem;
}

.related-assets-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.related-assets-head h2 {
  margin: 0;
  color: #fff3c5;
  font-size: 1.08rem;
}

.related-assets-head span {
  max-width: 8rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: right;
}

.related-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.25rem;
  border: 1px solid rgba(239, 211, 143, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 6, 0.34);
}

.related-tabs button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  color: var(--muted);
  background: transparent;
}

.related-tabs button:hover,
.related-tabs button.active {
  color: #fff7df;
  border-color: rgba(88, 220, 76, 0.38);
  background: rgba(88, 220, 76, 0.12);
}

.related-assets-list {
  display: grid;
  gap: 0.55rem;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-color: rgba(88, 220, 76, 0.55) rgba(255, 249, 232, 0.06);
}

.related-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(239, 211, 143, 0.14);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.035);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.related-asset:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 220, 76, 0.38);
  background: rgba(88, 220, 76, 0.08);
}

.related-asset span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.5rem;
  min-width: 0;
}

.related-asset em {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(239, 211, 143, 0.16);
  border-radius: 6px;
  color: #ffe7a1;
  background: rgba(255, 249, 232, 0.045);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.related-asset strong {
  display: block;
  color: #fff7df;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-asset small {
  display: block;
  grid-column: 2;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.related-asset > span:last-child {
  display: block;
  flex: 0 0 auto;
  text-align: right;
}

.related-asset > span:last-child small {
  grid-column: auto;
}

.info-box dl {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.info-box dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.info-box dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  text-align: right;
}

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .split,
  .asset-hero,
  .detail-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .site-header,
  .asset-hero {
    align-items: flex-start;
  }

  .site-header {
    display: grid;
  }

  .nav {
    justify-content: flex-start;
  }

  .stats-grid,
  .split .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .price-stack {
    width: 100%;
  }

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

  .side-stack {
    align-self: stretch;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 1rem, 1180px);
  }

  .hero,
  .asset-hero,
  .page-title {
    padding-top: 2.2rem;
  }

  .stats-grid,
  .card-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #chart {
    height: 360px;
  }

  .supply-panel {
    grid-template-columns: 1fr;
  }

  .market-strip {
    grid-template-columns: 1fr;
  }
}

/* NRWsmp Minecraft exchange theme */
:root {
  --bg: #080d0b;
  --panel: #10160f;
  --panel-soft: #172111;
  --border: rgba(231, 190, 109, 0.3);
  --text: #fff7df;
  --muted: #c7b993;
  --green: #52d447;
  --green-soft: rgba(82, 212, 71, 0.17);
  --red: #f04a33;
  --red-soft: rgba(240, 74, 51, 0.14);
  --gold: #f0bf4c;
  --dirt: #6f4a28;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

body {
  background:
    linear-gradient(180deg, rgba(8, 13, 11, 0.82), rgba(8, 13, 11, 0.98)),
    radial-gradient(circle at top left, rgba(82, 212, 71, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(240, 191, 76, 0.12), transparent 24rem),
    linear-gradient(180deg, #102013 0%, var(--bg) 46%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.14) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  pointer-events: none;
}

input,
.nav a,
.link-button,
.small-button,
.segmented button,
.hero-panel,
.stat-card,
.market-card,
.metric,
.chart-card,
.info-box,
.table-shell,
.asset-list,
.price-stack,
#chart {
  border-radius: 4px;
}

input {
  background: rgba(8, 13, 11, 0.74);
}

.site-header {
  background: rgba(10, 16, 11, 0.91);
  border-bottom: 3px solid rgba(111, 74, 40, 0.9);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.brand-mark {
  border: 2px solid rgba(24, 18, 11, 0.9);
  background: linear-gradient(90deg, #1c1c1c 0 33%, #e13524 33% 66%, #2bc846 66%);
  color: #fff7df;
  box-shadow: inset 0 0 0 2px rgba(255, 247, 223, 0.2), 0 3px 0 rgba(0, 0, 0, 0.45);
}

.nav a,
.link-button,
.small-button,
.segmented button {
  background: rgba(255, 247, 223, 0.05);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.nav a:hover,
.link-button:hover,
.small-button:hover,
.segmented button:hover,
.segmented button.active {
  border-color: rgba(82, 212, 71, 0.75);
  background: linear-gradient(180deg, rgba(82, 212, 71, 0.18), rgba(47, 102, 41, 0.24));
}

.hero-home {
  position: relative;
  min-height: 560px;
  margin-top: 1.4rem;
  padding: 3rem;
  overflow: hidden;
  border: 3px solid rgba(46, 31, 18, 0.92);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(8, 13, 11, 0.94), rgba(8, 13, 11, 0.62) 48%, rgba(8, 13, 11, 0.24)),
    url("/img/nrwsmp-hero.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 2px rgba(255, 247, 223, 0.08), 0 24px 70px rgba(0, 0, 0, 0.45);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background:
    linear-gradient(90deg, rgba(82, 212, 71, 0.26), rgba(240, 191, 76, 0.16)),
    linear-gradient(180deg, transparent, rgba(8, 13, 11, 0.88));
  pointer-events: none;
}

.hero-home > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-title h1,
.asset-hero h1 {
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.58), 0 0 34px rgba(240, 191, 76, 0.16);
}

.hero p {
  color: #f1e5bd;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.hero-panel,
.stat-card,
.market-card,
.metric,
.chart-card,
.info-box,
.table-shell {
  background:
    linear-gradient(180deg, rgba(255, 247, 223, 0.04), transparent),
    linear-gradient(180deg, rgba(23, 33, 17, 0.94), rgba(12, 18, 12, 0.96));
}

.hero-panel {
  border-width: 2px;
  background:
    linear-gradient(180deg, rgba(111, 74, 40, 0.5), rgba(23, 33, 17, 0.94)),
    rgba(23, 33, 17, 0.96);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(82, 212, 71, 0.35);
  border-radius: 4px;
  background: rgba(8, 13, 11, 0.58);
  color: #a7ff8b;
}

.eyebrow::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(8, 13, 11, 0.9), 0 0 18px rgba(82, 212, 71, 0.55);
}

.section-heading h2,
.chart-toolbar h2,
.info-box h2 {
  color: #ffe7a1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.46);
}

.stat-card,
.market-card,
.metric {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -3px 0 rgba(111, 74, 40, 0.35), var(--shadow);
}

.market-card::before,
.stat-card::before,
.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  opacity: 0.85;
}

.stat-card strong,
.metric strong,
.price-stack strong {
  color: #fff7df;
}

.asset-row {
  background:
    linear-gradient(90deg, rgba(82, 212, 71, 0.05), transparent),
    rgba(16, 22, 15, 0.86);
}

th {
  background: rgba(111, 74, 40, 0.16);
}

.positive {
  text-shadow: 0 0 18px rgba(82, 212, 71, 0.25);
}

.negative {
  text-shadow: 0 0 18px rgba(240, 74, 51, 0.22);
}

.price-stack {
  border: 2px solid rgba(82, 212, 71, 0.48);
  background:
    linear-gradient(135deg, rgba(82, 212, 71, 0.22), rgba(240, 191, 76, 0.08)),
    var(--green-soft);
}

#chart {
  border: 1px solid rgba(231, 190, 109, 0.22);
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-home {
    min-height: 520px;
    padding: 2rem;
    background-position: center;
  }
}

@media (max-width: 560px) {
  .hero-home {
    min-height: 560px;
    padding: 1.2rem;
  }
}

/* Professional polish pass */
:root {
  --bg: #070b08;
  --panel: #111711;
  --panel-soft: #182218;
  --border: rgba(239, 211, 143, 0.22);
  --text: #fff9e8;
  --muted: #bdae8b;
  --green: #58dc4c;
  --green-soft: rgba(88, 220, 76, 0.14);
  --red: #ff513b;
  --gold: #e8b64e;
  --amber-soft: rgba(232, 182, 78, 0.14);
  --glass: rgba(11, 17, 12, 0.72);
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(88, 220, 76, 0.13), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(232, 182, 78, 0.11), transparent 26rem),
    linear-gradient(180deg, #101910 0%, #070b08 46%, #050806 100%);
}

main {
  width: min(1220px, calc(100% - 2rem));
}

.site-header {
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid rgba(239, 211, 143, 0.18);
  background:
    linear-gradient(180deg, rgba(16, 23, 16, 0.94), rgba(8, 12, 9, 0.9)),
    rgba(8, 12, 9, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
}

.brand {
  font-size: 1.02rem;
}

.brand-mark {
  min-width: 3rem;
  height: 2.2rem;
  border: 1px solid rgba(239, 211, 143, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 232, 0.25), 0 10px 20px rgba(0, 0, 0, 0.25);
}

.nav {
  gap: 0.6rem;
}

.nav a,
.link-button,
.small-button,
.segmented button {
  border-color: rgba(239, 211, 143, 0.18);
  background: rgba(255, 249, 232, 0.045);
  box-shadow: none;
}

.nav a:hover,
.link-button:hover,
.small-button:hover,
.segmented button:hover,
.segmented button.active {
  border-color: rgba(88, 220, 76, 0.58);
  background: rgba(88, 220, 76, 0.12);
}

.hero-home {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 420px);
  align-items: center;
  min-height: 620px;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(239, 211, 143, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.96), rgba(5, 8, 6, 0.72) 46%, rgba(5, 8, 6, 0.28)),
    linear-gradient(180deg, rgba(232, 182, 78, 0.12), transparent 45%),
    url("/img/nrwsmp-hero.png") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.42);
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 249, 232, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.hero-home::after {
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(5, 8, 6, 0.78)),
    linear-gradient(90deg, rgba(88, 220, 76, 0.13), rgba(232, 182, 78, 0.12));
}

.hero-copy {
  max-width: 720px;
}

.hero h1,
.page-title h1,
.asset-hero h1 {
  letter-spacing: 0;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.62);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.hero p {
  max-width: 620px;
  color: #f3e8c2;
  font-size: 1.12rem;
}

.hero-panel {
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(239, 211, 143, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.08), transparent),
    rgba(9, 14, 10, 0.78);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.38);
}

.hero-panel::before {
  content: "Market Terminal";
  display: block;
  margin-bottom: 0.85rem;
  color: #ffe4a3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel::after {
  content: "STOCK  /  CRYPTO  /  NRW";
  display: block;
  margin-top: 0.9rem;
  color: rgba(255, 249, 232, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.hero-panel label {
  color: #fff9e8;
  font-weight: 700;
}

input {
  min-height: 48px;
  border-color: rgba(239, 211, 143, 0.22);
  background: rgba(3, 6, 4, 0.62);
}

input:focus {
  border-color: rgba(88, 220, 76, 0.75);
  box-shadow: 0 0 0 4px rgba(88, 220, 76, 0.13);
}

.eyebrow {
  border-color: rgba(88, 220, 76, 0.32);
  background: rgba(4, 8, 5, 0.54);
  backdrop-filter: blur(10px);
}

.section {
  padding: 2rem 0;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.section-heading h2,
.chart-toolbar h2,
.info-box h2 {
  color: #fff3c5;
  font-size: 1.22rem;
}

.stat-card,
.market-card,
.metric,
.chart-card,
.info-box,
.table-shell {
  border: 1px solid rgba(239, 211, 143, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.055), transparent),
    rgba(14, 20, 14, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.26);
}

.market-card,
.stat-card,
.metric {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.market-card:hover,
.asset-row:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 220, 76, 0.36);
  background:
    linear-gradient(180deg, rgba(88, 220, 76, 0.075), transparent),
    rgba(14, 20, 14, 0.92);
}

.market-card::before,
.stat-card::before,
.metric::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(88, 220, 76, 0), rgba(88, 220, 76, 0.92), rgba(232, 182, 78, 0.72), rgba(88, 220, 76, 0));
}

.asset-list {
  border-radius: 10px;
  border-color: rgba(239, 211, 143, 0.2);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.asset-row {
  background: rgba(14, 20, 14, 0.76);
  transition: transform 160ms ease, background 160ms ease;
}

th,
td {
  border-bottom-color: rgba(239, 211, 143, 0.14);
}

th {
  color: #dccb9e;
  background: rgba(255, 249, 232, 0.035);
}

.chart-card {
  padding: 1.15rem;
}

#chart {
  border-color: rgba(239, 211, 143, 0.18);
  border-radius: 8px;
}

.price-stack {
  border-color: rgba(88, 220, 76, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(88, 220, 76, 0.18), rgba(232, 182, 78, 0.09)),
    rgba(14, 20, 14, 0.86);
}

.page-title,
.asset-hero {
  position: relative;
  margin-top: 1.2rem;
  padding: 3rem 0 2rem;
}

.footer {
  padding: 1.5rem 0 2rem;
}

.section-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.news-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  min-height: 230px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(239, 211, 143, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.055), transparent),
    rgba(14, 20, 14, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.24);
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gold);
}

.news-card.positive::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.news-card.negative::before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.news-meta span {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(239, 211, 143, 0.18);
  border-radius: 999px;
  color: #f7df9f;
  background: rgba(255, 249, 232, 0.045);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0;
  color: #fff5d5;
  font-size: 1.08rem;
  line-height: 1.28;
}

.news-card p {
  margin: 0;
  color: #d6c8a4;
  line-height: 1.55;
}

.news-card a {
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(239, 211, 143, 0.14);
  color: #fff1bd;
  font-weight: 800;
}

.news-title {
  padding-bottom: 1.2rem;
}

.news-feature {
  margin-bottom: 1.2rem;
}

.lead-news-card {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(239, 211, 143, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(8, 13, 11, 0.94), rgba(8, 13, 11, 0.72)),
    linear-gradient(135deg, rgba(88, 220, 76, 0.13), rgba(232, 182, 78, 0.09)),
    url("/img/nrwsmp-hero.png") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.34);
}

.lead-news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.lead-news-card h2 {
  max-width: 820px;
  margin: 0;
  color: #fff5d5;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.58);
}

.lead-news-card p {
  max-width: 760px;
  margin: 0;
  color: #ead9b0;
  font-size: 1.03rem;
  line-height: 1.7;
}

.lead-news-card > * {
  position: relative;
  z-index: 1;
}

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

@media (max-width: 900px) {
  .hero-home {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

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

@media (max-width: 560px) {
  .hero-home {
    min-height: 620px;
  }

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