@layer legacy {

.community-page .nav-links a.active {
  color: #00C689;
}

.community-page .nav-links {
  overflow-x: auto;
  scrollbar-width: none;
}

.community-page .nav-links::-webkit-scrollbar {
  display: none;
}

.community-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.community-hero-text h1 {
  margin: 0;
  font-size: 2.4rem;
}

.community-hero-text .helper {
  color: rgba(221, 239, 230, 0.9);
  line-height: 1.58;
}

.community-wallet {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 280px;
  padding: 22px 26px;
  border-color: rgba(0, 198, 137, 0.42) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 198, 137, 0.12) !important;
}

.community-wallet .label {
  text-transform: uppercase;
  letter-spacing: 0em;
  font-size: 0.8rem;
  color: #ffffff;
  margin: 0;
}

.community-wallet #walletStatus {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: rgba(197, 212, 205, 0.88);
  transition: color 0.2s ease;
}

.community-wallet:has(.ghost-button.connect.connected) #walletStatus {
  color: #00C689;
}

.community-page .card,
.community-page .reward-card {
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.community-page .card:hover,
.community-page .reward-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 198, 137, 0.14);
  border-color: rgba(0, 198, 137, 0.5);
}

.community-page .tab.active {
  box-shadow: 0 0 12px rgba(0, 198, 137, 0.24);
}

