body {
  margin: 0;
  font-family: sans-serif;
  background-color: #0f1115;
  color: #f0f0f0;
  font-size: 12.5px;
}

.main-container {
  max-width: 95%;
  margin: 20px auto;
  padding: 0 16px;
}

/* 🔝 Top Banner */
.top-banner {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.top-banner img {
  max-height: 80px;
  object-fit: contain;
}

/* 🔍 Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #111a25;
  border-radius: 0px;
}

.chain-button {
  background: #2a7fff;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  height: 32px;
}

/* 🔎 Search */
.search-wrapper {
  flex: 1;
  max-width: 100%;
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  height: 32px;
}

.search-wrapper input {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  outline: none;
}

/* 🔘 Actions */
.top-actions {
  display: flex;
  gap: 8px;
}

.top-actions button {
  background: transparent;
  color: #fff;
  border: 1px solid #333;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  height: 32px;
}

.connect-button {
  background: transparent;
  color: #fff;
  border: 1px solid #333;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  height: 32px;
}

/* Werbefläche */
/* 📢 Token-Ad-Leiste unter Trending */
.token-ad-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.token-ad-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 16px;
  color: #ddd;
  text-decoration: none;
  position: relative;
  font-size: 12px;
  transition: background 0.2s ease;
}

.token-ad-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.token-ad-link img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  background: #333;
}

.ad-text {
  position: relative;
  padding-right: 24px;
}

.ad-label {
  position: absolute;
  right: 0;
  bottom: -2px;
  background: #444;
  color: #bbb;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* 🔥 Trending Bar (kompakte Version) */
/* 🔥 Trending Bar – kompakt und schmal */
.trending-bar {
  width: 98%;
  margin: 0px auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 2px 2px;
  /* background: #0d141f; */
  border: 0px solid #222;
  border-radius: 10px;
  font-size: 10.5px;
  line-height: 1.2;
  height: 28px;
  overflow: hidden;
} 

.trending-label {
  font-weight: 500;
  color: #ff9138;
  white-space: nowrap;
  font-size: 10.5px;
}

.trending-track {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.trending-marquee {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  align-items: center;
  font-size: 10.5px;
  height: 100%;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.chain-popup {
  position: absolute;
  top: 180px; /* etwas tiefer */
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 16px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  width: 45%;
  max-height: 70vh;
  overflow-y: auto;
}

.chain-popup-title {
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
  text-align: center;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;

}

.chain-button-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: background 0.2s ease;
width: 70px;
height: 70px;
}

.chain-button-entry:hover {
  background: rgba(255,255,255,0.12);
}

.chain-button-entry img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 4px;
}
.hidden {
  display: none !important;
}

#globalSearchInput {
  position: fixed;
  top: 15px;
  right: 20px;
  width: 250px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  z-index: 50;
}
#searchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 1000;
  padding: 30px;
  overflow-y: auto;
}

#searchOverlay.hidden {
  display: none;
}

.search-inner {
  max-width: 800px;
  margin: auto;
}

#closeSearch {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}


.top-bar #globalSearchInput {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 100%;
  background: transparent;
  border: none;
}
.search-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #333;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  margin-bottom: 6px;
}

.search-cell {
  flex: 1;
  padding: 0 8px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
}

.search-cell.logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.search-header,
.search-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #333;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  margin-bottom: 6px;
}

.search-header {
  font-weight: bold;
  background: rgba(255,255,255,0.08);
  color: #ddd;
}

.search-cell {
  flex: 1;
  padding: 0 8px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
}

.search-cell.logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.search-cell.dex a {
  color: #6cf;
  text-decoration: none;
}
.search-cell.change.positive {
  color: #00ff99;
}
.search-cell.change.negative {
  color: #ff4d4d;
}
.search-cell.change.neutral {
  color: #cccccc;
}
.token-logo-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
}

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

.token-logo-wrapper img.chain-overlay {
  position: absolute;
  bottom: -1px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  padding: 1px;
}
/* Allgemeiner Container */
.trending-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  width: 100%;
}

.trending-bar-container {
  display: flex;
  flex: 1;
  max-width: 100%;
  justify-content: center;
  gap: 12px;
}

.trending-label {
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
margin-left: 25px;
}

 .trending-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  margin: 0 auto;
margin-left: -10px;
  max-width: 100%;
  overflow: hidden;
  background: #101010;
  border-radius: 8px;
  transition: opacity 0.5s ease-in-out;
} 

.trending-bar.hidden {
  opacity: 0;
}

.trending-bar.scroll {
  opacity: 1;
}

.trending-track {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  flex-wrap: nowrap;
}

.trending-item {
  min-width: 150px;
  background: rgba(0, 0, 0, 0.0);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.0);
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.trending-item:hover {
  background-color: #333;
}

.trending-item .trending-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.trending-item .trending-chain {
  width: 14px;
  height: 14px;
  margin-left: -8px;
}

.trending-item .symbol {
  font-weight: 600;
  margin-right: auto;
}

.trending-item .price {
  color: #0f0;
  font-size: 13px;
}

.trending-item .rank {
  font-weight: bold;
  color: #888;
  margin-right: 4px;
  width: 28px;
  text-align: right;
}

.trending-item.rank-1 .rank {
  color: gold;
}

.trending-item.rank-2 .rank {
  color: silver;
}

.trending-item.rank-3 .rank {
  color: #cd7f32;
}


.popup {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.popup.hidden {
  display: none;
}
.popup-content {
  position: relative;
  color: white;
}
.popup-close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: white;
}
.favorite-entry {
  display: flex;
  align-items: center;
  padding: 6px 0;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid #444;
  gap: 8px;
}
.favorite-entry:hover {
  background: rgba(255,255,255,0.05);
}
.favorite-entry img {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.favorite-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #333;
  color: white;
  text-decoration: none;
}

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

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

.chain-overlay {
  position: absolute;
  width: 8px;
  height: 8px;
  bottom: -2px;
  right: -2px;
  border-radius: 50%;
  background: black;
  padding: 1px;
}
.favorite-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #333;
  color: white;
  justify-content: space-between;
}

.fav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  flex-grow: 1;
}

.remove-fav {
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 5px;
}

.remove-fav:hover {
  color: #ff4d4d;
}
.search-row-link {
  display: flex;
  text-decoration: none;
  color: white;
  padding: 6px 8px;
  border-bottom: 1px solid #333;
  transition: background 0.15s ease;
}

.search-row-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-token-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.logo-wrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 10;
}

.cook-logo {
  height: 30px;
  width: auto;
margin-left: 20px;
margin-top: 20px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.cook-logo:hover {
  opacity: 0.85;
}


.header-wrapper {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}






/* Ergänze in base.css */
.wallet-popup {
  position: fixed;
  right: 20px;
  top: 80px;
  background: #1b1b1b;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  color: white;
  z-index: 9999;
}
.wallet-popup.hidden {
  display: none;
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup-header button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}
.popup-content ul {
  padding-left: 20px;
  margin: 5px 0 0 0;
}
