/* Coalition profile system */
.profile-shell{display:grid;gap:18px}.profile-hero{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#0c1016}.profile-banner{min-height:250px;background:linear-gradient(90deg,rgba(6,8,12,.96),rgba(8,12,18,.75)),url('../img/profile/default-banner.jpg') center/cover no-repeat}.profile-banner.has-image{background-size:cover;background-position:center}.profile-head{display:flex;gap:28px;align-items:center;padding:26px 34px;margin-top:-120px;position:relative;z-index:2}.profile-avatar{width:168px;height:168px;border:3px solid var(--gold,#d2aa45);border-radius:50%;background:#07090d;object-fit:cover;box-shadow:0 0 30px rgba(0,0,0,.65)}.profile-avatar-fallback{width:168px;height:168px;border:3px solid var(--gold,#d2aa45);border-radius:50%;display:grid;place-items:center;font-size:58px;background:#10151d}.profile-name{font-size:34px;font-weight:900;margin:0}.verified{color:var(--gold,#d2aa45)}.profile-sub{color:var(--gold,#d2aa45);font-weight:700;margin-top:6px}.profile-meta{display:flex;gap:22px;flex-wrap:wrap;margin-top:18px;color:#ddd}.profile-stats{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.25)}.profile-stat{text-align:center;padding:18px 10px;border-right:1px solid rgba(255,255,255,.08)}.profile-stat:last-child{border-right:0}.profile-stat small{display:block;text-transform:uppercase;font-size:11px;color:#cfc8b8}.profile-stat b{display:block;font-size:23px;margin-top:6px}.profile-grid{display:grid;grid-template-columns:300px 1fr 330px;gap:18px}.profile-card{border:1px solid rgba(255,255,255,.12);border-radius:8px;background:linear-gradient(180deg,rgba(18,22,29,.92),rgba(10,13,18,.95));padding:20px}.profile-card h3{margin:0 0 16px;color:#fff}.achievement-row{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.achievement{text-align:center}.achievement-icon{width:64px;height:64px;border:2px solid rgba(210,170,69,.65);border-radius:50%;display:grid;place-items:center;margin:0 auto 8px;background:#151922;color:var(--gold,#d2aa45);font-size:25px}.profile-tabs{display:flex;gap:24px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:10px}.profile-tabs a{padding:0 0 12px}.profile-tabs a.active{color:var(--gold,#d2aa45);border-bottom:2px solid var(--gold,#d2aa45)}.activity-line{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.08)}.profile-actions{display:flex;gap:10px;flex-wrap:wrap}.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-form label{display:grid;gap:7px}.profile-form textarea{min-height:120px;padding:10px}.profile-form .full{grid-column:1/-1}.dm-list{display:grid;gap:10px}.dm-item{padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#0d1118}.unread{border-color:rgba(210,170,69,.55)}
@media(max-width:1000px){.profile-grid{grid-template-columns:1fr}.profile-head{display:block;margin-top:-90px}.profile-stats{grid-template-columns:repeat(2,1fr)}.achievement-row{grid-template-columns:repeat(3,1fr)}.profile-form{grid-template-columns:1fr}}
.dm-item .profile-avatar,
.dm-item .profile-avatar-fallback{width:64px;height:64px;font-size:24px;border-width:1px}


/* Members directory layout fixes.
   Uses member-specific classes instead of profile-avatar classes so directory cards
   do not inherit large profile-page avatar dimensions. */
.member-list{display:grid;gap:10px}
.member-item{
  display:grid;
  grid-template-columns:112px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
}
.member-avatar-wrap{
  width:96px;
  height:96px;
  display:grid;
  place-items:center;
}
.member-avatar-img,
.member-avatar-fallback{
  width:96px;
  height:96px;
  max-width:96px;
  max-height:96px;
  border:2px solid var(--gold,#d2aa45);
  border-radius:50%;
  box-sizing:border-box;
  display:grid;
  place-items:center;
  overflow:hidden;
  object-fit:cover;
  background:#07090d;
  color:#f1ead8;
  font-size:34px;
  line-height:1;
  box-shadow:0 0 22px rgba(0,0,0,.45);
}
.member-info{min-width:0}
.member-name{margin:0}
.member-bio{margin:.35rem 0 .5rem}
.member-stats{margin:.35rem 0 0}
.member-actions{justify-self:end}
.side-card h3 .online-count{
  letter-spacing:0;
  white-space:nowrap;
  margin-left:10px;
}
@media(max-width:760px){
  .member-item{
    grid-template-columns:84px minmax(0,1fr);
  }
  .member-avatar-wrap,
  .member-avatar-img,
  .member-avatar-fallback{
    width:72px;
    height:72px;
  }
  .member-avatar-img,
  .member-avatar-fallback{
    font-size:26px;
  }
  .member-actions{
    grid-column:1/-1;
    justify-self:start;
  }
}
