.community-main {
  padding-top: 90px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.community-hero {
  text-align: center;
  padding: 40px 0 28px;
}

.community-hero .section-title {
  margin-bottom: 8px;
}

.community-hero .section-subtitle {
  margin-bottom: 24px;
  opacity: 0.85;
}

.community-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.community-cta-row.hidden,
.community-status.hidden {
  display: none;
}

.community-status {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pfp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

.status-details {
  flex: 1 1 240px;
  min-width: 200px;
}

.status-handle {
  font-weight: 600;
  font-size: 1.05rem;
}

.status-meta {
  font-size: 0.85rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.status-wallet {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.status-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Board */
.community-board {
  padding-top: 8px;
}

.board-status {
  font-size: 0.85rem;
  color: #9aa0a6;
  margin-bottom: 8px;
  min-height: 24px;
  display: flex;
  align-items: center;
}

.board-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: board-spin 0.8s linear infinite;
}

@keyframes board-spin {
  to { transform: rotate(360deg); }
}

.community-table {
  --row-bg: #14181c;
  --row-bg-alt: #181d22;
  --row-bg-hover: #1f262d;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e6e8ea;
  --muted: #9aa0a6;

  color: var(--text);
  background: var(--row-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: var(--row-bg-alt);
  --bs-table-striped-color: var(--text);
  --bs-table-hover-bg: var(--row-bg-hover);
  --bs-table-hover-color: var(--text);
}

.table-responsive {
  border-radius: 12px;
}

.community-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: #0f1316;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  user-select: none;
}

.community-table thead th.sortable {
  cursor: pointer;
}

.community-table thead th.sortable:hover {
  color: var(--text);
}

.community-table thead th.sortable .sort-indicator {
  display: inline-block;
  width: 10px;
  margin-left: 6px;
  opacity: 0.55;
}

.community-table thead th.sortable.is-sorted .sort-indicator {
  opacity: 1;
  color: #fff;
}

.community-table tbody td {
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  background: var(--row-bg);
}

.community-table tbody tr:nth-child(even) td {
  background: var(--row-bg-alt);
}

.community-table tbody tr:hover td {
  background: var(--row-bg-hover);
}

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

.col-rank { width: 56px; color: var(--muted); }
.col-pfp { width: 64px; }
.col-rpepe, .col-nfts { white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-joined { white-space: nowrap; color: var(--muted); }

.frog-pfp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

.frog-name {
  font-size: 0.8rem;
  color: var(--muted);
}

.community-table a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.community-table a:hover {
  text-decoration: underline;
}

#board-sentinel {
  height: 1px;
}

.community-footer-note {
  margin-top: 32px;
  font-size: 0.85rem;
  opacity: 0.65;
  text-align: center;
}

/* Modal */
#walletModal .modal-content {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#walletModal .modal-help {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

#walletModal .form-control {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
}

.wallet-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 576px) {
  .community-main { padding-top: 80px; }
  .col-joined { display: none; }
  .col-pfp .frog-pfp { width: 36px; height: 36px; }
  .status-actions { width: 100%; justify-content: flex-end; }
}
