/* ==========================================================
   NEW STYLE: "Midnight Blueprint"
   Helt ny look, fortfarande svart + ljusblå.
   Samma klassnamn för att inte spränga din layout.
   ========================================================== */

:root{
  /* Base */
  --bg: #07080c;
  --bg2:#05060a;

  /* Surfaces */
  --panel: #0b0e16;     /* solid */
  --panel2:#0e1220;     /* raised */
  --panel3:#0a0c12;     /* flat */

  /* Text */
  --text:#eef4ff;
  --muted:#9aa7c2;

  /* Accent */
  --accent:#57b3ff;
  --accent2:#93d8ff;

  /* Status */
  --ok:#2ee6b7;
  --warn:#ffd07a;
  --danger:#ff5b7a;

  /* Lines */
  --stroke: rgba(255,255,255,.08);
  --stroke2: rgba(87,179,255,.26);

  /* Depth */
  --shadow: 0 20px 55px rgba(0,0,0,.70);
  --shadow2: 0 12px 26px rgba(0,0,0,.45);

  /* Radius */
  --radius: 14px;
  --radius2: 18px;

  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
/* =========================
   BACKGROUND IMAGE PATCH
   (Replace body + body::before + body::after)
   ========================= */

body{
  margin:0;
  font-family: var(--font);
  color:var(--text);

  /* fallback färg ifall bilden inte laddar */
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Bilden ligger längst bak */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;

  background:
    /* din bild */
    url("/assets/vantor-bg.png") center/cover no-repeat fixed;

  /* gör den lite “mjukare” och mörkare så UI syns */
  filter: saturate(1.05) contrast(1.05) brightness(.70);
  transform: scale(1.02); /* minskar risk för “kant-glapp” */
}

/* Mörk overlay + blå ton (det som gör allt läsbart) */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;

  background:
    /* mörk bas overlay */
    linear-gradient(180deg, rgba(5,6,10,.78) 0%, rgba(5,6,10,.90) 100%),

    /* cyan glow overlay (svag, men snygg) */
    radial-gradient(900px 520px at 50% 18%, rgba(87,179,255,.18), transparent 60%),

    /* blueprint layer (behåll din vibe) */
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(87,179,255,.06) 0 1px, transparent 1px 14px);

  background-size:
    auto,
    auto,
    56px 56px,
    56px 56px,
    auto;

  /* lite lugnare än innan så bilden får synas */
  opacity: .85;
  mix-blend-mode: normal;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  padding-bottom: 70px;
}

/* ==========================================================
   TOPBAR: "app header" look
   ========================================================== */
.topbar{
  position: sticky;
  top: 14px;
  z-index: 10;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  padding: 12px 14px;
  border-radius: var(--radius2);

  background: rgba(11,14,22,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(87,179,255,.0), rgba(87,179,255,.22), rgba(87,179,255,.0));
  opacity:.20;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 190px;
}

.logo{
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;

  background: #0a0d14;
  border: 1px solid rgba(87,179,255,.25);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 14px 28px rgba(0,0,0,.55);
}

.logo img{width:100%;height:100%;object-fit:contain;display:block}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ==========================================================
   BUTTONS: "outlined tech" (inte pill/glass)
   ========================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding: 9px 12px;
  border-radius: 12px;

  font-size: 12px;
  font-weight: 950;
  letter-spacing: .4px;

  color: rgba(238,244,255,.92);
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);

  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(87,179,255,.35);
  background: rgba(87,179,255,.08);
  box-shadow: 0 0 0 4px rgba(87,179,255,.10);
}
.btn:active{transform: translateY(0)}

.btn.primary{
  background: rgba(87,179,255,.14);
  border-color: rgba(87,179,255,.38);
  color: rgba(238,244,255,.98);
}
.btn.primary:hover{
  background: rgba(87,179,255,.18);
  box-shadow: 0 0 0 4px rgba(87,179,255,.14), 0 14px 26px rgba(0,0,0,.40);
}

