:root {
  color-scheme: dark;
  --bg: #03060b;
  --panel: rgba(8, 15, 24, 0.9);
  --panel-soft: rgba(11, 18, 30, 0.88);
  --line: rgba(149, 172, 199, 0.22);
  --line-soft: rgba(149, 172, 199, 0.12);
  --text: #f7f9fb;
  --muted: #b4bac4;
  --green: #00ee6d;
  --cyan: #02d5e8;
  --pink: #ff2078;
  --purple: #b441ff;
  --orange: #ffa000;
  --yellow: #ffdb00;
  --blue: #2e9cff;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 29%, rgba(41, 3, 98, 0.18), transparent 22rem),
    radial-gradient(circle at 89% 23%, rgba(4, 40, 73, 0.13), transparent 25rem),
    linear-gradient(180deg, #020407, #050910 57%, #02050a);
  font-size: 16px;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 27px;
  border-bottom: 3px solid transparent;
  background:
    linear-gradient(#020409, #020409) padding-box,
    linear-gradient(90deg, #fe00ee, #ff3864 16%, #ff9c00 36%, #d5ed00 54%, #00e57c 74%, #4d98ff 88%, #d200ff) border-box;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.2px;
}
.brand img { width: 68px; height: 72px; object-fit: contain; }
.brand b, .hero-copy h1 b {
  background: linear-gradient(90deg, #ff247e, #ff2752 34%, #ff9200 62%, #24ca55);
  -webkit-background-clip: text;
  color: transparent;
}
.brand em {
  margin-left: 6px;
  color: #a950fb;
  font-style: normal;
  font-size: 21px;
}
.topbar nav { display: flex; gap: 44px; padding-right: 38px; }
.topbar nav a { color: #e7e7eb; font-size: 20px; transition: color .2s ease; }
.topbar nav a:hover { color: var(--purple); }

main { padding: 26px 26px 0; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 330px 376px;
  grid-template-rows: 417px 148px;
  gap: 16px 20px;
  max-width: 1440px;
  margin: 0 auto;
}
.window {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(12, 20, 31, .92), rgba(4, 9, 16, .94)),
    radial-gradient(circle at top left, rgba(37, 70, 119, .12), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 25px rgba(0,0,0,.15);
}
.hero-panel {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  left: -18px;
  bottom: -5px;
  width: 392px;
  height: 408px;
}
.rainbow-arc {
  position: absolute;
  left: -47px;
  top: 83px;
  width: 420px;
  height: 285px;
  object-fit: contain;
  opacity: .9;
}
.wizard {
  position: absolute;
  left: -22px;
  bottom: -4px;
  width: 412px;
  height: 374px;
  object-fit: contain;
}
.hero-copy { margin-left: 300px; padding: 18px 4px; }
.hero-copy h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.03;
  letter-spacing: -2.5px;
}
.token-line {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
}
.token-line > strong {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #08dc67, #31e719 22%, #00bbc4 43%, #1975f0 66%, #a334ff 84%, #e83cff);
  -webkit-background-clip: text;
  color: transparent;
}
.solana-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #8049b2;
  border-radius: 12px;
  color: #e9e9ed;
  font-size: 12px;
  text-transform: uppercase;
}
.solana-badge img { width: 20px; height: 15px; object-fit: contain; }
.hero-copy p {
  margin: 17px 0 0;
  color: #b6b5bd;
  font-size: 20px;
  line-height: 1.56;
}
.hero-copy p i { color: #00f08b; font-style: normal; }
.hero-actions { display: flex; gap: 15px; margin-top: 37px; }
.rainbow-button, .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 19px;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.rainbow-button {
  min-width: 184px;
  background: linear-gradient(100deg, #fb0074, #f76500 34%, #c8cf00 64%, #00d996);
  box-shadow: 0 0 18px rgba(255, 28, 129, .18);
}
.outline-button { border: 1px solid #8b46ae; background: rgba(11,13,22,.7); min-width: 157px; }
.rainbow-button:hover, .outline-button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.rainbow-button img { width: 23px; height: 24px; }
.outline-button img { width: 24px; height: 16px; }

.what-window { grid-column: 2; grid-row: 1; padding: 16px 22px; }
.what-window header { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; }
.what-window header img { width: 60px; height: 65px; object-fit: contain; }
h2 { margin: 0; font-size: 22px; }
.what-window ol { list-style: none; margin: 0; padding: 0; }
.what-window li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  min-height: 51px;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #e0e3e9;
  font-size: 14px;
  line-height: 1.35;
}
.what-window li:last-child { border-bottom: 0; min-height: 74px; }
.what-window li b { font-size: 20px; line-height: 1; }
.what-window li:nth-child(1) b { color: #fb4776; }
.what-window li:nth-child(2) b { color: var(--orange); }
.what-window li:nth-child(3) b { color: var(--yellow); }
.what-window li:nth-child(4) b { color: #51de6f; }
.what-window li:nth-child(5) b { color: #2f9bff; }
.what-window li:nth-child(6) b { color: #c94aff; }
.what-window button {
  padding: 0;
  border: 0;
  color: #e0e3e9;
  text-align: left;
  background: none;
  font-size: 14px;
  line-height: 1.35;
}
.what-window button:hover { color: #c866ff; }

.activity-window { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; padding: 14px 13px 9px; overflow: hidden; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 12px; }
.activity-heading span { display: flex; align-items: center; gap: 7px; color: #00ef6c; font-size: 13px; text-transform: uppercase; }
.activity-heading i { width: 8px; height: 8px; border-radius: 50%; background: #00ef6c; box-shadow: 0 0 12px #00ef6c; }
.activity-table-head {
  display: grid;
  grid-template-columns: 120px 1fr 78px;
  padding: 9px 10px;
  border: 1px solid rgba(164,179,204,.12);
  border-radius: 8px;
  background: rgba(27, 34, 48, .55);
  color: #bdc2cc;
  font-size: 11px;
  text-transform: uppercase;
}
.activity-list { flex: 1; overflow: hidden; }
.activity-list.expanded { overflow-y: auto; }
.activity-row {
  display: grid;
  grid-template-columns: 84px 26px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  border-bottom: 1px solid var(--line-soft);
  color: #e7eaf0;
  font-size: 12px;
}
.activity-row time { color: #d2d5db; line-height: 1.3; }
.activity-row img { width: 23px; max-height: 23px; object-fit: contain; }
.activity-row p { margin: 0; line-height: 1.28; }
.activity-row a { color: inherit; }
.status-tag {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  text-transform: uppercase;
}
.status-tag.detected, .status-tag.collected, .status-tag.distributed { color: #15f06c; background: rgba(0, 106, 49, .35); }
.status-tag.reserve { color: #35a5ff; background: rgba(0, 71, 143, .34); }
.status-tag.eligibility, .status-tag.waiting { color: #c066ff; background: rgba(95, 36, 136, .34); }
.full-activity {
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(164,179,204,.15);
  border-radius: 8px;
  color: #c875ff;
  background: rgba(24, 31, 45, .68);
}
.full-activity:hover { background: rgba(48, 32, 67, .72); }
.full-activity span { padding-left: 8px; font-size: 18px; }

.stats-grid {
  grid-column: 1 / span 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.stat-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px; overflow: hidden; }
.stat-card > img { width: 48px; height: 50px; object-fit: contain; }
.stat-card div { display: flex; flex-direction: column; }
.stat-card span { color: #e9ebee; font-size: 16px; }
.stat-card strong { margin-top: 2px; color: white; font-size: 36px; letter-spacing: -1px; line-height: 1; }
.stat-card em { color: #dfdfdf; font-size: 13px; font-style: normal; font-weight: 400; }
.stat-card small { margin-top: 10px; color: #00e879; font-size: 13px; }
.stat-card svg { position: absolute; right: 10px; bottom: 11px; width: 88px; height: 31px; overflow: visible; }
.stat-card polyline { fill: none; stroke: #aa3cff; stroke-width: 2; }
.stat-card:nth-child(2) polyline { stroke: #f4d400; }
.stat-card:nth-child(3) polyline { stroke: #00e4cb; }
.stat-card:nth-child(4) polyline { stroke: #fe2d83; }

.how-window { max-width: 1440px; margin: 22px auto 0; padding: 17px 43px 19px; }
.how-window h2 { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 32px; }
.heading-sparkle { color: #ffda19; font-size: 23px; text-shadow: 0 0 10px rgba(196, 70, 255, .8); }
.steps { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: center; gap: 14px; margin-top: 10px; }
.steps article {
  position: relative;
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: center;
  min-height: 164px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 17, 28, .76);
}
.steps article > b {
  position: absolute;
  top: 16px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #7e28df;
  font-size: 22px;
}
.steps article:nth-of-type(2) > b { background: #287eee; }
.steps article:nth-of-type(3) > b { background: #00c99d; }
.steps article > img { width: 92px; max-height: 99px; object-fit: contain; }
.steps h3 { margin: 0 0 10px; color: #bc52ff; font-size: 20px; }
.steps article:nth-of-type(2) h3 { color: #28a1ff; }
.steps article:nth-of-type(3) h3 { color: #00dabb; }
.steps p { margin: 0; color: #d5d7dd; font-size: 14px; line-height: 1.72; }
.step-arrow { width: 33px; justify-self: center; color: #b34bff; font-size: 33px; text-align: center; text-shadow: 0 0 10px rgba(179, 75, 255, .72); }

footer {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1440px;
  margin: 20px auto 0;
  padding: 0 10px 20px;
  color: #969ba4;
  font-size: 14px;
}
footer div { display: flex; gap: 26px; }
footer a { display: flex; align-items: center; gap: 8px; transition: color .2s ease; }
footer a:hover { color: #d37dff; }
footer a img { width: 24px; max-height: 16px; object-fit: contain; }
footer p { margin: 0 0 0 auto; }
footer > img { width: 32px; height: 22px; object-fit: contain; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  padding: 12px 16px;
  border: 1px solid rgba(164,179,204,.24);
  border-radius: 9px;
  color: #e9f8ef;
  background: rgba(8, 20, 20, .96);
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(255, 64, 100, .4); color: #ffb6c4; background: rgba(35, 8, 15, .96); }

@media (min-width: 1650px) {
  main, footer { zoom: 1.1; }
}
@media (min-width: 1750px) {
  main, footer { zoom: 1.16; }
}
@media (min-width: 1900px) {
  main, footer { zoom: 1.28; }
}
@media (max-width: 1220px) {
  .dashboard-grid { grid-template-columns: minmax(620px, 1fr) 330px; grid-template-rows: 417px 148px auto; }
  .activity-window { grid-column: 1 / span 2; grid-row: 3; min-height: 390px; }
  .activity-list { max-height: 310px; }
}
@media (max-width: 900px) {
  .topbar { height: auto; padding: 12px 16px; }
  .brand { gap: 9px; font-size: 17px; }
  .brand img { width: 46px; height: 49px; }
  .brand em { display: none; }
  .topbar nav { gap: 16px; padding-right: 0; }
  .topbar nav a { font-size: 15px; }
  main { padding: 16px; }
  .dashboard-grid { display: flex; flex-direction: column; }
  .hero-panel { min-height: 530px; }
  .hero-art { left: -22px; bottom: -2px; opacity: .62; }
  .hero-copy { position: relative; z-index: 2; margin-left: 0; padding: 22px 8px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy p { font-size: 17px; text-shadow: 0 1px 6px #000; }
  .hero-actions { margin-top: 28px; }
  .what-window { min-height: auto; }
  .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .steps { display: flex; flex-direction: column; }
  .steps article { width: 100%; }
  .step-arrow { transform: rotate(90deg) scale(2); }
  footer, footer div { flex-wrap: wrap; }
  footer p { margin-left: 0; }
}
@media (max-width: 520px) {
  .topbar nav { display: none; }
  .hero-panel { min-height: 555px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy p br { display: none; }
  .hero-actions { flex-direction: column; width: 205px; }
  .stats-grid { grid-template-columns: 1fr; }
  .how-window { padding: 16px; }
  .how-window h2 { font-size: 26px; }
  .activity-table-head { grid-template-columns: 86px 1fr 70px; }
  .activity-row { grid-template-columns: 72px 22px 1fr auto; font-size: 11px; }
}
