.ad-card.gold {
  background-color: #fffbe6;
  border: 2px solid gold;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.ad-card.silver {
  background-color: #f5f5f5;
  border: 2px solid silver;
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.ad-card.bronze {
  background-color: #fff7ec;
  border: 2px solid #cd7f32;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

/* 🌙 Dark mode overrides for top 3 cards */
body.dark .ad-card.gold {
  background-color: #4d4317;
  border-color: gold;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

body.dark .ad-card.silver {
  background-color: #4a4a4a;
  border-color: silver;
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.2);
}

body.dark .ad-card.bronze {
  background-color: #4e3928;
  border-color: #cd7f32;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.2);
}


/* Neon glow effect for top 3 */
.ad-card.gold,
.ad-card.silver,
.ad-card.bronze {
  box-shadow:
    0 0 8px rgba(255, 255, 150, 0.6),
    0 0 16px rgba(255, 255, 150, 0.4),
    0 0 24px rgba(255, 255, 100, 0.2);
  transition: box-shadow 0.3s ease;
}


/* 🌙 Neon glow effect for top 3 in dark mode */
body.dark .ad-card.gold,
body.dark .ad-card.silver,
body.dark .ad-card.bronze {
  box-shadow:
    0 0 10px rgba(255, 255, 180, 0.9),
    0 0 20px rgba(255, 255, 130, 0.7),
    0 0 10px rgba(255, 255, 80, 0.4);
  color: #fff;
}


    .leaderboard {
      max-width: 900px;
      margin: 2rem auto;
      padding: 2rem;
      border-radius: 10px;
    }
    .leaderboard h1 {
      text-align: center;
      margin-bottom: 1.5rem;
    }
    .rank-entry {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      border-bottom: 1px solid #eee;
    }
    .rank-entry img {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border-radius: 8px;
    }
    .rank-info {
      flex-grow: 1;
    }
    .rank-number {
      font-size: 1.5rem;
      width: 40px;
      text-align: center;
      font-weight: bold;
    }
    .rank-entry:last-child {
      border-bottom: none;
    }


    .ad-card {
      max-width: 250px;
      max-height: 425px;
    }


    .rank-entry{
    top: 15px;
    position: relative;
    }


    body.dark .rank-entry {
          background: #424e5b;

    }

    body.dark .leaderboard {
      background: none;
    }

    body.dark .leaderboard {
    color: #f0f0f0;
}

.rank-entry {
  background: #EDF2F4;
}


.card-buttons-norm {
  width: 150px !important;
}
.card-buttons-norm a{
  background-color: #457B9D;

}

.card-buttons-norm a:hover{
  background-color: #0056b3;

}

.ad-name {
      font-size: 16px;
}

.cardDesc {
      font-size: 13px;
}