/* ============================================================
   Unipeg · Dark-grey, sleek, modern NFT-house theme.
   No SaaS-y gradients. Calm surfaces, sharp pixel art,
   one accent (lilac), one alert (rose).
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #0a0a0e;
  --bg-2:      #0f0f15;
  --bg-3:      #15151c;
  --surface:   #16161e;
  --surface-2: #1c1c25;
  --surface-3: #22222d;

  /* lines / text */
  --line:      rgba(255, 255, 255, 0.06);
  --line-2:    rgba(255, 255, 255, 0.10);
  --line-3:    rgba(255, 255, 255, 0.18);
  --text:      #ecedf3;
  --text-2:    #c9cad3;
  --muted:     #8a8b99;
  --muted-2:   #5d5e6c;

  /* accents */
  --accent:        #a78bff;
  --accent-2:      #c8b4ff;
  --accent-soft:   rgba(167, 139, 255, 0.14);
  --accent-glow:   rgba(167, 139, 255, 0.35);
  --rose:          #ff6cab;
  --rose-soft:     rgba(255, 108, 171, 0.16);
  --mint:          #5dd4a8;

  /* radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 30px -16px rgba(0, 0, 0, 0.8);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.9);

  /* fonts */
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------------- ambient ---------------- */
.bg-orb {
  position: fixed; inset: auto;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.bg-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -180px; left: -120px;
  opacity: 0.35;
}
.bg-orb--2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  top: 40%; right: -160px;
  opacity: 0.18;
}
.bg-noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

/* ---------------- topbar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--accent) 0%, #6a55c8 100%);
  color: #110a22;
  box-shadow: 0 8px 18px -8px var(--accent-glow), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted-2);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 18px;
}
.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link--ext {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  margin-left: 4px;
}
.nav-link--ext[aria-disabled="true"] { cursor: not-allowed; }

.topbar-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------------- badges / pills ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
.badge--soon {
  background: var(--rose-soft);
  color: var(--rose);
  border-color: rgba(255, 108, 171, 0.28);
}
.badge--soon::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 108, 171, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
.badge--big {
  padding: 10px 16px;
  font-size: 12px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.78); opacity: .55; }
}

/* ---------------- hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 88px 56px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(167, 139, 255, 0.22);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(167, 139, 255, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 18px;
  color: var(--text);
}
.hero-grad {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--rose) 60%, #ffd861 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(160deg, var(--accent) 0%, #7d65d9 100%);
  border-color: rgba(167, 139, 255, 0.55);
  color: #100a22;
  box-shadow: 0 12px 30px -12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover {
  background: linear-gradient(160deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #100a22;
}
.btn--ghost {
  background: transparent;
}
.btn-icon {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  font-size: 14px; line-height: 1;
}

.hero-stats {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--line-2);
  padding-top: 22px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
}
.hero-stats strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}
.hero-stats span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* hero card */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-2);
  transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease;
}
.hero-card.flash {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow-2);
}
.hero-card-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #050507;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}
.hero-card-frame img {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}
.hero-card-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 0%, rgba(167,139,255,.18), transparent 55%);
}
.hero-card-body {
  padding: 18px 6px 6px;
}
.hero-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 8px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(93,212,168,.16);
  animation: pulse 1.8s ease-in-out infinite;
}
.hero-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.3;
}
.hero-card-traits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.trait-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 13px;
}
.trait-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.trait-val {
  color: var(--text-2);
  font-weight: 500;
  text-align: right;
}

/* ---------------- sections ---------------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------- showcase ---------------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.showcase.is-loading { opacity: 0.85; }
.showcase-loading {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 80px 0;
  letter-spacing: 0.05em;
}

.peg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 14px;
  transition: transform .18s ease, border-color .15s ease, box-shadow .2s ease;
  cursor: pointer;
}
.peg-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-3);
  box-shadow: var(--shadow-1);
}
.peg-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #050507;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}
.peg-frame img {
  width: 100%; height: 100%;
  display: block;
}
.peg-meta {
  padding: 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.peg-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}
.peg-caption {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  min-height: 2.6em;
}
.peg-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(10,10,14,0.72);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,255,0.3);
  z-index: 2;
}

/* ---------------- split section ---------------- */
.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split-copy { max-width: 560px; }
.section-lead {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.section-lead.muted { color: var(--muted); }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.split-art {
  display: flex;
  justify-content: center;
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(2, 144px);
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.art-grid img {
  width: 144px;
  height: 144px;
  border-radius: var(--r-md);
  background: #050507;
  border: 1px solid var(--line);
}

/* ---------------- trait grid ---------------- */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.trait-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.trait-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.trait-card-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.trait-card-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--text);
  line-height: 1;
}
.trait-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 6px 0 0;
}
.trait-card--accent {
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border-color: rgba(167, 139, 255, 0.3);
  box-shadow: 0 0 0 1px var(--accent-soft) inset;
}
.trait-card--accent .trait-card-val { color: var(--accent-2); }

