.market-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0 0 1.15rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  max-width: 100%;
}

.market-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted, #94a3b8);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.market-tab:hover {
  color: var(--text, #e2e8f0);
  background: rgba(255, 255, 255, 0.04);
}

.market-tab.active {
  color: var(--text, #e2e8f0);
  background: rgba(45, 140, 255, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
}

.market-panel.hidden,
.market-panel[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .market-tabs {
    width: 100%;
  }

  .market-tab {
    flex: 1;
    text-align: center;
  }
}
