:root {
  /* MATCHER dashboard.php */
  --bg: #050913;
  --bg-accent: #0a1328;
  --card: rgba(13, 18, 34, 0.92); /* svarer til --panel */
  --accent: #5865f2;
  --accent-soft: rgba(88, 101, 242, 0.18);
  --accent-strong: #7b83ff;
  --text: #f4f6ff; /* svarer til --text-primary */
  --text-muted: #7d86a4;
  --red: #ed4245;
  --border: rgba(255, 255, 255, 0.05); /* svarer til --panel-border */
  --shadow: 0 30px 60px rgba(3, 6, 18, 0.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(88, 101, 242, 0.18),
      transparent 45%
    ),
    radial-gradient(circle at 80% 0%, rgba(32, 188, 255, 0.2), transparent 40%),
    linear-gradient(135deg, #040812 0%, #060b16 35%, #050913 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HERO / HEADER */

header {
  background: rgba(10, 13, 28, 0.9);
  padding: 80px 20px 60px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* SØGNING */

.search-container {
  max-width: 700px;
  margin: -40px auto 50px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

#search {
  width: 100%;
  padding: 18px 20px 18px 50px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--card);
  color: var(--text);
  font-size: 1.1rem;
  transition: 0.3s;
  box-shadow: 0 12px 30px rgba(3, 6, 18, 0.7);
  font-weight: 400;
}

#search::placeholder {
  color: var(--text-muted);
}

#search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.45);
}

.search-icon {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* LAYOUT */

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* KATEGORI-KORT */

.category-wrapper {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.category-header {
  padding: 25px 30px;
  background: rgba(88, 101, 242, 0.12); /* accent-soft feeling */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  user-select: none;
  border-radius: 20px 20px 0 0;
}

.category-wrapper.collapsed-card .category-header {
  border-radius: 20px;
}

.category-header:hover {
  background: rgba(88, 101, 242, 0.22);
}

.category-title {
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-icon {
  font-size: 1.8rem;
  color: var(--accent);
}

.category-content {
  transition: max-height 0.6s ease, padding 0.6s ease, opacity 0.4s ease;
  max-height: 5000px;
  overflow: hidden;
  padding: 0 0 30px 0;
}

.category-content.collapsed {
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0;
  overflow: hidden;
}

.category-content.collapsed .servers {
  padding: 0 !important;
}

.category-wrapper.no-results {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: -20px 0;
  overflow: hidden;
  border: none;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* SERVERLISTE */

.servers {
  padding: 0 30px 0;
}

.server {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.3s;
}

.server:last-child {
  border-bottom: none;
}

.server:hover {
  background: rgba(88, 101, 242, 0.08);
  padding-left: 50px;
  padding-right: 50px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}

.server.hidden {
  display: none;
}

.server-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.server-name {
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ALDERSBADGE */

.age-18 {
  background: var(--red);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* BESKRIVELSE */

.server-desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* JOIN-KNAP */

.join-btn {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
}

.join-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.5);
}

/* FOOTER */

footer {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  background: rgba(5, 9, 19, 0.85);
  backdrop-filter: blur(10px);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 0 16px 60px;
  }

  h1 {
    font-size: 2.2rem;
  }

  header {
    padding: 60px 16px 40px;
  }
}

/* ===========================
   CUSTOM SCROLLBAR (MATCHER DASHBOARD)
   =========================== */

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #5865f2 #050913;
}

/* Chrome, Edge, Safari, Opera */
body,
.category-wrapper,
.category-content,
.servers,
.server {
  scrollbar-width: thin;
}

/* Scrollbar bredden */
body::-webkit-scrollbar,
.category-wrapper::-webkit-scrollbar,
.category-content::-webkit-scrollbar,
.servers::-webkit-scrollbar,
.server::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Baggrund (track) */
body::-webkit-scrollbar-track,
.category-wrapper::-webkit-scrollbar-track,
.category-content::-webkit-scrollbar-track,
.servers::-webkit-scrollbar-track,
.server::-webkit-scrollbar-track {
  background: #050913;
  border-radius: 10px;
}

/* Thumb (den man trækker) */
body::-webkit-scrollbar-thumb,
.category-wrapper::-webkit-scrollbar-thumb,
.category-content::-webkit-scrollbar-thumb,
.servers::-webkit-scrollbar-thumb,
.server::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5865f2, #7b83ff);
  border-radius: 10px;
  border: 2px solid #050913;
}

/* Hover-effekt */
body::-webkit-scrollbar-thumb:hover,
.category-wrapper::-webkit-scrollbar-thumb:hover,
.category-content::-webkit-scrollbar-thumb:hover,
.servers::-webkit-scrollbar-thumb:hover,
.server::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6a74ff, #9b96ff);
}