.btn.danger{
  background: rgba(255,91,122,.10);
  border-color: rgba(255,91,122,.32);
  color:#ffc1cd;
}
.btn.danger:hover{
  background: rgba(255,91,122,.14);
  box-shadow: 0 0 0 4px rgba(255,91,122,.10);
}

.btn.small{padding:8px 11px; font-size:11px}

/* ==========================================================
   GRID
   ========================================================== */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
}
@media (max-width:980px){ .grid{grid-template-columns:1fr} }

/* ==========================================================
   CARDS: "sheet" style with strong header bar
   ========================================================== */
.card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(11,14,22,.92);
  box-shadow: var(--shadow2);
  overflow:hidden;
}

.hd{
  position: relative;
  padding: 12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;

  font-size: 12px;
  font-weight: 1100;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: rgba(238,244,255,.75);
  background: rgba(10,12,18,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hd::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background: linear-gradient(90deg, transparent, rgba(87,179,255,.75), transparent);
  opacity:.55;
}

.body{padding:16px}

/* HERO: editorial, stor typografi, inga glowbubblor */
.hero{
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(14,18,32,.90), rgba(11,14,22,.92));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero h1{
  margin:0 0 10px 0;
  font-size: 34px;
  letter-spacing: .2px;
}

.hero p{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 75ch;
  font-size: 14px;
}

.hero .cta{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}

/* ==========================================================
   FORMS: crisp + clean
   ========================================================== */
label{
  display:block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 950;
  color: rgba(238,244,255,.75);
}

input,textarea,select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color: var(--text);
  outline:none;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

input:focus,textarea:focus,select:focus{
  border-color: rgba(87,179,255,.40);
  box-shadow: 0 0 0 4px rgba(87,179,255,.12);
  background: rgba(87,179,255,.04);
}

.error{color: var(--danger); font-weight: 1000;}
.meta{color: var(--muted); font-size: 13px; margin-top: 4px;}
.list-item{padding:12px 0; border-bottom:1px solid rgba(255,255,255,.06)}
.list-item:last-child{border-bottom:none}

/* ==========================================================
   BADGES / STATUS: new look (square-ish, label style)
   ========================================================== */
.badge,
.small-pill,
.status,
.kpi,
.post-number{
  font-size: 10px;
  font-weight: 1100;
  padding: 4px 8px;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: .35px;
  line-height: 1.2;
}

.badge{
  color: rgba(238,244,255,.90);
  background: rgba(87,179,255,.12);
  border: 1px solid rgba(87,179,255,.30);
}

.small-pill,
.kpi,
.post-number{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(238,244,255,.92);
}

.status{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
}

.status.godkand{border-color: rgba(46,230,183,.30); background: rgba(46,230,183,.10); color:#d6fff3}
.status.intervju{border-color: rgba(255,208,122,.30); background: rgba(255,208,122,.10); color:#fff1cf}
.status.nekad{border-color: rgba(255,91,122,.30); background: rgba(255,91,122,.10); color:#ffd0da}

/* ==========================================================
   BOARDS: boxed tiles with left accent rail (helt ny känsla)
   ========================================================== */
.section-title{
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;

  border-bottom:1px solid rgba(255,255,255,.06);

  font-size:12px;
  font-weight:1100;
  letter-spacing:.9px;
  text-transform:uppercase;

  color: rgba(238,244,255,.72);
}

.board-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}
@media (max-width:980px){ .board-grid{grid-template-columns:1fr} }

.board{
  display:block;
  border-radius: 16px;
  padding: 16px 16px 16px 14px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,12,18,.70);

  box-shadow: 0 14px 28px rgba(0,0,0,.35);

  position: relative;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

/* accent rail */
.board::before{
  content:"";
  position:absolute;
  left:0; top:10px; bottom:10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(87,179,255,.85);
  opacity:.55;
}

.board:hover{
  transform: translateY(-2px);
  border-color: rgba(87,179,255,.26);
  background: rgba(87,179,255,.04);
}

.board-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.board h3{margin:0;font-size:17px;letter-spacing:.2px}
.board p{margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.6}
.board-meta{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

.page-title{margin:0 0 6px 0;font-size:22px}
.page-sub{margin:0;color:var(--muted)}

/* ==========================================================
   THREAD LIST: minimal, with subtle hover highlight
   ========================================================== */
.thread-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;

  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,.10);
}
.thread-row:last-child{border-bottom:none}
.thread-left{min-width:0}

.thread-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.thread-title a{
  font-weight: 1150;
  max-width: 680px;
  display:inline-block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.thread-title a:hover{ color: rgba(147,216,255,.98); }

.thread-meta{margin-top:7px;color:var(--muted);font-size:12px}
.thread-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;white-space:nowrap}

.kpi{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(238,244,255,.92);
}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

.userlink{
  font-weight: 1100;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(87,179,255,.35);
  text-underline-offset: 3px;
}
.userlink:hover{ text-decoration-color: rgba(87,179,255,.70); }

/* ==========================================================
   MODBAR: compact utility strip
   ========================================================== */
.modbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:14px;

  padding:10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,18,.55);
}
.modbar select{max-width: 220px}

