body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  background-color: #000000;
  color: #f0f0f0;
  font-size: 12.5px;
}

.floating-swap-button { position: fixed; right: 18px; bottom: 18px; z-index: 1300; border: 1px solid #f4c542; background: #f4c542; color: #111; font-weight: 800; padding: 11px 18px; border-radius: 6px; cursor: pointer; }
.swap-widget { position: fixed; right: 18px; bottom: 70px; width: min(360px, calc(100vw - 24px)); z-index: 1400; border: 1px solid #334155; border-radius: 8px; background: #0d141e; box-shadow: 0 18px 50px #000a; color: #f8fafc; }
.swap-widget header { display: grid; grid-template-columns: 1fr auto auto; align-items: center; padding: 12px 14px; border-bottom: 1px solid #263142; cursor: move; }
.swap-widget header button { width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.swap-widget__body { display: grid; gap: 10px; padding: 14px; }
.swap-widget.collapsed .swap-widget__body { display: none; }
.swap-widget label { display: grid; gap: 5px; color: #aeb9c8; font-size: 12px; }
.swap-widget input { width: 100%; box-sizing: border-box; border: 1px solid #344154; border-radius: 6px; padding: 10px; background: #111c29; color: #fff; }
.swap-token-picker { position: relative; min-width: 0; }
.swap-token-trigger { width: 100%; min-height: 48px; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; border: 1px solid #344154; border-radius: 6px; padding: 6px 9px; background: #111c29; color: #fff; text-align: left; cursor: pointer; }
.swap-token-trigger img, .swap-token-option img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #202b3a; }
.swap-token-trigger span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.swap-token-trigger small { color: #8f9bad; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swap-token-popup { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 5px); padding: 8px; border: 1px solid #3a4658; border-radius: 8px; background: #0c131d; box-shadow: 0 14px 32px #000b; }
.swap-token-popup .swap-token-search { margin-bottom: 7px; }
.swap-token-results { max-height: 240px; overflow-y: auto; display: grid; gap: 3px; }
.swap-token-option { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; padding: 7px; border: 0; border-radius: 5px; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.swap-token-option:hover, .swap-token-option:focus-visible { background: #1b2838; }
.swap-token-option span { display: grid; min-width: 0; }.swap-token-option strong, .swap-token-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.swap-token-option small, .swap-token-empty { color: #8f9bad; }
.swap-token-option strong { display: flex; align-items: center; gap: 7px; }
.swap-token-option strong em { flex: 0 0 auto; border: 1px solid #f4c54266; border-radius: 4px; padding: 1px 4px; color: #f4c542; font-size: 9px; font-style: normal; text-transform: uppercase; }
.swap-token-option--native { margin-bottom: 4px; border-bottom: 1px solid #2d394a; border-radius: 5px 5px 0 0; padding-bottom: 10px; }
.swap-token-empty { margin: 6px; font-size: 12px; line-height: 1.4; }
.footer-banner { margin-top: 20px; }
.swap-percentages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.swap-percentages button, .swap-submit { border: 1px solid #3b4b61; border-radius: 6px; padding: 8px; background: #172334; color: #fff; cursor: pointer; }
.swap-submit { background: #f4c542; border-color: #f4c542; color: #111; font-weight: 800; }
.swap-balance, .swap-quote, .swap-status { color: #9eabba; font-size: 12px; overflow-wrap: anywhere; }

body.chain-modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-container {
  width: 100%;
  flex: 1 0 auto;
  max-width: none;
  margin: 20px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* 🔝 Top Banner */
.top-banner {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(56px, 10.6875vw, 144px);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.top-banner .banner-ad-link {
  display: block;
  width: 100%;
  height: 100%;
}

.top-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 🔍 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: #272d35;
  color: #f3f6fa;
  border: 1px solid #46515f;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.chain-button::after {
  content: "\25be";
  margin-left: 1px;
  color: #ff9138;
  font-size: 14px;
  line-height: 1;
}

.chain-button:hover,
.chain-button:focus-visible {
  border-color: #ff9138;
  background: #313944;
  color: #fff;
  transform: translateY(-1px);
}

.chain-button:focus-visible {
  outline: 2px solid rgba(255, 145, 56, 0.45);
  outline-offset: 2px;
}

.chain-button-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: contain;
}

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

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

.global-search-clear {
  flex: 0 0 26px;
  width: 26px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f8ca0;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, transform 140ms ease;
}

.global-search-clear:hover { color: #f3f6fa; transform: scale(1.06); }
.global-search-clear:focus-visible { outline: 1px solid #7f8ca0; outline-offset: -3px; border-radius: 4px; }

.global-search-button {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.global-search-button span,
.global-search-button span::after {
  position: absolute;
  display: block;
  content: "";
}

.global-search-button span {
  width: 10px;
  height: 10px;
  left: 9px;
  top: 7px;
  border: 2px solid #9aa6b8;
  border-radius: 50%;
}

.global-search-button span::after {
  width: 7px;
  height: 2px;
  top: 9px;
  left: 8px;
  background: #9aa6b8;
  transform: rotate(45deg);
  transform-origin: left center;
}

.global-search-button:hover span { border-color: #fff; }
.global-search-button:hover span::after { background: #fff; }

/* 🔘 Actions */
.top-actions {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
}

.top-actions .search-wrapper {
  flex: 1 1 390px;
  width: min(390px, 100%);
  max-width: 390px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-flag {
  min-width: 24px;
  display: inline-flex;
  justify-content: center;
  font-size: 16px;
}

.language-select {
  min-height: 32px;
  max-width: 150px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #10161f;
  color: #fff;
  font-size: 12px;
  padding: 4px 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;
}

.wallet-trigger[data-bad-holder="true"]::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  border: 1px solid #ffe49a;
  border-radius: 50%;
  background: #d9a928;
  color: #171006;
  box-shadow: 0 0 8px rgba(242, 184, 75, 0.5);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.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 */
.promoted-slot-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 1040px);
  margin: 12px auto 4px;
}

.promoted-slot-section--trending {
  margin-top: 20px;
  margin-bottom: 0;
}

.token-ad-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 10px;
}

.token-ad-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #444;
  padding: 8px 12px;
  border-radius: 10px;
  color: #ddd;
  text-decoration: none;
  position: relative;
  min-width: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.token-ad-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #5a5a5a;
  color: #fff;
  transform: translateY(-1px);
}

.advertise-trigger {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.banner-ad-link {
  display: block;
}

.banner-ad-link img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.ad-label {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(255, 179, 77, 0.16);
  color: #ffb34d;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.token-ad-media {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.live-ad-link img,
.token-ad-link img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  background: #333;
  display: block;
}

.token-ad-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 76px;
}

.token-ad-copy strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-ad-copy span {
  color: #bbb;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 🔥 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-leader {
  display: inline-flex;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  max-width: 190px;
  height: 24px;
  padding: 1px 7px 1px 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 169, 64, 0.42);
  border-radius: 12px;
  background: rgba(255, 124, 31, 0.12);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.trending-leader:hover {
  border-color: rgba(255, 189, 92, 0.78);
  background: rgba(255, 124, 31, 0.2);
}

.trending-leader.is-hidden,
.trending-leader[hidden] {
  display: none;
}

.trending-leader__flame {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.trending-leader__logo {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.trending-leader__symbol {
  overflow: hidden;
  max-width: 78px;
  color: #ffd36a;
  font-size: 10.5px;
  text-overflow: ellipsis;
}

.trending-leader__change {
  color: #ccc;
  font-size: 10px;
}

.trending-leader__change.is-positive {
  color: #63e58a;
}

.trending-leader__change.is-negative {
  color: #ff7474;
}

.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-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
}

.chain-modal[hidden],
.chain-modal.is-hidden {
  display: none !important;
}

.chain-modal.is-open {
  display: flex !important;
}

.chain-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.74);
}

.chain-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #141b28 0%, #0f1520 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.chain-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chain-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.chain-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #202635;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chain-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.chain-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #202635;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
}

.chain-option-btn:hover {
  background: #2d3548;
}

.chain-option-btn.active {
  border-color: #2a7fff;
  box-shadow: inset 0 0 0 1px rgba(42, 127, 255, 0.35);
  background: #253653;
}

.chain-option-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.chain-option-label {
  font-size: 13px;
  font-weight: 600;
}
.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;
}
.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.chain {
  max-width: 90px;
}

.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;
  left: 8px;
  width: min(320px, calc(100vw - 16px));
  box-sizing: border-box;
  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);
}

.search-results-panel {
  width: 95%;
  margin: 10px auto 0;
  padding: 12px;
  box-sizing: border-box;
  background: #111923;
  border: 1px solid #2b394a;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.search-results-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
}

.search-results-panel__header > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.search-results-panel__header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#searchResultsCount {
  color: #8f9daf;
  font-size: 12px;
}

#closeSearch {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #344459;
  border-radius: 6px;
  background: #182231;
  color: #c5ced9;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.search-result-card {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) repeat(5, minmax(80px, 1fr));
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px;
  border-top: 1px solid #263342;
  color: #eef3f8;
  text-decoration: none;
}

.search-result-group {
  border-top: 1px solid #263342;
}

.search-result-group .search-result-card {
  border-top: 0;
}

.search-result-pairs {
  margin: 0 10px 9px 58px;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid #26384b;
  border-radius: 6px;
}

.search-result-pair {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) repeat(4, minmax(85px, 1fr));
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-top: 1px solid #223143;
  background: #0d151f;
  color: #dfe7f0;
  text-decoration: none;
}

.search-result-pair:first-child { border-top: 0; }
.search-result-pair:hover { background: #162231; }
.search-result-pair > span { display: flex; flex-direction: column; min-width: 0; }
.search-result-pair small { color: #8390a1; font-size: 10px; }
.search-result-pair strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.search-result-pair .positive { color: #58d68d; }
.search-result-pair .negative { color: #ff7b83; }
.search-result-pair .neutral { color: #aeb7c2; }

.search-result-pool {
  display: grid;
  grid-template-columns: minmax(175px, 1.5fr) repeat(6, minmax(78px, 1fr));
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 10px;
  border-top: 1px solid #263342;
  color: #dfe7f0;
  text-decoration: none;
}

.search-result-pool:hover { background: #182332; }
.search-result-pool > span { display: flex; flex-direction: column; min-width: 0; }
.search-result-pool small { color: #8390a1; font-size: 10px; }
.search-result-pool strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.search-result-pool .positive { color: #58d68d; }
.search-result-pool .negative { color: #ff7b83; }
.search-result-pool .neutral { color: #aeb7c2; }
.search-result-pool__identity { flex-direction: row !important; align-items: center; gap: 9px; }
.search-result-pool__identity > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.search-result-pool__token-copy { gap: 1px; }
.search-result-pool__contract {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #77869a;
  font-size: 10px;
  line-height: 1.2;
}
.search-result-pool__contract > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-pool__contract .copy-icon-control {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.search-result-card:hover {
  background: #182332;
}

.search-result-card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-result-card__identity > span:last-child,
.search-result-card__metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-card small {
  color: #8390a1;
  font-size: 10px;
}

.search-result-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.search-result-card .positive { color: #58d68d; }
.search-result-card .negative { color: #ff7b83; }
.search-result-card .neutral { color: #aeb7c2; }
.search-state { margin: 0; padding: 20px 10px; color: #c8d0da; }
.search-state--empty { color: #ff9a9f; }
.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;
}

body.server-move-open { overflow: hidden; }
.server-move-announcement { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 24px; opacity: 1; visibility: visible; transition: opacity .24s ease, visibility .24s ease; }
.server-move-announcement.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.server-move-announcement__backdrop { position: absolute; inset: 0; background: rgba(2, 5, 9, .84); backdrop-filter: blur(9px); }
.server-move-announcement__panel { position: relative; width: min(860px, 100%); min-height: 430px; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr); align-items: center; overflow: hidden; border: 1px solid rgba(53, 212, 154, .44); border-radius: 8px; background: #0c121a; box-shadow: 0 34px 100px rgba(0, 0, 0, .72), 0 0 52px rgba(53, 212, 154, .1); transform: translateY(0) scale(1); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.server-move-announcement.is-hidden .server-move-announcement__panel { transform: translateY(18px) scale(.98); }
.server-move-announcement__panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(53, 212, 154, .055), transparent 42%), repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,.025) 35px); }
.server-move-announcement__close { position: absolute; z-index: 5; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid #354152; border-radius: 50%; background: #111923; color: #dce4ef; font-size: 24px; line-height: 1; cursor: pointer; }
.server-move-announcement__close:hover { border-color: #35d49a; color: #35d49a; }
.server-move-announcement__visual { position: relative; min-height: 430px; display: grid; place-items: center; isolation: isolate; }
.server-move-announcement__visual::after { content: ""; position: absolute; z-index: -2; left: 12%; right: 12%; bottom: 44px; height: 22px; border-radius: 50%; background: rgba(53, 212, 154, .32); filter: blur(18px); animation: server-power-shadow 2.8s ease-in-out infinite; }
.server-move-announcement__visual img { position: relative; z-index: 2; width: min(92%, 350px); height: auto; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.7)); animation: server-power-float 4.2s ease-in-out infinite; }
.server-move-announcement__orbit { position: absolute; z-index: 1; width: 74%; aspect-ratio: 1; border: 1px solid rgba(53, 212, 154, .33); border-radius: 50%; transform: rotateX(68deg); }
.server-move-announcement__orbit::before { content: ""; position: absolute; width: 9px; height: 9px; top: 50%; left: -5px; border-radius: 50%; background: #35d49a; box-shadow: 0 0 18px #35d49a; }
.server-move-announcement__orbit--one { animation: server-power-orbit 4s linear infinite; }
.server-move-announcement__orbit--two { width: 58%; border-color: rgba(242, 184, 75, .38); animation: server-power-orbit-reverse 3.1s linear infinite; }
.server-move-announcement__orbit--two::before { left: auto; right: -5px; background: #f2b84b; box-shadow: 0 0 18px #f2b84b; }
.server-move-announcement__energy { position: absolute; z-index: 3; width: 2px; height: 68%; top: 6%; left: 50%; background: linear-gradient(transparent, #35d49a 30%, #fff 50%, #35d49a 70%, transparent); filter: blur(.2px); opacity: .62; animation: server-power-energy 1.7s ease-in-out infinite; }
.server-move-announcement__copy { position: relative; z-index: 2; padding: 58px 62px 58px 24px; }
.server-move-announcement__kicker { display: block; margin-bottom: 14px; color: #35d49a; font-size: 11px; font-weight: 900; letter-spacing: 0; }
.server-move-announcement__copy h2 { margin: 0 0 20px; color: #f3f7fb; font-size: clamp(44px, 6vw, 72px); line-height: .95; letter-spacing: 0; }
.server-move-announcement__copy h2 strong { color: #f2b84b; }
.server-move-announcement__copy p { max-width: 470px; margin: 0; color: #aeb9c8; font-size: 16px; line-height: 1.7; }
.server-move-announcement__status { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: #dce7e2; font-size: 13px; font-weight: 750; }
.server-move-announcement__status i { width: 9px; height: 9px; border-radius: 50%; background: #35d49a; box-shadow: 0 0 0 0 rgba(53, 212, 154, .55); animation: server-power-status 1.8s ease-out infinite; }
@keyframes server-power-float { 0%,100% { transform: translateY(5px); } 50% { transform: translateY(-10px); } }
@keyframes server-power-shadow { 0%,100% { transform: scale(.88); opacity: .38; } 50% { transform: scale(1.08); opacity: .68; } }
@keyframes server-power-orbit { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes server-power-orbit-reverse { to { transform: rotateX(68deg) rotateZ(-360deg); } }
@keyframes server-power-energy { 0%,100% { opacity: .22; transform: scaleY(.72); } 50% { opacity: .78; transform: scaleY(1); } }
@keyframes server-power-status { 70%,100% { box-shadow: 0 0 0 9px rgba(53, 212, 154, 0); } }
@media (max-width: 720px) {
  .server-move-announcement { padding: 14px; }
  .server-move-announcement__panel { grid-template-columns: 1fr; min-height: 0; max-height: calc(100vh - 28px); overflow-y: auto; }
  .server-move-announcement__visual { min-height: 250px; }
  .server-move-announcement__visual img { width: min(70%, 250px); }
  .server-move-announcement__copy { padding: 0 28px 34px; text-align: center; }
  .server-move-announcement__copy h2 { font-size: 46px; }
  .server-move-announcement__status { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .server-move-announcement__visual img,
  .server-move-announcement__visual::after,
  .server-move-announcement__orbit,
  .server-move-announcement__energy,
  .server-move-announcement__status i { animation: none; }
}
.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;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.favorite-entry .fav-link { min-width: 0; }
.favorite-token-logo { position: relative; width: 38px; height: 38px; flex: 0 0 38px; }
.favorite-entry .favorite-token-image { width: 38px; height: 38px; border: 1px solid #3a4658; border-radius: 50%; object-fit: cover; background: #172231; }
.favorite-entry .favorite-chain-image { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 2px solid #111923; border-radius: 50%; object-fit: cover; background: #111923; }
.favorite-token-copy { display: grid; gap: 2px; min-width: 0; }
.favorite-token-copy > strong, .favorite-token-copy > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-token-copy > small { color: #8f9bad; font-size: 10px; }
.favorite-contract { display: flex; align-items: center; gap: 5px; color: #7f8ca0; font-size: 10px; }
.favorite-contract code { color: inherit; }
.favorite-contract .copy-icon-control { width: 16px; height: 16px; }
.favorite-contract .copy-icon-control img { width: 12px; height: 12px; }
.favorite-token-price { margin-left: auto; color: #f4c542; font-size: 11px; white-space: nowrap; }
@media (max-width: 420px) { .favorite-token-price { max-width: 82px; overflow: hidden; text-overflow: ellipsis; } }

.remove-fav:hover {
  background: rgba(255, 77, 77, 0.12);
}

.remove-fav:disabled {
  cursor: wait;
  opacity: 0.45;
}
.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: min(380px, calc(100% - 24px));
  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;
}

.wallet-popup-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.wallet-badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  background: #5a2020;
  color: #ffd6d6;
}

.wallet-badge.wallet-badge-connected {
  background: #1d5a34;
  color: #d5ffe4;
}

.wallet-provider-label {
  color: #aeb8c7;
  font-size: 11px;
}

.wallet-connect-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #303947;
  border-radius: 6px;
  background: #111720;
  font-size: 12px;
}

.wallet-connect-target span { color: #8f9bab; }
.wallet-connect-target strong { color: #f2b84b; }

.wallet-provider-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallet-provider-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  border: 1px solid #343e4d;
  border-radius: 6px;
  background: #141a23;
  color: #f4f6f8;
  text-align: left;
  cursor: pointer;
}

.wallet-provider-option:hover,
.wallet-provider-option:focus-visible {
  border-color: #f2b84b;
  background: #1b2330;
  outline: none;
}

.wallet-provider-option img {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.wallet-provider-option span,
.wallet-provider-option strong,
.wallet-provider-option small { display: block; min-width: 0; }
.wallet-provider-option strong { font-size: 13px; }
.wallet-provider-option small { margin-top: 3px; color: #929eae; font-size: 10px; }
.wallet-provider-option.is-busy { border-color: #f2b84b; opacity: .72; }
.wallet-provider-option:disabled { cursor: wait; }
.wallet-provider-option.is-incompatible {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .38;
}

.wallet-provider-option.is-wallet-loading {
  opacity: 0.58;
  cursor: wait;
}

.wallet-info-grid {
  display: grid;
  gap: 8px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallet-actions button {
  min-height: 36px;
}

.wallet-error,
.wallet-mismatch {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
}

.wallet-error {
  background: rgba(148, 37, 37, 0.35);
  border: 1px solid rgba(255, 88, 88, 0.35);
  color: #ffd7d7;
}

.wallet-mismatch {
  background: rgba(163, 110, 25, 0.28);
  border: 1px solid rgba(255, 174, 0, 0.28);
  color: #ffe9b0;
}

.trending-empty {
  color: #94a0b4;
}

.site-footer {
  margin-top: auto;
  padding: 16px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top: 1px solid #1f2732;
  color: #8a93a3;
  font-size: 11px;
  line-height: 1.4;
}

.page-wrapper {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  background: #181f29;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(105, 119, 139, 0.08);
}

.footer-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.top-bar,
.trending-bar,
.token-ad-row,
.site-footer {
  width: 100%;
  box-sizing: border-box;
}

.top-bar {
  margin-top: 10px;
  border: 1px solid #1b2635;
  background: linear-gradient(180deg, #111a25 0%, #0e151f 100%);
}

.search-wrapper {
  min-width: 0;
}

.search-wrapper input::placeholder {
  color: #758296;
}

.site-footer {
  flex-direction: column;
  background: #1a212c;
  border-radius: 10px;
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .main-container {
    width: 100%;
    max-width: 100%;
    margin: 8px auto;
    padding: 0;
  }

  .page-wrapper {
    width: 100%;
    padding-bottom: 16px;
  }

  .header-wrapper {
    position: static;
    margin: 0;
    top: auto;
    left: auto;
    padding: 10px 10px 0;
  }

  .header-wrapper .cook-logo {
    margin: 0;
    height: 26px;
  }

  .top-banner {
    height: 56px;
    width: 100%;
    padding: 0;
  }

  .top-banner .banner-ad-link {
    height: 100%;
  }

  .top-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 8px;
    align-items: stretch;
    margin-top: 6px;
    border-radius: 12px;
  }

  #chainSelectBtn {
    width: 88px;
    flex: 0 0 auto;
  }

  .search-wrapper {
    flex: 1;
    min-width: 0;
    min-height: 38px;
  }

  .top-bar #globalSearchInput,
  #globalSearchInput {
    width: 100%;
    position: static !important;
    border: 1px solid #333;
    min-height: 38px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-select {
    flex: 1 1 auto;
    max-width: none;
  }

  .top-actions button,
  .connect-button,
  .chain-button {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
  }

  .trending-bar {
    width: 100%;
    margin: 4px 0;
    height: auto;
    min-height: 30px;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 10px;
  }

  .chain-modal {
    padding: 14px 8px;
  }

  .chain-modal-panel {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .chain-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promoted-slot-section {
    margin-top: 10px;
  }

  .promoted-slot-section--trending {
    margin-bottom: 0;
  }

  .token-ad-row {
    grid-template-columns: 1fr;
  }

  .wallet-popup {
    left: 8px;
    right: 8px;
    width: auto;
  }

  .wallet-actions {
    grid-template-columns: 1fr;
  }

  .wallet-provider-list {
    grid-template-columns: 1fr 1fr;
  }

  .search-results-panel {
    width: calc(100% - 16px);
    padding: 8px;
  }

  .search-result-card {
    grid-template-columns: minmax(150px, 1.6fr) repeat(2, minmax(72px, 1fr));
    gap: 8px;
  }

  .search-result-card__metric:nth-of-type(2),
  .search-result-card__metric:nth-of-type(5),
  .search-result-card__dex {
    display: none;
  }

  .search-result-pairs {
    margin: 0 4px 8px;
  }

  .search-result-pair {
    grid-template-columns: minmax(130px, 1.4fr) repeat(2, minmax(72px, 1fr));
    gap: 7px;
    padding: 7px 8px;
  }

  .search-result-pair > span:nth-child(2),
  .search-result-pair > span:nth-child(4) {
    display: none;
  }

  .search-result-pool {
    grid-template-columns: minmax(140px, 1.45fr) minmax(90px, 1fr) minmax(78px, .8fr);
    gap: 7px;
    padding: 7px 8px;
  }

  .search-result-pool > span:nth-child(3),
  .search-result-pool > span:nth-child(4),
  .search-result-pool > span:nth-child(6),
  .search-result-pool > span:nth-child(7) {
    display: none;
  }

  .site-footer {
    margin-top: 14px;
    padding: 14px 10px;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .trending-leader {
    max-width: 108px;
  }

  .trending-leader__symbol {
    max-width: 48px;
  }

  .trending-leader__change {
    display: none;
  }
}

footer,
.site-footer,
.app-footer {
  width: 100% !important;
  max-width: none !important;
  margin-top: 40px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 24px 16px !important;
  background: #202635 !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: rgba(255,255,255,0.82) !important;
}

footer *,
.site-footer *,
.app-footer * {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html[dir="rtl"] body,
html[dir="rtl"] .main-container,
html[dir="rtl"] .token-section,
html[dir="rtl"] .pair-table,
html[dir="rtl"] .wallet-popup {
  text-align: right;
}

html[dir="rtl"] .top-bar,
html[dir="rtl"] .token-contract-row,
html[dir="rtl"] .pair-address-row,
html[dir="rtl"] .wallet-status-line,
html[dir="rtl"] .footer-meta {
  direction: rtl;
}

.trending-bar {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 98%;
  height: 28px !important;
  padding: 2px 2px !important;
  margin: 0 auto !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px;
  font-size: 10.5px;
  line-height: 1.2;
  overflow: hidden;
}

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

.trending-track-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.trending-update-info {
  flex: 0 0 auto;
  margin: 0 3px 0 5px;
}

.trending-ticker {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.trending-marquee {
  --trending-gap: 14px;
  --ticker-width: 50%;
  --ticker-duration: 60s;
  display: flex !important;
  width: max-content;
  align-items: center;
  min-width: max-content;
  height: 100%;
  white-space: nowrap;
  gap: var(--trending-gap);
  animation: trending-scroll var(--ticker-duration) linear infinite;
  will-change: transform;
}

.trending-marquee__group {
  display: flex !important;
  width: max-content;
  min-width: max-content;
  align-items: center;
  gap: var(--trending-gap);
  flex: 0 0 auto;
}

.trending-marquee--empty {
  width: 100%;
  min-width: 100%;
  justify-content: center;
  align-items: center;
  padding-right: 0;
  animation: none;
}

.trending-marquee--empty .trending-empty {
  width: 100%;
  justify-content: center;
}

.trending-ticker:hover .trending-marquee {
  animation-play-state: paused;
}

@keyframes trending-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--ticker-width)));
  }
}

.trending-bar .trending-slot-card {
  display: none;
}

.trending-item {
  flex: 0 0 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 3px 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
}

.trending-item:hover {
  background: transparent;
  opacity: 0.82;
}

.trending-logo-stack {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.trending-logo-stack .trending-logo {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.trending-logo-stack .trending-chain {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  margin-left: 0;
  box-sizing: border-box;
  border: 1px solid #0c1119;
  border-radius: 50%;
  background: #0c1119;
  object-fit: contain;
}

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

.trending-item .trending-price,
.trending-item .trending-change {
  padding-left: 6px;
  border-left: 1px solid #3b4655;
  color: #dbe3ee;
  font-size: 11px;
}

.trending-item .trending-change.is-positive { color: #4ade80; }
.trending-item .trending-change.is-negative { color: #f87171; }

.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;
}

@media (max-width: 768px) {
  .trending-bar {
    padding: 2px !important;
  }

  .token-ad-copy {
    padding-right: 70px;
  }
}

#globalPagePreloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 10, 17, 0.985);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#globalPagePreloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cookdex-loader__panel {
  width: min(360px, 100%);
  padding: 24px;
  text-align: center;
}

.cookdex-loader__visual {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.cookdex-loader__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.cookdex-loader__orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2b84b;
  box-shadow: 0 0 14px rgba(242, 184, 75, 0.9);
}

.cookdex-loader__orbit--outer {
  inset: 0;
  border-top-color: #f2b84b;
  border-right-color: rgba(242, 184, 75, 0.65);
  animation: cookdex-loader-spin 2.4s linear infinite;
}

.cookdex-loader__orbit--outer::after { top: 12px; right: 12px; }

.cookdex-loader__orbit--inner {
  inset: 11px;
  border-bottom-color: #a855f7;
  border-left-color: rgba(168, 85, 247, 0.7);
  animation: cookdex-loader-spin-reverse 1.8s linear infinite;
}

.cookdex-loader__orbit--inner::after {
  bottom: 7px;
  left: 19px;
  width: 5px;
  height: 5px;
  background: #a855f7;
  box-shadow: 0 0 13px rgba(168, 85, 247, 0.9);
}

.cookdex-loader__logo-shell {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d121c;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 30px rgba(168,85,247,0.16);
}

.cookdex-loader__fallback {
  position: absolute;
  color: #a855f7;
  font: 900 36px/1 Arial, sans-serif;
}

.cookdex-loader__logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cookdex-loader__brand { margin-bottom: 18px; }

.cookdex-loader__title {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.cookdex-loader__title span { color: #f2b84b; }

.cookdex-loader__brand small {
  display: block;
  margin-top: 7px;
  color: #768196;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.cookdex-loader__track {
  position: relative;
  height: 2px;
  margin: 0 auto 13px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
}

.cookdex-loader__track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, #a855f7, #f2b84b, transparent);
  animation: cookdex-loader-track 1.35s ease-in-out infinite;
}

.cookdex-loader__message {
  margin: 0;
  color: #aab3c2;
  font-size: 12px;
}

.cookdex-loader__pulse {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.cookdex-loader__pulse i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f2b84b;
  animation: cookdex-loader-pulse 1.1s ease-in-out infinite;
}

.cookdex-loader__pulse i:nth-child(2) { animation-delay: 0.16s; }
.cookdex-loader__pulse i:nth-child(3) { animation-delay: 0.32s; }

@keyframes cookdex-loader-spin { to { transform: rotate(360deg); } }
@keyframes cookdex-loader-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes cookdex-loader-track {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}
@keyframes cookdex-loader-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cookdex-loader__orbit,
  .cookdex-loader__track span,
  .cookdex-loader__pulse i,
  .top-brand::before,
  .top-brand::after { animation: none; }
}

.top-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  flex: 0 0 auto;
}

.top-brand::before,
.top-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.top-brand::before {
  inset: 0;
  border: 1px solid rgba(242, 184, 75, 0.2);
  border-top-color: #f2b84b;
  border-right-color: rgba(242, 184, 75, 0.62);
  background: radial-gradient(circle at 84% 16%, #f2b84b 0 2px, transparent 3px);
  box-shadow: 0 0 12px rgba(242, 184, 75, 0.08);
  animation: cookdex-loader-spin 3.2s linear infinite;
}

.top-brand::after {
  inset: 4px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-bottom-color: #a855f7;
  border-left-color: rgba(168, 85, 247, 0.62);
  background: radial-gradient(circle at 16% 84%, #a855f7 0 1.5px, transparent 2.5px);
  animation: cookdex-loader-spin-reverse 2.4s linear infinite;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.native-market {
  display: inline-grid;
  grid-template-columns: 20px max-content max-content;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 6px;
  min-width: 118px;
  color: #edf2f8;
  font-size: 11px;
  line-height: 1.1;
  text-decoration: none;
}

.native-market[href]:hover strong,
.native-market[href]:focus-visible strong { color: #f2c94c; }
.native-market[href]:focus-visible { outline: 2px solid #d2a429; outline-offset: 4px; }

.native-market img {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.native-market strong { grid-column: 2; grid-row: 1; }
.native-market > span:not(.native-market__change) { grid-column: 2 / 4; grid-row: 2; font-weight: 700; }
.native-market__change { grid-column: 3; grid-row: 1; font-size: 10px; font-weight: 700; }
.native-market__change--up { color: #4ade80; }
.native-market__change--down { color: #f87171; }

.top-brand .cook-logo {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.top-actions {
  align-items: center;
}

.icon-action-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #121a26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-action-button img {
  width: 18px;
  height: 18px;
}

.copy-icon-control {
  display: inline-flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0.72;
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.copy-icon-control img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.copy-icon-control:hover,
.copy-icon-control:focus-visible { opacity: 1; outline: none; filter: brightness(1.35); }
.copy-icon-control.is-copied { opacity: 1; filter: sepia(1) saturate(4) hue-rotate(80deg); transform: scale(1.08); }
.address-with-copy { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }

.copy-confirmation-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 3000;
  padding: 8px 12px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 6px;
  background: #101a16;
  color: #8cf0ae;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.copy-confirmation-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.menu-trigger {
  gap: 4px;
  flex-direction: column;
}

.menu-trigger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f8fafc;
}

.header-menu {
  position: relative;
}

.header-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, 82vw);
  padding: 12px;
  border: 1px solid #263142;
  border-radius: 14px;
  background: linear-gradient(180deg, #101722 0%, #0b111a 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  z-index: 1200;
}

.header-menu-item {
  width: 100%;
  min-height: 38px;
  margin: 0 0 6px;
  padding: 9px 12px;
  border: 1px solid #293446;
  border-radius: 10px;
  background: #15202d;
  color: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.header-menu-item:last-child {
  margin-bottom: 0;
}

.header-settings-panel {
  margin-bottom: 6px;
  padding: 10px;
  border: 1px solid #293446;
  border-radius: 10px;
  background: #0f1722;
}

.header-settings-panel .language-switcher {
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .top-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .brand-cluster {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    width: 100%;
    gap: 8px;
  }

  .top-brand {
    width: 34px;
    height: 34px;
  }

  .top-brand .cook-logo {
    width: 23px;
    height: 23px;
    object-fit: contain;
  }

  .top-brand::after { inset: 3px; }

  .search-wrapper {
    grid-column: 1 / 4;
  }

  #chainSelectBtn {
    width: auto;
    max-width: 124px;
    overflow: hidden;
    white-space: nowrap;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-column: 1 / 4;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .top-actions .search-wrapper {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  #connectWallet {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .native-market {
    min-width: 0;
    grid-template-columns: 18px max-content max-content;
    column-gap: 3px;
    padding: 0 6px;
    border-right: 1px solid #3b4655;
    border-left: 1px solid #3b4655;
  }

  .native-market img { width: 18px; height: 18px; }
  .native-market > span:not(.native-market__change) { display: block; }
  .native-market__change { grid-column: 3; }

  .search-wrapper {
    max-width: none;
  }

  .header-menu-panel {
    position: fixed;
    top: 50%;
    right: auto;
    left: 50%;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translate(-50%, -50%);
  }

  .top-bar #globalSearchInput,
  #globalSearchInput {
    border: 0;
  }
}
