
    body {
      background-color: #f7f8fd;
      font-family: 'Poppins', sans-serif;
    }

    .leaderboard-header {
      background: linear-gradient(90deg, #4e54c8, #8f94fb);
      color: white;
      border-radius: 20px;
      padding: 40px 30px;
      text-align: center;
      margin-bottom: 40px;
    }

    .btn-learn {
      background: #fff;
      color: #4e54c8;
      border-radius: 25px;
      font-weight: 500;
      text-decoration: none;
    }

    .top-users {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }

    .top-card {
      position: relative;
      background: #fff;
      border-radius: 12px;
      padding: 12px 15px;
      display: flex;
      align-items: center;
      width: 220px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.08);
      transition: 0.3s;
    }

    .top-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

    .top-card img {
      width: 55px;
      height: 55px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #8f94fb;
      margin-right: 10px;
    }

    .top-info h5 {
      font-weight: 600;
      margin: 0;
      font-size: 15px;
      color: #333;
    }

    .top-info p {
      margin: 2px 0;
      font-size: 12px;
      color: #777;
      line-height: 1.3;
    }

    .top-info .score {
      color: #4e54c8;
      font-weight: bold;
      font-size: 14px;
      margin-top: 4px;
    }

    /* 🏅 Badge styles */
    .badge-rank {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      color: white;
      font-weight: bold;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .gold { background: linear-gradient(135deg, #FFD700, #FFB300); }
    .silver { background: linear-gradient(135deg, #C0C0C0, #9E9E9E); }
    .bronze { background: linear-gradient(135deg, #CD7F32, #B87333); }

    .leaderboard-table {
      background: #fff;
      border-radius: 15px;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .leaderboard-table th {
      color: #555;
      font-weight: 600;
      border-bottom: 2px solid #eee;
      font-size: 14px;
    }

    .leaderboard-table td {
      vertical-align: middle;
      padding: 12px 10px;
      font-size: 13px;
    }

    .avatar {
      width: 35px;
      height: 35px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 8px;
    }

    .streak {
      color: #ff9800;
      font-weight: 600;
    }

    .tabs {
      text-align: center;
      margin-bottom: 25px;
    }

    .tabs button {
      margin: 0 5px;
      border-radius: 20px;
      font-weight: 500;
    }

    .active-tab {
      background-color: #4e54c8 !important;
      color: #fff !important;
    }

    /* 📱 Responsive */
    @media (max-width: 768px) {
      .top-card {
        width: 100%;
        justify-content: flex-start;
      }
    }