/* ==========================================================
   POSTS: "split panel" with stronger separation
   ========================================================== */
.post-wrap{
  display:grid;
  grid-template-columns: 240px 1fr;

  border-radius: 18px;
  overflow:hidden;
  margin: 14px 0;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(11,14,22,.92);
  box-shadow: 0 16px 34px rgba(0,0,0,.45);
}
@media (max-width:900px){ .post-wrap{grid-template-columns:1fr} }

.post-left{
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(10,12,18,.70);

  display:flex;
  flex-direction:column;
  gap:10px;
}
@media (max-width:900px){
  .post-left{
    border-right:none;
    border-bottom:1px solid rgba(255,255,255,.08);
    flex-direction:row;
    align-items:center;
  }
}

.avatar-lg{
  width: 86px;
  height: 86px;
  border-radius: 16px;
  overflow:hidden;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  flex: 0 0 auto;
}
.avatar-lg img{width:100%;height:100%;object-fit:cover;display:block}

.userbox-name{font-weight:1150;font-size:15px;line-height:1.2}
.userbox-meta{color:var(--muted);font-size:12px;line-height:1.55}

.post-right{padding: 16px; min-width:0}

.post-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;

  color: var(--muted);
  font-size: 12px;
}

.post-number{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(238,244,255,.88);
}

.post-body{
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 14px;
}

/* keep images sane */
.post-body img{
  max-width:100%;
  height:auto;
  display:block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  margin: 10px 0;
}

/* ==========================================================
   RIGHT COLUMN SAFETY (kept)
   ========================================================== */
.grid > :nth-child(2){min-width:0}
.grid > :nth-child(2) .card .body{padding: 16px 18px 16px 20px}
@media (max-width:520px){
  .card .body{padding: 16px 18px 16px 20px}
}
.grid > :nth-child(2) *,
.card .body *{min-width:0}
.grid > :nth-child(2) .body,
.grid > :nth-child(2) a,
.grid > :nth-child(2) div,
.grid > :nth-child(2) p{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.grid > :nth-child(2) .small-pill,
.grid > :nth-child(2) .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:6px;
  margin-top:6px;
}

.grid > :nth-child(2) .body a{
  display:block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  margin-top: 8px;
  line-height: 1.35;
}
.grid > :nth-child(2) .body a:hover{
  border-color: rgba(87,179,255,.26);
  box-shadow: 0 0 0 4px rgba(87,179,255,.10);
}

.grid > :nth-child(2) .body{line-height: 1.5}
.grid > :nth-child(2) .body p{margin: 8px 0}

/* ==========================================================
   STATS / LISTS / CHIPS: utilitarian
   ========================================================== */
.stats{display:flex;flex-direction:column;gap:8px}

