.market-card {
  position: relative;
  padding-right: 44px;
}

.favorite-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.72);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.favorite-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.favorite-btn:active {
  transform: scale(0.9);
}

.favorite-btn.active {
  color: var(--gold);
  border-color: rgba(240, 192, 64, 0.42);
  background: rgba(240, 192, 64, 0.12);
  box-shadow: 0 0 18px rgba(240, 192, 64, 0.12);
}

.favorite-btn.active svg {
  fill: currentColor;
}

.favorite-market {
  border-color: rgba(240, 192, 64, 0.28);
  background: linear-gradient(135deg, rgba(19,27,44,0.98), rgba(240,192,64,0.055));
}

.favorite-market .market-meta {
  color: var(--gold);
}
