:root {
  --bg-0: #040c1f;
  --bg-1: #081a3a;
  --bg-2: #0d2a57;
  --panel: rgba(13, 38, 78, 0.55);
  --panel-edge: rgba(96, 150, 240, 0.22);
  --blue: #2f6fe0;
  --blue-bright: #5b9bff;
  --cyan: #74e3ff;
  --orange: #ff7a18;
  --orange-bright: #ffb13d;
  --ink: #eaf2ff;
  --muted: #9db3da;
  --up: #2fe08a;
  --down: #ff5c6c;
  --r: 16px;
  font-family: "Archivo", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 122, 24, 0.18), transparent 60%),
    radial-gradient(1000px 800px at 10% 10%, rgba(47, 111, 224, 0.30), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  overflow-x: hidden;
}

/* layered animated background */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 155, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 155, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
  animation: drift 24s linear infinite;
}
@keyframes drift { to { background-position: 44px 88px; } }
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(700px 500px at 75% 80%, rgba(116, 227, 255, 0.10), transparent 70%);
  animation: pulseGlow 7s ease-in-out infinite alternate;
}
@keyframes pulseGlow { from { opacity: .5; } to { opacity: 1; } }

/* ticker tape */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--panel-edge);
  background: linear-gradient(90deg, rgba(8,26,58,.9), rgba(8,26,58,.5));
  backdrop-filter: blur(6px);
  font-family: "JetBrains Mono", monospace; font-size: 13px;
  padding: 8px 0;
}
.ticker-track { display: inline-block; padding-left: 100%; animation: tick 28s linear infinite; }
.ticker-track span { margin: 0 26px; color: var(--muted); }
.ticker-track b { color: var(--ink); }
.ticker-track .u { color: var(--up); } .ticker-track .d { color: var(--down); }
@keyframes tick { to { transform: translateX(-100%); } }

.wrap { position: relative; z-index: 3; max-width: 1120px; margin: 0 auto; padding: 30px 22px 60px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 26px; align-items: center;
  padding: 30px; margin-bottom: 26px;
  border: 1px solid var(--panel-edge); border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(47,111,224,.18), rgba(8,26,58,.2)),
    var(--panel);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  letter-spacing: .14em; font-size: 12px; color: var(--orange-bright); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,122,24,.7); animation: ping 1.8s infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(255,122,24,.6);} 70%{box-shadow:0 0 0 12px rgba(255,122,24,0);} 100%{box-shadow:0 0 0 0 rgba(255,122,24,0);} }

.wordmark {
  font-size: clamp(48px, 8vw, 92px); font-weight: 900; line-height: .92;
  margin: 10px 0 6px; letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff, #bcd4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(91,155,255,.25);
}
.wordmark .arrow-emoji { -webkit-text-fill-color: initial; font-size: .55em; margin-left: 10px; filter: drop-shadow(0 4px 10px rgba(255,122,24,.5)); }
.tag { color: var(--muted); font-size: 16px; max-width: 46ch; line-height: 1.5; }
.tag strong { color: var(--orange-bright); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--panel-edge); background: rgba(91,155,255,.10);
  padding: 7px 12px; border-radius: 999px; }
.chip i { color: var(--cyan); font-style: normal; }
.chip-ghost { color: var(--muted); background: transparent; }

.hero-right { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-img { width: 100%; max-width: 290px; height: auto; border-radius: 16px;
  border: 1px solid rgba(255,122,24,.45);
  box-shadow: 0 16px 44px -10px rgba(255,122,24,.5), inset 0 1px 0 rgba(255,255,255,.12);
  animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform: translateY(0) rotate(0);} 50%{transform: translateY(-10px) rotate(-2deg);} }

.countdown { width: 100%; text-align: center;
  border: 1px solid var(--panel-edge); border-radius: 16px; padding: 14px;
  background: rgba(4,12,31,.5); }
.cd-label { font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.cd-time { font-family: "JetBrains Mono", monospace; font-weight: 700;
  font-size: 40px; color: var(--orange-bright); margin: 4px 0 8px;
  text-shadow: 0 0 24px rgba(255,122,24,.5); }
.cd-bar { height: 6px; border-radius: 6px; background: rgba(91,155,255,.18); overflow: hidden; }
.cd-bar span { display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright)); transition: width .9s linear; }

/* contract address bar */
.ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 18px; margin-bottom: 22px; border-radius: 14px;
  border: 1px solid rgba(255,122,24,.4);
  background: linear-gradient(135deg, rgba(255,122,24,.14), var(--panel));
  box-shadow: 0 0 30px -12px rgba(255,122,24,.5); backdrop-filter: blur(6px); }
.ca-label { font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--orange-bright);
  border: 1px solid rgba(255,122,24,.4); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.ca-addr { flex: 1 1 320px; min-width: 0; font-family: "JetBrains Mono", monospace;
  font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca.pending .ca-addr { color: var(--muted); font-family: "Archivo", sans-serif; font-style: italic;
  position: relative; padding-left: 18px; }
.ca.pending .ca-addr::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
  animation: ping 1.8s infinite; }
.ca-copy, .ca-link { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12.5px;
  cursor: pointer; text-decoration: none; padding: 7px 13px; border-radius: 9px; white-space: nowrap; }
