/* ─────────────────────────────────────────────────────────────────────────────
   Unity RP Hub — style.css
   Felles styling for alle sider.
   Fargepalett: #00ffff (cyan primær), #fc03ea (magenta aksent)
───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@700;800&display=swap');

/* ─── Variabler ─────────────────────────────────────────────────────────────── */
:root {
  --cyan:        #00ffff;
  --cyan-dim:    #00e5e5;
  --cyan-dark:   #00b3b3;
  --magenta:     #fc03ea;
  --magenta-dim: #d402c7;
  --purple:      #a35cf1;
  --blue:        #3e56c7;

  --bg:          #080810;
  --bg2:         #0f0f1a;
  --bg3:         #161625;
  --bg4:         #1e1e30;

  --text:        #f0f0f8;
  --text-muted:  #9090b0;
  --text-subtle: #55556a;

  --border:      rgba(255, 255, 255, 0.10);
  --border-md:   rgba(255, 255, 255, 0.16);
  --border-lg:   rgba(255, 255, 255, 0.24);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  --font-sans:   'Inter', sans-serif;
  --font-display:'Syne', sans-serif;

  --transition:  0.15s ease;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Typografi ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { line-height: 1.7; }

.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-cyan   { color: var(--cyan-dim); }
.text-magenta{ color: var(--magenta); }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--sm {
  max-width: 720px;
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav__logo-domain {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 2px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.nav__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
}

/* ─── Knapper ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn:active { transform: scale(0.98); }

.btn--cyan {
  background: var(--cyan) !important;
  color: #080810 !important;
}
.btn--cyan:hover { opacity: 0.88; }

.btn--magenta {
  background: var(--magenta) !important;
  color: #080810 !important;
}
.btn--magenta:hover { opacity: 0.88; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-md) !important;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14) !important; }

.btn--danger {
  background: #e53e3e !important;
  color: #fff !important;
}
.btn--danger:hover { opacity: 0.88; }

.btn--sm {
  font-size: 12px;
  padding: 6px 12px;
}

.btn--lg {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Kort ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.card--hover {
  transition: border-color var(--transition), background var(--transition);
}
.card--hover:hover {
  border-color: var(--border-md);
  background: var(--bg3);
}

.card__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Seksjonsikon ───────────────────────────────────────────────────────────── */
.section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 255, 0.10);
  border: 1px solid rgba(0, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dim);
  font-size: 16px;
  flex-shrink: 0;
}

/* ─── Badge ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.badge--pending  { background: rgba(254, 231, 92, 0.12); color: #FEE75C; border: 1px solid rgba(254, 231, 92, 0.25); }
.badge--approved { background: rgba(87, 242, 135, 0.12); color: #57F287; border: 1px solid rgba(87, 242, 135, 0.25); }
.badge--rejected { background: rgba(237, 66, 69, 0.12);  color: #ED4245; border: 1px solid rgba(237, 66, 69, 0.25); }
.badge--interview{ background: rgba(0, 255, 255, 0.10);  color: var(--cyan-dim); border: 1px solid rgba(0, 255, 255, 0.25); }
.badge--info     { background: rgba(163, 92, 241, 0.12); color: var(--purple); border: 1px solid rgba(163, 92, 241, 0.25); }

/* ─── Kunngjøringsbanner ─────────────────────────────────────────────────────── */
.announcement-banner {
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  /* Farger settes dynamisk via JS basert på type */
  background: rgba(0, 255, 255, 0.07);
  border-bottom-color: rgba(0, 255, 255, 0.18);
}

.announcement-banner__icon {
  color: var(--cyan-dim);
  font-size: 16px;
  flex-shrink: 0;
}

.announcement-banner__text { flex: 1; }

.announcement-banner__close {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition);
}
.announcement-banner__close:hover { color: var(--text-muted); }

/* ─── Statistikort ───────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card__value span { color: var(--cyan-dim); }

.stat-card__label {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Skjema ─────────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-label span {
  color: var(--magenta);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--cyan-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-subtle);
}

/* ─── Tabell ─────────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: var(--bg3);
  color: var(--text-subtle);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: var(--bg3); }

/* ─── Loader ─────────────────────────────────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-subtle);
  font-size: 13px;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-md);
  border-top-color: var(--cyan-dim);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Tom tilstand ───────────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 10px;
}

.empty-state__icon {
  font-size: 32px;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.empty-state__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.empty-state__desc {
  font-size: 13px;
  color: var(--text-subtle);
  max-width: 280px;
}

/* ─── Toast / varsler ────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  min-width: 240px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.2s ease;
}

.toast--success { border-color: rgba(87, 242, 135, 0.35); }
.toast--error   { border-color: rgba(237, 66, 69, 0.35); }
.toast--info    { border-color: rgba(0, 255, 255, 0.25); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Sidebar layout (dashboard/admin) ───────────────────────────────────────── */
.layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
}

.sidebar__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 12px 6px;
}

.sidebar__group {
  margin-bottom: 4px;
}

.sidebar__group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 10px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.sidebar__group-label:hover {
  color: var(--text-muted);
}