/* ---------------- cta ---------------- */
.cta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 96px;
}
.cta-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
}
.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 12px;
  position: relative;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  position: relative;
}
.cta-lead {
  color: var(--text-2);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
}
.cta-actions {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ---------------- footer ---------------- */
.page-footer {
  border-top: 1px solid var(--line);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-mark { color: var(--text-2); }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero,
  .section,
  .cta {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    gap: 36px;
  }
  .hero-card {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
  .section--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav { display: none; }
  .topbar { padding: 12px 20px; }
  .cta-card { padding: 32px 20px; }
  .page-footer {
    padding: 24px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .showcase { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trait-grid { grid-template-columns: 1fr 1fr; }
  .topbar-cta .badge--soon { display: none; }
}

.error {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rose);
  padding: 60px 24px;
  background: var(--rose-soft);
  border: 1px solid rgba(255, 108, 171, 0.22);
  border-radius: var(--r-md);
}
.error code {
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   Live mint feed (chain-style activity)
   ============================================================ */

/* contract pill (topbar + section header) */
.contract-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.contract-pill:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.contract-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}
.contract-pill-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contract-pill-addr {
  color: var(--text);
  font-weight: 600;
}
.contract-pill .badge {
  padding: 2px 8px;
  font-size: 10px;
}
.contract-pill--lg {
  padding: 8px 12px 8px 14px;
  font-size: 12px;
}
.badge--ok {
  background: rgba(93, 212, 168, 0.14);
  color: var(--mint);
  border: 1px solid rgba(93, 212, 168, 0.3);
}
.pill-flash {
  position: absolute;
  top: -22px; right: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--mint);
  color: #06120c;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.pill-flash.show {
  opacity: 1;
  transform: translateY(0);
}

/* pulsing live dot */
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 6px;
  box-shadow: 0 0 0 0 var(--mint);
  animation: live-pulse 1.6s ease-out infinite;
  vertical-align: 0;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(93, 212, 168, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(93, 212, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 212, 168, 0); }
}

/* live grid layout */
.live-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 28px;
}

/* stats column */
.live-stats {
  display: grid;
  gap: 12px;
  align-content: start;
}
.live-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.live-stat-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.live-stat-val em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-left: 4px;
}
.live-stat-delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

/* feed column */
.live-feed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.live-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.live-feed-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.live-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 32px;
  min-width: 280px;
  transition: border-color .15s ease;
}
.live-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.live-search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  display: inline-flex;
}
.live-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0;
}
.live-search input::placeholder { color: var(--muted-2); }
.live-search-clear {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
  margin-left: 4px;
}
.live-search-clear:hover { color: var(--text); }

/* feed list */
.feed-list {
  list-style: none;
  margin: 0;
  padding: 6px 6px 10px;
  max-height: 540px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
.feed-list::-webkit-scrollbar { width: 8px; }
.feed-list::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 999px; }

.feed-empty {
  padding: 28px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.feed-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color .15s ease;
}
.feed-item + .feed-item {
  border-top: 1px solid var(--line);
}
.feed-item:hover { background: rgba(255,255,255,0.025); }
.feed-item--new {
  background: var(--accent-soft);
  animation: feed-pop .65s ease-out;
}
@keyframes feed-pop {
  0%   { background: rgba(93, 212, 168, 0.22); transform: translateX(-6px); opacity: 0; }
  60%  { background: rgba(93, 212, 168, 0.12); transform: translateX(0); opacity: 1; }
  100% { background: rgba(255,255,255,0.025); }
}

.feed-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.feed-thumbs {
  display: inline-flex;
  align-items: center;
  gap: -8px;
}
.feed-thumbs img {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  margin-left: -8px;
  box-shadow: 0 4px 8px -4px rgba(0,0,0,0.6);
}
.feed-thumbs img:first-child { margin-left: 0; }
.feed-thumbs-more {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 4px 8px;
  margin-left: -4px;
}
.feed-info { min-width: 0; }
.feed-line {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.feed-addr {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px dashed var(--line-3);
}
.feed-addr:hover { color: var(--accent-2); border-color: var(--accent); }
.feed-action { color: var(--muted); }
.feed-count {
  color: var(--accent-2);
  font-weight: 700;
  font-family: var(--font-mono);
}
.feed-meta {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.feed-meta code {
  font-family: var(--font-mono);
  color: var(--text-2);
  background: transparent;
}
.feed-tx {
  color: var(--muted);
  border-bottom: 1px dashed transparent;
}
.feed-tx:hover { color: var(--text-2); border-color: var(--line-3); }
.feed-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  white-space: nowrap;
  align-self: start;
  padding-top: 2px;
}

@media (max-width: 980px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-stats { grid-template-columns: repeat(2, 1fr); }
  .live-search { min-width: 0; flex: 1; }
}
@media (max-width: 540px) {
  .live-stats { grid-template-columns: 1fr 1fr; }
  .live-feed-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .feed-thumbs img { width: 32px; height: 32px; }
  .topbar-cta .contract-pill { display: none; }
}
