body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 16px;
  background: #0b1120;
  color: #e5e7eb;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2 {
  margin-bottom: 0.3rem;
}

.card {
  background: #020617;
  border-radius: 0.75rem;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #1f2937;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

label {
  font-size: 0.9rem;
  opacity: 0.85;
}

select, input, button {
  background: #020617;
  color: #e5e7eb;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
  padding: 4px 8px;
}

button {
  cursor: pointer;
}

button:hover {
  background: #111827;
}

.status {
  font-size: 0.85rem;
  opacity: 0.8;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 6px 8px;
  border-bottom: 1px solid #1f2937;
}

th {
  text-align: left;
  background: #020617;
  position: sticky;
  top: 0;
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.4);
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #111827;
  border: 1px solid #1f2937;
}

.nav {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 700px) {
  .nav {
    gap: 10px;
    padding: 10px 12px;
  }
  .nav a {
    padding: 6px 10px;
    border-radius: 10px;
  }
}


.small {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ===== Header Banner (global) ===== */
.headerbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; margin:10px 0 18px 0;
  border-radius:10px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}
.headerbar-left{ display:flex; align-items:center; gap:10px; }
.headerbar-right{ display:flex; gap:14px; align-items:center; opacity:.95; font-size:.92rem; }
.headerbar-right a{ color:inherit; text-decoration:none; }
.headerbar-right a:hover{ text-decoration:underline; }

.zap{
  display:inline-block;
  margin-right:6px;
  color:#67e8f9;
  text-shadow: 0 0 6px rgba(56,189,248,.55), 0 0 18px rgba(56,189,248,.35);
  animation: zapPulse 1.6s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes zapPulse{
  0%,100%{ transform:scale(1); filter:brightness(1); opacity:.85; }
  50%{ transform:scale(1.18); filter:brightness(1.35); opacity:1; }
}
/* ==== Top Banner mit Live-Stats ==== */
.top-banner {
  width: 100%;
  background: #020617;
  color: #9ca3af;
  padding: 6px 18px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #111827;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #e5e7eb;
}

.banner-title {
  letter-spacing: 0.3px;
}

.banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
  color: #0b1120;
  font-size: 1rem;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  animation: lightningPulse 2.4s infinite;
}

@keyframes lightningPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  }
  70% {
    transform: scale(1.12);
    box-shadow: 0 0 0 12px rgba(250, 204, 21, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  }
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.banner-sep {
  opacity: 0.4;
}

.banner-powered a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.banner-powered a:hover {
  text-decoration: underline;
}

/* --- UI polish: stats logo + coin icons --- */
.stats-row--with-logo{display:flex;align-items:center;justify-content:space-between;gap:18px}
.stats-left{display:flex;gap:30px;flex-wrap:wrap}
.stats-logo{flex:1;display:flex;justify-content:flex-end;min-width:220px}
.stats-logo img{max-width:520px;width:100%;height:auto;opacity:.95;filter:drop-shadow(0 10px 22px rgba(0,0,0,.35))}

.pool-name{display:flex;align-items:center;gap:10px}
.coin-icon{width:22px;height:22px;border-radius:6px;object-fit:contain;background:rgba(255,255,255,.06);padding:2px;box-shadow:0 6px 16px rgba(0,0,0,.25)}

@media (max-width: 900px){
  .stats-row--with-logo{flex-direction:column;align-items:flex-start}
  .stats-logo{justify-content:flex-start;min-width:0;width:100%}
  .stats-logo img{max-width:420px}
}



/* --- Logo + Stats Layout --- */
.stats-row--with-logo{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.stats-left{
  flex:1 1 320px;
  min-width:260px;
}
.stats-logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
  border-radius:14px;
  padding:10px 14px;
}
.stats-logo img{
  display:block;
  max-width:min(520px, 45vw);
  width:100%;
  height:auto;
}

/* --- Coin Icons in Pools list --- */
.coin-icon{
  width:20px;
  height:20px;
  margin-right:10px;
  vertical-align:middle;
  border-radius:50%;
}
/* ===== Stats-Header mit Logo rechts ===== */
.stats-card{
  background: #000 !important;      /* schwarz, damit Logo-Hintergrund passt */
  padding: 18px 18px;
}

.stats-row--with-logo{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stats-left{
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.stats-logo{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(620px, 55%);
}

.stats-logo img{
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;   /* skaliert “auto” ohne zu verzerren */
  display: block;
}

/* Mobile: Logo unter die Stats */
@media (max-width: 900px){
  .stats-row--with-logo{
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-logo{
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .stats-logo img{
    max-height: 240px;
  }
}
/* ===== Stats-Card: schwarz + Logo rechts als Background ===== */
.card.stats-card{
  background-color:#000 !important;
  background-image:url("assets/rt-pool-logo.png") !important;
  background-repeat:no-repeat !important;
  background-position:right 18px center !important;
  background-size:min(620px, 55%) auto !important;
}

/* Text links begrenzen, damit er nicht ins Logo läuft */
.card.stats-card .stats-left{
  max-width:420px;
}

/* Für kleine Screens Logo nach unten skalieren */
@media (max-width: 900px){
  .card.stats-card{
    background-position:center 85% !important;
    background-size:85% auto !important;
    padding-bottom:220px; /* Platz fürs Logo unten */
  }
  .card.stats-card .stats-left{
    max-width:100%;
  }
}
/* === FINAL: Stats + Logo (override ganz unten lassen) === */
.card.stats-card{
  /* Wenn du die ganze Box schwarz willst: */
  background:#000;
  border-color:#111;
}

.stats-row--with-logo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:nowrap; /* wichtig: Logo bleibt rechts, nicht darunter */
}

.stats-left{
  display:flex;
  gap:30px;
  flex-wrap:wrap;
  align-items:flex-start;
  flex:1 1 auto;
  min-width:260px;
}

.stats-logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  background:#000;          /* schwarzer Bereich hinter dem Logo */
  border-radius:14px;
  padding:10px 14px;
}

.stats-logo img{
  display:block;
  max-width:340px;          /* Größe hier steuern */
  width:100%;
  height:auto;
}

/* Mobile: dann darf es untereinander */
@media (max-width: 900px){
  .stats-row--with-logo{
    flex-wrap:wrap;
  }
  .stats-logo{
    justify-content:flex-start;
    width:100%;
  }
  .stats-logo img{
    max-width:420px;
  }
}
/* ===== FINAL: Stats-Card mit Logo als Background rechts ===== */
.card.stats-card{
  background-color: #000 !important;
  background-image: url("assets/rt-pool-logo.png") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: min(620px, 55%) auto !important;
  border-color: #111827 !important;
}

/* Stats links (damit Text nicht ins Logo läuft) */
.card.stats-card .stats-left{
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mobile: Logo nach unten, Platz schaffen */
@media (max-width: 900px){
  .card.stats-card{
    background-position: center bottom 14px !important;
    background-size: 92% auto !important;
    padding-bottom: 220px; /* Platz fürs Logo */
  }
  .card.stats-card .stats-left{
    max-width: 100%;
  }
}