/* ---- DISCORD LOGIN BUTTON ---- */

.login-discord-wrapper {
  position: absolute;
  top: 40px;
  right: 60px;
  z-index: 20;
}

.login-discord-btn {
  background: #5865f2;
  padding: 12px 22px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.45);
  transition: 0.25s;
  margin-top: 195px;
}

.login-discord-btn:hover {
  background: #6c75ff;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.65);
  transform: translateY(-2px);
}

/* Når man er logget ind */
.login-discord-btn.logged-in {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.discord-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.logout-header-btn {
  background: var(--red);
  color: white;
  padding: 11px 18px;
  border-radius: 50px;
  font-size: 17px;
  display: flex;
  align-items: center;
  text-decoration: none;

  /* Større, tydeligere glow — matcher login-knappen */
  box-shadow: 0 0 20px rgba(237, 66, 69, 0.55), 0 0 35px rgba(237, 66, 69, 0.35);

  transition: 0.25s;
  margin-top: 195px;
}

.logout-header-btn:hover {
  background: #ff5c5f;
  box-shadow: 0 0 30px rgba(255, 92, 95, 0.75), 0 0 45px rgba(255, 92, 95, 0.55);
  transform: translateY(-2px);
}

/* COOKIE */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 18, 34, 0.96);
  border-radius: 18px;
  padding: 16px 22px;
  max-width: 520px;
  width: calc(100% - 32px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  gap: 14px;
  z-index: 9999;
}

.cookie-banner.show {
  display: flex;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.cookie-btn {
  background: var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.5);
  transition: 0.2s;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* ============================== */
/*   BLACKLISTEDE SERVERSEKTION   */
/* ============================== */

.blacklist-section {
  max-width: 1600px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* Wrapper styling */
.blacklist-wrapper {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Header baggrund */
.blacklist-wrapper .category-header {
  background: rgba(237, 66, 69, 0.12);
  border-radius: 20px 20px 0 0;
  transition: 0.3s ease;
}

.blacklist-wrapper .category-header:hover {
  background: rgba(237, 66, 69, 0.22);
}

/* Skull ikon */
.blacklist-wrapper .category-icon {
  color: var(--red);
  filter: drop-shadow(0 0 6px rgba(237, 66, 69, 0.55));
}

/* 🚫 ikon ved navnet */
.blacklist-icon {
  color: var(--red);
  margin-left: 8px;
  font-size: 1.05rem;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(237, 66, 69, 0.55));
}

/* Server hover i blacklist */
.blacklist-wrapper .server:hover {
  background: rgba(237, 66, 69, 0.08);
  padding-left: 50px;
  padding-right: 50px;
  border-left: 3px solid var(--red);
}

/* Årsag-knap */
.reason-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: #ed4245;
  color: #fff;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 12px rgba(237, 66, 69, 0.45);
}

.reason-btn:hover {
  background: #ff5054;
  box-shadow: 0 0 18px rgba(237, 66, 69, 0.7);
}

/* Popup */
.reason-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.reason-popup {
  background: var(--card);
  padding: 30px;
  width: 420px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeIn 0.35s ease;
}

.reason-popup h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.reason-popup p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.reason-close-btn {
  margin-top: 20px;
  padding: 10px 22px;
  background: var(--accent);
  border-radius: 10px;
  display: inline-block;
  color: white;
  cursor: pointer;
}

.blacklist-meta small {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 4px;
}

/* REQUEST + UPDATE modal */
#request-modal,
#update-modal {
  display: none;
}

#request-modal.active,
#update-modal.active {
  display: flex;
}

/* Baggrund */
.modal-backdrop#request-modal,
.modal-backdrop#update-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeBackdrop 0.25s ease;
}

/* Selve boksen */
#request-modal .modal,
#update-modal .modal {
  width: 520px;
  max-width: 92%;
  background: rgba(13, 18, 34, 0.96);
  backdrop-filter: blur(14px);
  padding: 0;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: slideUp 0.28s ease;
}


/* Header */
#request-modal .modal-header,
#update-modal .modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(
    circle at 0 0,
    rgba(88, 101, 242, 0.35),
    transparent 55%
  );
  border-radius: 22px 22px 0 0;
}

#request-modal .modal-header h2,
#update-modal .modal-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

/* Body */
#request-modal .modal-body,
#update-modal .modal-body {
  padding: 22px 26px 10px 26px;
}

