.rb-members-directory{
  --primary:#0f172a;
  --primary-2:#1d3557;
  --accent:#f2b500;
  --text:#0b1220;
  --muted:#64748b;
  --soft:#f8fafc;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow:0 12px 32px rgba(2,8,23,.10);
  --radius:18px;
  --radius2:24px;
  --container:1120px;

  color: var(--text);
}

.rb-members-directory *{ box-sizing:border-box; }

.rb-dir-panel{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.rb-dir-panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.rb-dir-head{
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(15,23,42,.03), transparent);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.rb-dir-title{
  margin:0;
  font-size:20px;
  font-weight:950;
  color:var(--primary);
  letter-spacing:-.2px;
}
.rb-dir-desc{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
  font-weight:650;
}

.rb-dir-count{
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  color:#334155;
  font-size:13px;
  white-space:nowrap;
}

/* Filters */
.rb-dir-filters{
  padding:16px 18px 18px;
  display:grid;
  grid-template-columns: 1.3fr .9fr auto;
  gap:12px;
  align-items:end;
}

.rb-dir-field label{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#334155;
  margin-bottom:8px;
}

.rb-dir-input,.rb-dir-select{
  width:100%;
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  padding:0 12px;
  font-size:14px;
  font-weight:750;
  outline:none;
  background:#fff;
  color:var(--text);
  transition:border-color .12s ease, box-shadow .12s ease;
}

.rb-dir-input:focus,.rb-dir-select:focus{
  border-color:rgba(242,181,0,.95);
  box-shadow:0 0 0 4px rgba(242,181,0,.18);
}

.rb-dir-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.rb-dir-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  font-weight:950;
  font-size:14px;
  border:1px solid transparent;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space:nowrap;
}
.rb-dir-btn:active{transform:translateY(1px)}
.rb-dir-btn--primary{
  background:var(--accent);
  color:#0b1220;
  box-shadow: 0 14px 30px rgba(242,181,0,.22);
}
.rb-dir-btn--soft{
  background:#f1f5f9;
  border-color:#e2e8f0;
  color:#0b1220;
}

/* Grid */
.rb-dir-grid-wrap{ padding:18px; }
.rb-dir-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}

.rb-dir-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius2);
  box-shadow:0 10px 26px rgba(2,8,23,.08);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.rb-dir-top{
  display:flex;
  gap:12px;
  align-items:center;
}

.rb-dir-avatar{
  width: var(--rb-dir-avatar-size, 52px);
  height: var(--rb-dir-avatar-size, 52px);
  border-radius: 18px;
  display:grid;
  place-items:center;
  background:rgba(242,181,0,.16);
  border:1px solid rgba(242,181,0,.28);
  font-weight:950;
  color:#0b1220;
  letter-spacing:.6px;
  flex:0 0 auto;
  overflow:hidden;
}

.rb-dir-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.rb-dir-initials{
  font-weight:950;
}

.rb-dir-who{ min-width:0; }

.rb-dir-name{
  margin:0;
  font-size:16px;
  font-weight:950;
  color:var(--primary);
  letter-spacing:-.15px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rb-dir-chip{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  font-size:12px;
  font-weight:900;
  color:#334155;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Meta rows */
.rb-dir-meta{
  display:grid;
  gap:10px;
  margin-top:2px;
}

.rb-dir-row{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:800;
  color:#0b1220;
  min-width:0;
}

.rb-dir-ico{
  width:22px;
  display:inline-flex;
  justify-content:center;
  opacity:.9;
  flex:0 0 22px;
}

.rb-dir-row a{
  color:var(--primary-2);
  text-decoration:none;
  font-weight:950;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rb-dir-row a:hover{ text-decoration:underline; }

.rb-dir-muted{
  color:var(--muted);
  font-weight:750;
}

.rb-dir-empty{
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

/* Pagination */
.rb-dir-pagination{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  padding:18px;
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, rgba(15,23,42,.02), transparent);
}

.rb-dir-page{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  display:grid;
  place-items:center;
  font-weight:950;
  color:#0b1220;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(2,8,23,.06);
}

.rb-dir-page.is-active{
  background:var(--accent);
  border-color:transparent;
}

.rb-dir-dots{
  pointer-events:none;
  opacity:.6;
  box-shadow:none;
  background:transparent;
}

/* Responsive */
@media (max-width: 980px){
  .rb-dir-filters{ grid-template-columns:1fr 1fr; }
  .rb-dir-actions{ grid-column:1 / -1; justify-content:flex-start; }
  .rb-dir-grid{ grid-template-columns:1fr; }
}
@media (max-width: 520px){
  .rb-dir-filters{ grid-template-columns:1fr; }
}
