/* === STARTSEITE GLOBAL === */
.top-box-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.top-box {
  flex: 1;
  min-width: 280px;
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 10px;
  box-sizing: border-box;
}

.top-box h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  color: #fff;
}

/* === GAINER/LOSER BUTTONS === */
#filterGainers,
#filterLosers {
  background: none;
  border: 1px solid #555;
  color: #aaa;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 5px;
  cursor: pointer;
  font-size: 13px;
}

#filterGainers.active,
#filterLosers.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* === TOKEN-BOX-GRID === */
.token-box-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;

}

.token-card {
  display: flex;
  justify-content: space-between;
  align-items: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 8px 12px;
}

.token-card-left {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.logo-wrapper {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.token-logo-small {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chain-overlay-small {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #000;
  z-index: 2;
}

.token-card .symbol {
  font-weight: bold;
  color: #fff;
  font-size: 14px;
align-items: left;

}

.token-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.token-card .price {
  color: #ccc;
  font-size: 14px;
}

.token-card .change {
  font-size: 13px;
}

.token-card .change.up {
  color: #3dc57b;
}

.token-card .change.down {
  color: #e74c3c;
}
.token-logo-tiny {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
}

.chain-overlay-tiny {
  width: 12px;
  height: 12px;
  position: relative;
  left: -10px;
  top: -6px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.pagination-controls button {
  background: #2c2c2c;
  color: white;
  border: 1px solid #444;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 12px;
  color: #aaa;
}
#allPairsTable {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
border-radius: 10px;
max-width: 100%;

}

.table-row,
.table-header {
  display: grid;
  grid-template-columns:
    4.1%   /* Token (50px) */
    11.3%   /* Pair (90px) */
    7.2%   /* Symbol (70px) */
    11.4%  /* Name (130px) */
    10.3%  /* Price (100px) */
    8.2%   /* 24h Change (80px) */
    9.3%   /* Volume (90px) */
    9.3%   /* Liquidity (90px) */
    7.2%   /* DEX (80px) */
    5.2%   /* Fav (40px) */
    13.4%; /* Vote (140px) */

  align-items: flex-end;
text-align: flex-end;
  gap: 10px;
  padding: 6px 10px;
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid #444;
  background-color: #121212;

}



/*.table-row {
  display: grid;
  grid-template-columns:
    2.1%   /* 30px  */
/*    10.3%  /* 110px */
/*    7.2%   /* 70px  */
/*    11.4%  /* 130px */
/*    10.3%  /* 100px */
/*    8.2%   /* 80px  */
/*    9.3%   /* 90px  */
/*    9.3%   /* 90px  */
/*    8.2%   /* 80px  */
/*    4.1%   /* 40px  */
/*    14.4%; /* 140px */
/*  align-items: left;
  text-align: left;
  gap: 10px;
  padding: 6px 10px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  transition: background-color 0.2s ease;
max-width: 100%;

}*/

.table-row:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.table-row img.token-logo-tiny {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.table-row img.chain-overlay-table {
  position: absolute;
  bottom: 7px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  z-index: 2;
}

.token-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-wrapper {
  position: relative;
  width: 28px;
  height: 28px;
}

.token-logo-tiny {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chain-overlay-table {
  position: absolute;
  bottom: 7px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
}

.col {
  display: flex;
  align-items: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.token-row-link {
  display: contents; /* wichtig! damit hover + grid korrekt funktionieren */
  text-decoration: none;
  color: inherit;
}

.favorite-toggle,
.votes {
  display: flex;
  align-items: left;
  justify-content: left;
}

.fav-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.table-row .up {
  color: #3dc57b; /* Grün */
  font-weight: 500;
}

.table-row .down {
  color: #e74c3c; /* Rot */
  font-weight: 500;
}

.table-row .neutral {
  color: #42aaff; /* Blau */
  font-weight: 500;
}




.favorite-toggle, .votes {
  display: flex;
  align-items: left;
  padding: 0 6px;
  gap: 6px;
}
.vote-count.positive {
  color: #00c853; /* Grün */
  font-weight: bold;
}

.vote-count.negative {
  color: #d50000; /* Rot */
  font-weight: bold;
}

.vote-count.neutral {
  color: #888;
}
.contract-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}


.token-card-link:hover {
  background-color: #1f1f1f;
  transition: background 0.2s ease;
}

.token-card {
  display: flex;
  justify-content: space-between;
  align-items: left;
  background: #1a1a1a;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #333;
  color: white;
}

.copy-icon {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  cursor: pointer;
  opacity: 0.7;
  vertical-align: middle;
}
.copy-icon:hover {
  opacity: 1;
}

.copy-checkmark {
  margin-left: 6px;
  color: #00cc66; /* Grün */
  font-size: 13px;
  font-weight: bold;
  vertical-align: middle;
  transition: opacity 0.3s ease;
}

.rug-warning {
  color: #ff4444;
  font-weight: bold;
  font-size: 12px;
}


.chain-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  justify-items: center;
  margin-top: 10px;
}

.chain-tile {
  width: 80px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.chain-tile:hover {
  transform: scale(1.05);
}

.chain-tile img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px auto;
}

.chain-tile div {
  font-size: 13px;
  color: white;
}

.rug-counter {
  color: orangered;
  font-weight: bold;
  font-size: 12px;
  margin-top: 2px;
}