.community-page .stat strong {
  font-weight: 700;
  background: linear-gradient(90deg, #00C689, #6fffd8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.community-page .field:focus-within {
  border-color: rgba(0, 198, 137, 0.6);
  box-shadow: 0 0 0 2px rgba(0, 198, 137, 0.18);
}

.community-page .filter-input:focus,
.community-page .filter-select:focus {
  outline: none;
  border-color: rgba(0, 198, 137, 0.6);
  box-shadow: 0 0 0 2px rgba(0, 198, 137, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.community-page .tab-panel.active {
  animation: fadeUp 0.25s ease;
}

.community-page .qr-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 18px;
  padding: 16px;
}

.community-tabs {
  margin-top: 8px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.referral-qr {
  margin-top: 18px;
}

.referral-qr .qr-code {
  width: 140px;
  height: 140px;
}

.referral-qr .qr-code:empty {
  display: none;
}

.referral-qr .qr-code:empty + .helper {
  margin-top: 0;
}

.compact-row {
  align-items: center;
  gap: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.filter-select,
.filter-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 44px;
}

.filter-input {
  min-width: 180px;
  padding: 11px 16px;
}

.filter-select {
  padding: 11px 44px 11px 16px;
  background-position: right 16px center;
  cursor: pointer;
  color-scheme: dark;
}

.filter-select:hover {
  border-color: rgba(42, 255, 181, 0.4);
}

body.landing-page.community-page .ui-select.select-enhanced {
  min-width: 160px;
}

body.landing-page.community-page .ui-select.select-enhanced .ui-select-trigger {
  border-color: rgba(0, 198, 137, 0.26);
  background: rgba(4, 16, 12, 0.76);
}

body.landing-page.community-page .ui-select.select-enhanced .ui-select-menu {
  z-index: 180;
}

body.landing-page.community-page .ui-select.select-enhanced .ui-select-option {
  min-height: 40px;
}

body.landing-page.community-page .filter-select,
body.landing-page.community-page .filter-select option,
body.landing-page.community-page .filter-select optgroup {
  background-color: #07180f !important;
  color: #e9fff4 !important;
}

body.landing-page.community-page .filter-select option:checked {
  background-color: #0b2d1e !important;
  color: #f2fff8 !important;
}

body.landing-page.community-page .filter-select option:hover {
  background-color: #123525 !important;
  color: #ffffff !important;
}

.date-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0em;
}

body.landing-page.community-page .ui-date.select-enhanced {
  min-width: 170px;
  z-index: 90;
}

body.landing-page.community-page .ui-date.select-enhanced .ui-date-trigger {
  border-color: rgba(0, 198, 137, 0.26);
  background: rgba(4, 16, 12, 0.76);
}

body.landing-page.community-page .ui-date.select-enhanced .ui-date-panel {
  z-index: 260;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.data-table th {
  color: #00C689;
  font-weight: 600;
  background: rgba(0, 198, 137, 0.14);
  letter-spacing: 0em;
}

.data-table td {
  color: rgba(220, 236, 229, 0.92);
}

.data-table tbody tr:hover td {
  background: rgba(0, 198, 137, 0.07);
}

.wallet-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wallet-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

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

.table-empty {
  text-align: center;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.pagination .ghost-button {
  min-height: 44px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  color: var(--muted);
}

.empty-state svg {
  width: 44px;
  height: 44px;
  opacity: 0.8;
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall 0.9s ease-out forwards;
  z-index: 9999;
}

.detail-panel {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-panel h3 {
  margin: 0 0 8px;
  color: #00C689;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.reward-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.reward-card h3 {
  margin: 0 0 12px;
}

.reward-rules {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.reward-rules ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(203, 221, 214, 0.86);
  line-height: 1.62;
}

.community-bottom-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(3, 12, 8, 0.9);
  border: 1px solid rgba(0, 198, 137, 0.35);
  backdrop-filter: blur(12px);
  gap: 8px;
  z-index: 1000;
}

body.landing-page.community-page main {
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.rebate-edit {
  align-items: center;
  gap: 12px;
}

.rebate-edit .field {
  flex: 1;
}

.rebate-edit input {
  width: 100%;
}

.toast {
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 30, 18, 0.9);
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  animation: toastIn 0.2s ease forwards;
}

.toast.success {
  border-color: rgba(0, 198, 137, 0.45);
  background: rgba(0, 198, 137, 0.15);
}

.toast.error {
  border-color: rgba(255, 128, 128, 0.5);
  background: rgba(255, 128, 128, 0.12);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.community-bottom-nav .tab {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(120px) rotate(120deg);
    opacity: 0;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .community-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .community-wallet {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 18px 20px;
  }

  .community-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .community-tabs::-webkit-scrollbar {
    display: none;
  }

  .community-tabs .tab {
    flex: 0 0 auto;
    min-width: 120px;
    min-height: 44px;
    white-space: nowrap;
  }

  .filter-row {
    margin-bottom: 14px;
  }

  .data-table {
    min-width: 560px;
  }
}

@media (max-width: 640px) {
  body.landing-page.community-page main {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .community-bottom-nav {
    display: flex;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  .community-tabs {
    display: none;
  }

  .community-page .ghost-button {
    padding: 10px 16px;
    min-height: 44px;
  }

  .community-hero-text h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.15;
  }

  .community-wallet {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: left;
    padding: 18px 18px;
  }

  .community-wallet .ghost-button.connect {
    width: 100%;
    min-height: 44px;
  }

  .community-tabs {
    padding: 4px;
    gap: 8px;
    margin-bottom: 14px;
  }

  .community-tabs .tab {
    min-width: 116px;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .filter-input {
    min-width: 100%;
  }

  .filter-input,
  .filter-select {
    width: 100%;
    min-height: 46px;
  }

  .filter-input {
    padding: 10px 14px;
  }

  .filter-select {
    padding: 10px 40px 10px 14px;
    background-position: right 14px center;
  }

  body.landing-page.community-page .ui-select.select-enhanced {
    width: 100%;
    min-width: 0;
  }

  body.landing-page.community-page .ui-select.select-enhanced .ui-select-trigger {
    min-height: 46px;
  }

  body.landing-page.community-page .ui-select.select-enhanced .ui-select-menu {
    max-height: min(220px, 42vh);
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .table-wrap {
    border-radius: 14px;
  }

  .data-table {
    min-width: 520px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 14px;
    font-size: 0.84rem;
  }

  .pagination {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .pagination .ghost-button {
    min-height: 42px;
    padding: 8px 14px;
  }
}

/* Reward section frame-softening (leaderboards only, scoped) */
body.landing-page.community-page [data-panel="leaderboards"] .reward-grid {
  gap: 16px;
  margin-bottom: 20px;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card {
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 198, 137, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 198, 137, 0.08);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  margin-top: 4px;
  padding-top: 18px;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules h3 {
  margin: 0 0 10px;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules ul {
  margin-top: 10px;
  line-height: 1.6;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card .progress-track {
  border: 1px solid rgba(0, 198, 137, 0.14);
  background: rgba(7, 24, 16, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card .progress-fill {
  box-shadow: 0 0 8px rgba(0, 198, 137, 0.14);
}

@media (max-width: 900px) {
  body.landing-page.community-page [data-panel="leaderboards"] .reward-card {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-rules {
    border-top-color: rgba(255, 255, 255, 0.03);
    padding-top: 16px;
  }
}

@media (max-width: 640px) {
  body.landing-page.community-page [data-panel="leaderboards"] .reward-grid {
    gap: 12px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-card {
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-rules {
    border-top-color: rgba(255, 255, 255, 0.025);
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-card .progress-track {
    border-color: rgba(0, 198, 137, 0.11);
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-card .progress-fill {
    box-shadow: 0 0 6px rgba(0, 198, 137, 0.12);
  }
}

/* Leaderboards + Reward Status premium-balanced refinement (scoped only) */
body.landing-page.community-page [data-panel="leaderboards"] > .card {
  border-color: rgba(0, 198, 137, 0.22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.landing-page.community-page [data-panel="leaderboards"] > .card + .card {
  margin-top: 14px;
}

body.landing-page.community-page [data-panel="leaderboards"] > .card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 198, 137, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 198, 137, 0.08);
}

body.landing-page.community-page [data-panel="leaderboards"] > .card::before {
  left: 24px;
  right: 24px;
  opacity: 0.45;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 198, 137, 0.24) 50%, transparent 100%);
}

body.landing-page.community-page [data-panel="leaderboards"] .section-header {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

body.landing-page.community-page [data-panel="leaderboards"] .section-header h2 {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 1.9rem);
  line-height: 1.24;
  letter-spacing: 0em;
  color: #d8ffef;
  font-weight: 700;
}

body.landing-page.community-page #inviteLeaderboardUpdated,
body.landing-page.community-page #mintLeaderboardUpdated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 198, 137, 0.2);
  background: rgba(6, 18, 13, 0.55);
  color: rgba(192, 220, 210, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0em;
  white-space: nowrap;
}

body.landing-page.community-page #inviteLeaderboardUpdated::before,
body.landing-page.community-page #mintLeaderboardUpdated::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 198, 137, 0.7);
  box-shadow: 0 0 8px rgba(0, 198, 137, 0.3);
}

body.landing-page.community-page [data-panel="leaderboards"] .table-wrap {
  border-radius: 16px;
  border-color: rgba(0, 198, 137, 0.2);
  background: rgba(4, 14, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.landing-page.community-page [data-panel="leaderboards"] .data-table th {
  padding: 13px 16px;
  color: #d9fff1;
  background: linear-gradient(180deg, rgba(0, 198, 137, 0.16), rgba(0, 198, 137, 0.1));
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0em;
}

body.landing-page.community-page [data-panel="leaderboards"] .data-table td {
  padding: 13px 16px;
  color: rgba(220, 236, 229, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.045);
}

body.landing-page.community-page [data-panel="leaderboards"] .data-table tbody tr:hover td {
  background: rgba(0, 198, 137, 0.055);
}

body.landing-page.community-page [data-panel="leaderboards"] .data-table th:first-child,
body.landing-page.community-page [data-panel="leaderboards"] .data-table td:first-child {
  width: 86px;
  min-width: 86px;
}

body.landing-page.community-page [data-panel="leaderboards"] .data-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  color: rgba(228, 250, 240, 0.95);
}

body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line)),
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line)) {
  color: #ffe49f;
  font-weight: 700;
}

body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line)),
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line)) {
  color: #d9e3ef;
  font-weight: 700;
}

body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line)),
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line)) {
  color: #e7c2a2;
  font-weight: 700;
}

body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before {
  background: linear-gradient(135deg, #ffe38b, #f5b735);
  box-shadow: 0 0 0 1px rgba(255, 227, 139, 0.24), 0 0 8px rgba(245, 183, 53, 0.24);
}

body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before {
  background: linear-gradient(135deg, #d7e0eb, #a9bacd);
  box-shadow: 0 0 0 1px rgba(215, 224, 235, 0.24), 0 0 8px rgba(169, 186, 205, 0.22);
}

body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
body.landing-page.community-page #mintLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before {
  background: linear-gradient(135deg, #ebc5a7, #c98f6f);
  box-shadow: 0 0 0 1px rgba(235, 197, 167, 0.22), 0 0 8px rgba(201, 143, 111, 0.2);
}

body.landing-page.community-page [data-panel="leaderboards"] .table-empty {
  padding: 0 !important;
}

body.landing-page.community-page [data-panel="leaderboards"] .table-empty .empty-state {
  min-height: 120px;
  gap: 8px;
  padding: 20px 0 16px;
  color: rgba(190, 214, 204, 0.86);
}

body.landing-page.community-page [data-panel="leaderboards"] .table-empty .empty-state svg {
  width: 38px;
  height: 38px;
  opacity: 0.78;
  filter: drop-shadow(0 0 8px rgba(0, 198, 137, 0.16));
}

body.landing-page.community-page [data-panel="leaderboards"] .table-empty .empty-state p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0em;
  color: rgba(192, 215, 205, 0.9);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-grid {
  gap: 14px;
  margin-bottom: 18px;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card {
  border-color: rgba(255, 255, 255, 0.042);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.17);
  background: linear-gradient(145deg, rgba(4, 14, 10, 0.72), rgba(3, 11, 8, 0.84));
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 198, 137, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 198, 137, 0.06);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card h3 {
  margin: 0 0 10px;
  color: #daffef;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card .helper {
  color: rgba(198, 220, 211, 0.87);
  line-height: 1.56;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card .progress-track {
  border-color: rgba(0, 198, 137, 0.1);
  background: rgba(6, 19, 13, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-card .progress-fill {
  box-shadow: 0 0 6px rgba(0, 198, 137, 0.12);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules {
  border-top-color: rgba(255, 255, 255, 0.028);
  margin-top: 2px;
  padding-top: 16px;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules h3 {
  margin: 0 0 8px;
  color: #d7ffed;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules ul {
  margin: 8px 0 0;
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules li {
  margin-bottom: 6px;
  color: rgba(202, 223, 214, 0.9);
}

body.landing-page.community-page [data-panel="leaderboards"] .reward-rules li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  body.landing-page.community-page [data-panel="leaderboards"] > .card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  }

  body.landing-page.community-page [data-panel="leaderboards"] .section-header {
    margin-bottom: 12px;
    gap: 10px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .section-header h2 {
    font-size: clamp(1.32rem, 2.5vw, 1.7rem);
  }

  body.landing-page.community-page #inviteLeaderboardUpdated,
  body.landing-page.community-page #mintLeaderboardUpdated {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .data-table th,
  body.landing-page.community-page [data-panel="leaderboards"] .data-table td {
    padding: 11px 13px;
    font-size: 0.83rem;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .data-table th:first-child,
  body.landing-page.community-page [data-panel="leaderboards"] .data-table td:first-child {
    width: 76px;
    min-width: 76px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .table-empty .empty-state {
    min-height: 108px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-card {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  body.landing-page.community-page [data-panel="leaderboards"] > .card + .card {
    margin-top: 10px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .section-header {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .section-header h2 {
    font-size: clamp(1.26rem, 6.2vw, 1.55rem);
    line-height: 1.22;
  }

  body.landing-page.community-page #inviteLeaderboardUpdated,
  body.landing-page.community-page #mintLeaderboardUpdated {
    padding: 5px 8px;
    font-size: 0.68rem;
    letter-spacing: 0em;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .table-wrap {
    border-radius: 13px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .data-table th,
  body.landing-page.community-page [data-panel="leaderboards"] .data-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .data-table th:first-child,
  body.landing-page.community-page [data-panel="leaderboards"] .data-table td:first-child {
    width: 64px;
    min-width: 64px;
  }

  body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
  body.landing-page.community-page #mintLeaderboardBody tr:nth-child(1) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
  body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
  body.landing-page.community-page #mintLeaderboardBody tr:nth-child(2) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
  body.landing-page.community-page #inviteLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before,
  body.landing-page.community-page #mintLeaderboardBody tr:nth-child(3) td:first-child:not(.table-empty):not(:has(.skeleton-line))::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .table-empty .empty-state {
    min-height: 96px;
    padding: 16px 0 12px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .table-empty .empty-state p {
    font-size: 0.84rem;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  body.landing-page.community-page [data-panel="leaderboards"] .reward-card {
    padding: 14px;
  }
}

/* Mobile global refinement (community page) */
@media (max-width: 768px) {
  body.landing-page.community-page .community-tabs {
    display: none !important;
  }

  body.landing-page.community-page .community-bottom-nav {
    display: flex !important;
    left: 8px;
    right: 8px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 14px;
    background: rgba(3, 12, 8, 0.94);
    border-color: rgba(0, 198, 137, 0.3);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }

  body.landing-page.community-page .community-bottom-nav .tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 9px 8px;
    font-size: 0.78rem;
    letter-spacing: 0em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.landing-page.community-page .community-bottom-nav .tab[data-tab="leaderboards"] {
    font-size: 0.76rem;
  }

  body.landing-page.community-page main {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body.landing-page.community-page .header-container {
    gap: 10px !important;
    margin-bottom: 6px;
  }

  body.landing-page.community-page .community-hero {
    gap: 14px;
    margin-bottom: 12px;
  }

  body.landing-page.community-page .community-hero-text h1 {
    margin-bottom: 6px;
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    line-height: 1.12;
  }

  body.landing-page.community-page .community-hero-text .helper {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 34ch;
  }

  body.landing-page.community-page .community-wallet {
    padding: 16px;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 198, 137, 0.08) !important;
  }

  body.landing-page.community-page .community-wallet .ghost-button.connect {
    min-height: 46px;
  }

  body.landing-page.community-page .tab-panel > .card,
  body.landing-page.community-page .community-grid > .card {
    padding: 16px;
    border-radius: 16px;
  }

  body.landing-page.community-page .section-header {
    margin-bottom: 12px;
    gap: 10px;
  }

  body.landing-page.community-page .section-header h2 {
    font-size: clamp(1.3rem, 5.6vw, 1.65rem);
    line-height: 1.22;
  }

  body.landing-page.community-page .filter-row {
    gap: 10px;
    margin-bottom: 14px;
  }

  body.landing-page.community-page .filter-input,
  body.landing-page.community-page .ui-select.select-enhanced .ui-select-trigger,
  body.landing-page.community-page .filter-row .ghost-button.small {
    min-height: 46px;
  }

  body.landing-page.community-page .table-wrap {
    border-radius: 12px;
  }

  body.landing-page.community-page .data-table {
    min-width: 560px;
  }

  body.landing-page.community-page .data-table th,
  body.landing-page.community-page .data-table td {
    padding: 11px 12px;
    font-size: 0.82rem;
  }

  body.landing-page.community-page .pagination {
    margin-top: 12px;
    gap: 10px;
    justify-content: space-between;
  }

  body.landing-page.community-page .pagination .ghost-button {
    min-height: 42px;
    padding: 8px 16px;
  }

  body.landing-page.community-page .landing-footer {
    margin-top: 16px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  body.landing-page.community-page .footer-bottom-center {
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  body.landing-page.community-page .community-bottom-nav {
    left: 6px;
    right: 6px;
  }

  body.landing-page.community-page .community-bottom-nav .tab {
    font-size: 0.74rem;
    padding: 8px 6px;
  }

  body.landing-page.community-page .community-bottom-nav .tab[data-tab="leaderboards"] {
    font-size: 0.72rem;
  }

  body.landing-page.community-page .community-hero-text h1 {
    font-size: clamp(1.7rem, 9vw, 2rem);
  }

  body.landing-page.community-page .community-hero-text .helper {
    font-size: 0.98rem;
    max-width: 30ch;
  }

  body.landing-page.community-page .tab-panel > .card,
  body.landing-page.community-page .community-grid > .card {
    padding: 14px;
  }

  body.landing-page.community-page .section-header h2 {
    font-size: clamp(1.2rem, 6vw, 1.45rem);
  }

  body.landing-page.community-page .data-table {
    min-width: 540px;
  }
}

/*
 * Deprecated list/table authority.
 * Migrated to frontend/css/51-page-community.css (pages layer).
 */

} /* end @layer legacy */


/* ================================================================
   CONSOLIDATED: merged from css/51-page-community.css
   ================================================================ */

/* ── Community page nav links: mirror the non-community pill style ── */
.community-page .header-container .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1.1;
  letter-spacing: 0em;
  text-decoration: none;
  color: rgba(227, 240, 234, 0.82);
  text-shadow: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.community-page .header-container .nav-links a::after,
.community-page .header-container .nav-links a::before {
  content: none !important;
  display: none !important;
}
.community-page .header-container .nav-links a:hover,
.community-page .header-container .nav-links a:focus-visible {
  color: #f3fff9;
  background: rgba(0, 198, 137, 0.08);
  border-color: rgba(0, 198, 137, 0.28);
}
.community-page .header-container .nav-links a.active {
  color: #fafff7;
  font-weight: 600;
}
/* Developer link — yellow-green tint */
.community-page .header-container .nav-links a[href="https://developer.seth.app/"] {
  color: rgba(234, 255, 244, 0.94);
  border-color: rgba(213, 255, 63, 0.18);
  background: linear-gradient(135deg, rgba(213, 255, 63, 0.06), rgba(0, 198, 137, 0.02));
}
@media (min-width: 841px) {
  .community-page .header-container .nav-links a { display: inline-flex !important; }
}

/* Hamburger dropdown: Developer matches plain row (overrides capsule above) */
@media (max-width: 840px) {
  .community-page .header-container .nav-links a[href="https://developer.seth.app/"] {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: rgba(220, 245, 232, 0.88) !important;
  }
  .community-page .header-container .nav-links a[href="https://developer.seth.app/"]:hover,
  .community-page .header-container .nav-links a[href="https://developer.seth.app/"]:focus-visible {
    background: rgba(0, 198, 137, 0.08) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #f0fff4 !important;
  }
}

.community-page .filter-row {
  align-items: stretch;
  gap: 12px;
}

.community-page .filter-input,
.community-page .ui-select.select-enhanced,
.community-page .ui-date.select-enhanced,
.community-page .ui-select.select-enhanced .ui-select-trigger,
.community-page .ui-date.select-enhanced .ui-date-trigger,
.community-page .filter-row .ghost-button.small {
  min-height: 46px;
}

.community-page .table-wrap {
  border-color: rgba(0, 198, 137, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  background: rgba(5, 18, 12, 0.58);
}

.community-page .data-table { min-width: 640px; }

.community-page .data-table th,
.community-page .data-table td {
  padding: 13px 15px;
  line-height: 1.52;
}

.community-page .data-table th {
  color: #ccffe9;
  background: rgba(0, 198, 137, 0.12);
  letter-spacing: 0em;
}

.community-page .data-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.012); }
.community-page .data-table tbody tr:hover td           { background: rgba(0, 198, 137, 0.06); }

.community-page .table-empty .empty-state {
  min-height: 110px;
  padding: 18px 0 14px;
  gap: 9px;
}
.community-page .table-empty .empty-state p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(194, 214, 206, 0.9);
}

.community-page .pagination {
  margin-top: 14px;
  gap: 12px;
}
.community-page .pagination span { font-size: 0.86rem; color: rgba(206, 225, 217, 0.92); }
.community-page .pagination .ghost-button { min-height: 44px; padding: 8px 15px; }

.community-page .reward-rules ul {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.community-page .reward-rules li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: rgba(203, 221, 214, 0.9);
  line-height: 1.6;
}
.community-page .reward-rules li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(145deg, rgba(111, 255, 206, 0.94), rgba(0, 198, 137, 0.84));
  box-shadow: 0 0 0 1px rgba(111, 255, 206, 0.22), 0 0 9px rgba(0, 198, 137, 0.2);
}
.community-page .reward-rules li:last-child { margin-bottom: 0; }

@media (min-width: 769px) and (max-width: 959px) {
  .community-page .header-container { gap: 8px; }
  .community-page .header-container .nav-links {
    gap: 8px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .community-page .header-container .nav-links a[href="community.html"] { min-width: max-content; }
}

@media (max-width: 900px) {
  .community-page .data-table { min-width: 600px; }
  .community-page .data-table th,
  .community-page .data-table td { padding: 12px 13px; font-size: 0.84rem; }
}

@media (max-width: 640px) {
  .community-page .filter-row { gap: 10px; margin-bottom: 14px; }
  .community-page .ui-date.select-enhanced { width: 100%; min-width: 0; }
  .community-page .table-wrap { border-radius: 13px; }
  .community-page .data-table { min-width: 560px; }
  .community-page .data-table th,
  .community-page .data-table td { padding: 11px 12px; font-size: 0.82rem; }
  .community-page .pagination { justify-content: space-between; gap: 10px; }
}

@media (max-width: 480px) {
  .community-page .filter-input,
  .community-page .ui-select.select-enhanced .ui-select-trigger,
  .community-page .ui-date.select-enhanced .ui-date-trigger,
  .community-page .filter-row .ghost-button.small { min-height: 46px; }
  .community-page .data-table { min-width: 540px; }
  .community-page .data-table th,
  .community-page .data-table td { padding: 10px 11px; font-size: 0.8rem; }
  .community-page .reward-rules li { padding-left: 16px; margin-bottom: 7px; }
}
