/* ── Background Grid & Glows ── */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,204,113,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,204,113,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.bg-glow-1 {
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(46,204,113,0.035) 0%, transparent 65%);
  top: -60px; left: 50%; transform: translateX(-50%);
  filter: blur(50px);
}

.leaderboard-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 120px);
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 50px;
}

.leaderboard-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.leaderboard-title span {
  color: var(--green);
  text-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.leaderboard-sub {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
}

/* Podium Design */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  padding-top: 40px;
}

.podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.podium-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
  box-shadow: 0 15px 40px rgba(46, 204, 113, 0.15);
}

.podium-card.first {
  order: 2;
  width: 320px;
  height: 280px;
  border-color: rgba(240, 192, 64, 0.3);
  background: linear-gradient(180deg, rgba(240, 192, 64, 0.05) 0%, var(--bg-card) 100%);
}

.podium-card.first:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(240, 192, 64, 0.15);
}

.podium-card.second {
  order: 1;
  width: 280px;
  height: 240px;
  border-color: rgba(220, 220, 220, 0.2);
}

.podium-card.third {
  order: 3;
  width: 280px;
  height: 220px;
  border-color: rgba(205, 127, 50, 0.2);
}

.podium-badge {
  position: absolute;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.first .podium-badge {
  background: var(--gold);
  color: #000;
}

.second .podium-badge {
  background: #dcdcdc;
  color: #000;
}

.third .podium-badge {
  background: #cd7f32;
  color: #fff;
}

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
}

.first .podium-avatar {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 192, 64, 0.1);
}

.podium-username {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.podium-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
}

.first .podium-amount {
  color: var(--gold);
}

.podium-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Leaderboard List / Table */
.leaderboard-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-align: left;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr:hover td {
  background: var(--green-dim);
}

.row-rank {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.row-user-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.row-username {
  font-weight: 600;
  color: var(--text);
}

.row-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}

.row-date {
  font-size: 13px;
  color: var(--text-muted);
}

.empty-leaderboard {
  text-align: center;
  padding: 50px;
  color: var(--text-muted);
}

.empty-leaderboard i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .podium-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .podium-card.first, .podium-card.second, .podium-card.third {
    order: unset;
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 30px;
  }
  
  .podium-badge {
    top: 15px;
    left: 20px;
  }
}
