html, body { overflow: auto; height: auto; background: var(--bg); }

.members-page { display: flex; flex-direction: column; min-height: 100vh; }

/* ══ BODY ══ */
.mem-body {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 20px; padding: 20px; flex: 1;
  max-width: 1100px; margin: 0 auto; width: 100%;
}

/* ══ FILTERS ══ */
.mem-filters {
  position: sticky; top: 72px;
  align-self: start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}

.filter-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 14px;
}

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

.filter-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text2); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}

.filter-group select {
  width: 100%; padding: 8px 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 5px; color: var(--text); font-size: 13px;
  outline: none; font-family: inherit;
}

.filter-check {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: var(--text2);
}
.filter-check input { cursor: pointer; accent-color: var(--acc2); }

.btn-reset {
  width: 100%; padding: 8px;
  border: 1px solid var(--border2); border-radius: 5px;
  color: var(--text3); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.btn-reset:hover { border-color: var(--acc3); color: var(--acc3); }

/* ══ CONTENT ══ */
.mem-content { min-width: 0; }

.mem-count { font-size: 12px; color: var(--text3); margin-bottom: 14px; }

.mem-loading { color: var(--text2); padding: 40px; text-align: center; }

/* ══ GRID ══ */
.mem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}

/* ══ MEMBER CARD ══ */
.mem-card-wrap { position: relative; }

.mc-intro-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--acc2); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s;
  cursor: pointer; border: none; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.mem-card-wrap:hover .mc-intro-btn { opacity: 1; }
.mc-intro-btn:hover { background: var(--acc3); }

.mem-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 12px;
  text-align: center; cursor: pointer;
  text-decoration: none; display: block;
  transition: border-color .15s, transform .15s;
}
.mem-card:hover { border-color: var(--acc3); transform: translateY(-2px); text-decoration: none; }

.mc-photo {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  overflow: hidden; border: 2px solid var(--border2);
}
.mc-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.mc-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.mc-meta {
  font-size: 11px; color: var(--text2); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mc-verified { font-size: 10px; color: #3aaa3a; margin-top: 4px; font-weight: 700; }

.mc-bio {
  font-size: 11px; color: var(--text3); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4;
}

/* ══ PAGINATION ══ */
.mem-pagination {
  display: flex; gap: 8px; margin-top: 24px;
  justify-content: center; flex-wrap: wrap;
}

.page-btn {
  padding: 7px 14px; border: 1px solid var(--border2);
  border-radius: 5px; color: var(--text2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.page-btn:hover { border-color: var(--acc3); color: var(--acc3); }
.page-btn.active { background: var(--acc2); border-color: var(--acc2); color: #fff; }
