.token-market {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  color: #e5edf9;
}

.token-market-head,
.token-table-card,
.token-chart {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.82);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.22);
}

.token-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.1rem 1.4rem 0.95rem;
  border-color: #3e3f61;
  border-bottom-color: #8b5cf6;
  border-radius: 14px;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.03));
}

.token-chart-page-head {
  justify-content: flex-start;
}

.token-market-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.token-market-title-icon {
  flex: 0 0 auto;
  color: #cfb3ff;
  font-size: 21px;
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.55);
}

.token-market-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.55);
}

.token-title-text {
  background: linear-gradient(90deg, #f8f9ff 0%, #cfb3ff 45%, #9bd5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(155, 213, 255, 0.25);
}

.token-market-head p {
  margin: 6px 0 0;
  color: #9fb1ce;
  font-size: 13px;
}

.token-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(94, 234, 212, 0.32) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.84) !important;
  box-shadow: none !important;
  color: #d9fff8;
  cursor: pointer;
}

.token-icon-btn:hover {
  background: rgba(20, 184, 166, 0.2) !important;
}

.token-table-card {
  overflow: visible;
}

.token-table-wrap {
  position: relative;
}

.token-frozen-pane {
  display: none;
}

.token-table-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #b7c7df;
  font-size: 13px;
}

.token-table-topline {
  justify-content: flex-start;
}

.token-view-filter,
.token-inline-search {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.token-view-filter {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 8px;
}

.token-inline-search {
  flex: 0 1 420px;
  width: min(420px, 100%);
}

.token-inline-search input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(3, 8, 17, 0.82);
  color: #e5edf9;
  outline: none;
  padding: 0 11px;
  box-sizing: border-box;
}

.token-view-filter button {
  min-height: 34px;
  min-width: 82px;
  border: 0 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 0 !important;
  background: rgba(15, 23, 42, 0.84) !important;
  box-shadow: none !important;
  color: #c8d5e8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 13px !important;
}

.token-view-filter button:last-child {
  border-right: 0 !important;
}

.token-view-filter button:hover,
.token-view-filter button.is-active {
  background: rgba(20, 184, 166, 0.22) !important;
  color: #ffffff;
}

.token-inline-search input:focus {
  border-color: rgba(94, 234, 212, 0.7);
}

.token-table-header-scroll,
.token-table-scroll {
  width: 100%;
  overflow: auto;
}

.token-table-header-scroll {
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.token-mobile-thead {
  display: none;
}

.token-scroll-mask {
  display: none;
}

.token-table-scroll {
  max-height: calc(100vh - 407px);
  min-height: 420px;
}

.token-table {
  width: 100%;
  min-width: 1162px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.token-table thead {
  z-index: 5;
}

.token-table th,
.token-table td {
  padding: 12px 11px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #dce7f7;
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.token-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0d1728 !important;
  color: #9dccff !important;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.token-table-header-only th {
  border-bottom: 0 !important;
}

.token-col-fav-width { width: 42px; }
.token-col-logo-width { width: 66px; }
.token-col-name-width { width: 164px; }
.token-col-price-width { width: 90px; }
.token-col-txns-width { width: 76px; }
.token-col-volume-width { width: 104px; }
.token-col-makers-width { width: 82px; }
.token-col-change-width { width: 76px; }
.token-col-money-width { width: 104px; }

.token-table td:first-child {
  text-align: center;
}

.token-table td:nth-child(2) {
  text-align: center;
}

.token-table td:nth-child(1),
.token-table th:nth-child(1) {
  display: table-cell;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  vertical-align: middle;
}

.token-table td:nth-child(3) {
  text-align: left;
}

.token-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #66758d;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  margin: 0 auto;
  padding: 0 !important;
  vertical-align: middle;
}

.token-fav-btn i {
  display: block;
  line-height: 1;
}

.token-fav-btn:hover,
.token-fav-btn.is-active {
  color: #facc15;
}

.token-table thead button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 22px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 !important;
  white-space: nowrap;
}

.token-table thead button span {
  color: #5eead4;
  font-size: 10px;
  line-height: 1;
  min-width: 7px;
}

.token-table thead button:hover,
.token-table thead button.is-active {
  color: #ecfeff;
}

.token-row {
  cursor: pointer;
}