.sidebar__group-label .sg-chevron {
  font-size: 11px;
  transition: transform 0.18s ease;
  opacity: 0.6;
}

.sidebar__group.collapsed .sg-chevron {
  transform: rotate(-90deg);
}

.sidebar__group-items {
  overflow: hidden;
}

.sidebar__group.collapsed .sidebar__group-items {
  display: none;
}

.sidebar__item {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.sidebar__item:hover {
  background: var(--bg3);
  color: var(--text);
}

.sidebar__item.active {
  background: rgba(0, 255, 255, 0.08);
  color: var(--cyan-dim);
}

.sidebar__item i { font-size: 16px; flex-shrink: 0; }

.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  min-width: 0;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Rutenett ───────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 16px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ─── Divider ────────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ─── Pill-tabs ──────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
}

.tab {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tab.active {
  background: var(--bg4);
  color: var(--text);
}

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 16, 0.80);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal__close {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal__close:hover { color: var(--text); }

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* ─── Paginering ─────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.pagination__btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination__btn:hover:not([disabled]) {
  border-color: var(--border-md);
  color: var(--text);
}

.pagination__btn.active {
  background: rgba(0, 255, 255, 0.10);
  border-color: rgba(0, 255, 255, 0.30);
  color: var(--cyan-dim);
}

.pagination__btn[disabled] { opacity: 0.35; cursor: not-allowed; }

/* ─── Responsivt ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }

  .layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }

  .sidebar__label { display: none; }

  .sidebar__item { flex: 1; justify-content: center; min-width: 80px; }

  .main-content { padding: 20px 16px; }

  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }

  h1 { font-size: 1.8rem; }
}

/* ─── Skjult (tilgjengelighet) ───────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Live forside ────────────────────────────────────────────────────────────── */

.live-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.live-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-dim);
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 28px;
}

.live-hero__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 32px;
}

.live-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.live-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  width: 100%;
}

.live-stat {
  text-align: center;
  padding: 0 40px;
}

.live-stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-dim);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.live-stat__label {
  font-size: 12px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.live-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.live-media {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.live-media__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.live-media__item {
  display: flex;
  flex-direction: column;
}

.live-media__caption {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 4px;
  font-weight: 500;
}

.live-media__credit {
  font-size: 11px;
  color: var(--text-subtle);
  margin: 0;
}

.live-twitch {
  text-align: center;
  padding: 56px 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.live-twitch__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Skjul coming soon-innhold i live-modus */
[data-mode="live"] .show-soon { display: none; }
[data-mode="soon"] .show-live { display: none; }
[data-mode="live"] .live-hero__badge { display: flex; }

/* ─── Global menybar ─────────────────────────────────────────────────────────── */

#global-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  max-width: 1800px;
  margin: 0 auto;
  gap: 16px;
}

.global-nav__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.global-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Brukermeny / dropdown ──────────────────────────────────────────────────── */

.nav-user {
  position: relative;
}

.nav-user__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}

.nav-user__trigger:hover {
  background: var(--bg3);
  border-color: rgba(0,255,255,0.2);
}

.nav-user__name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user__role {
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  flex-shrink: 0;
  /* Standardfarge (fallback) */
  color: var(--cyan-dim);
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.18);
}


.nav-user__chevron {
  font-size: 12px;
  color: var(--text-subtle);
  transition: transform 0.2s ease;
}

.nav-user__trigger[aria-expanded="true"] .nav-user__chevron {
  transform: rotate(180deg);
}

.nav-user__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 300;
}

.nav-user__dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-user__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}

.nav-user__item:hover {
  background: var(--bg3);
  color: var(--text);
}

.nav-user__item--danger {
  color: #ED4245;
}

.nav-user__item--danger:hover {
  background: rgba(237,66,69,0.08);
  color: #ED4245;
}

.nav-user__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ─── Varselbjelle ───────────────────────────────────────────────────────────── */

.nav-bell {
  position: relative;
}

.nav-bell__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.nav-bell__btn:hover,
.nav-bell__btn[aria-expanded="true"] {
  background: var(--bg3);
  border-color: var(--border);
  color: var(--text);
}

.nav-bell__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  background: var(--magenta);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

.nav-bell__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-bell__dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-bell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.nav-bell__header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.nav-bell__mark-all {
  font-size: 11px;
  color: var(--cyan-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.nav-bell__mark-all:hover { color: var(--cyan); }

.nav-bell__list {
  max-height: 340px;
  overflow-y: auto;
}

.nav-bell__empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
}

.nav-bell__item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}

.nav-bell__item:last-child { border-bottom: none; }

.nav-bell__item:hover { background: var(--bg3); }

.nav-bell__item--unread { background: rgba(0,255,255,0.04); }

.nav-bell__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-dim);
  flex-shrink: 0;
  margin-top: 5px;
}

.nav-bell__item--read .nav-bell__dot {
  background: transparent;
}

.nav-bell__content { flex: 1; min-width: 0; }

.nav-bell__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-bell__msg {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-bell__time {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 4px;
}