/* ── Most-traded assets sidebar widget ── */

.assets-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
}

.assets-widget__header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
  padding: 0.75rem 0.9rem 0.5rem;
}

/* Tab row — wraps naturally to 2–3 rows */
.assets-widget__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0.9rem 0.65rem;
}

.assets-tab {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}

.assets-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.assets-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Asset rows */
.assets-widget__body {
  border-top: 1px solid var(--line);
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.asset-row:last-child {
  border-bottom: none;
}

.asset-row:hover {
  background: var(--surface-soft);
}

.asset-row__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.asset-row__info {
  flex: 1;
  min-width: 0;
}

.asset-row__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.asset-row__price {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.asset-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.asset-row__cta {
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  line-height: 1.5;
}

.asset-row__cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.asset-row__change {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.asset-row__change.is-up {
  color: var(--positive);
  background: rgba(21, 144, 95, 0.1);
}

.asset-row__change.is-down {
  color: var(--negative);
  background: rgba(214, 67, 94, 0.1);
}

/* Loading / error states */
.assets-state {
  padding: 1rem 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.assets-state--error {
  color: var(--negative);
}

/* Sticky pause — desktop only */
@media (min-width: 1200px) {
  .sidebar-right.sticky-paused {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}
