.recent-activity-section {
  margin: 40px auto;
  padding: 20px;
  width: 95%;
  background: linear-gradient(135deg, #111, #1a1a1a);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  color: #fff;
}

.recent-activity-section .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #FFD700;
  text-transform: uppercase;
}

.activity-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.activity-feed {
  flex: 2;
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.activity-feed ul {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: scrollUp 12s linear infinite;
}

.activity-feed li {
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #333;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

.leaderboard {
  flex: 1;
  background: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(255,215,0,0.3);
}

.leaderboard h3 {
  color: #FFD700;
  margin-bottom: 10px;
}

.leaderboard ol {
  padding-left: 20px;
}

.leaderboard li {
  margin: 5px 0;
  font-size: 0.9rem;
}

.activity-feed .price {
  color: #00ff99;   /* Green */
  font-weight: bold;
}

/* Recent Activity Section - Price Highlight */
.activity-feed .price {
  color: #00ff99;   /* Bright green */
  font-weight: bold;
}

/* Leaderboard Price Highlight */
.leaderboard li {
  margin: 5px 0;
  font-size: 0.9rem;
}

.leaderboard li .price {
  color: #00ff99;   /* Same green */
  font-weight: bold;
}

/* 📱 Mobile layout: feed → sellers → buyers (stacked & centered) */
@media (max-width: 520px) {
  .activity-container {
    flex-direction: column;         /* stack */
    align-items: center;            /* center the blocks */
    gap: 18px;
  }

  /* Each block fills screen nicely but stays centered */
  .activity-feed,
  .leaderboard {
    width: 100%;
    max-width: 420px;               /* feel free to tweak (360–480px) */
    margin: 0 auto;
  }

  /* Order: feed on top, then sellers, then buyers */
  .activity-feed { order: 1; }
  /* if you can add these two classes in HTML, great: */
  .leaderboard.sellers { order: 2; }
  .leaderboard.buyers  { order: 3; }

  /* If classes aren't available, fallback using position in DOM: 
     first leaderboard appears above second */
  .activity-container .leaderboard:nth-of-type(2) { order: 2; }
  .activity-container .leaderboard:nth-of-type(3) { order: 3; }

  /* Headings & list spacing look tighter on mobile */
  .recent-activity-section .section-title,
  .leaderboard h3 { text-align: center; }

  .leaderboard ol { padding-left: 16px; }
  .leaderboard li { font-size: 0.95rem; }

  /* Feed text readability on small screens */
  .activity-feed li { padding: 10px 6px; font-size: 0.95rem; }
}

/* ✨ Optional niceties */
.activity-feed ul:hover { animation-play-state: paused; }  /* pause scroll on hover */
