:root{
  --bg:#0a0e14;
  --panel:#0f1521;
  --edge:#1b2536;
  --text:#e6edf7;
  --muted:#9fb0c3;
  --accent:#69a8ff;
}

*{box-sizing:border-box}
html,body{margin:0;height:100%}

body{
  background:var(--bg);
  color:var(--text);
  font:14px/1.4 system-ui,Segoe UI,Arial;
  overflow-y:auto;
  overflow-x:hidden;
}

/* Background */
.bg{position:fixed;inset:-20% -10% -10% -10%;z-index:-1}
.spotlight{
  position:fixed;width:36vmax;height:36vmax;border-radius:50%;
  transform:translate(-50%,-50%);
  pointer-events:none;opacity:.28;
  background:radial-gradient(closest-side,rgba(120,170,255,.55),transparent 70%);
}
.blob{position:absolute;width:60vmax;height:60vmax;border-radius:50%;opacity:.22;filter:blur(60px)}
.blob.a{left:-10vmax;top:-8vmax;background:radial-gradient(closest-side,#2753ff,transparent 70%)}
.blob.b{right:-8vmax;bottom:-12vmax;background:radial-gradient(closest-side,#22b8cf,transparent 70%)}
.grid{
  position:absolute;inset:0;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 32px);
}

/* Card */
.card{
  width:min(520px,92vw);
  margin:40px auto;
  padding:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  border:1px solid var(--edge);
  border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.45);
  backdrop-filter:blur(6px);
}

.card-head h1{margin:0;font-size:18px;font-weight:900}
.card-head p{margin:4px 0 10px;color:var(--muted);font-size:12px}

/* Search */
.search-row{display:flex;gap:10px}
input{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #243149;
  background:#0e1521;
  color:var(--text);
}
#searchBtn{
  height:40px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid #2a3449;
  background:#131a28;
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}

/* Profile */
.profile{
  margin-top:14px;
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  background:var(--panel);
  border:1px solid var(--edge);
  border-radius:14px;
}
.profile img{width:64px;height:64px;border-radius:12px}

.badge{
  display:inline-block;
  margin-top:4px;
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background:#111827;
  border:1px solid #2a3449;
  color:var(--muted);
}

/* Filters */
.filters{display:flex;gap:8px;margin:12px 0}
.filters button{
  padding:6px 12px;
  border-radius:999px;
  background:#131a28;
  border:1px solid #2a3449;
  color:var(--text);
  font-size:12px;
  cursor:pointer;
}

/* Virtualized list */
.section-title{
  font-size:12px;
  color:var(--muted);
  margin:10px 0 6px;
}

#friends-viewport{
  position:relative;
  height:300px;
  overflow-y:auto;
  border:1px solid var(--edge);
  border-radius:12px;
  background:var(--panel);
}

#friends-spacer{height:0}

#friends-list{
  position:absolute;
  top:0;
  left:0;
  right:0;
}

/* IMPORTANT: match ROW_HEIGHT in app.js */
.friend{
  height:64px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 12px;
  border-bottom:1px solid #1c2536;
  cursor:pointer;
}

.friend:hover{background:#121a2a}

.friend img{
  width:40px;
  height:40px;
  border-radius:10px;
  flex-shrink:0;
}

.friend-info{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.friend-name{
  font-weight:800;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Banned */
#banned{
  max-height:180px;
  overflow-y:auto;
  border:1px solid var(--edge);
  border-radius:12px;
  background:var(--panel);
}