.token-row:hover,
.token-row.is-selected {
  background: rgba(20, 184, 166, 0.075);
}

.token-row:hover td,
.token-row.is-selected td {
  background: #0b1726 !important;
}

.token-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-name-cell {
  min-width: 0;
}

.token-name-cell strong,
.token-name-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-name-cell strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}

.token-name-cell span {
  margin-top: 2px;
  color: #8fb6d8;
  font-size: 12px;
}

.token-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(94, 234, 212, 0.24);
  background: rgba(15, 23, 42, 0.84);
}

.token-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
}

.token-logo-seed-0 { background: linear-gradient(135deg, #0f766e, #164e63); }
.token-logo-seed-1 { background: linear-gradient(135deg, #7c3aed, #1d4ed8); }
.token-logo-seed-2 { background: linear-gradient(135deg, #be123c, #7c2d12); }
.token-logo-seed-3 { background: linear-gradient(135deg, #047857, #365314); }
.token-logo-seed-4 { background: linear-gradient(135deg, #9333ea, #be185d); }
.token-logo-seed-5 { background: linear-gradient(135deg, #0369a1, #4338ca); }
.token-logo-seed-6 { background: linear-gradient(135deg, #b45309, #9f1239); }

.is-up {
  color: #34d399;
  font-weight: 900;
}

.is-down {
  color: #fb7185;
  font-weight: 900;
}

.is-flat {
  color: #cbd5e1;
  font-weight: 900;
}

.token-empty {
  height: 160px;
  text-align: center !important;
  color: #9fb1ce !important;
}

.token-chart {
  padding: 14px;
}

.token-chart-page {
  min-height: 520px;
}

.token-chart.is-hidden,
.token-chart-state.is-hidden,
#tokenChartCanvas.is-hidden {
  display: none;
}

.token-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.token-chart h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
}

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

.token-chart p {
  margin: 3px 0 0;
  color: #8fb6d8;
  font-size: 12px;
  font-weight: 800;
}

.token-chart-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.token-ranges {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 8px;
}

.token-ranges button {
  min-width: 48px;
  min-height: 34px;
  border: 0 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 0 !important;
  background: rgba(15, 23, 42, 0.84) !important;
  box-shadow: none !important;
  color: #c8d5e8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.token-ranges button:last-child {
  border-right: 0 !important;
}

.token-ranges button:hover,
.token-ranges button.is-active {
  background: rgba(20, 184, 166, 0.22) !important;
  color: #ffffff;
}

.token-chart-body {
  position: relative;
  min-height: 320px;
}

.token-chart-body-large {
  min-height: 460px;
}

.token-chart-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: #9fb1ce;
  font-weight: 900;
  text-align: center;
}

.token-chart-spinner {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(148, 163, 184, 0.18);
  border-top-color: #5eead4;
  border-right-color: rgba(96, 165, 250, 0.8);
  border-radius: 999px;
  animation: token-chart-spin 0.8s linear infinite;
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.2);
}

@keyframes token-chart-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .token-chart-spinner {
    animation: none;
  }
}

#tokenChartCanvas {
  width: 100% !important;
  height: 320px !important;
  overflow: hidden;
}

.token-chart-body-large #tokenChartCanvas {
  height: 460px !important;
}

.token-back-link {
  text-decoration: none;
}

@media (max-width: 720px) {
  .token-market-head #tokenRefresh {
    display: none;
  }

  .token-market-head,
  .token-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .token-table-topline {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .token-chart-page-head {
    align-items: center;
    flex-direction: row;
  }

  .token-view-filter,
  .token-inline-search {
    gap: 6px;
  }

  .token-view-filter {
    width: auto;
  }

  .token-view-filter button {
    min-width: 72px;
    padding: 0 10px !important;
  }

  .token-inline-search {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .token-table-card {
    overflow: hidden;
  }

  .token-table-wrap {
    overflow: hidden;
  }

  .token-frozen-pane {
    display: none !important;
  }

  .token-table-header-scroll {
    display: none;
  }

  .token-mobile-thead {
    display: table-header-group;
  }

  .token-table-header-only th:nth-child(1),
  .token-table-body-only th:nth-child(1),
  .token-table-body-only td:nth-child(1),
  .token-table-header-only th:nth-child(2),
  .token-table-body-only th:nth-child(2),
  .token-table-body-only td:nth-child(2),
  .token-table-header-only th:nth-child(3),
  .token-table-body-only th:nth-child(3),
  .token-table-body-only td:nth-child(3) {
    position: relative;
    z-index: 18;
    background: #09111f !important;
    will-change: transform;
  }

  .token-table-header-only th:nth-child(1),
  .token-table-body-only th:nth-child(1),
  .token-table-header-only th:nth-child(2),
  .token-table-body-only th:nth-child(2),
  .token-table-header-only th:nth-child(3),
  .token-table-body-only th:nth-child(3) {
    z-index: 24;
    background: #0d1728 !important;
  }

  .token-table-header-only th:nth-child(2),
  .token-table-body-only th:nth-child(2),
  .token-table-body-only td:nth-child(2),
  .token-table-header-only th:nth-child(3),
  .token-table-body-only th:nth-child(3),
  .token-table-body-only td:nth-child(3) {
    box-shadow: none;
  }

  .token-table-header-only th:nth-child(3),
  .token-table-body-only th:nth-child(3) {
    box-shadow: none;
  }

  .token-table-body-only th:nth-child(1) {
    box-shadow: none;
  }

  .token-table-body-only td:nth-child(1) {
    box-shadow: none;
  }

  .token-table-body-only th:nth-child(-n+3),
  .token-table-body-only td:nth-child(-n+3) {
    border-bottom-color: rgba(148, 163, 184, 0.12);
  }

  .token-table-body-only th:nth-child(3)::after,
  .token-table-body-only td:nth-child(3)::after {
    content: none;
  }

  .token-table-body-only th:nth-child(3)::after {
    content: none;
  }

  .token-row:hover td:nth-child(-n+3),
  .token-row.is-selected td:nth-child(-n+3) {
    background: #09111f !important;
  }

  .token-table-body-only .token-row:hover td,
  .token-table-body-only .token-row.is-selected td {
    background: rgba(11, 18, 31, 0.72) !important;
  }

  .token-frozen-head {
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    grid-template-columns: 54px 134px;
    height: 47px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: #0d1728;
    color: #9dccff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .token-frozen-head > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .token-frozen-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    will-change: transform;
  }

  .token-frozen-row {
    display: grid;
    grid-template-columns: 54px 134px;
    height: 57px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: #09111f;
    cursor: pointer;
  }

  .token-frozen-logo,
  .token-frozen-name {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .token-frozen-logo {
    justify-content: center;
  }

  .token-frozen-name {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-right: 8px;
  }

  .token-frozen-name strong,
  .token-frozen-name span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .token-frozen-name strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
  }

  .token-frozen-name span {
    margin-top: 2px;
    color: #8fb6d8;
    font-size: 11px;
  }

  .token-table-header-scroll,
  .token-table-scroll {
    overflow-x: auto;
  }

  .token-table-scroll {
    position: relative;
    max-height: 62vh;
    min-height: 360px;
    overflow-y: auto;
  }

  .token-scroll-mask {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    min-height: 100%;
    z-index: 12;
    pointer-events: none;
    background: linear-gradient(90deg, #09111f 0, #09111f 248px, rgba(9, 17, 31, 0) 260px);
    will-change: transform;
  }

  .token-table {
    min-width: 1022px;
  }

  .token-col-fav-width { width: 42px; }
  .token-col-logo-width { width: 54px; }
  .token-col-name-width { width: 134px; }
  .token-col-price-width { width: 84px; }
  .token-col-txns-width { width: 68px; }
  .token-col-volume-width { width: 88px; }
  .token-col-makers-width { width: 72px; }
  .token-col-change-width { width: 68px; }
  .token-col-money-width { width: 94px; }

  .token-table th,
  .token-table td {
    display: table-cell !important;
    white-space: nowrap;
  }

  .token-logo {
    width: 34px;
    height: 34px;
  }

  .token-name-cell strong {
    font-size: 13px;
  }

  .token-name-cell span {
    font-size: 11px;
  }

  .token-chart-tools,
  .token-chart-title-row,
  .token-ranges {
    width: 100%;
  }

  .token-ranges {
    flex: 1 1 auto;
  }

  .token-ranges button {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Token info refresh */
.token-market {
  gap: 16px;
}

.token-market-head {
  min-height: 94px;
  padding: 18px 20px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(96, 165, 250, 0.1)),
    rgba(2, 6, 23, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.token-market-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2dd4bf, #60a5fa);
  color: #00111a;
  font-size: 17px;
  text-shadow: none;
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.12);
}

.token-market-head h1 {
  color: #f8fbff;
  font-size: 25px;
  text-shadow: none;
}

.token-title-text {
  background: none;
  color: #f8fbff;
  text-shadow: none;
}

.token-icon-btn {
  width: 40px;
  height: 40px;
  border-color: rgba(96, 165, 250, 0.3) !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.62) !important;
  color: #ccfbf1;
}

.token-icon-btn:hover {
  border-color: rgba(45, 212, 191, 0.6) !important;
  background: rgba(45, 212, 191, 0.14) !important;
}

.token-table-card,
.token-chart {
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.56);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.token-hot-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.56);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.token-hot-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.token-hot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #14b8a6);
  color: #06111c;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.1);
}

.token-hot-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.token-hot-head p {
  margin: 3px 0 0;
  color: #8fb0dc;
  font-size: 11px;
  font-weight: 800;
}

.token-hot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.token-hot-group {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
}

.token-hot-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
}

.token-hot-group-title i {
  color: #5eead4;
}

.token-hot-group-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.token-hot-card,
.token-hot-empty {
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.68);
}

.token-hot-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.token-hot-card:hover {
  border-color: rgba(45, 212, 191, 0.46);
  background: rgba(15, 23, 42, 0.86);
  transform: translateY(-1px);
}

.token-hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  font-size: 11px;
  font-weight: 950;
}

.token-hot-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.token-hot-logo .token-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.token-hot-name {
  min-width: 0;
}

.token-hot-name strong,
.token-hot-name em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-hot-name strong {
  color: #f8fbff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.token-hot-name em {
  margin-top: 2px;
  color: #8fb0dc;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.token-hot-metric {
  color: #dbeafe;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.token-hot-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fb0dc;
  font-size: 12px;
  font-weight: 900;
}

.token-table-topline {
  min-height: 54px;
  padding: 10px 12px;
  border-bottom-color: rgba(148, 163, 184, 0.16);
  gap: 10px;
}

.token-view-filter {
  border-color: rgba(45, 212, 191, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.64);
}

.token-view-filter button {
  min-height: 36px;
  background: transparent !important;
  color: #b8cae8;
}

.token-view-filter button:hover,
.token-view-filter button.is-active {
  background: rgba(45, 212, 191, 0.14) !important;
  color: #ccfbf1;
}

.token-inline-search input {
  min-height: 36px;
  border-color: rgba(96, 165, 250, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fbff;
}

.token-inline-search input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.token-table-scroll {
  border-radius: 0 0 14px 14px;
}

.token-table th {
  background: rgba(15, 23, 42, 0.94) !important;
  color: #b8cae8 !important;
  border-bottom-color: rgba(148, 163, 184, 0.22) !important;
}

.token-table td {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

.token-row:hover,
.token-row.is-selected {
  background: rgba(45, 212, 191, 0.06);
}

.token-row:hover td,
.token-row.is-selected td {
  background: rgba(15, 23, 42, 0.88) !important;
}

.token-logo {
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.74);
}

.token-name-cell strong {
  color: #f8fbff;
}

.token-name-cell span {
  color: #8fb0dc;
}

.token-chart {
  padding: 16px;
}

.token-chart-head {
  margin-bottom: 12px;
}

.token-ranges {
  border-color: rgba(45, 212, 191, 0.28);
  border-radius: 10px;
}

.token-ranges button {
  background: rgba(15, 23, 42, 0.66) !important;
}

.token-ranges button:hover,
.token-ranges button.is-active {
  background: rgba(45, 212, 191, 0.14) !important;
  color: #ccfbf1;
}

@media (max-width: 720px) {
  .token-market {
    gap: 12px;
  }

  .token-market-head {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: 12px;
  }

  .token-market-title-wrap {
    gap: 8px;
  }

  .token-market-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 14px;
  }

  .token-market-head h1 {
    font-size: 18px;
  }

  .token-hot-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .token-hot-head {
    min-width: 0;
  }

  .token-hot-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

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

  .token-hot-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .token-hot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 92px;
    padding: 8px 5px 7px;
  }

  .token-hot-group {
    padding: 7px;
  }

  .token-hot-group-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .token-hot-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 18px;
    height: 18px;
    font-size: 9px;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.22);
  }

  .token-hot-main {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  .token-hot-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 2px;
  }

  .token-hot-logo .token-logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .token-hot-name {
    width: 100%;
    text-align: center;
  }

  .token-hot-name strong {
    font-size: 10px;
    line-height: 1.1;
  }

  .token-hot-name em {
    display: none;
  }

  .token-hot-metric {
    width: 100%;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }

  .token-table-topline {
    flex-wrap: wrap;
    min-height: auto;
    padding: 10px;
  }

  .token-view-filter {
    flex: 1 1 100%;
  }

  .token-view-filter button {
    flex: 1 1 0;
    min-width: 0;
  }

  .token-inline-search {
    flex: 1 1 100%;
    width: 100%;
  }

  .token-table-scroll {
    max-height: 62vh;
  }
}

/* Token chart detail refresh */
.token-chart-page-head {
  justify-content: flex-start;
  gap: 14px;
}

.token-chart-page-head .token-back-link {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px !important;
}

.token-chart-page-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.token-chart-eyebrow {
  color: #5eead4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.token-chart-page-title-wrap h1 {
  margin: 0;
  color: #f8fbff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.12;
  text-shadow: none;
}

.token-chart-page-title-wrap p {
  margin: 0;
  color: #8fb0dc;
  font-size: 12px;
  font-weight: 800;
}

.token-chart-page {
  min-height: 0;
  padding: 16px;
}

.token-chart-page .token-chart-head {
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.token-chart-page .token-chart-title-row {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}

.token-chart-page h2 {
  font-size: 20px;
  line-height: 1.15;
}

.token-chart-pair-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 900;
}

.token-chart-stats {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(5, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.token-chart-stat {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.58);
}

.token-chart-stat span,
.token-chart-stat strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-chart-stat span {
  color: #8fb0dc;
  font-size: 10px;
  font-weight: 900;
}

.token-chart-stat strong {
  margin-top: 3px;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.token-chart-stat-time strong {
  color: #ccfbf1;
}

.token-chart-page .token-ranges {
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.62);
}

.token-chart-page .token-ranges button {
  min-height: 36px;
  min-width: 50px;
}

.token-chart-page .token-chart-body {
  min-height: 420px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.token-chart-page .token-chart-body-large #tokenChartCanvas,
.token-chart-page #tokenChartCanvas {
  height: 440px !important;
}

.token-chart-page .token-chart-state {
  min-height: 420px;
  border: 0;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
}

@media (max-width: 720px) {
  .token-chart-page-head {
    flex-direction: row;
    align-items: center;
  }

  .token-chart-page-head .token-back-link {
    width: 36px;
    height: 36px;
  }

  .token-chart-page-title-wrap h1 {
    font-size: 18px;
  }

  .token-chart-page-title-wrap p {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .token-chart-page {
    padding: 12px;
  }

  .token-chart-page .token-chart-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .token-chart-page .token-chart-title-row {
    align-items: flex-start;
  }

  .token-chart-pair-badge {
    display: none;
  }

  .token-chart-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .token-chart-stat {
    padding: 7px 8px;
    border-radius: 10px;
  }

  .token-chart-stat-time {
    grid-column: auto;
  }

  .token-chart-stat span {
    font-size: 9px;
  }

  .token-chart-stat strong {
    font-size: 10px;
  }

  .token-chart-stat-time strong {
    font-size: 9px;
  }

  .token-chart-page .token-ranges {
    width: 100%;
    order: 2;
  }

  .token-chart-page .token-ranges button {
    min-height: 34px;
    min-width: 0;
  }

  .token-chart-page .token-chart-body {
    min-height: 360px;
  }

  .token-chart-page .token-chart-body-large #tokenChartCanvas,
  .token-chart-page #tokenChartCanvas {
    height: 360px !important;
  }

  .token-chart-page .token-chart-state {
    min-height: 360px;
  }
}
