:root {
  --bg: #07120d;
  --bg-soft: #0b1a12;
  --surface: #102218;
  --surface-2: #153020;
  --surface-3: #1a3a27;
  --text: #f3fbf6;
  --text-soft: #d3e3d8;
  --muted: #8da89a;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --accent: #32c26d;
  --accent-soft: rgba(50,194,109,.13);
  --accent-strong: #67db96;
  --success: #45c987;
  --warning: #f5bd61;
  --danger: #ef6b7d;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% -10%, rgba(50,194,109,.11), transparent 34rem),
    linear-gradient(180deg, #08150f 0%, #06110c 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.wrap, .container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.wrap { padding: 22px 0 70px; }

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px 12px 10px 16px;
  margin-bottom: 26px;
  background: rgba(10,27,18,.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.23);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; }
.logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.logo img { width: 48px; height: 48px; object-fit: contain; }
.brand b { font-size: 16px; letter-spacing: .01em; }
.brand span { color: var(--muted) !important; font-size: 11px !important; font-weight: 650 !important; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { color: #fff; background: rgba(255,255,255,.055); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  color: #07140c;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.btn.primary:hover { color: #07140c; background: #8be8ad; border-color: #8be8ad; }
.btn.danger { color: #ffb7c1; border-color: rgba(239,107,125,.25); background: rgba(239,107,125,.08); }
.btn.warn { color: #ffd89a; border-color: rgba(245,189,97,.26); background: rgba(245,189,97,.08); }
.btn.small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.btn.icon { min-width: 40px; padding-inline: 11px; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16,34,24,.94), rgba(12,29,20,.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.card + .card { margin-top: 18px; }
.card .hd, .section-title {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card .body { padding: 18px; }
.badge, .pill, .small-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 8px;
  color: #afe2c0;
  background: rgba(50,194,109,.09);
  border: 1px solid rgba(50,194,109,.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 250px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,24,15,.96) 0%, rgba(10,31,19,.86) 60%, rgba(10,31,19,.4) 100%),
    url("vantor-bg.png") center 38% / cover no-repeat;
}
.hero::after {
  position: absolute;
  right: 26px;
  bottom: -15px;
  color: rgba(255,255,255,.035);
  font-size: clamp(58px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: -.06em;
  pointer-events: none;
}
.hero h1 { max-width: 620px; margin: 0 0 12px; font-size: clamp(30px, 5vw, 50px); line-height: 1.03; letter-spacing: -.04em; }
.hero p { max-width: 650px; margin: 0; color: #c0ccda; font-size: 15px; line-height: 1.75; }
.cta, .toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hero .cta { margin-top: 23px; }

.section-title { background: rgba(255,255,255,.018); }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board {
  position: relative;
  min-height: 168px;
  padding: 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .16s ease;
}
.board:nth-child(2n) { border-right: 0; }
.board:hover { background: rgba(50,194,109,.045); }
.board::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: transparent;
  transition: background .16s ease;
}
.board:hover::before { background: var(--accent); }
.board-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.board h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.3; }
.board p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.board-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 15px; }
.meta { color: var(--muted); font-size: 12px; line-height: 1.55; }
.meta b { color: var(--text-soft); font-weight: 700; }

.list { display: flex; flex-direction: column; }
.list-row, .list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:first-child, .list-item:first-child { padding-top: 0; }
.list-row:last-child, .list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-row:hover .row-title { color: var(--accent-strong); }
.row-left { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-right { flex: 0 0 auto; display: flex; align-items: center; }
.row-title { overflow: hidden; color: var(--text-soft); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.row-sub { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5f6b7a; }
.dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(69,201,154,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 7px 9px; color: var(--text-soft); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.chip:hover { border-color: rgba(50,194,109,.3); color: #fff; }
.empty-note { padding: 14px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 13px; line-height: 1.55; }
.stats { display: flex; flex-direction: column; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.stat-row:first-child { padding-top: 0; }
.stat-row:last-child { padding-bottom: 0; border-bottom: 0; }
.stat-row b { color: var(--text); font-size: 13px; }

.status { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status.godkand { color: #8de3c2; background: rgba(69,201,154,.1); border: 1px solid rgba(69,201,154,.2); }
.status.intervju { color: #ffda9b; background: rgba(245,189,97,.1); border: 1px solid rgba(245,189,97,.2); }
.status.nekad { color: #ffabb7; background: rgba(239,107,125,.1); border: 1px solid rgba(239,107,125,.2); }

.page-title { margin: 0; color: var(--text); font-size: 24px; letter-spacing: -.025em; }
.page-sub { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

label { display: block; margin: 16px 0 7px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  color: var(--text);
  background: #09180f;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  padding: 11px 12px;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: rgba(50,194,109,.65); box-shadow: 0 0 0 3px rgba(50,194,109,.1); }
input:disabled { color: var(--muted); background: rgba(255,255,255,.025); }
select option { background: #0b1b12; }
.error { padding: 11px 13px; margin-bottom: 12px; color: #ffc0c8; background: rgba(239,107,125,.08); border: 1px solid rgba(239,107,125,.2); border-radius: 9px; font-size: 13px; }

.thread-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.thread-row:last-child { border-bottom: 0; }
.thread-title { min-width: 0; color: var(--text); font-size: 15px; font-weight: 760; }
.thread-title a:hover { color: var(--accent-strong); }
.thread-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.thread-right { display: flex; align-items: center; gap: 7px; }
.thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.thread-badges, .thread-actions, .modbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modbar select { width: auto; min-width: 140px; }

.post-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 14px;
  background: rgba(255,255,255,.018);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.post-left { padding: 18px; background: rgba(255,255,255,.025); border-right: 1px solid var(--line); }
.post-right { min-width: 0; }
.post-topbar { display: flex; justify-content: space-between; gap: 14px; padding: 11px 15px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }
.post-body { min-height: 130px; padding: 20px; color: var(--text-soft); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.post-number { color: var(--muted); font-weight: 700; }
.avatar-lg, .avatar-xs, .member-avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #09180f;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.avatar-lg { width: 72px; height: 72px; margin-bottom: 12px; }
.avatar-xs { width: 38px; height: 38px; border-radius: 9px; }
.avatar-lg img, .avatar-xs img, .member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.userbox-name { font-size: 14px; font-weight: 800; }
.userbox-meta { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.65; }

.profile-head { display: flex; align-items: flex-start; gap: 18px; }
.profile-meta { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.profile-bio { margin-top: 14px; padding: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; }
.bio-title { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bio-text { color: var(--text-soft); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.pcomments { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pcomment { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.pcomment-top { display: flex; justify-content: space-between; gap: 14px; }
.pcomment-user { display: flex; gap: 10px; min-width: 0; }
.pcomment-meta { color: var(--muted); font-size: 11px; }
.pcomment-body { margin-top: 12px; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.icon-delete { width: 32px; height: 32px; display: grid; place-items: center; color: #ff9fac; background: transparent; border: 1px solid rgba(239,107,125,.2); border-radius: 8px; }

.members-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.searchbar { display: flex; gap: 8px; width: min(100%, 360px); }
.members-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.member-card { display: flex; align-items: center; gap: 12px; padding: 13px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; }
.member-card:hover { border-color: rgba(50,194,109,.28); }
.member-avatar { width: 46px; height: 46px; border-radius: 10px; }
.member-meta { min-width: 0; }
.member-name { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.member-sub { margin-top: 3px; color: var(--muted); font-size: 11px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 20px; }
.pager .active { color: #07140c; background: var(--accent-strong); }
.pager .disabled { opacity: .35; pointer-events: none; }

.login-center { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 30px 0; }
.login-card { width: min(100%, 430px); padding: 34px; text-align: center; background: linear-gradient(180deg, rgba(16,34,24,.98), rgba(10,27,18,.98)); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.login-logo { display: grid; place-items: center; margin-bottom: 18px; }
.discord-icon { width: 62px; height: 62px; display: grid; place-items: center; background: rgba(88,101,242,.12); border: 1px solid rgba(88,101,242,.24); border-radius: 15px; }
.discord-icon img, .discord-icon svg { width: 30px; height: 30px; }
.login-card h1 { margin: 0 0 8px; font-size: 28px; }
.login-card p { color: var(--muted); line-height: 1.65; }
.discord-btn { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; color: #fff; background: #5865f2; border: 0; border-radius: 10px; font-weight: 800; }
.discord-btn:hover { background: #6874f5; }
.discord-btn-icon { width: 20px; height: 20px; }

.donate-shell { width: 100%; }
.qr-container { padding: 14px; background: #fff; border-radius: 12px; }
.swish-brand { margin-top: 9px; display: flex; justify-content: center; }
.swish-brand img { max-height: 28px; }
.quick-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-label { color: var(--muted); font-size: 12px; }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { width: min(760px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; background: #102218; border: 1px solid var(--line-strong); border-radius: 13px; box-shadow: var(--shadow); }
.cookie-text b { font-size: 13px; }
.cookie-sub { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cookie-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

body { opacity: 1; transition: opacity .16s ease; }
body.is-leaving { opacity: 0; }
.has-motion .card, .has-motion .topbar { opacity: 0; transform: translateY(5px); }
.has-motion body.is-ready .card, .has-motion body.is-ready .topbar { opacity: 1; transform: none; transition: opacity .24s ease, transform .24s ease; }

@media (max-width: 940px) {
  .grid { grid-template-columns: 1fr; }
  .grid > aside { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .board-grid { grid-template-columns: 1fr; }
  .board { border-right: 0; }
}

@media (max-width: 680px) {
  .wrap, .container { width: min(100% - 20px, 1180px); }
  .wrap { padding-top: 10px; }
  .topbar { top: 8px; align-items: flex-start; gap: 10px; padding: 10px; margin-bottom: 14px; }
  .brand { padding-top: 2px; }
  .brand > div:last-child { display: none; }
  .logo, .logo img { width: 42px; height: 42px; }
  .nav { gap: 4px; }
  .nav .btn { min-height: 36px; padding: 8px 9px; font-size: 11px; }
  .hero { min-height: 230px; padding: 26px 20px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 13px; }
  .card .body, .section-title, .card .hd { padding-left: 14px; padding-right: 14px; }
  .board { padding: 16px 14px; }
  .grid > aside { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .members-top { align-items: stretch; flex-direction: column; }
  .searchbar { width: 100%; }
  .thread-head { flex-direction: column; }
  .thread-row { grid-template-columns: 1fr; gap: 9px; }
  .post-wrap { grid-template-columns: 1fr; }
  .post-left { display: flex; align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-left .avatar-lg { width: 52px; height: 52px; margin: 0; }
  .profile-head { flex-direction: column; }
  .cookie-inner { align-items: stretch; flex-direction: column; }
  .cookie-actions { justify-content: flex-end; flex-wrap: wrap; }
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.admin-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .028),
      rgba(255, 255, 255, .012)
    );
  border: 1px solid var(--line);
  border-radius: 14px;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.admin-member-card:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 211, 140, .27);
  background:
    linear-gradient(
      135deg,
      rgba(72, 211, 140, .045),
      rgba(255, 255, 255, .014)
    );
}

.admin-member-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-member-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .2);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}

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

.admin-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-member-info {
  min-width: 0;
}

.admin-member-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-member-name {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-member-name:hover {
  color: var(--accent-strong);
}

.admin-you-badge {
  padding: 3px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-role-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: #a9e8c9;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.admin-role-badge.role-agare {
  color: #ffd783;
  background: rgba(245, 189, 97, .09);
  border-color: rgba(245, 189, 97, .23);
}

.admin-role-badge.role-delagare {
  color: #e6b4ff;
  background: rgba(192, 107, 255, .09);
  border-color: rgba(192, 107, 255, .22);
}

.admin-role-badge.role-admin {
  color: #ffabb7;
  background: rgba(239, 107, 125, .09);
  border-color: rgba(239, 107, 125, .22);
}

.admin-role-badge.role-ledning {
  color: #93c9ff;
  background: rgba(76, 167, 255, .09);
  border-color: rgba(76, 167, 255, .22);
}

.admin-role-badge.role-head-mod {
  color: #ffcf92;
  background: rgba(245, 157, 71, .08);
  border-color: rgba(245, 157, 71, .2);
}

.admin-member-details {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.admin-member-details span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.admin-member-details small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.admin-member-actions {
  flex: 0 0 auto;
  min-width: 300px;
}

.admin-role-form {
  margin: 0;
}

.admin-role-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-role-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-role-controls select {
  min-width: 155px;
  margin: 0;
}

.admin-protected-role {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .022);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-protected-role b {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

.admin-protected-role small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.admin-lock-icon {
  color: var(--muted);
  font-size: 9px;
}

.admin-empty-search {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 30px;
  text-align: left;
  background: rgba(255, 255, 255, .018);
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
}

.admin-empty-search b {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
}

.admin-empty-search p {
  max-width: 430px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 12px;
  font-size: 22px;
}

@media (max-width: 820px) {
  .admin-member-card {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .admin-member-actions {
    min-width: 0;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }

  .admin-role-controls {
    width: 100%;
  }

  .admin-role-controls select {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .admin-member-card {
    padding: 14px;
  }

  .admin-member-profile {
    align-items: flex-start;
  }

  .admin-member-avatar {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 12px;
  }

  .admin-member-details {
    gap: 10px;
  }

  .admin-role-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-role-controls .btn {
    width: 100%;
  }

  .admin-empty-search {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.admin-dashboard-card {
  margin-top: 0 !important;
}

.admin-activity-list,
.admin-new-member-list,
.admin-role-history {
  display: flex;
  flex-direction: column;
}

.admin-activity-item,
.admin-new-member {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition:
    background .16s ease,
    padding .16s ease;
}

.admin-activity-item:first-child,
.admin-new-member:first-child {
  padding-top: 0;
}

.admin-activity-item:last-child,
.admin-new-member:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-activity-item:hover,
.admin-new-member:hover {
  padding-left: 6px;
}

.admin-dashboard-avatar {
  position: relative;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  overflow: visible;
  display: grid;
  place-items: center;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .2);
  border-radius: 11px;
}

.admin-dashboard-avatar.large {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 13px;
}

.admin-dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  border-radius: inherit;
}

.admin-dashboard-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 850;
}

.admin-online-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  background: var(--success);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(69, 201, 154, .1);
}

.admin-activity-content,
.admin-new-member-content {
  min-width: 0;
  flex: 1;
}

.admin-activity-heading,
.admin-new-member-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.admin-activity-heading b,
.admin-new-member-heading b {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-activity-text,
.admin-new-member-date {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.admin-new-member-content small {
  display: block;
  margin-top: 3px;
  color: rgba(141, 155, 176, .7);
  font-size: 9px;
}

.admin-mini-role {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  color: #a9e8c9;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .17);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.admin-mini-role.role-agare {
  color: #ffd783;
  background: rgba(245, 189, 97, .09);
  border-color: rgba(245, 189, 97, .22);
}

.admin-mini-role.role-delagare {
  color: #e5b5ff;
  background: rgba(192, 107, 255, .09);
  border-color: rgba(192, 107, 255, .22);
}

.admin-mini-role.role-admin {
  color: #ffabb7;
  background: rgba(239, 107, 125, .09);
  border-color: rgba(239, 107, 125, .22);
}

.admin-mini-role.role-ledning {
  color: #93c9ff;
  background: rgba(76, 167, 255, .09);
  border-color: rgba(76, 167, 255, .22);
}

.admin-list-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 21px;
  transition:
    color .16s ease,
    transform .16s ease;
}

.admin-activity-item:hover .admin-list-arrow,
.admin-new-member:hover .admin-list-arrow {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.admin-dashboard-empty {
  padding: 30px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, .018);
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  text-align: center;
  font-size: 12px;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.admin-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .028),
      rgba(255, 255, 255, .012)
    );
  border: 1px solid var(--line);
  border-radius: 14px;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.admin-member-card:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 211, 140, .27);
  background:
    linear-gradient(
      135deg,
      rgba(72, 211, 140, .045),
      rgba(255, 255, 255, .014)
    );
}

.admin-member-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-member-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .2);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}

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

.admin-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-member-info {
  min-width: 0;
}

.admin-member-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-member-name {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-member-name:hover {
  color: var(--accent-strong);
}

.admin-you-badge {
  padding: 3px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-role-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: #a9e8c9;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.admin-member-details {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.admin-member-details span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.admin-member-details small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.admin-member-actions {
  flex: 0 0 auto;
  min-width: 300px;
}

.admin-role-form {
  margin: 0;
}

.admin-role-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-role-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-role-controls select {
  min-width: 155px;
  margin: 0;
}

.admin-protected-role {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .022);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-protected-role b {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

.admin-protected-role small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.admin-lock-icon {
  color: var(--muted);
  font-size: 9px;
}

.admin-empty-search {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 30px;
  text-align: left;
  background: rgba(255, 255, 255, .018);
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
}

.admin-empty-search b {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
}

.admin-empty-search p {
  max-width: 430px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 12px;
  font-size: 22px;
}

.admin-history-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.admin-history-item:first-child {
  padding-top: 0;
}

.admin-history-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-history-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  color: var(--accent-strong);
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 9px;
}

.admin-history-content {
  min-width: 0;
  flex: 1;
}

.admin-history-title {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.admin-history-title b {
  color: var(--text-soft);
}

.admin-history-roles {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}

.admin-history-arrow {
  color: var(--muted);
}

.admin-history-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 900px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-member-card {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .admin-member-actions {
    min-width: 0;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }

  .admin-role-controls {
    width: 100%;
  }

  .admin-role-controls select {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .admin-history-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-history-date {
    width: 100%;
    padding-left: 49px;
  }

  .admin-member-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 520px) {
  .admin-member-card {
    padding: 14px;
  }

  .admin-member-profile {
    align-items: flex-start;
  }

  .admin-member-avatar {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 12px;
  }

  .admin-role-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-role-controls .btn {
    width: 100%;
  }

  .admin-empty-search {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.profile-main,
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
}

.profile-cover {
  height: 138px;
  background:
    radial-gradient(circle at 16% 20%, rgba(78, 213, 142, .22), transparent 28rem),
    linear-gradient(115deg, rgba(32, 105, 70, .76), rgba(10, 35, 26, .94));
  border-bottom: 1px solid var(--line);
}

.profile-hero-body {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 26px 24px;
}

.profile-avatar-wrap {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  margin-top: -56px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .28);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.profile-identity {
  min-width: 0;
  flex: 1;
  padding-top: 19px;
}

.profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.profile-title-row h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.profile-owner-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(72, 211, 140, .22);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.profile-role-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: #a8e8c7;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .19);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.profile-role-badge.role-agare,
.profile-role-dot.role-agare { color: #ffd783; background-color: #d8a84c; }
.profile-role-badge.role-delagare,
.profile-role-dot.role-delagare { color: #e7baff; background-color: #b871db; }
.profile-role-badge.role-admin,
.profile-role-dot.role-admin { color: #ffadb9; background-color: #e56c7e; }
.profile-role-badge.role-ledning,
.profile-role-dot.role-ledning { color: #9bcfff; background-color: #58a8ef; }
.profile-role-badge.role-head-mod,
.profile-role-dot.role-head-mod { color: #ffd09b; background-color: #e99b4a; }
.profile-role-badge.role-mod,
.profile-role-dot.role-mod { color: #b6d7ff; background-color: #6f9ed5; }
.profile-role-badge.role-helper,
.profile-role-dot.role-helper { color: #a9e8c9; background-color: #48c98d; }
.profile-role-badge.role-medlemskapsansvarig,
.profile-role-dot.role-medlemskapsansvarig { color: #f0c5ff; background-color: #b57acb; }
.profile-role-badge.role-user,
.profile-role-dot.role-user { color: var(--text-soft); background-color: #7c899a; }

.profile-role-badge.role-agare,
.profile-role-badge.role-delagare,
.profile-role-badge.role-admin,
.profile-role-badge.role-ledning,
.profile-role-badge.role-head-mod,
.profile-role-badge.role-mod,
.profile-role-badge.role-helper,
.profile-role-badge.role-medlemskapsansvarig,
.profile-role-badge.role-user {
  background: color-mix(in srgb, currentColor 9%, transparent);
  border-color: color-mix(in srgb, currentColor 22%, transparent);
}

.profile-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.profile-meta-row span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.profile-meta-row b {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .014);
}

.profile-stat {
  padding: 17px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.profile-stat:last-child { border-right: 0; }
.profile-stat b { display: block; color: var(--text); font-size: 20px; }
.profile-stat span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; }

.profile-bio-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.profile-login-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.profile-login-note b { display: block; font-size: 13px; }
.profile-login-note span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.profile-comment-form {
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-comment-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.profile-comment-submit span { color: var(--muted); font-size: 10px; }
.profile-comment-list { display: flex; flex-direction: column; gap: 11px; }

.profile-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  background: rgba(255, 255, 255, .018);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.profile-comment-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}

.profile-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-comment-content { min-width: 0; flex: 1; }
.profile-comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-comment-author { color: var(--text); font-size: 13px; font-weight: 800; }
.profile-comment-author:hover { color: var(--accent-strong); }
.profile-comment-head time { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-comment-delete-form { margin: 0; }
.profile-comment-body { margin-top: 11px; color: var(--text-soft); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

.profile-role-panel { display: flex; flex-direction: column; }
.profile-role-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile-role-row:first-child { padding-top: 0; }
.profile-role-row:last-child { padding-bottom: 0; border-bottom: 0; }
.profile-role-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.profile-role-row b { display: block; color: var(--text-soft); font-size: 12px; }
.profile-role-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

.profile-side-list,
.profile-activity-list { display: flex; flex-direction: column; }
.profile-side-item { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); }
.profile-side-item:first-child { padding-top: 0; }
.profile-side-item:last-child { padding-bottom: 0; border-bottom: 0; }
.profile-side-item b { display: block; color: var(--text-soft); font-size: 12px; line-height: 1.4; }
.profile-side-item:hover b { color: var(--accent-strong); }
.profile-side-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }

.profile-activity-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.profile-activity-item:first-child { padding-top: 0; }
.profile-activity-item:last-child { padding-bottom: 0; border-bottom: 0; }
.profile-activity-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 8px; font-size: 11px; }
.profile-activity-item div { min-width: 0; }
.profile-activity-item b { display: block; color: var(--text-soft); font-size: 11px; line-height: 1.4; }
.profile-activity-item:hover b { color: var(--accent-strong); }
.profile-activity-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.profile-activity-item time { display: block; margin-top: 4px; color: rgba(141, 155, 176, .7); font-size: 8px; }

@media (max-width: 980px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-sidebar .card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .profile-cover { height: 110px; }
  .profile-hero-body { flex-direction: column; gap: 12px; padding: 0 18px 20px; }
  .profile-avatar-wrap { width: 104px; height: 104px; flex-basis: 104px; margin-top: -45px; border-radius: 20px; }
  .profile-avatar-image { border-radius: 16px; }
  .profile-identity { padding-top: 0; }
  .profile-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .profile-meta-row { flex-direction: column; gap: 10px; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stat:nth-child(2) { border-right: 0; }
  .profile-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-sidebar { grid-template-columns: 1fr; }
  .profile-sidebar .card:first-child { grid-column: auto; }
  .profile-login-note { align-items: stretch; flex-direction: column; }
  .profile-comment-submit { align-items: stretch; flex-direction: column; }
  .profile-comment-submit .btn { width: 100%; }
}

/* =========================================================
   Ny startsida med stöd för flera roller
   ========================================================= */

.home-layout {
  align-items: start;
}

.home-main,
.home-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 42px;
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  width: min(100%, 360px);
}

.home-hero-stats > div {
  padding: 15px;
  background: rgba(7, 20, 14, .72);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.home-hero-stats b,
.home-hero-stats span {
  display: block;
}

.home-hero-stats b {
  color: var(--text);
  font-size: 21px;
  line-height: 1;
}

.home-hero-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-section-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
}

.home-board-grid {
  grid-template-columns: 1fr;
}

.home-board {
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 18px;
  border-right: 0;
}

.home-board::before {
  display: none;
}

.home-board:hover {
  background: rgba(64, 201, 119, .035);
}

.home-board-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;
  transition: transform .16s ease, background .16s ease;
}

.home-board:hover .home-board-icon {
  transform: translateY(-2px);
  background: rgba(72, 211, 140, .14);
}

.home-board-content {
  min-width: 0;
  flex: 1;
}

.home-board-heading {
  min-width: 0;
}

.home-board-meta {
  margin-top: 14px;
}

.home-board-meta > span:not(.status) {
  color: var(--muted);
  font-size: 11px;
}

.home-board-meta b {
  color: var(--text-soft);
}

.home-board-latest {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.home-latest-label {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-board-latest div {
  min-width: 0;
}

.home-board-latest b,
.home-board-latest small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-board-latest b {
  color: var(--text-soft);
  font-size: 11px;
}

.home-board-latest small,
.home-no-thread {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.home-side-card {
  margin-top: 0 !important;
}

.home-staff-list,
.home-latest-threads {
  display: flex;
  flex-direction: column;
}

.home-staff-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.home-staff-item:first-child {
  padding-top: 0;
}

.home-staff-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-person-avatar,
.home-member-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
  background: var(--accent-soft);
  border: 1px solid rgba(72, 211, 140, .18);
}

.home-person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.home-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.home-person-avatar img,
.home-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.home-avatar-fallback {
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 850;
}

.home-online-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(69, 201, 154, .08);
}

.home-person-info {
  min-width: 0;
  flex: 1;
}

.home-person-info > b {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.home-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 6px;
  color: #a9e8c9;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .17);
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.home-role-badge.role-agare {
  color: #ffd783;
  background: rgba(245, 189, 97, .09);
  border-color: rgba(245, 189, 97, .22);
}

.home-role-badge.role-delagare {
  color: #e7baff;
  background: rgba(192, 107, 255, .09);
  border-color: rgba(192, 107, 255, .22);
}

.home-role-badge.role-admin {
  color: #ffabb7;
  background: rgba(239, 107, 125, .09);
  border-color: rgba(239, 107, 125, .22);
}

.home-role-badge.role-ledning {
  color: #9bcfff;
  background: rgba(76, 167, 255, .09);
  border-color: rgba(76, 167, 255, .22);
}

.home-role-badge.role-head-mod {
  color: #ffd19c;
  background: rgba(245, 157, 71, .09);
  border-color: rgba(245, 157, 71, .21);
}

.home-role-badge.role-mod,
.home-role-badge.role-helper {
  color: #b8efce;
}

.home-role-badge.role-medlemskapsansvarig {
  color: #e0d4ff;
  background: rgba(148, 115, 255, .08);
  border-color: rgba(148, 115, 255, .2);
}

.home-row-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 20px;
  transition: color .16s ease, transform .16s ease;
}

.home-staff-item:hover .home-row-arrow,
.home-latest-member:hover .home-row-arrow {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.home-online-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.home-online-member {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.home-online-member:hover {
  border-color: rgba(72, 211, 140, .22);
  background: rgba(72, 211, 140, .035);
}

.home-online-member > span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-thread-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.home-thread-item:first-child {
  padding-top: 0;
}

.home-thread-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-thread-marker {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.home-thread-content {
  min-width: 0;
  flex: 1;
}

.home-thread-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.home-thread-title-row b {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-thread-content > span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-stat-box {
  padding: 12px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.home-stat-box span,
.home-stat-box b {
  display: block;
}

.home-stat-box span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-stat-box b {
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
}

.home-latest-member {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(72, 211, 140, .17);
  border-radius: 9px;
}

.home-latest-member > span:first-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-latest-member b {
  color: var(--text-soft);
  font-size: 11px;
}

@media (max-width: 1060px) {
  .home-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding: 26px 20px;
  }

  .home-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .home-hero-stats > div {
    padding: 11px;
  }

  .home-board {
    gap: 12px;
    padding: 15px 14px;
  }

  .home-board-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .home-online-members {
    grid-template-columns: 1fr;
  }
}

.board-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.board-main,
.board-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.board-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(72, 211, 140, .11), transparent 28rem),
    linear-gradient(180deg, rgba(18, 31, 48, .97), rgba(12, 24, 38, .98));
}

.board-hero-content {
  padding: 28px;
}

.board-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.board-breadcrumbs a:hover {
  color: var(--accent-strong);
}

.board-hero-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.board-hero-copy {
  min-width: 0;
}

.board-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.board-title-row h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.board-hero-copy p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.board-hero-actions {
  flex: 0 0 auto;
}

.board-access-note {
  display: inline-flex;
  max-width: 260px;
  padding: 11px 13px;
  color: #ffd79c;
  background: rgba(245, 189, 97, .08);
  border: 1px solid rgba(245, 189, 97, .2);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.board-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.board-stat-box {
  padding: 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.board-stat-box span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.board-stat-box b {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 20px;
}

.board-thread-body {
  padding: 0 !important;
}

.board-thread-list {
  display: flex;
  flex-direction: column;
}

.board-thread-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  transition:
    background .16s ease,
    border-color .16s ease;
}

.board-thread-item:last-child {
  border-bottom: 0;
}

.board-thread-item:hover {
  background: rgba(72, 211, 140, .035);
}

.board-thread-avatar,
.board-author-avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 12px;
}

.board-thread-avatar {
  width: 48px;
  height: 48px;
}

.board-thread-avatar img,
.board-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 850;
  text-transform: uppercase;
}

.board-thread-content {
  min-width: 0;
}

.board-thread-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.board-thread-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-thread-title:hover {
  color: var(--accent-strong);
}

.board-thread-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.board-thread-meta a {
  color: var(--text-soft);
  font-weight: 700;
}

.board-thread-meta a:hover {
  color: var(--accent-strong);
}

.board-thread-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.board-thread-replies,
.board-thread-last {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.board-thread-replies {
  min-width: 48px;
  text-align: center;
}

.board-thread-replies b {
  color: var(--text);
  font-size: 15px;
}

.board-thread-replies span,
.board-thread-last span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.board-thread-last {
  min-width: 112px;
}

.board-thread-last b {
  color: var(--text-soft);
  font-size: 10px;
}

.board-thread-open,
.board-list-arrow {
  color: var(--muted);
  font-size: 22px;
  transition:
    color .16s ease,
    transform .16s ease;
}

.board-thread-item:hover .board-thread-open,
.board-author-item:hover .board-list-arrow {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.board-empty {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  text-align: left;
}

.board-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 13px;
  font-size: 20px;
}

.board-empty b {
  display: block;
  color: var(--text-soft);
}

.board-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.board-info-list {
  display: flex;
  flex-direction: column;
}

.board-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.board-info-row:first-child {
  padding-top: 0;
}

.board-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.board-info-row span {
  color: var(--muted);
  font-size: 11px;
}

.board-info-row b {
  color: var(--text-soft);
  font-size: 11px;
  text-align: right;
}

.board-author-list {
  display: flex;
  flex-direction: column;
}

.board-author-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.board-author-item:first-child {
  padding-top: 0;
}

.board-author-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.board-author-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
}

.board-author-content {
  min-width: 0;
  flex: 1;
}

.board-author-content b,
.board-author-content span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-author-content b {
  color: var(--text-soft);
  font-size: 12px;
}

.board-author-content span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.board-tip + .board-tip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.board-tip b {
  color: var(--text-soft);
  font-size: 12px;
}

.board-tip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .board-page-grid {
    grid-template-columns: 1fr;
  }

  .board-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .board-hero-row {
    flex-direction: column;
  }

  .board-hero-actions {
    width: 100%;
  }

  .board-hero-actions .btn,
  .board-access-note {
    width: 100%;
    justify-content: center;
  }

  .board-thread-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .board-thread-avatar {
    width: 42px;
    height: 42px;
  }

  .board-thread-side {
    grid-column: 2;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .board-hero-content {
    padding: 21px 17px;
  }

  .board-stats-row {
    grid-template-columns: 1fr;
  }

  .board-sidebar {
    grid-template-columns: 1fr;
  }

  .board-thread-item {
    padding: 14px;
  }

  .board-thread-last {
    display: none;
  }
}

.thread-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.thread-hero-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(72, 211, 140, .12), transparent 28rem),
    linear-gradient(180deg, rgba(18, 31, 48, .98), rgba(12, 24, 38, .98));
}

.thread-hero {
  padding: 28px;
}

.thread-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.thread-breadcrumbs a:hover {
  color: var(--accent-strong);
}

.thread-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.thread-hero-copy {
  min-width: 0;
}

.thread-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.thread-title-line h1 {
  width: 100%;
  margin: 0 0 4px;
  color: var(--text);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.thread-lock-state {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.thread-lock-state.open {
  color: #96e4c2;
  background: rgba(69, 201, 154, .09);
  border: 1px solid rgba(69, 201, 154, .2);
}

.thread-lock-state.locked {
  color: #ffb6bf;
  background: rgba(239, 107, 125, .09);
  border: 1px solid rgba(239, 107, 125, .2);
}

.thread-author-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
}

.thread-author-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.thread-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-author-line > div {
  min-width: 0;
}

.thread-author-line span,
.thread-author-line small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.thread-author-line a {
  display: inline-block;
  margin: 2px 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.thread-author-line a:hover {
  color: var(--accent-strong);
}

.thread-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 9px;
  flex: 0 0 auto;
}

.thread-hero-stats > div {
  padding: 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: center;
}

.thread-hero-stats b,
.thread-hero-stats span {
  display: block;
}

.thread-hero-stats b {
  color: var(--text);
  font-size: 19px;
}

.thread-hero-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.thread-admin-panel {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.thread-admin-heading {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.thread-admin-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.thread-admin-form select {
  width: auto;
  min-width: 150px;
}

.thread-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thread-post {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
}

.thread-post-user {
  padding: 20px;
  background: rgba(255, 255, 255, .022);
  border-right: 1px solid var(--line);
  text-align: center;
}

.thread-post-avatar {
  width: 82px;
  height: 82px;
  display: block;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

.thread-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-post-username {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-post-username:hover {
  color: var(--accent-strong);
}

.thread-post-roles {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.thread-post-user-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.thread-post-user-stats > div {
  padding: 9px 6px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.thread-post-user-stats span,
.thread-post-user-stats b {
  display: block;
}

.thread-post-user-stats span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.thread-post-user-stats b {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.thread-post-main {
  min-width: 0;
}

.thread-post-header {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.thread-post-header > div:first-child {
  min-width: 0;
}

.thread-post-date,
.thread-post-header small {
  display: block;
}

.thread-post-date {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
}

.thread-post-header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.thread-post-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.thread-post-header-actions form {
  margin: 0;
}

.thread-post-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.thread-post-number:hover {
  color: var(--accent-strong);
}

.thread-delete-post {
  padding: 6px 9px;
  color: #ffabb7;
  background: rgba(239, 107, 125, .07);
  border: 1px solid rgba(239, 107, 125, .18);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
}

.thread-delete-post:hover {
  background: rgba(239, 107, 125, .12);
}

.thread-post-body {
  min-height: 150px;
  padding: 23px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.thread-reply-card .body {
  padding: 20px;
}

.thread-reply-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.thread-reply-state b {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}

.thread-reply-state p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.thread-reply-state.locked {
  justify-content: flex-start;
}

.thread-reply-form label {
  margin-top: 0;
}

.thread-reply-form textarea {
  min-height: 170px;
}

.thread-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

.thread-reply-actions span {
  color: var(--muted);
  font-size: 10px;
}

.thread-footer-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .thread-hero-top {
    flex-direction: column;
  }

  .thread-hero-stats {
    width: 100%;
  }

  .thread-post {
    grid-template-columns: 1fr;
  }

  .thread-post-user {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .thread-post-avatar {
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 13px;
  }

  .thread-post-roles {
    justify-content: flex-start;
  }

  .thread-post-user-stats {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .thread-hero {
    padding: 21px 17px;
  }

  .thread-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .thread-admin-form {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-admin-form select,
  .thread-admin-form .btn {
    width: 100%;
  }

  .thread-post-user {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .thread-post-avatar {
    width: 50px;
    height: 50px;
  }

  .thread-post-user-stats {
    grid-column: 1 / -1;
  }

  .thread-post-header {
    align-items: flex-start;
  }

  .thread-post-body {
    padding: 18px;
  }

  .thread-reply-state,
  .thread-reply-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-reply-state .btn,
  .thread-reply-actions .btn {
    width: 100%;
  }
}

.create-thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.create-thread-main,
.create-thread-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.create-thread-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(72, 211, 140, .12), transparent 28rem),
    linear-gradient(180deg, rgba(18, 31, 48, .98), rgba(12, 24, 38, .98));
}

.create-thread-hero-content {
  padding: 28px;
}

.create-thread-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.create-thread-breadcrumbs a:hover {
  color: var(--accent-strong);
}

.create-thread-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.create-thread-title-row h1 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.create-thread-title-row p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.create-thread-category {
  min-width: 150px;
  padding: 13px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.create-thread-category span,
.create-thread-category b {
  display: block;
}

.create-thread-category span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.create-thread-category b {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 12px;
}

.create-thread-errors {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  color: #ffc0c8;
  background: rgba(239, 107, 125, .08);
  border: 1px solid rgba(239, 107, 125, .2);
  border-radius: 12px;
}

.create-thread-error-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  color: #ffabb7;
  background: rgba(239, 107, 125, .1);
  border: 1px solid rgba(239, 107, 125, .18);
  border-radius: 9px;
  font-weight: 900;
}

.create-thread-errors b {
  display: block;
  font-size: 12px;
}

.create-thread-errors ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #ffb7c1;
  font-size: 11px;
  line-height: 1.6;
}

.create-thread-form-card .body {
  padding: 20px;
}

.create-thread-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.create-thread-field {
  padding: 17px;
  background: rgba(255, 255, 255, .018);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.create-thread-field-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.create-thread-field-head label {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.create-thread-field-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.create-thread-auto-title input:disabled {
  color: var(--text-soft);
  background: rgba(255, 255, 255, .025);
}

.create-thread-question-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.create-thread-question {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: rgba(255, 255, 255, .018);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.create-thread-question-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}

.create-thread-question-content {
  min-width: 0;
}

.create-thread-question-content label {
  margin-top: 0;
}

.required-mark {
  color: #ff9fac;
}

.create-thread-closed {
  padding: 18px;
  color: #ffd79c;
  background: rgba(245, 189, 97, .08);
  border: 1px solid rgba(245, 189, 97, .2);
  border-radius: 11px;
}

.create-thread-closed b {
  display: block;
  font-size: 12px;
}

.create-thread-closed p {
  margin: 5px 0 0;
  color: #e9c996;
  font-size: 11px;
}

.create-thread-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 3px;
}

.create-thread-actions .btn:disabled {
  opacity: .45;
  pointer-events: none;
}

.create-thread-tip-list {
  display: flex;
  flex-direction: column;
}

.create-thread-tip {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.create-thread-tip:first-child {
  padding-top: 0;
}

.create-thread-tip:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.create-thread-tip > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  color: var(--accent-strong);
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
}

.create-thread-tip b {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
}

.create-thread-tip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.create-thread-info-list {
  display: flex;
  flex-direction: column;
}

.create-thread-info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.create-thread-info-list > div:first-child {
  padding-top: 0;
}

.create-thread-info-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.create-thread-info-list span {
  color: var(--muted);
  font-size: 10px;
}

.create-thread-info-list b {
  color: var(--text-soft);
  font-size: 10px;
  text-align: right;
}

@media (max-width: 960px) {
  .create-thread-layout {
    grid-template-columns: 1fr;
  }

  .create-thread-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .create-thread-hero-content {
    padding: 21px 17px;
  }

  .create-thread-title-row {
    flex-direction: column;
  }

  .create-thread-category {
    width: 100%;
  }

  .create-thread-field-head {
    flex-direction: column;
  }

  .create-thread-question {
    grid-template-columns: 1fr;
  }

  .create-thread-sidebar {
    grid-template-columns: 1fr;
  }

  .create-thread-actions {
    flex-direction: column-reverse;
  }

  .create-thread-actions .btn {
    width: 100%;
  }
}

.members-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.members-hero-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(72, 211, 140, .12), transparent 28rem),
    linear-gradient(180deg, rgba(18, 31, 48, .98), rgba(12, 24, 38, .98));
}

.members-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.members-hero-copy h1 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.members-hero-copy p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.members-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 9px;
  flex: 0 0 auto;
}

.members-hero-stats > div {
  padding: 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: center;
}

.members-hero-stats b,
.members-hero-stats span {
  display: block;
}

.members-hero-stats b {
  color: var(--text);
  font-size: 20px;
}

.members-hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.members-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.members-toolbar h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.members-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.members-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 450px);
}

.members-search-form input {
  margin: 0;
}

.members-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.members-modern-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .027),
      rgba(255, 255, 255, .012)
    );
  border: 1px solid var(--line);
  border-radius: 13px;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.members-modern-card:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 211, 140, .28);
  background:
    linear-gradient(
      135deg,
      rgba(72, 211, 140, .045),
      rgba(255, 255, 255, .014)
    );
}

.members-modern-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: visible;
  border-radius: 14px;
}

.members-modern-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
}

.members-status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(69, 201, 154, .1);
}

.members-modern-content {
  min-width: 0;
  flex: 1;
}

.members-modern-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.members-modern-heading h3 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members-card-arrow {
  color: var(--muted);
  font-size: 21px;
  transition:
    color .16s ease,
    transform .16s ease;
}

.members-modern-card:hover .members-card-arrow {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.members-role-list {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.members-modern-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.members-modern-meta span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.members-modern-meta b {
  color: var(--text-soft);
  font-size: 10px;
}

.members-empty {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
}

.members-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: rgba(72, 211, 140, .08);
  border: 1px solid rgba(72, 211, 140, .18);
  border-radius: 13px;
  font-size: 20px;
}

.members-empty b {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}

.members-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.members-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.members-page-link {
  min-width: 35px;
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  transition:
    color .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.members-page-link:hover {
  color: #fff;
  border-color: rgba(72, 211, 140, .28);
  background: rgba(72, 211, 140, .07);
}

.members-page-link.active {
  color: #06140d;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.members-page-link.disabled {
  opacity: .35;
  pointer-events: none;
}

.members-page-dots {
  padding: 0 3px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .members-hero,
  .members-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .members-search-form {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .members-modern-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .members-hero {
    padding: 21px 17px;
  }

  .members-hero-stats {
    width: 100%;
  }

  .members-search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .members-search-form .btn {
    width: 100%;
  }

  .members-modern-card {
    padding: 13px;
  }

  .members-modern-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

/* Ägare: animerat namnsken */
.owner-name-glow {
  position: relative;
  display: inline-block;
  color: #d985ff !important;
  font-weight: 850;
  letter-spacing: .01em;
  background:
    linear-gradient(
      105deg,
      #b85cff 0%,
      #f2b6ff 28%,
      #ffffff 45%,
      #d77cff 58%,
      #9d43ff 100%
    );
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 6px rgba(207, 101, 255, .35),
    0 0 14px rgba(171, 70, 255, .22);
  animation:
    ownerNameShimmer 4.6s ease-in-out infinite,
    ownerNameGlow 2.4s ease-in-out infinite alternate;
  isolation: isolate;
}

.owner-name-glow::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2px;
  height: 1px;
  opacity: .45;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(214, 117, 255, .9),
      transparent
    );
  filter: blur(.3px);
  transform: scaleX(.7);
  animation: ownerUnderlinePulse 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ownerNameShimmer {
  0%,
  18% {
    background-position: 100% 50%;
  }

  55%,
  100% {
    background-position: -120% 50%;
  }
}

@keyframes ownerNameGlow {
  from {
    filter: brightness(.96);
    text-shadow:
      0 0 5px rgba(207, 101, 255, .28),
      0 0 11px rgba(171, 70, 255, .16);
  }

  to {
    filter: brightness(1.12);
    text-shadow:
      0 0 8px rgba(224, 137, 255, .5),
      0 0 19px rgba(171, 70, 255, .3);
  }
}

@keyframes ownerUnderlinePulse {
  from {
    opacity: .24;
    transform: scaleX(.55);
  }

  to {
    opacity: .68;
    transform: scaleX(1);
  }
}

.home-staff-item:hover .owner-name-glow,
.home-online-member:hover .owner-name-glow,
.home-latest-member:hover .owner-name-glow {
  filter: brightness(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .owner-name-glow,
  .owner-name-glow::after {
    animation: none;
  }

  .owner-name-glow {
    background-position: 50% 50%;
  }
}

.my-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.my-page-main,.my-page-sidebar{min-width:0;display:flex;flex-direction:column;gap:18px}.my-hero-card{overflow:hidden}.my-hero-cover{height:92px;background:radial-gradient(circle at 82% 20%,rgba(72,211,140,.22),transparent 22rem),linear-gradient(135deg,rgba(72,211,140,.1),rgba(255,255,255,.015))}.my-hero-content{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:20px;align-items:center;padding:0 24px 24px;margin-top:-42px}.my-avatar-wrap{width:112px;height:112px;padding:4px;background:var(--surface);border:1px solid var(--line-strong);border-radius:23px;box-shadow:0 14px 35px rgba(0,0,0,.24)}.my-avatar-wrap img{width:100%;height:100%;object-fit:cover;border-radius:18px}.my-identity{padding-top:44px}.my-identity h1{margin:8px 0 0;font-size:28px;letter-spacing:-.035em}.my-identity p{margin:9px 0 0;color:var(--muted);font-size:11px}.my-role-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.my-hero-summary{display:grid;grid-template-columns:repeat(2,minmax(90px,1fr));gap:8px;padding-top:44px}.my-hero-summary>div{padding:12px;background:rgba(255,255,255,.025);border:1px solid var(--line);border-radius:11px;text-align:center}.my-hero-summary b,.my-hero-summary span{display:block}.my-hero-summary b{font-size:19px}.my-hero-summary span{margin-top:3px;color:var(--muted);font-size:8px;text-transform:uppercase}.my-hero-summary .has-unread{border-color:rgba(72,211,140,.3);background:rgba(72,211,140,.06)}.my-errors{display:flex;flex-direction:column;gap:7px}.my-errors>div{padding:11px 13px;color:#ffc0c8;background:rgba(239,107,125,.08);border:1px solid rgba(239,107,125,.2);border-radius:9px}.my-notification-head-actions{display:flex;align-items:center;gap:8px}.my-notification-head-actions form{margin:0}.my-notification-list{display:flex;flex-direction:column}.my-notification-item{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);transition:padding .16s ease,background .16s ease}.my-notification-item:first-child{padding-top:0}.my-notification-item:last-child{padding-bottom:0;border-bottom:0}.my-notification-item:hover{padding-left:6px}.my-notification-item.is-read{opacity:.68}.my-notification-icon{width:42px;height:42px;display:grid;place-items:center;color:var(--accent-strong);background:rgba(72,211,140,.08);border:1px solid rgba(72,211,140,.18);border-radius:11px;font-weight:900}.my-notification-item.type-application_nekad .my-notification-icon{color:#ffabb7;background:rgba(239,107,125,.08);border-color:rgba(239,107,125,.2)}.my-notification-item.type-application_intervju .my-notification-icon{color:#ffd89a;background:rgba(245,189,97,.08);border-color:rgba(245,189,97,.2)}.my-notification-item.type-roles_updated .my-notification-icon{color:#dfadff;background:rgba(192,107,255,.08);border-color:rgba(192,107,255,.2)}.my-notification-content{min-width:0}.my-notification-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.my-notification-title-row b{color:var(--text-soft);font-size:12px}.my-notification-type{padding:3px 6px;color:var(--muted);background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:999px;font-size:8px;font-weight:800;text-transform:uppercase}.my-notification-content p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.my-notification-meta{display:flex;gap:5px;margin-top:6px;color:rgba(141,155,176,.75);font-size:9px}.my-unread-dot{width:8px;height:8px;background:var(--success);border-radius:50%;box-shadow:0 0 0 4px rgba(69,201,154,.1)}.my-notification-arrow,.my-thread-arrow{color:var(--muted);font-size:21px}.my-empty-state{min-height:150px;display:flex;align-items:center;justify-content:center;gap:13px}.my-empty-icon{width:44px;height:44px;display:grid;place-items:center;color:var(--accent-strong);background:rgba(72,211,140,.08);border:1px solid rgba(72,211,140,.18);border-radius:12px}.my-empty-state b{display:block;color:var(--text-soft)}.my-empty-state p{margin:4px 0 0;color:var(--muted);font-size:11px}.my-profile-form{display:flex;flex-direction:column;gap:18px}.my-form-field{padding:16px;background:rgba(255,255,255,.018);border:1px solid var(--line);border-radius:11px}.my-form-field label{margin-top:0}.my-form-field>span{display:block;margin:-2px 0 9px;color:var(--muted);font-size:10px}.my-form-actions{display:flex;justify-content:flex-end}.my-thread-list{display:flex;flex-direction:column}.my-thread-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.my-thread-item:first-child{padding-top:0}.my-thread-item:last-child{padding-bottom:0;border-bottom:0}.my-thread-item b,.my-thread-item span{display:block}.my-thread-item b{color:var(--text-soft);font-size:12px}.my-thread-item>div>span{margin-top:4px;color:var(--muted);font-size:10px}.my-quick-links{display:flex;flex-direction:column}.my-quick-links a{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);color:var(--text-soft);font-size:11px}.my-quick-links a:first-child{padding-top:0}.my-quick-links a:last-child{padding-bottom:0;border-bottom:0}.my-quick-links a:hover{color:var(--accent-strong)}.my-notification-legend{display:flex;flex-direction:column;gap:10px}.my-notification-legend>div{display:flex;align-items:center;gap:9px}.my-notification-legend span{width:28px;height:28px;display:grid;place-items:center;color:var(--accent-strong);background:rgba(72,211,140,.07);border:1px solid var(--line);border-radius:8px}.my-notification-legend b{color:var(--text-soft);font-size:10px}@media(max-width:960px){.my-page-layout{grid-template-columns:1fr}.my-page-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.my-hero-content{grid-template-columns:82px minmax(0,1fr);padding:0 17px 20px}.my-avatar-wrap{width:82px;height:82px;border-radius:18px}.my-avatar-wrap img{border-radius:14px}.my-identity{padding-top:44px}.my-hero-summary{grid-column:1/-1;width:100%;padding-top:0}.my-page-sidebar{grid-template-columns:1fr}.my-notification-head-actions{align-items:flex-end;flex-direction:column}.my-notification-item{grid-template-columns:38px minmax(0,1fr) auto}.my-notification-icon{width:38px;height:38px}.my-unread-dot{display:none}.my-thread-item{grid-template-columns:minmax(0,1fr) auto}}