/* === Token Header === */
#token-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  padding: 22px 24px;
  gap: 20px;
  color: white;
  font-size: 13px;
  margin-top: 0;
  background: #111722;
  border: 1px solid #293244;
  border-radius: 8px 8px 0 0;
}

.vote-sentiment {
  grid-column: 1 / -1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(63, 74, 91, 0.58);
}

.vote-sentiment__labels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 25px;
  margin-bottom: 4px;
  font-size: 13px;
}

.vote-sentiment__labels > span { display: inline-flex; align-items: center; gap: 6px; }
.vote-sentiment__down { justify-self: start; color: #f29a9f; }
.vote-sentiment__neutral { justify-self: center; display: grid !important; justify-items: center; gap: 0 !important; color: #79dda5; }
.vote-sentiment__neutral strong { font-size: 13px; line-height: 1; }
.vote-sentiment__neutral small { margin-top: 2px; color: #8995a7; font-size: 7px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.vote-sentiment__up { justify-self: end; color: #79dda5; }
.vote-sentiment__labels strong { color: inherit; font-size: 11px; }

.vote-sentiment__button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.vote-sentiment__button:hover,
.vote-sentiment__button:focus-visible { background: rgba(255, 255, 255, 0.07); outline: none; transform: scale(1.08); }
.vote-sentiment__button.is-voted { transform: scale(1.12); }
.vote-sentiment__button:disabled { cursor: wait; opacity: 0.45; }

.vote-sentiment__confirmation {
  display: inline-grid;
  place-items: center;
  width: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: width 160ms ease, opacity 160ms ease;
}

.vote-sentiment__confirmation.is-visible { width: 14px; opacity: 1; }
.vote-sentiment__confirmation--up { color: #4ade80; }
.vote-sentiment__confirmation--down { color: #f05f68; }

.vote-sentiment__track {
  position: relative;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  background: linear-gradient(90deg, #b9424c 0%, #d9836e 25%, #7f8794 50%, #62ad83 75%, #25a765 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.vote-sentiment__marker {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #f5f7fb;
  border-radius: 50%;
  background: #111722;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.48);
  transform: translate(-50%, -50%);
  transition: left 0.35s ease;
}

.trade-sentiment {
  margin-top: 0;
  padding: 10px 16px 12px;
  border: 1px solid #2b3443;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #171b23;
}

.trade-sentiment__labels { grid-template-columns: 1fr 1fr; }
.trade-sentiment .vote-sentiment__down strong { color: #f29a9f; }
.trade-sentiment .vote-sentiment__up strong { color: #79dda5; }

.token-logo-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  align-self: start;
}

.token-logo-wrapper.small {
  width: 32px;
  height: 32px;
}

.token-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #333;
}

.chain-overlay {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: black;
  border: 1px solid #333;
}

.token-main-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 28px;
  min-width: 0;
}

.token-identity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.token-symbol-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.token-pool-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #7f8ba0;
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.token-pool-eyebrow strong { color: #d6deea; font-weight: 700; }
.token-pool-eyebrow span { padding-left: 6px; border-left: 1px solid #3a465c; }

.token-title-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.section-update-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1px solid #718096;
  border-radius: 50%;
  color: #8f9bad;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  opacity: 0.72;
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.section-update-info:hover,
.section-update-info:focus-visible { color: #dce6f3; border-color: #a8b7ca; opacity: 1; outline: none; }

.token-price-line,
.metric-value-with-info,
.audit-header-score {
  display: flex;
  align-items: center;
  gap: 7px;
}

.audit-header-score { justify-content: flex-end; margin-bottom: 7px; }
.audit-header-score .profile-score-ring--header { margin: 0; }

.token-favorite-slot {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-left: 14px;
  border-left: 1px solid #3a465c;
}

.token-favorite-slot .favorite-icon {
  margin: 0;
}

.token-header-comments {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding-left: 12px;
  color: #dfe8f5;
  text-decoration: none;
  border-left: 1px solid #3a465c;
  transition: color 160ms ease, transform 160ms ease;
}

.token-header-comments:hover { color: #58d69c; transform: translateY(-1px); }
.token-header-comments:focus-visible { outline: 2px solid #f5c451; outline-offset: 3px; }
.token-header-comments__icon {
  position: relative;
  width: 21px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 6px;
}
.token-header-comments__icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -5px;
  width: 6px;
  height: 6px;
  box-sizing: border-box;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: #111722;
  transform: skewY(-35deg);
}
.token-header-comments__counts {
  position: absolute;
  top: -3px;
  left: calc(50% + 6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: translateX(-50%);
}

.token-header-comments strong {
  min-width: 16px;
  padding: 1px 4px;
  border: 1px solid #111722;
  border-radius: 8px;
  background: #2fcb8a;
  color: #07130e;
  font-size: 8px;
  font-weight: 900;
  line-height: 12px;
  text-align: center;
}

.token-header-comments__social-count {
  background: #70cfff !important;
  color: #07141c !important;
}

.token-wallet-import-slot {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-left: 14px;
  border-left: 1px solid #3a465c;
}

.token-wallet-import {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.token-wallet-import img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.token-wallet-import:hover img { transform: scale(1.08); }
.token-wallet-import.is-busy { opacity: 0.55; cursor: wait; }
.token-wallet-import.is-success img { filter: drop-shadow(0 0 5px rgba(82, 211, 140, 0.9)); }

.token-trade-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.token-trade-actions .token-quick-buy { margin-top: 0; }

.token-symbol {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  font-size: 24px;
  font-weight: 750;
}

.token-pair-separator { margin-left: 2px; color: #768399; font-weight: 500; }
.token-pair-counterpart { color: #9aa6b8; font-size: 0.56em; font-weight: 650; }

.token-name {
  font-size: 14px;
  color: #aeb8c8;
  line-height: 1.2;
}

.token-trending-rank {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 1px solid #3a465c;
  border-radius: 0;
  background: transparent;
  color: #ffd36a;
  font-size: 16px;
  line-height: 1;
}

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

.token-trending-rank strong {
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}

.token-trending-flame {
  font-size: 17px;
}

.liquidity-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.liquidity-lock-badge img,
.liquidity-burn-status img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.liquidity-lock-badge--locked {
  color: #86efac;
}

.liquidity-lock-badge--open {
  color: #fca5a5;
}

.liquidity-lock-badge--unknown {
  color: #aeb8c8;
}

.liquidity-lock-details {
  position: relative;
  min-width: 0;
}

.liquidity-lock-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.liquidity-lock-details > summary::-webkit-details-marker { display: none; }

.liquidity-lock-details__chevron {
  width: 6px;
  height: 6px;
  border-right: 1px solid #86efac;
  border-bottom: 1px solid #86efac;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.liquidity-lock-details[open] .liquidity-lock-details__chevron { transform: rotate(225deg); }

.liquidity-lock-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(330px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #111822;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.liquidity-lock-entry {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border-bottom: 1px solid #293244;
}

.liquidity-lock-entry:last-child { border-bottom: 0; }
.liquidity-lock-entry > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.liquidity-lock-entry strong { color: #86efac; font-size: 12px; }
.liquidity-lock-entry span { color: #e4e9f0; font-size: 11px; }
.liquidity-lock-entry small { color: #8793a5; font-size: 10px; }

.liquidity-burn-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  color: #aeb8c8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.liquidity-burn-status--burned { color: #86efac; }
.liquidity-burn-status--not-burned { color: #fca5a5; }
.liquidity-burn-status--not-burned img { filter: grayscale(1); opacity: 0.55; }
.liquidity-burn-status--unknown { color: #778397; }

.token-market-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 28px;
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.token-market-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 224px;
}

.token-market-primary .token-market-label { align-self: stretch; text-align: right; }
.token-market-primary .token-price-line { justify-content: flex-end; width: 100%; }
.token-market-primary .token-wallet-balance { width: 100%; }

.token-health-meter {
  width: 224px;
  margin: 0 0 10px auto;
}

.token-health-meter__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #8c98a9;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.token-health-meter__heading strong {
  color: #edf2f7;
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.token-health-meter__track {
  position: relative;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: linear-gradient(90deg, #e34b58 0%, #f29d49 38%, #e2c94d 53%, #79c764 72%, #2fcf8d 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.token-health-meter__marker {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #f7f9fc;
  border-radius: 50%;
  background: #141b26;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  transition: left 500ms ease;
}

.profile-score-ring {
  --ring-color: #e35b66;
  --audit-score: 0;
  --ring-score: var(--audit-score);
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  box-sizing: border-box;
  border-radius: 50%;
  color: #edf2f7;
  text-align: center;
  text-decoration: none;
  background: conic-gradient(from -90deg, var(--ring-color) calc(var(--ring-score) * 1%), rgba(119, 131, 151, 0.2) 0);
  box-shadow: 0 0 16px color-mix(in srgb, var(--ring-color) 24%, transparent);
}

.profile-score-ring::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111722;
}

.profile-score-ring > span {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.profile-score-ring > small {
  margin-top: 2px;
  color: #8f9bad;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.profile-score-ring--healthy { --ring-color: #2fcf8d; }
.profile-score-ring--warning { --ring-color: #e0b142; }
.profile-score-ring--risk { --ring-color: #e35b66; }

.profile-score-ring--header {
  width: 42px;
  height: 42px;
  margin: 0 0 7px auto;
  transition: transform 160ms ease, filter 160ms ease;
}

.profile-score-ring--header::before { inset: 4px; }
.profile-score-ring--header > span { font-size: 12px; }
.profile-score-ring--header > small { font-size: 6px; }
.profile-score-ring--header:hover,
.profile-score-ring--title:hover { filter: brightness(1.15); transform: translateY(-1px); }
.profile-score-ring:focus-visible { outline: 2px solid #f5c451; outline-offset: 3px; }

.profile-score-ring--title {
  width: 34px;
  height: 34px;
  margin-left: 2px;
  transition: transform 160ms ease, filter 160ms ease;
}

.profile-score-ring--title::before { inset: 3px; }
.profile-score-ring--title > span { font-size: 10px; }
.profile-score-ring--title > small { font-size: 5px; }

.token-market-label {
  display: block;
  margin-bottom: 3px;
  color: #778397;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.token-price {
  font-weight: 700;
  font-size: 24px;
  color: #f5f7fb;
}

.token-wallet-balance {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 5px;
  color: #7f8b9b;
  font-size: 11px;
  line-height: 1.3;
}

.token-wallet-balance strong {
  color: #c7d0dc;
  font-weight: 700;
}

.token-wallet-balance.hidden { display: none; }
.token-stat-live-price { color: #f5f7fb; }

.token-price--flash-up { animation: token-price-up 900ms ease-out; }
.token-price--flash-down { animation: token-price-down 900ms ease-out; }

@keyframes token-price-up {
  0%, 45% { color: #63e6a3; }
  100% { color: #f5f7fb; }
}

@keyframes token-price-down {
  0%, 45% { color: #ff8f9c; }
  100% { color: #f5f7fb; }
}

.token-change {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.token-change--positive { color: #55d995; background: rgba(22, 199, 132, 0.12); }
.token-change--negative { color: #ff7c84; background: rgba(234, 57, 67, 0.12); }

/* === Header socials === */
.token-header-socials {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  min-height: 24px;
  margin-top: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.token-header-socials::-webkit-scrollbar { display: none; }

.token-social-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.token-header-socials img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #1a1a1a;
  box-shadow: 0 0 5px rgba(160, 160, 160, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.token-social-link--active img {
  box-shadow: 0 0 7px rgba(200, 200, 200, 0.72);
}

.token-social-link--active img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.9);
}

.token-social-link--inactive {
  cursor: default;
  opacity: 0.24;
  filter: grayscale(1) saturate(0.15);
  pointer-events: none;
}

.token-social-link--inactive img {
  box-shadow: none;
}

.token-social-share-divider {
  width: 1px;
  height: 18px;
  margin: 0 3px;
  flex: 0 0 auto;
  background: #3a4556;
}

.token-social-share {
  position: relative;
}

.token-social-share::after {
  content: "+";
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #58d69c;
  color: #07110d;
  font: 800 9px/10px Arial, sans-serif;
  text-align: center;
}

/* === Update Button === */
.token-update-btn {
  margin: 0;
  padding: 6px 12px;
  background-color: #1e1e1e;
  border: 1px solid #2fcf8d;
  color: #ccc;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 0 8px rgba(47, 207, 141, 0.16);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.token-update-btn del { color: #8d929b; }
.token-update-btn strong { color: #fff; }
.token-update-btn__discount { color: #53d98c !important; }

.token-update-btn:hover {
  background-color: #292929;
  color: white;
  border-color: #63e6a3;
  box-shadow: 0 0 12px rgba(47, 207, 141, 0.34);
}

.token-update-btn:focus-visible { outline: 2px solid #63e6a3; outline-offset: 3px; }

.token-section {
  margin-top: 16px;
  background: #121212;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #2a2a2a;
}

.token-section.token-section--header {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.token-section h2 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 16px;
}

.token-contract-row {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #293244;
  border-top: 0;
  background: #0e131c;
  border-radius: 0 0 8px 8px;
  color: #bbb;
  font-size: 13px;
  flex-wrap: wrap;
}

.token-contract-value { display: inline-flex; align-items: center; gap: 9px; min-width: 0; min-height: 26px; }
.token-market-identifiers { display: flex; align-items: center; gap: 18px; min-width: 0; }
.token-pair-value { padding-left: 18px; border-left: 1px solid #293244; }
.token-pair-value > .liquidity-lock-badge,
.token-pair-value > .liquidity-lock-details,
.token-pair-value > .liquidity-burn-status {
  margin-left: 9px;
  padding-left: 18px;
  border-left: 1px solid #293244;
  font-size: 12px;
}
.token-pool-composition {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #293244;
}
.token-pool-composition--desktop { flex: 0 0 100%; }
.token-pool-composition--pair-card { flex: none; }
.token-pool-composition--mobile { display: none; }
.token-pool-stat {
  min-width: 0;
  min-height: 0;
  padding: 3px 12px;
  border-right: 1px solid #293244;
  background: transparent;
  display: grid;
  align-content: center;
}
.token-pool-stat:first-child { padding-left: 0; }
.token-pool-stat:last-child { border-right: 0; padding-right: 0; }
.token-pool-stat__label {
  margin-bottom: 3px;
  color: #8793a5;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.token-pool-stat strong {
  color: #f5f7fb;
  font-size: 15px;
  font-weight: 700;
}
.token-pool-stat > span:last-child {
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #aeb8c8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-contract-label { color: #778397; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.contract-short {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


.pair-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 340px));
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 24px auto;
}

.pair-card {
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.pair-card-red {
  background: linear-gradient(180deg, rgba(90, 32, 41, 0.92) 0%, rgba(55, 22, 29, 0.96) 100%);
  border-color: rgba(186, 90, 108, 0.4);
}

.pair-card-yellow {
  background: linear-gradient(180deg, rgba(92, 78, 28, 0.92) 0%, rgba(58, 47, 18, 0.96) 100%);
  border-color: rgba(194, 169, 79, 0.4);
}

.pair-card-violet {
  background: linear-gradient(180deg, rgba(67, 42, 93, 0.92) 0%, rgba(42, 26, 61, 0.96) 100%);
  border-color: rgba(167, 122, 214, 0.4);
}

.pair-card-green {
  background: linear-gradient(180deg, rgba(21, 77, 55, 0.92) 0%, rgba(17, 48, 36, 0.96) 100%);
  border-color: rgba(99, 194, 145, 0.4);
}

.pair-card__top,
.section-heading-with-chip,
.audit-check__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pair-chart-link {
  color: inherit;
  text-decoration: none;
}

.pair-chart-link span {
  margin-left: 8px;
  color: #67d6a3;
  font-size: 11px;
  font-weight: 700;
}

.pair-card--selected {
  outline: 1px solid rgba(103, 214, 163, .75);
  outline-offset: -1px;
}

.pair-primary {
  color: #fff;
  font-weight: 600;
}

.pair-card__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.liquidity-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.liquidity-chip--red {
  background: rgba(255, 138, 157, 0.18);
  border-color: rgba(255, 138, 157, 0.35);
}

.liquidity-chip--yellow {
  background: rgba(255, 218, 103, 0.18);
  border-color: rgba(255, 218, 103, 0.35);
}

.liquidity-chip--violet {
  background: rgba(207, 154, 255, 0.18);
  border-color: rgba(207, 154, 255, 0.35);
}

.liquidity-chip--green {
  background: rgba(113, 238, 171, 0.18);
  border-color: rgba(113, 238, 171, 0.35);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-chip--healthy,
.status-chip--pass,
.status-chip--ok,
.status-chip--very_low,
.status-chip--low {
  background: rgba(26, 127, 55, 0.18);
  border-color: rgba(26, 127, 55, 0.5);
  color: #70e59a;
}

.status-chip--warning,
.status-chip--warn,
.status-chip--medium {
  background: rgba(190, 128, 16, 0.18);
  border-color: rgba(190, 128, 16, 0.5);
  color: #ffd479;
}

.status-chip--risk,
.status-chip--high,
.status-chip--fail,
.status-chip--critical {
  background: rgba(180, 45, 45, 0.18);
  border-color: rgba(180, 45, 45, 0.5);
  color: #ff8f8f;
}

.status-chip--neutral,
.status-chip--unknown {
  background: rgba(140, 140, 140, 0.16);
  border-color: rgba(140, 140, 140, 0.45);
  color: #d3d3d3;
}

.pair-summary-line {
  margin-bottom: 12px;
  color: #9f9f9f;
  font-size: 13px;
}

.pair-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.pair-card__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pair-card__metric--wide {
  grid-column: 1 / -1;
}

.pair-card__label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pair-card__value {
  color: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pair-card__value--up {
  color: #9df0bb;
}

.pair-card__value--down {
  color: #ffb0b0;
}

.pair-address-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.audit-panel {
  width: 100%;
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #171c28;
}

.audit-panel:not([open]).audit-panel--healthy {
  border-color: rgba(74, 202, 135, 0.42);
  background: rgba(29, 112, 72, 0.28);
}

.audit-panel:not([open]).audit-panel--warning {
  border-color: rgba(224, 177, 66, 0.46);
  background: rgba(126, 91, 22, 0.3);
}

.audit-panel:not([open]).audit-panel--risk {
  border-color: rgba(225, 91, 99, 0.46);
  background: rgba(119, 39, 46, 0.3);
}

.audit-panel:not([open]) > .collapsible-summary {
  background: transparent;
}

.collapsible-summary.audit-summary-heading {
  grid-template-columns: auto auto minmax(0, 1fr) 18px;
}

.audit-summary-heading .status-chip { justify-self: end; }

.collapsible-summary.pair-summary-heading {
  grid-template-columns: auto auto minmax(72px, 1fr) auto 18px;
  column-gap: 16px;
}

.pair-summary-heading .collapsible-summary__meta {
  justify-self: start;
  margin-right: 4px;
  white-space: nowrap;
}

.pair-summary-heading .collapsible-chevron { margin-left: 4px; }

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

.audit-summary-heading .profile-score-ring,
.pair-summary-heading .profile-score-ring {
  justify-self: start;
}

.token-section--pairs:not([open]).pair-health--healthy {
  border-color: rgba(74, 202, 135, 0.42);
  background: rgba(29, 112, 72, 0.28);
}

.token-section--pairs:not([open]).pair-health--warning {
  border-color: rgba(224, 177, 66, 0.46);
  background: rgba(126, 91, 22, 0.3);
}

.token-section--pairs:not([open]).pair-health--risk {
  border-color: rgba(225, 91, 99, 0.46);
  background: rgba(119, 39, 46, 0.3);
}

.token-section--pairs:not([open]) > .collapsible-summary {
  background: transparent;
}

.collapsible-panel { padding: 0; overflow: hidden; }
.collapsible-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 18px; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; background: #151b26; }
.collapsible-summary::-webkit-details-marker { display: none; }
.collapsible-summary h2 { margin: 0; }
.collapsible-summary__meta { color: #8f9bad; font-size: 12px; }
.collapsible-chevron { width: 8px; height: 8px; border-right: 2px solid #8793a5; border-bottom: 2px solid #8793a5; transform: rotate(45deg); transition: transform .2s ease; }
.collapsible-panel[open] .collapsible-chevron { transform: rotate(225deg); }
.collapsible-panel[open] .collapsible-summary { border-bottom: 1px solid #293244; }
.collapsible-content { padding: 18px; }

.audit-grid,
.last-updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.audit-checks {
  margin-top: 14px;
}

.audit-check {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #2b2b2b;
  background: #1e2432;
}

.audit-check__detail {
  margin-top: 8px;
  color: #b8b8b8;
  line-height: 1.5;
}

.audit-check__value {
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.audit-stat-box,
.update-stat-box {
  align-items: flex-start;
  text-align: left;
}

.value--small {
  font-size: 13px;
  line-height: 1.4;
}

.update-trending-rank { display: inline-flex; align-items: center; gap: 4px; color: #f3c94f; }
.update-stat-detail { margin-top: 5px; color: #8491a4; font-size: 11px; line-height: 1.35; }

.token-disclaimer {
  margin: 0;
  color: #d8c68a;
  line-height: 1.6;
}

.token-disclaimer--audit {
  margin-top: 14px;
}

/* === Stats === */
.token-stats-container,
.token-vote-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
  background: #121212;
  padding: 20px;
  border-radius: 12px;
}

.token-stat-box,
.token-vote-box {
  background: #1c1c1c;
  border-radius: 8px;
  padding: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #2b2b2b;
}

.token-stat-box .label,
.token-vote-box .label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.token-stat-box .value,
.token-vote-box .value {
  font-size: 15px;
  font-weight: 500;
}

.token-vote-box--trending {
  border-color: rgba(243, 201, 79, 0.32);
}

.token-vote-box--trending .value {
  color: #f3c94f;
}

.token-vote-box__detail {
  margin-top: 5px;
  color: #8f98a8;
  font-size: 11px;
  line-height: 1.35;
}

/* === Chart === */
.chart-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.chart-header h2 {
  margin-bottom: 4px;
}

.chart-source-label {
  margin: 0;
  color: #8f98a8;
  font-size: 13px;
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chart-source-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(107, 117, 139, 0.24);
  flex: 0 0 auto;
  border-radius: 5px;
  background: rgba(12, 16, 24, 0.86);
}

.chart-source-switch button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #9aa5b8;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.chart-source-switch button.active,
.chart-source-switch button:hover {
  color: #f4f7fb;
  background: #202a3b;
}

.chart-alpha-badge {
  margin-left: 4px;
  padding: 2px 4px;
  border: 1px solid #8c7332;
  border-radius: 4px;
  color: #e5c465;
  font-size: 8px;
  text-transform: uppercase;
}

.chart-tools {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  gap: 3px;
  min-width: max-content;
  padding: 3px;
  border: 1px solid rgba(107, 117, 139, 0.24);
  border-radius: 5px;
  background: rgba(12, 16, 24, 0.86);
}

.chart-tools button {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: #9aa5b8;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.chart-tools button:hover { color: #fff; background: #202a3b; }
.chart-tools button:disabled { opacity: .35; cursor: not-allowed; }
.chart-value-switch { display: inline-flex; align-items: center; flex: 0 0 auto; }
.chart-interval-menu { position: relative; flex: 0 0 auto; padding-right: 4px; border-right: 1px solid #303b4d; }
.chart-interval-menu summary { min-width: 52px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 9px; border-radius: 6px; color: #f4f7fb; cursor: pointer; font-weight: 800; list-style: none; box-sizing: border-box; }
.chart-interval-menu summary::-webkit-details-marker { display: none; }
.chart-interval-menu summary::after { content: "\25BE"; color: #7f8ba0; font-size: 10px; }
.chart-interval-menu[open] summary, .chart-interval-menu summary:hover { background: #202a3b; }
.chart-interval-popup { position: fixed; z-index: 1000; width: 174px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 7px; border: 1px solid #344054; border-radius: 7px; background: #101722; box-shadow: 0 16px 36px rgba(0, 0, 0, .48); box-sizing: border-box; }
.chart-interval-popup button { min-width: 0; padding: 0 8px; }
.chart-interval-popup button.active, .chart-value-switch button.active { color: #4d83ff; background: rgba(55, 105, 230, .12); }
.chart-indicators-button { display: inline-flex; align-items: center; gap: 6px; width: auto !important; min-width: 88px !important; padding: 0 8px; border-left: 1px solid #303b4d !important; border-right: 1px solid #303b4d !important; }
.chart-indicators-button span { color: #8e9bad; font: 15px Georgia, serif; }
.chart-indicators-button[aria-pressed="true"] { color: #f2f5fa; }
.chart-value-switch { gap: 2px; padding: 0 4px; color: #68758a; }
.chart-value-switch button { min-width: 42px; padding: 0 4px; }
.chart-currency-label { min-width: 36px; padding: 0 8px; border-left: 1px solid #303b4d; color: #4d83ff; font-weight: 800; line-height: 30px; }
.order-panel-toggle { min-width: 112px !important; margin-left: auto; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #303b4d !important; color: #fff !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .03); }
.order-panel-toggle span { height: 100%; display: grid; place-items: center; }
.order-panel-toggle span:first-child { background: #138f61; }
.order-panel-toggle span:last-child { background: #bd3440; }
.order-panel-toggle:hover span:first-child { background: #16a970; }
.order-panel-toggle:hover span:last-child { background: #d83b47; }

.chart-tool-actions {
  display: inline-flex;
  gap: 4px;
}
.chart-tool-actions button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#chartFitButton svg { transform: rotate(45deg) scale(.8); }

.chart-wrapper {
  max-width: 100%;
  padding: 0;
  height: clamp(430px, 62vh, 640px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(107, 117, 139, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 20, 30, 0.98), rgba(8, 12, 19, 0.98)),
    #0a0f18;
}

.chart-range-bar { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; height: 33px; display: flex; align-items: center; gap: 2px; padding: 0 12px 0 58px; border-top: 1px solid rgba(107, 117, 139, .22); background: rgba(10, 15, 24, .96); box-sizing: border-box; }
.chart-range-bar button { min-width: 34px; height: 25px; border: 0; border-radius: 4px; background: transparent; color: #8f9bad; font-size: 11px; font-weight: 750; cursor: pointer; }
.chart-range-bar button:hover { color: #fff; background: #1a2535; }
.chart-range-bar button.active { color: #4d83ff; background: rgba(55, 105, 230, .12); }
.chart-clock { margin-left: auto; color: #b5c1d1; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }

#chartSection:fullscreen { width: 100vw; height: 100vh; overflow: auto; box-sizing: border-box; margin: 0; padding: 8px; border: 0; border-radius: 0; background: #0a0f18; }
#chartSection:fullscreen .chart-wrapper { height: calc(100vh - 58px); border-radius: 0; }
#chartSection:fullscreen .chart-header { margin-bottom: 6px; }
#chartSection:fullscreen .chart-source-switch { display: none; }

.chart-signal-toolbar {
  position: absolute;
  z-index: 4;
  top: 42px;
  left: 10px;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(107, 117, 139, .28);
  border-radius: 7px;
  background: rgba(9, 14, 23, .9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
.chart-signal-toolbar.is-collapsed { display: none; }
.chart-signal-toolbar button {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0;
  color: #8f9bad;
  background: transparent;
  cursor: pointer;
}
.chart-signal-toolbar button:hover { color: #f3f6fb; background: #1a2535; }
.chart-signal-toolbar button[aria-pressed="true"] { color: #f4c542; border-color: rgba(244, 197, 66, .5); background: rgba(244, 197, 66, .12); }
.chart-signal-toolbar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chart-signal-toolbar span { position: absolute; right: 2px; bottom: 1px; font-size: 7px; line-height: 1; font-weight: 800; }

.chart-ohlc-legend {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 68px;
  min-height: 18px;
  color: #9aa5b8;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}

.chart-market-caption {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 68px;
  color: #e7ecf4;
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}

.chart-panel {
  width: 100%;
}
.chart-trading-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; }
.chart-trading-layout.is-order-open { grid-template-columns: minmax(0, 1fr) minmax(270px, 310px); align-items: start; }
.chart-panels { min-width: 0; }
.chart-trading-layout.is-order-open .order-panel { align-self: start; }
@media (min-width: 769px) {
  .chart-trading-layout.is-order-open .chart-wrapper,
  .chart-trading-layout.is-order-open .chart-embed-panel { height: var(--order-panel-height, clamp(430px, 62vh, 640px)); }
}
.order-panel { min-width: 0; padding: 14px; border: 1px solid #2c3748; border-radius: 6px; background: #0d141e; display: flex; flex-direction: column; gap: 13px; }
.order-token-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #273244; }
.order-token-summary > img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #1c2634; }
.order-token-summary > div { display: grid; gap: 3px; min-width: 0; }.order-token-summary > div:last-child { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; color: #8f9bad; }
.order-balance-button { min-width: 0; padding: 0; border: 0; background: transparent; color: #e8edf5; overflow: hidden; text-align: left; text-overflow: ellipsis; cursor: pointer; }
.order-balance-button:hover { color: #f3c94f; }
.order-field { display: grid; gap: 6px; color: #909caf; font-size: 12px; }.order-field select, .order-field input { width: 100%; box-sizing: border-box; border: 1px solid #344154; border-radius: 5px; padding: 10px; background: #111c29; color: #fff; }
.order-token-picker { margin-top: -8px; }
.order-token-picker .swap-token-trigger { min-height: 46px; }
.order-token-picker .swap-token-popup { z-index: 30; }
.order-token-picker .swap-token-results { max-height: 210px; }
.order-quote-balance, .order-status { margin: -7px 0 0; min-height: 17px; color: #8996a8; font-size: 11px; }
.order-amount-range { display: grid; gap: 3px; margin-top: -7px; }
.order-amount-range input { width: 100%; accent-color: #d2a429; cursor: pointer; }
.order-amount-range > div { display: flex; justify-content: space-between; color: #778397; font-size: 10px; }
.order-amount-range strong { color: #d8b74e; }
.order-type-switch, .order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.order-type-switch button, .order-actions button { min-height: 38px; border: 1px solid #354155; border-radius: 5px; background: #151f2d; color: #dce3ed; font-weight: 700; cursor: pointer; }.order-type-switch button.active { border-color: #d2a429; color: #ffd65d; }.order-type-switch button:disabled { opacity: 0.35; cursor: not-allowed; }
.limit-order-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .72fr); gap: 9px; border: 1px solid rgba(210, 164, 41, .42); border-radius: 6px; padding: 10px; background: rgba(210, 164, 41, .055); }
.limit-order-fields.hidden { display: none; }
.limit-order-fields .order-field { min-width: 0; }
.limit-order-fields p, .limit-order-fields > small { grid-column: 1 / -1; margin: 0; }
.limit-order-fields p { color: #f0d06e; font-size: 11px; font-weight: 700; }
.limit-order-fields > small { color: #8793a5; font-size: 10px; line-height: 1.45; }
#orderBuyButton { border-color: #339363; background: #1d754b; color: #fff; }#orderSellButton { border-color: #a9444a; background: #8d333a; color: #fff; }#orderBuyButton:hover { background: #238a59; }#orderSellButton:hover { background: #a13b43; }
#orderBuyButton:disabled, #orderSellButton:disabled, #orderBuyButton:disabled:hover, #orderSellButton:disabled:hover { border-color: #354155; background: #252b35; color: #77808d; opacity: .58; filter: grayscale(1); cursor: not-allowed; }
.order-live-quote { display: grid; gap: 9px; border: 1px solid #2f3b4e; border-radius: 6px; padding: 10px; background: #101925; }
.order-live-quote__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #e8edf5; font-size: 12px; }
.order-live-quote__head span { display: inline-flex; gap: 3px; }
.order-live-quote__head button { border: 0; border-radius: 4px; padding: 4px 7px; background: transparent; color: #7e8a9d; font-size: 10px; font-weight: 800; cursor: pointer; }
.order-live-quote__head .order-quote-refresh { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; padding: 0; color: #aeb9c9; font-size: 19px; line-height: 1; }
.order-live-quote__head .order-quote-refresh:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.order-live-quote__head .order-quote-refresh:disabled { cursor: wait; opacity: .65; }
.order-live-quote__head .order-quote-refresh.is-loading { animation: order-quote-spin .75s linear infinite; }
@keyframes order-quote-spin { to { transform: rotate(360deg); } }
.order-live-quote__head button.active[data-order-quote-side="buy"] { background: rgba(48, 177, 110, .18); color: #6de0a5; }
.order-live-quote__head button.active[data-order-quote-side="sell"] { background: rgba(215, 75, 86, .18); color: #f39aa0; }
.order-live-quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.order-live-quote__grid span { display: grid; min-width: 0; gap: 2px; }
.order-live-quote__grid span:last-child { grid-column: 1 / -1; }
.order-live-quote__grid small { color: #748196; font-size: 9px; text-transform: uppercase; }
.order-live-quote__grid strong { overflow: hidden; color: #dce5f2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-history-button { min-height: 34px; border: 1px solid #39475b; border-radius: 5px; background: #151f2d; color: #b7c3d3; font-weight: 700; cursor: pointer; }
.order-history-button:hover { border-color: #d2a429; color: #f2cf63; }
.order-history-dialog { width: min(680px, calc(100vw - 28px)); max-height: min(720px, calc(100dvh - 28px)); box-sizing: border-box; overflow: hidden; border: 1px solid #344156; border-radius: 8px; padding: 0; background: #101824; color: #edf3fb; box-shadow: 0 24px 70px rgba(0, 0, 0, .68); }
.order-history-dialog::backdrop { background: rgba(3, 7, 12, .76); backdrop-filter: blur(3px); }
.order-history-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #2d394b; padding: 16px 18px; }
.order-history-dialog > header div { display: grid; gap: 3px; }.order-history-dialog > header small { color: #7f8ca0; }.order-history-dialog > header strong { font-size: 17px; }
.order-history-dialog > header button { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid #344156; border-radius: 50%; background: #151f2d; color: #c4cedc; font-size: 22px; cursor: pointer; }
.order-history-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 18px 0; }
.order-history-tabs button { min-height: 36px; border: 1px solid #344156; border-radius: 5px; background: #151f2d; color: #8e9caf; font-weight: 800; cursor: pointer; }
.order-history-tabs button.active[data-order-history-side="buy"] { border-color: #339363; background: rgba(29, 117, 75, .34); color: #72e0a8; }
.order-history-tabs button.active[data-order-history-side="sell"] { border-color: #a9444a; background: rgba(141, 51, 58, .34); color: #f39aa0; }
.order-history-tabs button.active[data-order-history-side="limit"] { border-color: #c79c2d; background: rgba(151, 111, 22, .3); color: #f2cf63; }
.order-history-status { min-height: 16px; margin: 8px 18px 0; color: #d8b950; font-size: 11px; text-align: center; }
.order-history-list { max-height: min(540px, calc(100dvh - 180px)); overflow: auto; padding: 12px 18px 18px; }
.order-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); padding: 11px 2px; }
.order-history-assets { display: flex; min-width: 0; align-items: center; gap: 9px; }.order-history-assets img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; background: #1a2533; }.order-history-assets > div { display: grid; min-width: 0; gap: 2px; }.order-history-assets strong, .order-history-assets small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.order-history-assets small { color: #7f8ca0; }
.order-history-meta { display: grid; justify-items: end; gap: 4px; color: #8190a4; font-size: 10px; }.order-history-meta a { color: #e0bd50; text-decoration: none; }
.order-limit-side { font-size: 10px; text-transform: uppercase; }.order-limit-side--buy { color: #56d99a; }.order-limit-side--sell { color: #f17f88; }
.order-limit-cancel { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid #7b3d46; border-radius: 50%; background: rgba(117, 40, 49, .2); color: #f49aa1; font-size: 18px; line-height: 1; cursor: pointer; }
.order-limit-cancel:hover { border-color: #e15e68; background: rgba(151, 48, 59, .35); color: #fff; }.order-limit-cancel:disabled { opacity: .55; cursor: wait; }.order-limit-cancel.is-loading span { animation: order-cancel-spin .8s linear infinite; }
@keyframes order-cancel-spin { to { transform: rotate(360deg); } }
.order-history-empty { margin: 24px 0; color: #7f8ca0; text-align: center; }

.token-section--trades {
  padding: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.pool-trades-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  scrollbar-width: none;
}
.pool-trades-filters::-webkit-scrollbar { display: none; }
.pool-trades-filter { flex: 0 0 auto; min-height: 30px; border: 0; border-radius: 6px; padding: 6px 12px; background: #1e1e1e; color: #b8c0cc; box-shadow: 0 0 5px rgba(100, 100, 100, 0.3); font-size: 0.76rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.pool-trades-filter:hover { background: #292929; color: #fff; box-shadow: 0 0 10px rgba(180, 180, 180, 0.35); }
.pool-trades-filter.active { background: #292929; color: #f2c94c; box-shadow: 0 0 8px rgba(210, 164, 41, 0.3); }
.pool-trades-filter:focus-visible { outline: 2px solid #d2a429; outline-offset: 2px; }

.pool-trades-viewport {
  max-height: 430px;
  overflow: auto;
}
.pool-trades-loading { display: flex; min-height: 74px; align-items: center; justify-content: center; gap: 10px; color: #8f9bad; font-size: 0.76rem; }
.pool-trades-loading.hidden { display: none; }
.pool-trades-loading__ring { width: 22px; height: 22px; box-sizing: border-box; border: 2px solid rgba(159, 174, 195, .22); border-top-color: #f2c94c; border-right-color: #f2c94c; border-radius: 50%; animation: pool-trades-loading-spin .72s linear infinite; }
@keyframes pool-trades-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pool-trades-loading__ring { animation-duration: 1.8s; } }

.pool-trades-table { min-width: 1040px; }
.pool-trades-row {
  position: relative;
  display: grid;
  grid-template-columns: 82px 62px minmax(105px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(132px, 1fr) minmax(105px, 0.9fr) 54px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
}
.pool-trades-row--head { position: sticky; top: 0; z-index: 2; background: #111722; color: #7f8ba0; font-size: 0.7rem; text-transform: uppercase; }
.pool-trades-row--buy { --trade-live-color: 70, 220, 137; background: rgba(58, 167, 105, 0.09); }
.pool-trades-row--sell { --trade-live-color: 242, 105, 115; background: rgba(210, 70, 77, 0.09); }
.pool-trades-row--lp_add { --trade-live-color: 242, 205, 82; background: rgba(220, 184, 54, 0.11); }
.pool-trades-row--lp_remove { --trade-live-color: 242, 145, 75; background: rgba(224, 126, 50, 0.12); }
.pool-trades-row[tabindex] { cursor: pointer; }
.pool-trades-row[tabindex]:hover { filter: brightness(1.16); }
.pool-trades-row[tabindex]:focus-visible { outline: 2px solid rgba(159, 212, 255, 0.76); outline-offset: -2px; }
.pool-trades-row--selected { outline: 1px solid rgba(159, 212, 255, 0.72); outline-offset: -1px; }
.pool-trades-row--own { box-shadow: inset 4px 0 0 #f2b84b, inset 0 0 0 1px rgba(242, 184, 75, 0.42); }
.pool-trades-row--own .wallet-insight-trigger { color: #f6c96b; }
.pool-trades-row--live { animation: pool-trade-live-arrival 2.1s ease-out both; }
.pool-trades-row--live::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(var(--trade-live-color, 242, 184, 75), 0.3);
  box-shadow: inset 4px 0 0 rgba(var(--trade-live-color, 242, 184, 75), 0.95), inset 0 0 24px rgba(var(--trade-live-color, 242, 184, 75), 0.22);
  animation: pool-trade-live-glow 2.1s ease-out both;
}
@keyframes pool-trade-live-arrival {
  0% { opacity: 0.45; transform: translateY(-3px); }
  18% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pool-trade-live-glow {
  0% { opacity: 0; }
  12% { opacity: 1; }
  38% { opacity: 0.68; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pool-trades-row--live { animation: none; }
  .pool-trades-row--live::after { animation: none; opacity: 0.2; }
}
.pool-trades-row a { color: #a8b9ca; text-decoration: none; }
.pool-trades-row a:hover { color: #fff; }
.pool-trade-kind--buy { color: #65d49a; }
.pool-trade-kind--sell { color: #ef8e94; }
.pool-trade-kind--lp_add { color: #ead069; }
.pool-trade-kind--lp_remove { color: #efad68; }
.pool-trade-input { color: #e7c75f; }
.pool-trade-output { color: #b999f2; }
.pool-trade-value { display: inline-flex; min-width: 0; align-items: center; gap: 6px; white-space: nowrap; }
.pool-trade-value img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.48)); }
.pool-trade-value--footprints { color: #a97664; }
.pool-trade-value--shrimp { color: #b97962; }
.pool-trade-value--crab { color: #c5836a; }
.pool-trade-value--fish { color: #65a9df; }
.pool-trade-value--dolphin { color: #6f98ee; }
.pool-trade-value--whale { color: #b9aff8; font-weight: 700; }
.pool-trade-address { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pool-trade-address > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.pool-trade-action { display: inline-flex; width: 17px; height: 17px; flex: 0 0 17px; align-items: center; justify-content: center; opacity: 0.72; cursor: pointer; }
.pool-trade-action:hover { opacity: 1; }.pool-trade-action img { width: 14px; height: 14px; object-fit: contain; }
.pool-trade-explorer { margin: 0; }
.pool-trade-others { display: inline-flex; min-width: 0; align-items: center; justify-content: center; gap: 6px; }
.pool-trade-bot { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; color: #efad68; font-size: 14px; line-height: 1; filter: saturate(0.82); }
.wallet-insight-trigger { display: inline-flex; max-width: 100%; min-width: 0; align-items: center; gap: 7px; border: 0; padding: 0; background: transparent; color: #a8b9ca; font: inherit; cursor: pointer; }
.wallet-insight-trigger:hover { color: #fff; }
.wallet-insight-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-trade-count { display: inline-flex; min-width: 25px; height: 20px; padding: 0 6px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid #344156; border-radius: 5px; background: #0d1521; color: #aebbd0; font-size: 10px; line-height: 1; }
.wallet-insight-dialog { width: min(920px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); box-sizing: border-box; overflow: auto; border: 1px solid #344156; border-radius: 8px; padding: 0; background: #151e2b; color: #edf3fb; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.68); }
.wallet-insight-dialog::backdrop { background: rgba(2, 6, 12, 0.76); backdrop-filter: blur(3px); }
.wallet-insight__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 17px 18px; border-bottom: 1px solid #344156; }
.wallet-insight__wallet-line, .wallet-insight__token, .wallet-insight__actions { display: flex; align-items: center; gap: 9px; }
.wallet-insight__wallet-line > span:not(.copy-icon-control):not(.wallet-trade-count) { color: #aebbd0; font-size: 12px; }
.wallet-insight__token { margin-top: 13px; }
.wallet-insight__token img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.wallet-insight__token span { color: #9eabbe; font-size: 12px; }
.wallet-insight__actions { flex: 0 0 auto; }
.wallet-insight__icon, .wallet-insight__close { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid #344156; border-radius: 50%; background: #111925; color: #b8c4d5; cursor: pointer; }
.wallet-insight__icon img { width: 17px; height: 17px; object-fit: contain; }
.wallet-insight__close { font-size: 23px; line-height: 1; }
.wallet-insight__icon:hover, .wallet-insight__close:hover { border-color: #5c6c83; color: #fff; }
.wallet-insight__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.wallet-insight__panel { min-width: 0; border: 1px solid #344156; border-radius: 7px; padding: 12px; background: #0f1724; }
.wallet-insight__panel h3 { display: flex; justify-content: space-between; margin: 0 0 10px; color: #dfe7f2; font-size: 12px; text-transform: uppercase; }
.wallet-insight__panel--buy h3, .wallet-insight__panel--buy dd { color: #6de0a5; }
.wallet-insight__panel--sell h3, .wallet-insight__panel--sell dd { color: #f39aa0; }
.wallet-insight__panel dl { margin: 0; }
.wallet-insight__panel dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.wallet-insight__panel dl > div:last-child { border-bottom: 0; }
.wallet-insight__panel dt { color: #9daabd; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.wallet-insight__panel dd { margin: 0; color: #edf3fb; font-size: 11px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pool-trades-sentinel,
.pool-trades-empty { margin: 0; padding: 14px 16px; color: #7f8ba0; text-align: center; font-size: 0.78rem; }

.token-comments { padding: 0; }
.token-comments__content { display: grid; gap: 14px; padding: 4px 16px 16px; }
.token-comments__summary { grid-template-columns: minmax(0, 1fr) auto auto auto auto; }
.token-comment-form { display: grid; gap: 9px; }
.token-comment-form textarea { width: 100%; min-height: 82px; resize: vertical; box-sizing: border-box; border: 1px solid #344156; border-radius: 6px; padding: 11px 12px; background: #0d1521; color: #edf3fb; font: inherit; line-height: 1.45; }
.token-comment-form textarea:focus { border-color: #d2a429; outline: 2px solid rgba(210, 164, 41, 0.16); }
.token-comment-emoji { position: relative; justify-self: start; margin-top: -4px; }
.token-comment-emoji__toggle { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid #344156; border-radius: 50%; padding: 0; background: #111925; color: #aab6c8; cursor: pointer; }
.token-comment-emoji__toggle:hover, .token-comment-emoji__toggle[aria-expanded="true"] { border-color: #d2a429; background: #24200f; }
.token-comment-emoji__icon { position: relative; display: block; width: 17px; height: 17px; box-sizing: border-box; border: 1.7px solid currentColor; border-radius: 50%; }
.token-comment-emoji__icon::before { content: ""; position: absolute; top: 4px; left: 4px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; box-shadow: 5px 0 0 currentColor; }
.token-comment-emoji__icon::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 7px; height: 4px; box-sizing: border-box; border-bottom: 1.7px solid currentColor; border-radius: 0 0 8px 8px; }
.token-comment-emoji__picker { position: absolute; z-index: 20; top: calc(100% + 8px); bottom: auto; left: 0; display: grid; grid-template-columns: repeat(8, minmax(32px, 1fr)); gap: 5px; width: min(340px, calc(100vw - 64px)); box-sizing: border-box; border: 1px solid #344156; border-radius: 7px; padding: 9px; background: #111925; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.48); }
.token-comment-emoji__picker button { display: inline-flex; width: 100%; min-width: 32px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 5px; padding: 0; background: transparent; font-size: 19px; cursor: pointer; }
.token-comment-emoji__picker button:hover, .token-comment-emoji__picker button:focus-visible { background: #253044; outline: none; }
.token-comment-form__footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; color: #8794a8; font-size: 11px; }
.token-comment-form__footer button, .token-comments__more { min-height: 34px; border: 1px solid #8e6e1d; border-radius: 6px; padding: 7px 13px; background: #29230f; color: #f2c94c; font-weight: 750; cursor: pointer; }
.token-comment-form__footer button:hover, .token-comments__more:hover { background: #383017; }
.token-comment-form__footer button:disabled, .token-comments__more:disabled { opacity: 0.45; cursor: wait; }
.token-comments__list { display: grid; gap: 8px; }
.token-comment { border-top: 1px solid rgba(255, 255, 255, 0.075); padding: 13px 2px 3px; }
.token-comment header { display: flex; align-items: center; gap: 8px; }
.token-comment__avatar { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #40506a; border-radius: 50%; background: #172231; color: #d9e3f0; font-size: 10px; font-weight: 800; }
.token-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.token-comment header strong { color: #dce5f1; font-size: 12px; }
.token-comment time { margin-left: auto; color: #78869a; font-size: 10px; }
.token-comment__like { display: inline-flex; min-width: 42px; height: 26px; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 5px; background: transparent; color: #8794a8; cursor: pointer; }
.token-comment__like:hover, .token-comment__like.is-liked { color: #ef7f91; background: rgba(239, 127, 145, 0.09); }
.token-comment__like:disabled { opacity: 0.45; cursor: wait; }
.token-comment p { margin: 8px 0 0 44px; color: #b9c4d3; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.token-comment--social { margin-top: 8px; border: 1px solid rgba(58, 167, 105, 0.4); border-left: 3px solid #3aa769; border-radius: 7px; padding: 12px; background: rgba(58, 167, 105, 0.07); }
.token-comment--social-x { border-color: rgba(69, 155, 226, 0.4); border-left-color: #459be2; background: rgba(69, 155, 226, 0.07); }
.token-comment__avatar--social { position: relative; width: 34px; height: 34px; flex-basis: 34px; overflow: visible; border-color: currentColor; padding: 0; background: #0b111b; }
.token-comment__avatar--social .token-comment__author-image { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; overflow: hidden; }
.token-comment__avatar--social .token-comment__platform-mark { position: absolute; right: -4px; bottom: -3px; width: 16px; height: 16px; border: 2px solid #111a16; border-radius: 50%; object-fit: contain; background: #07100b; }
.token-comment__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(100%, 760px); margin: 12px 0; overflow: hidden; border-radius: 7px; }
.token-comment__media--1 { grid-template-columns: minmax(0, 1fr); }
.token-comment__media > a, .token-comment__media > video, .token-comment__media-audio { min-width: 0; border: 1px solid #2c394b; border-radius: 6px; background: #080e17; overflow: hidden; }
.token-comment__media img, .token-comment__media video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #080e17; }
.token-comment__media-audio { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px; }
.token-comment__media-audio img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.token-comment__media-audio audio { grid-column: 1 / -1; width: 100%; }
@media (max-width: 620px) { .token-comment__media { grid-template-columns: minmax(0, 1fr); } }
.token-comment__handle { color: #8290a4; font-size: 11px; }
.token-comment__verified { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; border-radius: 50%; background: #3aa769; color: #07110c; font-size: 9px; font-weight: 900; }
.token-comment__social-badge { border: 1px solid rgba(58, 167, 105, 0.48); border-radius: 4px; padding: 3px 6px; color: #69d99b; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.token-comment--social-x .token-comment__social-badge { border-color: rgba(69, 155, 226, 0.55); color: #79bdf2; }
.token-comment--social p { margin-left: 38px; }
.token-comment__social-footer { display: flex; align-items: center; gap: 12px; margin: 10px 0 0 38px; color: #8492a6; font-size: 10px; }
.token-comment__social-metrics { display: flex; min-width: 0; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.token-comment__social-metrics::-webkit-scrollbar { display: none; }
.token-comment__social-metrics > span { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; white-space: nowrap; }
.token-comment__social-metrics strong { color: #d3dce8; font-size: 10px; }
.token-comment__metric-icon { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; color: #69d99b; font-size: 13px; line-height: 1; }
.token-comment--social-x .token-comment__metric-icon { color: #79bdf2; }
.token-comment__social-footer a { margin-left: auto; color: #69d99b; font-weight: 750; text-decoration: none; }
.token-comment--social-x .token-comment__social-footer a { color: #79bdf2; }
.token-comment__social-footer a:hover { text-decoration: underline; }
.token-comment__censored { display: inline-block; min-width: calc(var(--censored-length, 4) * .58em); height: .82em; overflow: hidden; color: transparent; background: #fff; border: 1px solid rgba(255, 255, 255, .9); border-radius: 2px; vertical-align: -.06em; user-select: none; }
.token-comments__more { justify-self: center; }
.token-comments__empty { margin: 0; padding: 8px 0; color: #7f8ba0; text-align: center; font-size: 12px; }
.token-social-feed { display: grid; gap: 10px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 14px; }
.token-social-feed__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.token-social-feed__header h3 { margin: 0; color: #dce5f1; font-size: 13px; }
.token-social-feed__tabs { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #344156; border-radius: 6px; padding: 3px; background: #0b121d; }
.token-social-feed__tabs button { display: inline-flex; min-width: 58px; height: 30px; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 4px; padding: 0 10px; background: transparent; color: #8391a6; font-weight: 800; cursor: pointer; }
.token-social-feed__tabs button span { min-width: 16px; border-radius: 4px; padding: 1px 4px; background: #1c2736; color: #aebbd0; font-size: 9px; }
.token-social-feed__tabs button.is-active { background: rgba(58, 167, 105, 0.16); color: #69d99b; }
.token-social-feed__tabs button[data-social-platform="x"].is-active { background: rgba(69, 155, 226, 0.16); color: #79bdf2; }
.token-social-feed__list { display: grid; gap: 8px; }

@media (max-width: 620px) {
  .token-comments__summary { grid-template-columns: minmax(0, 1fr) auto; }
  .token-comments__summary .collapsible-summary__meta { grid-column: auto; font-size: 9px; }
  .token-comment-emoji__picker { grid-template-columns: repeat(6, minmax(32px, 1fr)); width: min(300px, calc(100vw - 48px)); }
  .token-comment-form__footer { grid-template-columns: 1fr auto; }
  .token-comment-form__footer button { grid-column: 1 / -1; }
  .token-comment p { margin-left: 0; }
  .token-comment--social p, .token-comment__social-footer { margin-left: 0; }
  .token-comment--social header { flex-wrap: wrap; }
  .token-comment--social time { width: 100%; margin-left: 38px; }
  .token-comment__social-footer { align-items: flex-start; flex-direction: column; }
  .token-comment__social-metrics { width: 100%; gap: 11px; }
  .token-comment__social-footer a { width: auto; margin-left: 0; }
  .token-social-feed__header { align-items: flex-start; flex-direction: column; }
  .token-social-feed__tabs { width: 100%; }
  .token-social-feed__tabs button { flex: 1 1 50%; }
}

.chart-embed-panel {
  height: clamp(430px, 62vh, 640px);
  overflow: hidden;
  border: 1px solid rgba(107, 117, 139, 0.24);
  border-radius: 8px;
  background: #0a0f18;
}

.chart-embed-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a0f18;
}

#priceChart {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#priceChart.is-dragging {
  cursor: grabbing;
}

#priceChart.is-price-axis,
#priceChart.is-price-scaling {
  cursor: ns-resize;
}

#priceChart.is-pinching {
  cursor: zoom-in;
}

.chart-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border: 1px dashed #334056;
  border-radius: 12px;
  color: #98a4b7;
  background: rgba(14, 18, 27, 0.5);
}

/* === Beschreibung === */
.token-description-full {
  color: #ccc;
  margin-top: 10px;
  font-size: 15px;
  padding: 10px 0;
  line-height: 1.5;
  max-width: 900px;
}

/* === Badge === */
.new-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  z-index: 10;
}
.favorite-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.favorite-icon:hover {
  transform: scale(1.2);
}
.token-quick-buy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.token-quick-buy.hidden { display: none; }
.token-quick-buy button { border: 1px solid #46515f; border-radius: 5px; padding: 7px 10px; background: #1b2028; color: #8994a3; cursor: not-allowed; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease; }
.token-quick-buy button.is-affordable { border-color: #31b76a; background: #163d29; color: #8df0b3; cursor: pointer; }
.token-quick-buy button.is-affordable:hover { border-color: #65df96; background: #1b4b32; color: #c4f8d7; }
.token-quick-buy button:disabled { opacity: 0.42; }

.copy-confirm {
  color: #00cc66;
  font-weight: 600;
  margin-left: 6px;
}

.token-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.token-socials a[href="#"] {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 768px) {
  .wallet-insight__grid { grid-template-columns: 1fr; padding: 10px; }
  .wallet-insight__header { padding: 13px 12px; }
  .wallet-insight__token { flex-wrap: wrap; }
  .wallet-insight__token span:last-child { width: 100%; padding-left: 34px; }
  .chart-trading-layout.is-order-open { grid-template-columns: minmax(0, 1fr); }
  .order-panel { min-height: 420px; }
  .chart-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-controls { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .chart-source-switch { width: auto; }

  .chart-source-switch button { flex: 0 0 auto; }
  .chart-interval-popup button { min-width: 36px; }
  .chart-range-bar { padding-left: 10px; }
  .chart-clock { display: none; }

  #token-header {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    padding: 14px;
    margin-top: 12px;
    gap: 10px;
  }

  .vote-sentiment { padding-bottom: 9px; }
  .vote-sentiment__labels { min-height: 22px; font-size: 12px; }
  .vote-sentiment__track { height: 5px; }
  .vote-sentiment__marker { width: 10px; height: 10px; }

  .token-main-info {
    width: 100%;
    display: block;
  }

  .token-logo-wrapper { width: 46px; height: 46px; }

  .token-symbol-name {
    gap: 2px;
  }

  .token-pool-eyebrow { gap: 5px; font-size: 8px; }
  .token-pool-eyebrow span { padding-left: 5px; }

  .token-title-topline {
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .token-title-topline::-webkit-scrollbar { display: none; }

  .token-favorite-slot {
    min-height: 30px;
    padding-left: 10px;
  }

  .token-wallet-import-slot {
    min-height: 30px;
    padding-left: 10px;
  }

  .token-trending-rank {
    min-height: 30px;
    padding-left: 10px;
  }

  .token-header-socials {
    max-width: 100%;
    min-height: 22px;
    margin-top: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .token-header-socials::-webkit-scrollbar { display: none; }

  .token-header-socials img {
    width: 20px;
    height: 20px;
  }

  .token-symbol {
    font-size: 18px;
  }

  .token-name {
    font-size: 12px;
    line-height: 1.2;
  }

  .token-market-row {
    display: flex;
    justify-content: flex-start;
    text-align: left;
    align-items: end;
    gap: 10px;
    margin-top: 8px;
  }

  .token-market-primary {
    align-items: flex-start;
    min-width: 0;
  }

  .token-market-primary .token-market-label { text-align: left; }
  .token-market-primary .token-price-line { justify-content: flex-start; }

  .token-health-meter {
    width: clamp(126px, 38vw, 146px);
    margin: 0 0 7px;
  }

  .token-health-meter__heading {
    gap: 6px;
    margin-bottom: 5px;
    font-size: 9px;
  }

  .token-health-meter__heading strong { font-size: 10px; }
  #tokenHealthStatus { display: none; }
  .token-health-meter__track { height: 6px; }
  .token-health-meter__marker { width: 11px; height: 11px; }

  .profile-score-ring--header {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
  }

  .token-wallet-balance { justify-content: flex-start; }

  .token-price,
  .token-change {
    margin-top: 0;
  }

  .token-update-btn {
    width: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .token-contract-row { align-items: stretch; flex-direction: column; }
  .token-contract-value { width: 100%; }
  .token-contract-row .token-update-btn { width: 100%; }
  .collapsible-summary { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .collapsible-summary__meta { display: none; }
  .audit-summary-heading { grid-template-columns: auto auto minmax(0, 1fr) 16px; }
  .collapsible-summary.pair-summary-heading {
    grid-template-columns: auto auto minmax(64px, 1fr) 16px;
    column-gap: 12px;
  }
  .pair-summary-heading .collapsible-summary__meta { display: inline; }
  .pair-summary-heading .status-chip { display: none; }

  .token-stats-container,
  .token-vote-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 0;
    background: transparent;
  }

  .token-stat-box .value,
  .token-vote-box .value {
    font-size: 16px;
  }

  .chart-wrapper {
    height: 460px;
  }

  .chart-embed-panel {
    height: 460px;
  }

  #priceChart {
    height: 100%;
  }

  .token-description-full {
    font-size: 14px;
    max-width: 100%;
    padding: 8px 0;
  }

  .token-section {
    margin-top: 12px;
    padding: 12px;
  }

  .token-section h2 {
    font-size: 15px;
  }

  .token-contract-row {
    width: 100%;
    justify-content: flex-start;
    min-height: 0;
    padding: 12px 14px;
    font-size: 12px;
    gap: 10px;
  }
  .token-market-identifiers { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
  .token-pair-value {
    padding-top: 9px;
    padding-left: 0;
    border-top: 1px solid #293244;
    border-left: 0;
    flex-wrap: wrap;
  }

  .token-pool-composition--desktop { display: none; }
  .token-pool-composition--mobile {
    display: grid;
    order: 2;
    padding-top: 9px;
    gap: 5px;
  }
  .token-pair-value > .liquidity-lock-badge { order: 3; }
  .token-pair-value > .liquidity-lock-details { order: 3; }
  .token-pair-value > .liquidity-burn-status { order: 4; }
  .token-pair-value > .liquidity-lock-details { width: 100%; }
  .token-pair-value .liquidity-lock-list {
    position: static;
    width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    box-shadow: none;
  }
  .token-pool-stat {
    min-width: 92px;
    min-height: 0;
    padding: 0 8px 0 0;
  }
  .token-pool-stat strong { font-size: 13px; }
  .token-pool-stat > span:last-child { font-size: 9px; }

  .token-pair-value > .liquidity-lock-badge,
  .token-pair-value > .liquidity-lock-details,
  .token-pair-value > .liquidity-burn-status {
    width: 100%;
    margin-left: 0;
    padding-top: 9px;
    padding-left: 0;
    border-top: 1px solid #293244;
    border-left: 0;
  }

  .compact-address,
  .contract-short,
  .pool-info,
  .token-description-full {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .token-socials {
    gap: 10px;
  }

  .token-socials img {
    width: 24px;
    height: 24px;
  }

  .pair-card {
    padding: 12px;
    gap: 6px;
  }

  .pair-card__grid {
    grid-template-columns: 1fr;
  }

  .status-chip {
    min-height: 24px;
    padding: 4px 8px;
  }

  .token-stat-box,
  .token-vote-box {
    align-items: flex-start;
    text-align: left;
    min-height: 58px;
    padding: 8px 10px;
  }

  .token-stat-box .label,
  .token-vote-box .label {
    margin-bottom: 3px;
  }
}

@media (max-width: 1000px) {
  .pair-card-grid {
    grid-template-columns: repeat(2, minmax(260px, 340px));
  }
}

@media (max-width: 680px) {
  .pair-card-grid {
    grid-template-columns: minmax(260px, 1fr);
  }
}

html[dir="rtl"] #token-header,
html[dir="rtl"] .token-contract-row,
html[dir="rtl"] .pair-card__top,
html[dir="rtl"] .pair-card__grid,
html[dir="rtl"] .pair-address-row,
html[dir="rtl"] .token-stats-container,
html[dir="rtl"] .token-vote-container {
  direction: rtl;
  text-align: right;
}