.ca-copy { color: #06122b; border: none; background: linear-gradient(90deg, var(--orange), var(--orange-bright)); }
.ca-copy:hover { filter: brightness(1.08); }
.ca-link { color: var(--blue-bright); background: rgba(91,155,255,.12); border: 1px solid rgba(91,155,255,.28); }
.ca-link:hover { background: rgba(91,155,255,.22); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.tile { padding: 18px; border-radius: var(--r); border: 1px solid var(--panel-edge);
  background: var(--panel); backdrop-filter: blur(6px);
  transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.tile.accent { border-color: rgba(255,122,24,.4); background: linear-gradient(160deg, rgba(255,122,24,.14), var(--panel)); }
.t-k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.t-v { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 30px; margin-top: 8px; }
.tile.accent .t-v { color: var(--orange-bright); }

.sect { font-size: 18px; font-weight: 800; margin: 8px 0 14px; letter-spacing: -.01em; }
.sect span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* token cards */
.tokens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.tok { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r);
  border: 1px solid var(--panel-edge); background: var(--panel); backdrop-filter: blur(6px);
  transition: transform .15s ease, border-color .15s ease; }
.tok:hover { transform: translateY(-4px); border-color: var(--blue-bright); }
.tok::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(255,122,24,.25), transparent 70%); }
.tok .pct { position: absolute; top: 14px; right: 14px; z-index: 1;
  font-family: "JetBrains Mono", monospace; font-weight: 700;
  font-size: 12px; color: var(--orange-bright); background: rgba(255,122,24,.12);
  border: 1px solid rgba(255,122,24,.3); padding: 3px 8px; border-radius: 999px; }
.tok-head { display: flex; align-items: center; gap: 11px; margin: 4px 0 14px; }
.tok-sym { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.tok-mint { display: block; font-family: "JetBrains Mono", monospace; font-size: 11.5px;
  color: var(--cyan); text-decoration: none; }
.tok-mint:hover { text-decoration: underline; }
.logo { border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.25); }
.logo-fb { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  font-family: "Archivo", sans-serif; font-weight: 800; color: #06122b;
  background: linear-gradient(135deg, var(--cyan), var(--blue-bright));
  box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.tok .row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-top: 1px dashed rgba(91,155,255,.14); }
.tok .row:first-of-type { border-top: none; }
.tok .row .k { color: var(--muted); }
.tok .row .v { font-family: "JetBrains Mono", monospace; font-weight: 700; }

.cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel { padding: 20px; border-radius: 20px; border: 1px solid var(--panel-edge);
  background: var(--panel); backdrop-filter: blur(6px); }
.pulse-tag { color: var(--orange-bright) !important; font-weight: 700 !important; }
.sub { color: var(--muted); font-size: 12.5px; margin: -8px 0 14px; }

/* per-cycle transaction cards */
.cycles { display: flex; flex-direction: column; gap: 9px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.cycle { border-radius: 13px; background: rgba(4,12,31,.45);
  border: 1px solid rgba(91,155,255,.14); overflow: hidden; animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cycle[open] { border-color: rgba(255,122,24,.35); }
.cycle summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  cursor: pointer; list-style: none; user-select: none; }
.cycle summary::-webkit-details-marker { display: none; }
.cycle summary::before { content: "▸"; color: var(--orange-bright); transition: transform .15s; }
.cycle[open] summary::before { transform: rotate(90deg); }
.cy-slot { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--cyan); }
.cy-meta { flex: 1; font-size: 12.5px; color: var(--muted); }
.cy-ago { font-size: 11.5px; color: var(--muted); }
.cybody { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.cyleg { display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 10px; background: rgba(91,155,255,.05); }
.cyleg-tok { display: flex; align-items: center; gap: 7px; flex: 0 0 96px; min-width: 0; }
.cyleg-sym { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cyleg-amt { flex: 0 0 auto; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--orange-bright); white-space: nowrap; }
.cyleg-amt span { color: var(--muted); }
.cyleg-tx { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.txchip { font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600;
  color: var(--blue-bright); text-decoration: none; padding: 3px 7px; border-radius: 7px;
  background: rgba(91,155,255,.12); border: 1px solid rgba(91,155,255,.22); }
.txchip:hover { background: rgba(91,155,255,.25); }
.txchip.dry { color: var(--muted); opacity: .6; }

/* holders */
.holders { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; }
.hrow { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 10px; }
.hrow:nth-child(odd) { background: rgba(91,155,255,.05); }
.hrank { font-family: "JetBrains Mono", monospace; color: var(--muted); font-size: 13px; }
.hrow.top1 .hrank, .hrow.top2 .hrank, .hrow.top3 .hrank { color: var(--orange-bright); font-weight: 700; }
.haddr { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--ink); }
.hbar { position: relative; width: 90px; height: 8px; border-radius: 8px; background: rgba(91,155,255,.15); }
.hbar span { position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.hpct { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); width: 44px; text-align: right; }

.empty { color: var(--muted); font-size: 14px; padding: 20px; text-align: center; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--panel-edge);
  color: var(--muted); font-size: 13px; }
.foot a { color: var(--blue-bright); text-decoration: none; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .tiles, .tokens { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
}