.stat-row{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;

  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.stat-row span{color:var(--muted); font-weight:950; font-size:12px}
.stat-row b{font-weight:1100; text-align:right; color:var(--text); white-space:nowrap}

.list{display:flex;flex-direction:column;gap:8px}
.list-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px;
  align-items:center;

  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  text-decoration:none;
}
.list-row:hover{
  border-color: rgba(87,179,255,.22);
  box-shadow: 0 0 0 4px rgba(87,179,255,.10);
}

.row-left{min-width:0}
.row-title{
  display:block;
  font-weight:1100;
  line-height:1.2;
  margin-bottom:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.row-sub{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.row-right{display:flex;align-items:center;gap:8px; justify-content:flex-end; min-width:24px}

.empty-note{color:var(--muted); font-size:13px; line-height:1.45; padding:8px 2px}

.chips{display:flex; flex-wrap:wrap; gap:8px; padding-top:4px}
.chip{
  display:inline-flex;
  align-items:center;

  padding:6px 10px;
  border-radius: 12px;

  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);

  font-size:12px;
  font-weight:1000;
  text-decoration:none;
}
.chip:hover{
  border-color: rgba(87,179,255,.22);
  background: rgba(87,179,255,.06);
}

/* dots */
.dot{width:10px;height:10px;border-radius:999px;display:inline-block;flex:0 0 auto}
.dot.online{background: rgba(46,230,183,.92); box-shadow: 0 0 0 6px rgba(46,230,183,.10)}

.pill{
  display:inline-flex;
  padding:5px 9px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  font-size:12px;
  font-weight:1000;
  margin-right:6px;
}

/* ==========================================================
   LOGIN: sleek, centered, blueprint vibe
   ========================================================== */
.login-center{
  min-height: calc(65vh - 110px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}

.login-card{
  width: 420px;
  max-width: 100%;
  text-align:center;

  padding: 34px 30px;
  border-radius: 20px;

  border:1px solid rgba(255,255,255,.10);
  background: rgba(11,14,22,.92);
  box-shadow: 0 26px 70px rgba(0,0,0,.65);
}

.login-card h1{margin:14px 0 6px 0; font-size:28px; letter-spacing:.2px}
.login-card p{margin:0 0 24px 0; color:var(--muted); font-size:14px}

.login-logo{display:flex; justify-content:center; margin-bottom:10px}

.discord-icon{
  width: 78px;
  height: 78px;
  border-radius: 18px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(88,101,242,.18);
  border: 1px solid rgba(88,101,242,.35);
}
.discord-icon img{width:44px;height:44px;filter:brightness(0) invert(1);pointer-events:none}

.discord-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  width:100%;
  padding:14px 18px;

  font-size:15px;
  font-weight:1000;
  letter-spacing:.2px;

  border-radius: 14px;
  color: rgba(238,244,255,.98);

  background: rgba(88,101,242,.20);
  border:1px solid rgba(88,101,242,.40);

  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  transition: transform .10s ease, box-shadow .10s ease, background .10s ease;
}
.discord-btn:hover{
  transform: translateY(-1px);
  background: rgba(88,101,242,.26);
  box-shadow: 0 18px 38px rgba(0,0,0,.45);
}
.discord-btn:active{transform: translateY(0);}

/* ==========================================================
   PROFILE + COMMENTS (kept but restyled)
   ========================================================== */
.profile-head{display:flex; gap:16px; align-items:center;}
.profile-meta{color:var(--muted); font-size:13px; margin-top:4px;}

.profile-bio{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.profile-bio .bio-title{
  font-weight:1100;
  font-size:12px;
  letter-spacing:.8px;
  text-transform:uppercase;
  color: rgba(238,244,255,.70);
  margin-bottom:8px;
}
.profile-bio .bio-text{
  margin-top: 12px;
  margin-bottom: 3px;
  line-height:1.6;
  font-size:14px;
}

.pcomment-form{
  margin-top:4px;
  padding:12px 0 0 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.pcomment-form label{margin-top:0;}
.pcomment-form textarea{resize: vertical; min-height:110px; max-height:260px;}
.pcomment-form .btn.primary{padding:10px 14px; border-radius:12px; font-size:13px;}

.pcomments{display:flex; flex-direction:column; gap:10px; margin-top:14px;}

.pcomment{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.pcomment-top{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:8px;}
.pcomment-user{display:flex; align-items:center; gap:10px; min-width:0;}
.pcomment-user .name{
  font-weight:1100; line-height:1.1; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pcomment-meta{margin-top:2px; color:var(--muted); font-size:12px; line-height:1.2;}
.pcomment-actions{display:flex; align-items:center; gap:8px; flex:0 0 auto; white-space:nowrap;}
.pcomment-body{white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; font-size:14px;}

.avatar-xs{
  width:28px;height:28px;border-radius:10px; overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  flex:0 0 auto;
}
.avatar-xs img{width:100%;height:100%;object-fit:cover;display:block;}

/* delete: icon button keeps working */
.btn.tiny{
  padding:6px 10px;
  border-radius: 12px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.2px;
  box-shadow:none;
  transform:none;
}
.btn.tiny:hover{transform:none;}
.btn.danger.tiny{border-color: rgba(255,91,122,.32); background: rgba(255,91,122,.12); color:#ffd0da;}

.icon-delete{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:32px;
  height:32px;

  border-radius: 12px;
  border:1px solid rgba(255,91,122,.30);
  background: rgba(255,91,122,.10);

  cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .06s ease, box-shadow .12s ease;
}
.icon-delete svg{fill:#ffc1cd;}
.icon-delete:hover{
  background: rgba(255,91,122,.16);
  border-color: rgba(255,91,122,.45);
  box-shadow: 0 0 0 4px rgba(255,91,122,.10);
}
.icon-delete:active{transform: scale(.95);}

/* ==========================================================
   MEMBERS PAGE (members.php)
   ========================================================== */

.members-top{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.searchbar{
  display:flex;
  gap:10px;
  align-items:center;
  width:min(520px, 100%);
  padding:10px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.10);

  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.searchbar input{
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  color: var(--text);
  font-size:14px;
  padding:4px 0;
}

.searchbar input::placeholder{
  color: rgba(154,167,194,.75);
}

.members-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width:760px){
  .members-grid{ grid-template-columns:1fr; }
}

.member-card{
  display:flex;
  gap:12px;
  align-items:center;

  padding:12px;
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,12,18,.70);

  box-shadow: 0 14px 28px rgba(0,0,0,.35);

  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.member-card:hover{
  transform: translateY(-2px);
  border-color: rgba(87,179,255,.26);
  background: rgba(87,179,255,.04);
  box-shadow: 0 18px 34px rgba(0,0,0,.45);
}

.member-avatar{
  width:44px;
  height:44px;
  border-radius: 12px;
  overflow:hidden;
  flex:0 0 auto;

  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.member-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.member-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.member-name{
  font-weight: 1150;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.member-sub{
  color: var(--muted);
  font-size:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Pagination */
.pager{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  margin-top:16px;
  flex-wrap:wrap;
}

.pager .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 8px 10px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(238,244,255,.92);

  font-size: 12px;
  font-weight: 1100;
  letter-spacing: .25px;
  text-decoration:none;

  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.pager .pill:hover{
  transform: translateY(-1px);
  border-color: rgba(87,179,255,.26);
  background: rgba(87,179,255,.06);
  box-shadow: 0 0 0 4px rgba(87,179,255,.10);
}

.pager .pill:active{ transform: translateY(0); }

.pager .pill.disabled{
  opacity:.5;
  pointer-events:none;
}

.pager .pill.active{
  border-color: rgba(87,179,255,.38);
  background: rgba(87,179,255,.10);
  box-shadow: 0 0 0 4px rgba(87,179,255,.08);
  font-weight: 1200;
}