:root {
  --bg: #0b0d09;
  --panel: #11150d;
  --panel-2: #171d11;
  --text: #edf4e7;
  --muted: #8f9b86;
  --acid: #c6f006;
  --green: #35db75;
  --red: #ff6868;
  --line: rgba(198, 240, 6, 0.22);
  --soft: rgba(198, 240, 6, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  background:
    linear-gradient(rgba(198, 240, 6, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 240, 6, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 72% 16%, rgba(198, 240, 6, 0.12), transparent 24%),
    var(--bg);
  background-size: 26px 26px, 26px 26px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.5) 4px 5px);
}

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

.topbar {
  width: min(1220px, calc(100% - 28px));
  min-height: 58px;
  margin: 14px auto 0;
  padding: 8px 10px;
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 8, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--acid);
  font-weight: 950;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #070907;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar nav a,
.button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(198, 240, 6, 0.32);
  background: rgba(198, 240, 6, 0.045);
  color: #dbe5d4;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar nav a:hover,
.button:hover {
  color: var(--acid);
  background: var(--soft);
}

.topbar nav .cta,
.button {
  color: #0d1204;
  background: var(--acid);
  border-color: var(--acid);
}

.layout {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto 70px;
}

.pair-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 34px 0 14px;
}

.eyebrow,
.num {
  color: var(--acid);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

h1 {
  margin: 9px 0 8px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.pair-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.price {
  min-width: 220px;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 13, 0.88);
}

.price span,
.price em {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.price strong {
  display: block;
  margin: 5px 0;
  color: var(--text);
  font-size: 1.22rem;
}

.price em {
  color: var(--green);
}

.terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.52fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 29, 17, 0.94), rgba(9, 12, 8, 0.98));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
}

.panel-head {
  min-height: 38px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(198, 240, 6, 0.14);
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.panel-head strong {
  color: var(--green);
}

.chart {
  min-height: 520px;
}

.chart-area {
  height: 430px;
  padding: 10px;
}

.chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gridline {
  stroke: rgba(198, 240, 6, 0.09);
  stroke-width: 1;
}

.area {
  fill: url(#fill);
}

.line {
  fill: none;
  stroke: var(--acid);
  stroke-width: 4;
  filter: drop-shadow(0 0 12px rgba(198, 240, 6, 0.35));
}

.ping {
  fill: var(--acid);
  animation: pulse 1.7s ease-in-out infinite;
}

.ping.second {
  animation-delay: 0.45s;
}

.timebar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(198, 240, 6, 0.14);
}

.timebar span {
  padding: 6px 10px;
  border: 1px solid rgba(198, 240, 6, 0.14);
  color: var(--muted);
  font-size: 0.68rem;
}

.timebar span:nth-child(4) {
  color: var(--acid);
  border-color: var(--acid);
}

.token-card {
  padding: 14px;
}

.token-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(198, 240, 6, 0.14);
}

.token-top img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.token-top h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.token-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.metrics p {
  margin: 0;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(198, 240, 6, 0.13);
  background: rgba(198, 240, 6, 0.035);
}

.metrics span,
.metrics strong {
  display: block;
}

.metrics span {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.metrics strong {
  margin-top: 7px;
  color: var(--acid);
  font-size: 0.85rem;
}

.flow {
  padding-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid rgba(198, 240, 6, 0.11);
  color: #c8d2c0;
  font-size: 0.74rem;
  text-align: left;
}

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

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

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

.thesis {
  padding: 18px;
}

.thesis h2,
.docs h2 {
  margin: 10px 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
}

.thesis p,
.docs p {
  color: #c8d2c0;
  font-size: 0.84rem;
  line-height: 1.68;
}

.docs {
  margin-top: 12px;
  padding: 18px;
}

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

.docgrid div {
  padding: 13px;
  border: 1px solid rgba(198, 240, 6, 0.13);
  background: rgba(0, 0, 0, 0.16);
}

.docgrid strong {
  color: var(--acid);
  font-size: 0.72rem;
  text-transform: uppercase;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    r: 8;
  }
  50% {
    opacity: 0.42;
    r: 18;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .brand span {
    display: none;
  }

  .pair-header,
  .terminal-grid,
  .docgrid {
    grid-template-columns: 1fr;
  }

  .chart {
    min-height: 380px;
  }

  .chart-area {
    height: 300px;
  }
}