/* Footer + knapper */
#request-modal .modal-footer,
#update-modal .modal-footer {
  padding: 18px 26px 20px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/* Grid layout til felter */
.request-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.request-row-2col {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .request-row-2col {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.request-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.request-field input,
.request-field select,
.request-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}

.request-field textarea {
  resize: vertical;
  min-height: 90px;
}

.request-field input::placeholder,
.request-field textarea::placeholder {
  color: rgba(180, 190, 220, 0.7);
}

.request-field input:focus,
.request-field select:focus,
.request-field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.5);
}

/* Footer + knapper */
#request-modal .modal-footer {
  padding: 18px 26px 20px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Ghost-knap (Annuller) */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Send-knap */
.request-send-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.4);
  transition: 0.2s;
}

.request-send-btn:hover {
  background: var(--accent-strong, #7b83ff);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.7);
}

/* Luk-ikon */
.modal-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
  transition: 0.2s;
}

.modal-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* ===== STYLET DROPDOWN (SELECT) ===== */

.request-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='18' width='18' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.request-field select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.5);
}

/* Selve dropdown-listen */
.request-field select option {
  background: #0b1120;
  color: var(--text);
  padding: 10px;
}

/* Hover-effect i dropdown */
.request-field select option:hover {
  background: var(--accent);
  color: white;
}

/* Udvalgt option */
.request-field select option:checked {
  background: var(--accent-strong);
  color: white;
}

/* Scrollbar i dropdown – hvis der er mange kategorier */
.request-field select::-webkit-scrollbar {
  width: 8px;
}

.request-field select::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.request-field select::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.request-field select::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

/* Animationer */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === USER: Anmod om server === */

.add-server-user {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 25px 0 10px 0;
}

.request-btn {
  background: var(--accent);
  color: white;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.45);
  transition: 0.25s;
}

.request-btn:hover {
  background: var(--accent-strong);
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.7);
  transform: translateY(-2px);
}

/* === User har allerede en pending request === */

.pending-box {
  margin: 25px auto 10px auto;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 14px 22px;
  border-radius: 14px;
  width: fit-content;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.pending-box i {
  color: var(--accent);
  font-size: 18px;
}

.verified-badge-front {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 4px 8px;
    font-size: 16px;
    border-radius: 10px;

    background: rgba(88, 101, 242, 0.25);
    color: #7A88FF;
    border: 1px solid rgba(88, 101, 242, 0.55);
    box-shadow: 0 0 10px rgba(88,101,242,0.55);
}

.leaderboard-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 25px 30px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.leaderboard-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.lb-rank {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.lb-name {
    font-weight: 600;
    color: var(--text);
}

.lb-count {
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

/* ===== CREATOR LEADERBOARD ===== */

.leaderboard-section {
  max-width: 1200px;
  margin: 20px auto 70px;
  padding: 20px 24px 26px;
  background: rgba(13, 18, 34, 0.96);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.leaderboard-title {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-title i {
  color: #ffd644;
}

/* Top creator badge-card */

.top-creator-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(255, 214, 68, 0.25), transparent 60%);
  border: 1px solid rgba(255, 214, 68, 0.45);
  box-shadow: 0 0 26px rgba(255, 214, 68, 0.35);
}

.top-creator-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-creator-name {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-creator-badge {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd644;
  border: 1px solid rgba(255, 214, 68, 0.6);
}

.top-creator-badge i {
  color: #ffd644;
}

.top-creator-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tabs */

.leaderboard-tabs {
  margin-top: 14px;
  margin-bottom: 10px;
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.lb-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}

.lb-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.6);
}

/* Lists */

.leaderboard-list {
  margin-top: 10px;
  display: none;
}

.leaderboard-list.visible {
  display: block;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-item:hover {
  background: rgba(15, 23, 42, 0.9);
}

.lb-rank {
  width: 32px;
  font-weight: 700;
  color: var(--text-muted);
}

.lb-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lb-avatar.large {
  width: 42px;
  height: 42px;
}

.lb-name {
  flex: 1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-small-badge {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 214, 68, 0.12);
  color: #ffd644;
}

.lb-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.leaderboard-empty {
  padding: 10px 2px 2px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.server-update-btn {
  margin-top: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.server-update-btn i {
  font-size: 0.8rem;
}

.server-update-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.readonly-info {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flash-message {
  max-width: 800px;
  margin: 16px auto 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1f2933;
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(3, 6, 18, 0.7);
  position: relative;
  z-index: 50; /* over søgebaren */
}
