.leaderboard-card {
  max-width: 980px;
}

.nav-row {
  margin-top: 5px;
  margin-bottom: 12px;
}

.nav-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-section {
  margin-top: 18px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(45deg, rgba(13, 218, 207, 0.11), rgba(255, 152, 0, 0.11));
  border: 1px solid rgba(13, 202, 191, 0.25);
}

.rank-title {
  color: #2d999c;
  margin-bottom: 14px;
  font-size: 22px;
}

.compact-newsletter {
  max-width: 440px;
  margin: 10px auto 0;
  padding: 8px 12px;
}

.compact-newsletter .rank-title {
  margin-bottom: 4px;
  font-size: 16px;
}

.compact-newsletter .profile-card-ctr {
  margin-top: 2px;
}

.newsletter-btn {
  min-width: 170px;
  min-height: 36px;
  margin: 0;
  font-size: 15px;
  padding: 8px 16px;
}

.share-form {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 0.9fr 0.9fr 1.8fr auto;
  gap: 10px;
  align-items: center;
}

.share-form input {
  width: 100%;
  border: 1px solid #b8e8e2;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-family: 'Quicksand', sans-serif;
}

.share-form input:focus {
  outline: 2px solid #11d8ca;
  outline-offset: 1px;
}

.submit-btn {
  margin: 0;
  min-width: 130px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
}

.feedback {
  min-height: 24px;
  margin-top: 10px;
  font-weight: 700;
}

.feedback.error {
  color: #c62828;
}

.feedback.success {
  color: #138f27;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.view-switch {
  display: inline-flex;
  background: #f4fcfb;
  border: 1px solid #c8efeb;
  border-radius: 999px;
  padding: 4px;
}

.view-btn {
  border: none;
  background: transparent;
  color: #2c6f74;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.view-btn.active {
  color: #fff;
  background: linear-gradient(45deg, #11d8ca, #0eb6af);
}

.table-wrap {
  overflow: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.rank-table thead th {
  text-align: left;
  font-size: 14px;
  color: #1d6569;
  background: #e7faf8;
  padding: 10px;
}

.rank-table tbody td {
  padding: 10px;
  border-top: 1px solid #edf7f6;
  font-size: 14px;
}

.rank-table tbody tr.highlight td {
  background: #f7ffec;
}

.promo-link {
  color: #0a8f86;
  font-weight: 700;
}

.promo-link:hover {
  text-decoration: underline;
}

.table-actions {
  margin-top: 14px;
  text-align: right;
}

.mini-btn {
  min-width: 120px;
  min-height: 44px;
  font-size: 15px;
  margin: 0;
  padding: 10px 14px;
}

@media screen and (max-width: 860px) {
  .share-form {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .submit-btn {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 560px) {
  .rank-title {
    font-size: 19px;
  }

  .compact-newsletter {
    max-width: 100%;
  }

  .share-form {
    grid-template-columns: 1fr;
  }

  .table-actions {
    text-align: center;
  }
}
