/* IRPA Ecosystem — premium athlete-style profiles */
.eco-hero {
  position: relative;
  min-height: 42vh;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1510 50%, #0a0a0a 100%);
}
.eco-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: saturate(1.1);
}
.eco-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #050505 0%, transparent 55%, rgba(0,0,0,.5));
}
.eco-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
}
.eco-stat-ring {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  border: 3px solid rgba(212, 166, 58, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
}
.eco-stat-ring .val { font-size: 1.25rem; font-weight: 800; color: var(--irpa-gold-soft); }
.eco-stat-ring .lbl { font-size: 0.65rem; color: #9ca3af; }

.irpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-verified { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.35); }
.badge-elite { background: rgba(212,166,58,.2); color: var(--irpa-gold-soft); border: 1px solid rgba(212,166,58,.4); }
.badge-champion { background: rgba(168,85,247,.15); color: #d8b4fe; border: 1px solid rgba(168,85,247,.35); }
.badge-certified { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.35); }
.badge-champion-line { background: rgba(212,166,58,.12); color: var(--irpa-gold); border: 1px solid rgba(212,166,58,.3); }
.badge-membership { background: rgba(255,255,255,.08); color: #f5f5f7; border: 1px solid rgba(255,255,255,.15); }
.badge-vip { background: linear-gradient(90deg, #7c3aed, #d4a63a); color: #fff; border: none; }

/* Pedigree tree */
.ped-tree { padding: 1rem 0; }
.ped-gen { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; position: relative; }
.ped-gen::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 20%;
  right: 20%;
  height: 1px;
  background: rgba(212,166,58,.2);
}
.ped-node {
  width: 8.5rem;
  text-align: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s, border-color .2s;
}
.ped-node:hover { transform: translateY(-3px); border-color: rgba(212,166,58,.4); }
.ped-node-self { width: 11rem; border-color: rgba(212,166,58,.45); box-shadow: 0 0 30px rgba(212,166,58,.12); }
.ped-node-img { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; object-fit: cover; margin: 0 auto 0.5rem; }
.ped-node-placeholder { display: flex; align-items: center; justify-content: center; background: #18181b; font-size: 1.5rem; }
.ped-node-label { font-size: 0.65rem; color: #6b7280; margin-bottom: 0.25rem; }
.ped-node-name { font-size: 0.8rem; font-weight: 700; color: #f5f5f7; display: block; }
.ped-link { color: var(--irpa-gold-soft); text-decoration: none; }
.ped-link:hover { text-decoration: underline; }
.ped-node-ring { font-size: 0.65rem; color: #6b7280; font-family: monospace; }
.ped-champ { font-size: 0.85rem; }
.ped-offspring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.ped-offspring-card { padding: 0.75rem; border-radius: 0.75rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }

/* Hall of Fame */
.hof-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  transition: transform .35s ease, box-shadow .35s ease;
  animation: hofFloat 6s ease-in-out infinite;
}
.hof-card:nth-child(2) { animation-delay: -2s; }
.hof-card:nth-child(3) { animation-delay: -4s; }
.hof-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(212,166,58,.15);
}
@keyframes hofFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.hof-rank {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--irpa-gold) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Valuation gauges */
.val-gauge {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.val-gauge-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #b45309, var(--irpa-gold));
  transition: width 1s ease;
}

/* Race live */
.race-live-pulse {
  animation: racePulse 1.5s ease infinite;
}
@keyframes racePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}
.race-result-row {
  display: grid;
  grid-template-columns: 3rem 1fr 6rem 5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.race-result-row:hover { background: rgba(212,166,58,.06); }

.market-card { transition: transform .25s, border-color .25s; }
.market-card:hover { transform: translateY(-4px); border-color: rgba(212,166,58,.4); }

.analytics-bar { height: 120px; display: flex; align-items: flex-end; gap: 4px; }
.analytics-bar span {
  flex: 1;
  background: linear-gradient(to top, var(--irpa-gold), transparent);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height .5s ease;
}

/* Loft Manager — nav + homepage spotlight */
.nav-loft-link.active,
.nav-loft-link:hover { color: var(--irpa-gold, #d4a63a); }
.nav-loft-btn { white-space: nowrap; }
.loft-spotlight-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(212,166,58,.18) 0%, transparent 70%);
  pointer-events: none;
}
.loft-spotlight-features li {
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.loft-eco-card:hover { border-color: rgba(212,166,58,.55) !important; }
