* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0d13;
  --bg-soft: #11141c;
  --panel: #151923;
  --panel-light: #1b2030;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f5f7fb;
  --muted: #8f98aa;
  --purple: #9147ff;
  --purple-dark: #6f2bd9;
  --purple-soft: rgba(145, 71, 255, 0.14);
  --green: #35d07f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(circle at top left, rgba(145, 71, 255, 0.12), transparent 28%),
    #0b0d13;

  color: var(--text);
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 270px;
  background: rgba(13, 16, 23, 0.96);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 8px 26px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: linear-gradient(135deg, var(--purple), #5d2ecb);
  box-shadow: 0 10px 30px rgba(145, 71, 255, 0.28);
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  color: #aeb6c5;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-item span {
  width: 22px;
  font-size: 17px;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: white;
  background: linear-gradient(
    90deg,
    rgba(145, 71, 255, 0.24),
    rgba(145, 71, 255, 0.08)
  );
  border: 1px solid rgba(145, 71, 255, 0.2);
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 8px;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.sidebar-footer strong {
  display: block;
  font-size: 12px;
}

.sidebar-footer small {
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(53, 208, 127, 0.8);
}

/* MAIN */

.main {
  width: calc(100% - 270px);
  margin-left: 270px;
}

.topbar {
  min-height: 94px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 34px;
  background: rgba(11, 13, 19, 0.76);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h1 {
  font-size: 23px;
  margin-bottom: 5px;
}

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

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  font-size: 12px;
  font-weight: 800;
}

.user-info strong {
  display: block;
  font-size: 13px;
}

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

/* CONTENT */

.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px;
}

.welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(145, 71, 255, 0.2);
  background:
    linear-gradient(
      120deg,
      rgba(145, 71, 255, 0.15),
      rgba(145, 71, 255, 0.03)
    ),
    var(--panel);

  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.welcome-card::after {
  content: "";
  width: 260px;
  height: 260px;
  border-radius: 50%;
  position: absolute;
  right: -100px;
  top: -140px;
  background: rgba(145, 71, 255, 0.14);
  filter: blur(2px);
}

.eyebrow {
  display: block;
  color: #b998ff;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 10px;
}

.welcome-card h2 {
  font-size: 27px;
  margin-bottom: 8px;
}

.welcome-card p {
  color: var(--muted);
  font-size: 14px;
  max-width: 650px;
  line-height: 1.65;
}

.live-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(53, 208, 127, 0.08);
  border: 1px solid rgba(53, 208, 127, 0.2);
  color: #70eba6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.live-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(53, 208, 127, 0.8);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.stat-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 17px;
  transition: 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 71, 255, 0.25);
}

.stat-icon {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  font-size: 20px;
}

.stat-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}

.stat-card small {
  color: #6f7785;
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.panel {
  min-height: 350px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}

.panel-header {
  min-height: 80px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-header h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.panel-header p {
  color: var(--muted);
  font-size: 11px;
}

.panel-header button {
  border: 1px solid rgba(145, 71, 255, 0.22);
  background: var(--purple-soft);
  color: #c8adff;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.panel-header button:hover {
  background: rgba(145, 71, 255, 0.22);
}

.empty-state {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
}

.empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 13px;
  font-size: 21px;
}

.empty-state strong {
  font-size: 14px;
  margin-bottom: 7px;
}

.empty-state p {
  max-width: 400px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 12px;
}

.ranking {
  padding: 16px;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 13px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 800;
  font-size: 11px;
}

.rank.first {
  background: rgba(255, 198, 51, 0.12);
  color: #ffd56b;
}

.ranking-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.small-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--purple-soft);
  font-size: 12px;
}

.ranking-user strong {
  display: block;
  font-size: 12px;
}

.ranking-user small {
  color: var(--muted);
  font-size: 10px;
}

.points {
  color: #b998ff;
  font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: 78px;
    padding: 18px 10px;
  }

  .brand-title,
  .brand-subtitle,
  .nav-item:not(.active),
  .nav-item.active {
    font-size: 0;
  }

  .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .brand > div:last-child {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item span {
    width: auto;
    font-size: 18px;
  }

  .sidebar-footer {
    justify-content: center;
  }

  .sidebar-footer div:last-child {
    display: none;
  }

  .main {
    width: calc(100% - 78px);
    margin-left: 78px;
  }

  .topbar {
    padding: 16px 20px;
  }

  .topbar p,
  .user-info {
    display: none;
  }

  .content {
    padding: 20px;
  }

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

  .welcome-card {
    padding: 22px;
  }

  .live-badge {
    display: none;
  }
}
/* MODERATORVERWALTUNG */

.primary-button {
  border: 1px solid rgba(145, 71, 255, 0.35);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(145, 71, 255, 0.22);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.moderator-stats {
  margin-bottom: 22px;
}

.moderators-panel {
  min-height: auto;
}

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

.search-input {
  width: 240px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  font-size: 12px;
}

.search-input::placeholder {
  color: #6f7785;
}

.search-input:focus {
  border-color: rgba(145, 71, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(145, 71, 255, 0.08);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.moderator-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.moderator-table th {
  text-align: left;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--border);
}

.moderator-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.moderator-table tbody tr {
  transition: 0.2s ease;
}

.moderator-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.table-user strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}

.table-user small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.admin-role {
  color: #c9b0ff;
  background: rgba(145, 71, 255, 0.12);
  border: 1px solid rgba(145, 71, 255, 0.22);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.online-status {
  color: #70eba6;
  background: rgba(53, 208, 127, 0.08);
  border: 1px solid rgba(53, 208, 127, 0.16);
}

.online-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(53, 208, 127, 0.8);
}

.table-points {
  color: #b998ff;
}

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

.table-button {
  border: 1px solid rgba(145, 71, 255, 0.22);
  background: rgba(145, 71, 255, 0.08);
  color: #c9b0ff;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.table-button:hover {
  background: rgba(145, 71, 255, 0.16);
}

/* Moderator-Verwaltungsfenster */
.manage-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.manage-modal.hidden {
  display: none;
}

.manage-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.manage-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #18181b;
  border: 1px solid rgba(145, 70, 255, 0.35);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.manage-modal-card h2 {
  margin: 6px 0 8px;
}

.manage-modal-description {
  margin: 0 0 22px;
  color: #adadb8;
}

.manage-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #adadb8;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.manage-modal-close:hover {
  color: #ffffff;
}

.manage-user-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 22px;
  background: #0e0e10;
  border: 1px solid #2f2f35;
  border-radius: 12px;
}

.manage-user-box small {
  display: block;
  margin-top: 3px;
  color: #adadb8;
}

.manage-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manage-field span {
  font-weight: 600;
}

.manage-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #3a3a40;
  border-radius: 10px;
  background: #0e0e10;
  color: #ffffff;
  font: inherit;
  outline: none;
}

.manage-field select:focus {
  border-color: #9147ff;
}

.manage-role-message {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
  color: #adadb8;
}

.manage-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .manage-modal-card {
    padding: 22px;
  }

  .manage-modal-actions {
    flex-direction: column-reverse;
  }

  .manage-modal-actions button {
    width: 100%;
  }
}

.permissions-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #2f2f35;
}

.permissions-section-header h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.permissions-section-header p {
  margin: 0 0 16px;
  color: #adadb8;
  font-size: 13px;
}

.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.permissions-category {
  margin-top: 8px;
  margin-bottom: 2px;
  color: #9147ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  background: #0e0e10;
  border: 1px solid #2f2f35;
  border-radius: 10px;
}

.permission-info strong {
  display: block;
  font-size: 14px;
}

.permission-info small {
  display: block;
  margin-top: 3px;
  color: #71717a;
  font-size: 11px;
}

.permission-control {
  flex-shrink: 0;
}

.permission-select {
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid #3a3a40;
  border-radius: 8px;
  background: #18181b;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.permission-select:focus {
  border-color: #9147ff;
}

.permissions-loading {
  padding: 20px;
  text-align: center;
  color: #71717a;
}

@media (max-width: 600px) {
  .permission-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .permission-select {
    width: 100%;
  }
}

.permission-select.permission-allow {
  border-color: rgba(145, 70, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(145, 70, 255, 0.12);
}

.permission-select.permission-inherit {
  border-color: #3a3a40;
  color: #adadb8;
}

.permission-select.permission-deny {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.permission-select.permission-allow option,
.permission-select.permission-inherit option,
.permission-select.permission-deny option {
  background: #18181b;
  color: #ffffff;
}

/* =========================================================
   Dashboard – Moderationsaktionen
   ========================================================= */

.recent-actions {
  display: flex;
  flex-direction: column;
}

.dashboard-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #2a2a30;
}

.dashboard-action-row:last-child {
  border-bottom: 0;
}

.dashboard-action-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #242429;
  font-size: 19px;
}

.dashboard-action-main {
  min-width: 0;
  flex: 1;
}

.dashboard-action-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.dashboard-action-title strong {
  font-size: 14px;
}

.dashboard-action-title span {
  color: #ffffff;
  font-size: 14px;
}

.dashboard-action-meta {
  margin-top: 5px;
  color: #8f8f9d;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-action-points {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 14px;
  color: #a970ff;
}

@media (max-width: 600px) {
  .dashboard-action-row {
    gap: 10px;
  }

  .dashboard-action-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .dashboard-action-meta {
    white-space: normal;
  }
}


.ranking-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ranking-period {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: inherit;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: .2s ease;
}

.ranking-period:hover {
  background: rgba(255,255,255,.08);
}

.ranking-period.active {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ranking-podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.ranking-podium-card.position-1 {
  transform: translateY(-8px);
}

.podium-rank {
  font-size: 34px;
  margin-bottom: 10px;
}

.ranking-podium-card .small-avatar {
  margin-bottom: 10px;
}

.ranking-podium-card strong {
  font-size: 17px;
}

.ranking-podium-card small {
  opacity: .65;
  margin-top: 4px;
}

.podium-points {
  font-size: 24px;
  font-weight: 800;
  margin-top: 14px;
}

.ranking-podium-card > span {
  margin-top: 4px;
  opacity: .65;
  font-size: 13px;
}

.ranking-table .ranking-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 800px) {

  .ranking-podium {
    grid-template-columns: 1fr;
  }

  .ranking-podium-card.position-1 {
    transform: none;
  }

}


.statistics-chart {
  height: 260px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 20px 10px 35px;
  overflow-x: auto;
}

.statistics-bar-wrapper {
  flex: 1;
  min-width: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.statistics-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: currentColor;
  opacity: .75;
  transition: height .4s ease;
}

.statistics-bar-wrapper span {
  font-size: 10px;
  opacity: .55;
  white-space: nowrap;
  transform: rotate(-45deg);
}

.statistics-top-moderator {
  padding: 8px 0;
}

.statistics-top-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.statistics-top-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.statistics-top-info strong {
  font-size: 17px;
}

.statistics-top-info small,
.statistics-top-value small {
  opacity: .6;
  margin-top: 3px;
}

.statistics-top-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.statistics-top-value strong {
  font-size: 22px;
}

@media (max-width: 700px) {

  .statistics-chart {
    gap: 4px;
  }

  .statistics-bar-wrapper {
    min-width: 14px;
  }

  .statistics-top-card {
    align-items: flex-start;
  }

  .statistics-top-value {
    margin-left: auto;
  }

}


.action-distribution {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.action-distribution-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-distribution-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.action-distribution-info strong {
  font-size: 14px;
}

.action-distribution-info span {
  font-size: 12px;
  opacity: .6;
}

.action-distribution-track {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}

.action-distribution-fill {
  height: 100%;
  border-radius: 99px;
  background: currentColor;
  opacity: .8;
  transition: width .5s ease;
}

@media (max-width: 600px) {

  .action-distribution-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

}


.statistics-chart {
  display: block;
  height: auto;
  min-height: 320px;
  padding: 20px 10px 15px;
  overflow-x: auto;
}

.statistics-chart-summary {
  display: flex;
  gap: 35px;
  margin-bottom: 20px;
}

.statistics-chart-summary > div {
  display: flex;
  flex-direction: column;
}

.statistics-chart-summary span {
  font-size: 11px;
  text-transform: uppercase;
  opacity: .5;
  letter-spacing: .05em;
}

.statistics-chart-summary strong {
  font-size: 25px;
  margin-top: 3px;
}

.statistics-chart-summary small {
  opacity: .55;
}

.statistics-chart-bars {
  height: 220px;
  min-width: 760px;
  display: flex;
  align-items: stretch;
  gap: 5px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.statistics-day {
  flex: 1;
  min-width: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.statistics-day-bars {
  width: 100%;
  height: calc(100% - 25px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.statistics-day-bar {
  position: relative;
  width: 42%;
  min-height: 2px;
  border-radius: 4px 4px 1px 1px;
  transition:
    height .4s ease,
    opacity .2s ease;
  opacity: .8;
}

.statistics-day-bar span {
  display: none;
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  white-space: nowrap;
}

.statistics-day:hover
.statistics-day-bar {
  opacity: 1;
}

.statistics-day:hover
.statistics-day-bar span {
  display: block;
}

.actions-bar {
  background: currentColor;
}

.points-bar {
  background: currentColor;
  opacity: .45;
}

.statistics-day > small {
  font-size: 9px;
  opacity: .5;
  white-space: nowrap;
  transform: rotate(-45deg);
}

.statistics-chart-legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
  font-size: 12px;
  opacity: .7;
}

.statistics-chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.statistics-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
  background: currentColor;
}

.legend-actions {
  opacity: .8;
}

.legend-points {
  opacity: .45;
}

@media (max-width: 700px) {

  .statistics-chart-summary {
    gap: 20px;
  }

  .statistics-chart-bars {
    min-width: 700px;
  }

}


.statistics-top-three {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.statistics-podium-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  transition:
    transform .2s ease,
    background .2s ease;
}

.statistics-podium-card:hover {
  transform: translateX(3px);
  background: rgba(255,255,255,.06);
}

.statistics-podium-rank {
  width: 35px;
  text-align: center;
  font-size: 22px;
}

.statistics-podium-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.statistics-podium-info strong {
  font-size: 15px;
}

.statistics-podium-info small {
  margin-top: 3px;
  opacity: .55;
}

.statistics-podium-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.statistics-podium-points strong {
  font-size: 19px;
}

.statistics-podium-points small {
  opacity: .5;
}


.statistics-top-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 9px;
  font-size: 12px;
  opacity: .72;
}

.statistics-top-breakdown span {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .statistics-top-breakdown {
    gap: 6px 10px;
  }
}


/* =========================================================
   Logout Button – Topbar
   ========================================================= */

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-button {
  margin-left: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #b8bec9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.logout-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 700px) {
  .logout-button span {
    display: none;
  }

  .logout-button {
    padding: 8px 10px;
  }
}

/* =========================================================
   Changelog
   ========================================================= */

.changelog-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.changelog-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.changelog-icon {
  font-size: 18px;
  line-height: 1;
}

.changelog-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.changelog-info strong {
  font-size: 13px;
}

.changelog-info small {
  font-size: 11px;
  opacity: 0.55;
}

/* Modal */

.changelog-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.changelog-modal.hidden {
  display: none;
}

.changelog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.changelog-window {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, 90vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #111318;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.changelog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-header h2 {
  margin: 5px 0 4px;
  font-size: 26px;
}

.changelog-header p {
  margin: 0;
  opacity: 0.6;
  font-size: 13px;
}

.changelog-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.changelog-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.changelog-content {
  padding: 22px 28px 28px;
  overflow-y: auto;
  max-height: calc(min(760px, 90vh) - 110px);
}

.changelog-entry {
  position: relative;
  padding: 0 0 24px 18px;
  margin: 0 0 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.changelog-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.changelog-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.changelog-version strong {
  font-size: 14px;
}

.changelog-version span {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  opacity: 0.65;
}

.changelog-entry h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.changelog-entry ul {
  margin: 0;
  padding-left: 18px;
}

.changelog-entry li {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.78;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .changelog-modal {
    padding: 12px;
  }

  .changelog-window {
    max-height: 94vh;
    border-radius: 14px;
  }

  .changelog-header {
    padding: 20px;
  }

  .changelog-content {
    padding: 18px 20px 22px;
  }

  .changelog-header h2 {
    font-size: 22px;
  }
}

/* =========================================================
   Sidebar Footer – Changelog & Systemstatus
   ========================================================= */

.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.changelog-button {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.sidebar-system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 0;
}

.sidebar-system-status > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-system-status strong {
  font-size: 12px;
}

.sidebar-system-status small {
  font-size: 10px;
  opacity: 0.55;
}

.sidebar-system-status .status-dot {
  flex-shrink: 0;
}

/* =========================================================
   Changelog – Kompaktes Popover
   ========================================================= */

.changelog-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  padding: 0;
  display: block;
}

.changelog-modal:not(.hidden) {
  pointer-events: auto;
}

.changelog-modal.hidden {
  display: block;
}

.changelog-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.changelog-window {
  position: absolute;
  left: 275px;
  bottom: 28px;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: 620px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;

  background: rgba(18, 20, 26, 0.98);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.025);

  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.changelog-modal:not(.hidden) .changelog-window {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.changelog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 17px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.changelog-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.changelog-header h2 {
  margin: 4px 0 3px;
  font-size: 21px;
  letter-spacing: -0.2px;
}

.changelog-header p {
  margin: 0;
  font-size: 12px;
  opacity: 0.55;
}

.changelog-new-badge {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 75, 110, 0.12);
  color: #ff6b88;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.changelog-close {
  width: 30px;
  height: 30px;
  flex-shrink: 0;

  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);

  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;

  transition: 0.18s ease;
}

.changelog-close:hover {
  background: rgba(255, 255, 255, 0.10);
}

.changelog-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 17px 20px 20px;
}

.changelog-content::-webkit-scrollbar {
  width: 5px;
}

.changelog-content::-webkit-scrollbar-track {
  background: transparent;
}

.changelog-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.changelog-entry {
  position: relative;
  margin: 0 0 17px;
  padding: 15px 15px 15px 17px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.025);
}

.changelog-entry:last-child {
  margin-bottom: 0;
}

.changelog-current {
  border-color: rgba(255, 75, 110, 0.18);
  background: rgba(255, 75, 110, 0.035);
}

.changelog-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-version strong {
  font-size: 13px;
}

.changelog-version span {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
  opacity: 0.55;
}

.changelog-entry-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  opacity: 0.65;
}

.changelog-entry h3 {
  margin: 10px 0 8px;
  font-size: 14px;
}

.changelog-entry ul {
  margin: 0;
  padding-left: 17px;
}

.changelog-entry li {
  margin: 4px 0;
  font-size: 11.5px;
  line-height: 1.45;
  opacity: 0.65;
}

/* Mobile */

@media (max-width: 900px) {
  .changelog-window {
    left: 16px;
    bottom: 16px;
    width: min(420px, calc(100vw - 32px));
  }
}

@media (max-width: 600px) {
  .changelog-window {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 20px);
  }

  .changelog-content {
    max-height: calc(100vh - 150px);
  }
}

/* =========================================================
   FIX: Changelog geschlossen wirklich unsichtbar
   ========================================================= */

.changelog-modal.hidden {
  display: none !important;
}

.changelog-modal:not(.hidden) {
  display: block;
}

.changelog-backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.modal-open {
  overflow: auto !important;
}

/* =========================================================
   Changelog – Position und Öffnen
   ========================================================= */

.changelog-window {
  left: 24px;
  bottom: 95px;
  width: 390px;
  max-width: calc(100vw - 48px);
}

.changelog-backdrop {
  pointer-events: none;
}

.changelog-modal:not(.hidden) .changelog-backdrop {
  pointer-events: none;
}

.changelog-close {
  cursor: pointer;
}

.changelog-button {
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.changelog-button:hover {
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 900px) {
  .changelog-window {
    left: 16px;
    bottom: 90px;
    width: min(390px, calc(100vw - 32px));
  }
}

@media (max-width: 600px) {
  .changelog-window {
    left: 10px;
    right: 10px;
    bottom: 85px;
    width: auto;
    max-width: none;
  }
}

/* =========================================================
   Backend Live Tracker
   ========================================================= */

.sidebar-system-status {
  transition: opacity 0.2s ease;
}

.sidebar-system-status.backend-checking {
  opacity: 0.7;
}

.sidebar-system-status.backend-online {
  opacity: 1;
}

.sidebar-system-status.backend-offline {
  opacity: 1;
}

.sidebar-system-status.backend-offline .status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.sidebar-system-status.backend-checking .status-dot {
  opacity: 0.55;
  animation: backend-status-pulse 1s ease-in-out infinite;
}

@keyframes backend-status-pulse {
  0%, 100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* =========================================================
   Twitch Live Tracker
   ========================================================= */

.sidebar-twitch-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.sidebar-twitch-status strong,
.sidebar-twitch-status small {
  display: block;
}

.sidebar-twitch-status small {
  opacity: 0.65;
}

.twitch-status-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  background: #8b8b8b;
}

.sidebar-twitch-status.twitch-online .twitch-status-dot {
  background: #9147ff;
  box-shadow: 0 0 8px rgba(145, 71, 255, 0.55);
}

.sidebar-twitch-status.twitch-offline .twitch-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.sidebar-twitch-status.twitch-checking {
  opacity: 0.65;
}

.sidebar-twitch-status.twitch-checking .twitch-status-dot {
  animation: twitch-status-pulse 1s ease-in-out infinite;
}

@keyframes twitch-status-pulse {
  0%, 100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* =========================================================
   Drei Live-Systemstatus
   ========================================================= */

.sidebar-twitch-auth-status,
.sidebar-eventsub-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.sidebar-twitch-auth-status strong,
.sidebar-twitch-auth-status small,
.sidebar-eventsub-status strong,
.sidebar-eventsub-status small {
  display: block;
}

.sidebar-twitch-auth-status small,
.sidebar-eventsub-status small {
  opacity: 0.65;
}

.twitch-status-dot,
.eventsub-status-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
}

.sidebar-twitch-auth-status.twitch-online
.twitch-status-dot {
  background: #9147ff;
  box-shadow: 0 0 8px rgba(145, 71, 255, 0.55);
}

.sidebar-twitch-auth-status.twitch-offline
.twitch-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.sidebar-eventsub-status.eventsub-online
.eventsub-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.sidebar-eventsub-status.eventsub-offline
.eventsub-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.sidebar-eventsub-status.eventsub-checking {
  opacity: 0.65;
}

.sidebar-eventsub-status.eventsub-checking
.eventsub-status-dot {
  background: #eab308;
  animation: eventsub-status-pulse 1s ease-in-out infinite;
}

@keyframes eventsub-status-pulse {
  0%, 100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}


/* =========================================================
   Sidebar Footer – einzelne Statusanzeigen statt Sammelbox
   ========================================================= */

.sidebar-footer {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.sidebar-footer > * {
  width: 100%;
  box-sizing: border-box;
}

/* Changelog bleibt eine eigene Karte */
.sidebar-footer .changelog-button {
  margin-bottom: 16px;
}

/* Statusanzeigen ohne eigene große Box */
.sidebar-footer .sidebar-twitch-auth-status,
.sidebar-footer .sidebar-eventsub-status,
.sidebar-footer .sidebar-system-status {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 13px;
}

/* Einheitliche Statusdarstellung */
.sidebar-footer .sidebar-twitch-auth-status,
.sidebar-footer .sidebar-eventsub-status,
.sidebar-footer .sidebar-system-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Der letzte Status braucht keinen zusätzlichen Abstand */
.sidebar-footer .sidebar-system-status {
  margin-bottom: 0;
}

/* Statuspunkt darf nicht schrumpfen */
.sidebar-footer .twitch-status-dot,
.sidebar-footer .eventsub-status-dot,
.sidebar-footer .status-dot {
  flex-shrink: 0;
}

/* Texte */
.sidebar-footer strong {
  display: block;
}

.sidebar-footer small {
  display: block;
}

/* Auf schmaler Sidebar nur die Icons anzeigen */
@media (max-width: 900px) {

  .sidebar-footer .sidebar-twitch-auth-status,
  .sidebar-footer .sidebar-eventsub-status,
  .sidebar-footer .sidebar-system-status {
    justify-content: center;
  }

  .sidebar-footer .sidebar-twitch-auth-status > div:last-child,
  .sidebar-footer .sidebar-eventsub-status > div:last-child,
  .sidebar-footer .sidebar-system-status > div:last-child {
    display: none;
  }

}


/* =========================================================
   Broadcaster Auth Status
   ========================================================= */

.sidebar-broadcaster-auth-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  transition: opacity 0.2s ease;
}

.sidebar-broadcaster-auth-status strong,
.sidebar-broadcaster-auth-status small {
  display: block;
}

.sidebar-broadcaster-auth-status small {
  opacity: 0.65;
}

.broadcaster-status-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  background: #8b8b8b;
}

.sidebar-broadcaster-auth-status.broadcaster-online
.broadcaster-status-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.55);
}

.sidebar-broadcaster-auth-status.broadcaster-offline
.broadcaster-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.sidebar-broadcaster-auth-status.broadcaster-checking {
  opacity: 0.65;
}


/* =========================================================
   Historischer Twitch-Sync – Sidebar Status
   ========================================================= */

.sidebar-historical-sync-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.historical-sync-status-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  background: #777;
  box-shadow: 0 0 0 3px rgba(119, 119, 119, 0.12);
}

.sidebar-historical-sync-status strong {
  display: block;
}

.sidebar-historical-sync-status small {
  display: block;
  opacity: 0.65;
  margin-top: 2px;
}

.sidebar-historical-sync-status.syncing .historical-sync-status-dot {
  animation: historicalSyncPulse 1.2s infinite;
}

.sidebar-historical-sync-status.success .historical-sync-status-dot {
  background: #35d07f;
  box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.12);
}

.sidebar-historical-sync-status.syncing .historical-sync-status-dot {
  background: #f5b942;
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12);
}

.sidebar-historical-sync-status.error .historical-sync-status-dot {
  background: #ff5c5c;
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.12);
}

@keyframes historicalSyncPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}


/* =========================================================
   RANKING – ADMIN RESET BUTTON
   ========================================================= */

.ranking-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin-left: 8px;
  padding: 10px 14px;

  border: 1px solid rgba(224, 82, 82, 0.35);
  border-radius: 9px;

  background: rgba(224, 82, 82, 0.10);
  color: #e05252;

  font-weight: 600;
  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.ranking-reset-button:hover {
  background: rgba(224, 82, 82, 0.18);
  border-color: rgba(224, 82, 82, 0.55);
  transform: translateY(-1px);
}

.ranking-reset-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

@media (max-width: 900px) {
  .ranking-reset-button {
    margin-left: 0;
    margin-top: 8px;
  }
}



/* =========================================================
   MOD CENTER / DISCORD DROPDOWN
   ========================================================= */

.brand-switcher {
  position: relative;
  width: 100%;
}

.brand-switcher .brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

.brand-switcher .brand:hover {
  background: rgba(255, 255, 255, 0.05);
}

.brand-text {
  flex: 1;
  min-width: 0;
}

.brand-chevron {
  font-size: 18px;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.brand-switcher.open .brand-chevron {
  transform: rotate(180deg);
}

.brand-dropdown {
  display: none;
  margin: 6px 4px 10px;
  padding: 6px;
  background: #171923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.brand-switcher.open .brand-dropdown {
  display: block;
}

.brand-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: #b9bdca;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.brand-option:hover {
  background: rgba(124, 58, 237, 0.14);
  color: #fff;
}

.brand-option.active {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.brand-option-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}

.brand-option span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-option strong {
  font-size: 13px;
  line-height: 17px;
}

.brand-option small {
  font-size: 10px;
  line-height: 14px;
  opacity: 0.6;
}


/* =========================================================
   MOD CENTER / DISCORD BRAND SWITCHER
   ========================================================= */

.brand-switcher {
  position: relative;
  width: 100%;
}

.brand-switcher .brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.brand-switcher .brand:hover {
  opacity: 0.95;
}

.brand-switcher .brand-text {
  flex: 1;
  min-width: 0;
}

.brand-switcher .brand-chevron {
  margin-left: auto;
  font-size: 18px;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.brand-switcher.open .brand-chevron {
  transform: rotate(180deg);
}

.brand-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;

  display: none;

  padding: 6px;

  background: rgba(20, 18, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(14px);
}

.brand-switcher.open .brand-dropdown {
  display: block;
}

.brand-option {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px;

  border-radius: 9px;

  color: inherit;
  text-decoration: none;

  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.brand-option:hover {
  background: rgba(124, 58, 237, 0.16);
}

.brand-option.active {
  background: rgba(124, 58, 237, 0.22);
}

.brand-option-icon {
  width: 30px;
  height: 30px;

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

  flex-shrink: 0;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.06);

  font-size: 16px;
}

.brand-option span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-option strong {
  font-size: 13px;
  line-height: 18px;
}

.brand-option small {
  font-size: 10px;
  line-height: 14px;
  opacity: 0.55;
}

/* Abstand zwischen Brand und erstem Menüpunkt */
.nav > .nav-item:first-child {
  margin-top: 10px;
}


/* =========================================================
   FIX: Hauptinhalt neben der festen Sidebar
   ========================================================= */

.main-content {
  margin-left: 306px;
  width: calc(100% - 306px);
  min-width: 0;
}



/* =========================================================
   DISCORD SWITCH LOADER
   ========================================================= */

#discord-switch-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(88, 101, 242, .16),
      transparent 34%
    ),
    #08090f;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .25s ease,
    visibility .25s ease;
}

#discord-switch-loader.visible {
  opacity: 1;
  visibility: visible;
}

.discord-switch-inner {
  width: min(420px, calc(100vw - 40px));
  text-align: center;
  transform: translateY(10px);
  animation: discordSwitchAppear .4s ease forwards;
}

.discord-switch-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 24px;

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

  font-size: 39px;

  background:
    linear-gradient(
      145deg,
      #5865f2,
      #404cca
    );

  box-shadow:
    0 18px 60px rgba(88,101,242,.38),
    0 0 0 1px rgba(255,255,255,.07);

  animation: discordSwitchPulse 1.5s ease-in-out infinite;
}

.discord-switch-label {
  margin-top: 25px;
  color: #737b9c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.discord-switch-title {
  margin-top: 7px;
  color: #f5f6ff;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1px;
}

.discord-switch-subtitle {
  margin-top: 12px;
  color: #858ba5;
  font-size: 13px;
}

.discord-switch-progress-row {
  width: 100%;
  margin-top: 32px;

  display: flex;
  justify-content: space-between;

  color: #8c91aa;
  font-size: 11px;
}

#discord-switch-percent {
  color: #6875f5;
  font-weight: 700;
}

.discord-switch-progress {
  width: 100%;
  height: 5px;
  margin-top: 9px;

  overflow: hidden;
  border-radius: 99px;

  background: rgba(255,255,255,.07);
}

#discord-switch-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #5865f2,
      #7289da
    );

  box-shadow:
    0 0 15px rgba(88,101,242,.55);

  transition: width .08s linear;
}

.discord-switch-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.discord-switch-step {
  height: 34px;

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

  border: 1px solid rgba(255,255,255,.055);
  border-radius: 7px;

  background: rgba(255,255,255,.025);

  color: #555b73;
  font-size: 10px;
  transition: .25s ease;
}

.discord-switch-step.active {
  color: #aeb6ff;

  border-color: rgba(88,101,242,.35);

  background:
    rgba(88,101,242,.09);
}

.discord-switch-footer {
  margin-top: 29px;

  color: #34394d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
}

@keyframes discordSwitchAppear {

  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}

@keyframes discordSwitchPulse {

  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }

}

/* =========================================================
   BEWERBER-HISTORIE
   ========================================================= */

.application-history-stat {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.application-history-stat strong {
  font-size: 20px;
  line-height: 1;
}

.application-history-stat span {
  color: #9ca3af;
  font-size: 12px;
}

.application-history-group {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}

.application-history-group summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  user-select: none;
}

.application-history-group summary::-webkit-details-marker {
  display: none;
}

.application-history-group summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.application-history-group summary b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(88,101,242,.18);
  color: #a5b4fc;
  font-size: 11px;
}

.application-history-group summary > span:last-child {
  font-size: 20px;
  color: #9ca3af;
  transition: transform .15s ease;
}

.application-history-group[open] summary > span:last-child {
  transform: rotate(90deg);
}

.application-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 10px;
}

.application-history-item {
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.application-history-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.application-history-item-main strong {
  font-size: 13px;
}

.application-history-item-main span {
  color: #9ca3af;
  font-size: 11px;
  white-space: nowrap;
}

.application-history-item-meta {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.55;
}

.application-history-chat-message {
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(0,0,0,.18);
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 650px) {
  #application-history-summary {
    grid-template-columns: 1fr !important;
  }

  .application-history-item-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}



/* ============================================================
   CREATOR / SYSTEM OWNER
   ============================================================ */

#user-role.creator-role {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;

  margin-top: 4px;
  padding: 4px 8px;

  border:
    1px solid rgba(168, 85, 247, .38);

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(124, 58, 237, .20),
      rgba(192, 38, 211, .10)
    );

  color: #d8b4fe;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .55px;

  box-shadow:
    0 0 18px rgba(124, 58, 237, .14);
}


/* ============================================================
   ABOUT MOD CENTER
   ============================================================ */

.about-page {
  max-width: 1600px;
  margin: 0 auto;
}


.about-hero {
  position: relative;
  overflow: hidden;

  min-height: 330px;

  display: flex;
  align-items: center;

  padding: 46px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(20, 18, 32, .98),
      rgba(12, 13, 20, .98)
    );

  box-shadow:
    0 24px 70px rgba(0,0,0,.22);
}


.about-hero-glow {
  position: absolute;

  width: 520px;
  height: 520px;

  top: -220px;
  right: -120px;

  border-radius: 50%;

  background:
    rgba(124, 58, 237, .22);

  filter: blur(90px);

  pointer-events: none;
}


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

  max-width: 850px;
}


.about-eyebrow,
.about-card-label,
.about-system-card > span {
  display: block;

  margin-bottom: 12px;

  color: #a78bfa;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}


.about-hero h2 {
  margin:
    0 0 18px;

  max-width: 850px;

  color: #f8f8fc;

  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;

  letter-spacing: -2px;
}


.about-hero p {
  max-width: 760px;

  margin: 0;

  color: #a6a9b8;

  font-size: 16px;
  line-height: 1.8;
}


.about-hero p strong {
  color: #ffffff;
}


.about-hero-badges {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;

  margin-top: 28px;
}


.about-hero-badges span {
  padding:
    8px 12px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 999px;

  background:
    rgba(255,255,255,.035);

  color: #c4c6d2;

  font-size: 11px;
  font-weight: 700;
}


.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(280px, .65fr);

  gap: 18px;

  margin-top: 18px;
}


.about-card {
  min-height: 245px;

  padding: 28px;

  border:
    1px solid rgba(255,255,255,.07);

  border-radius: 18px;

  background:
    rgba(18, 19, 28, .86);

  box-shadow:
    0 18px 44px rgba(0,0,0,.14);
}


.about-card h3 {
  margin:
    0 0 10px;

  color: #f1f2f8;

  font-size: 25px;
}


.about-card p {
  margin: 0;

  color: #9297a9;

  line-height: 1.7;
}


.creator-card {
  display: flex;

  align-items: center;

  gap: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.12),
      rgba(18,19,28,.92) 55%
    );
}


.creator-icon {
  width: 94px;
  height: 94px;

  flex: 0 0 94px;

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

  border:
    1px solid rgba(167,139,250,.24);

  border-radius: 24px;

  background:
    rgba(124,58,237,.13);

  font-size: 38px;

  box-shadow:
    0 0 35px rgba(124,58,237,.18);
}


.creator-copy {
  min-width: 0;
}


.creator-title {
  margin-bottom: 12px !important;

  color: #c4b5fd !important;

  font-weight: 700;
}


.system-owner-badge {
  width: fit-content;

  display: flex;
  align-items: center;

  gap: 7px;

  margin-top: 19px;

  padding:
    7px 11px;

  border:
    1px solid rgba(168,85,247,.28);

  border-radius: 999px;

  background:
    rgba(124,58,237,.11);

  color: #d8b4fe;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: .75px;
}


.system-owner-badge span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #a855f7;

  box-shadow:
    0 0 11px rgba(168,85,247,.9);

  animation:
    creatorPulse 1.8s infinite;
}


@keyframes creatorPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .45;
    transform: scale(.72);
  }

}


.about-system-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-top: 18px;
}


.about-system-card {
  padding: 25px;

  border:
    1px solid rgba(255,255,255,.07);

  border-radius: 18px;

  background:
    rgba(18,19,28,.78);

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}


.about-system-card:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(124,58,237,.28);

  background:
    rgba(22,21,34,.95);
}


.about-system-icon {
  width: 48px;
  height: 48px;

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

  margin-bottom: 20px;

  border-radius: 14px;

  background:
    rgba(124,58,237,.10);

  font-size: 21px;
}


.about-system-card h3 {
  margin:
    0 0 10px;

  color: #f1f2f8;

  font-size: 20px;
}


.about-system-card p {
  margin: 0;

  color: #8e93a5;

  line-height: 1.65;
}


.about-statement {
  margin-top: 18px;
  padding: 46px 28px;

  text-align: center;

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

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(124,58,237,.07),
      rgba(15,16,23,.78)
    );
}


.about-statement span {
  display: block;

  color: #8f94a6;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1.5px;
}


.about-statement strong {
  display: block;

  margin-top: 9px;

  color: #f6f4ff;

  font-size: 30px;
}


.about-statement p {
  margin:
    10px 0 0;

  color: #686d7e;

  font-size: 11px;
}


@media (max-width: 1000px) {

  .about-grid {
    grid-template-columns:
      1fr;
  }

  .about-system-grid {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 700px) {

  .about-hero {
    padding: 30px 22px;
  }

  .creator-card {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

}



/* ============================================================
   ABOUT PAGE – PREMIUM FINISH
   ============================================================ */


/* ------------------------------------------------------------
   Creator Badge oben rechts
   ------------------------------------------------------------ */

#user-role.creator-role {
  position: relative;

  padding:
    5px 10px;

  border:
    1px solid rgba(192, 132, 252, .45);

  background:
    linear-gradient(
      135deg,
      rgba(124, 58, 237, .26),
      rgba(168, 85, 247, .12)
    );

  color:
    #eadcff;

  font-size:
    9px;

  font-weight:
    900;

  letter-spacing:
    .7px;

  box-shadow:
    0 0 18px rgba(139, 92, 246, .18),
    inset 0 0 12px rgba(255,255,255,.025);
}

#user-role.creator-role::after {
  content: "";

  position: absolute;

  inset: -1px;

  z-index: -1;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(192,132,252,.22),
      transparent
    );

  opacity: .8;

  filter:
    blur(6px);
}


/* ------------------------------------------------------------
   Hero Watermark
   ------------------------------------------------------------ */

.about-hero {
  isolation:
    isolate;
}

.about-hero-watermark {
  position: absolute;

  right: 55px;
  top: 50%;

  transform:
    translateY(-50%);

  z-index: 1;

  display: flex;
  align-items: center;

  pointer-events: none;

  opacity: .07;

  user-select: none;
}

.about-hero-watermark strong {
  display: block;

  color: #ffffff;

  font-size:
    clamp(110px, 13vw, 210px);

  font-weight:
    900;

  line-height:
    .8;

  letter-spacing:
    -10px;
}

.about-watermark-crown {
  position: absolute;

  top: -44px;
  left: 14px;

  font-size:
    42px;

  transform:
    rotate(-8deg);

  filter:
    grayscale(.1);
}

.about-hero-content {
  width:
    min(780px, 72%);
}


/* ------------------------------------------------------------
   Creator Card Premium Look
   ------------------------------------------------------------ */

.creator-card {
  position: relative;

  overflow: hidden;

  border:
    1px solid rgba(151, 92, 255, .18);

  background:
    linear-gradient(
      135deg,
      rgba(120, 61, 231, .14),
      rgba(18,19,28,.95) 44%,
      rgba(16,16,25,.92)
    );

  box-shadow:
    0 20px 55px rgba(0,0,0,.19),
    inset 0 1px 0 rgba(255,255,255,.025);
}

.creator-card::before {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  left: -120px;
  bottom: -170px;

  border-radius:
    50%;

  background:
    rgba(124, 58, 237, .14);

  filter:
    blur(75px);

  pointer-events:
    none;
}

.creator-card::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events:
    none;

  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255,255,255,.025) 42%,
      transparent 66%
    );
}

.creator-icon,
.creator-copy {
  position:
    relative;

  z-index:
    2;
}

.creator-icon {
  border:
    1px solid rgba(192,132,252,.30);

  background:
    linear-gradient(
      145deg,
      rgba(124,58,237,.22),
      rgba(91,33,182,.10)
    );

  box-shadow:
    0 0 34px rgba(124,58,237,.23),
    inset 0 0 20px rgba(255,255,255,.025);
}

.creator-copy h3 {
  font-size:
    29px;

  letter-spacing:
    -.7px;
}

.creator-title {
  letter-spacing:
    .15px;
}

.creator-meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    12px;

  margin-top:
    19px;
}

.creator-meta .system-owner-badge {
  margin-top:
    0;
}

.creator-signature {
  color:
    #696f82;

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    1px;
}


/* ------------------------------------------------------------
   Cards etwas hochwertiger
   ------------------------------------------------------------ */

.about-card,
.about-system-card,
.about-statement {
  backdrop-filter:
    blur(10px);
}

.about-system-card {
  position:
    relative;

  overflow:
    hidden;
}

.about-system-card::after {
  content: "";

  position:
    absolute;

  inset: auto 0 0;

  height:
    1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(124,58,237,.22),
      transparent
    );

  opacity:
    0;

  transition:
    opacity .2s ease;
}

.about-system-card:hover::after {
  opacity:
    1;
}


/* ------------------------------------------------------------
   Bottom Signature
   ------------------------------------------------------------ */

.about-statement {
  position:
    relative;

  overflow:
    hidden;

  padding:
    50px 28px;
}

.about-statement::before {
  content: "";

  position:
    absolute;

  width:
    300px;

  height:
    160px;

  top:
    -100px;

  left:
    50%;

  transform:
    translateX(-50%);

  background:
    rgba(124,58,237,.14);

  filter:
    blur(75px);

  border-radius:
    50%;
}

.about-statement > * {
  position:
    relative;

  z-index:
    2;
}

.about-statement-roles {
  margin-top:
    9px;

  color:
    #a6a1bd;

  font-size:
    10px;

  font-weight:
    700;

  letter-spacing:
    .8px;
}

.about-statement p {
  margin-top:
    13px;
}


/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media (max-width: 900px) {

  .about-hero-watermark {
    right:
      25px;

    opacity:
      .04;
  }

  .about-hero-content {
    width:
      100%;
  }

}



/* ============================================================
   CREATOR BADGE – MODERATORENLISTE
   ============================================================ */

.role-badge.creator-list-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding:
    5px 9px;

  border:
    1px solid rgba(192,132,252,.38);

  border-radius:
    999px;

  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.22),
      rgba(168,85,247,.10)
    );

  color:
    #e4d3ff;

  font-size:
    10px;

  font-weight:
    850;

  letter-spacing:
    .35px;

  box-shadow:
    0 0 14px rgba(124,58,237,.14);
}

.role-badge.creator-list-role::after {
  content:
    "SYSTEM OWNER";

  margin-left:
    3px;

  padding-left:
    7px;

  border-left:
    1px solid rgba(255,255,255,.12);

  color:
    #9f8fba;

  font-size:
    8px;

  font-weight:
    800;

  letter-spacing:
    .7px;
}



/* ============================================================
   MODERATOR CREATOR PROFILE
   ============================================================ */

.creator-profile-card {
  position: relative;

  overflow: hidden;

  margin-bottom: 22px;
  padding: 24px;

  display: flex;
  align-items: center;

  gap: 20px;

  border:
    1px solid rgba(168,85,247,.28);

  border-radius:
    17px;

  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.18),
      rgba(18,19,28,.96) 48%,
      rgba(13,14,21,.96)
    );

  box-shadow:
    0 18px 45px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.creator-profile-card.hidden {
  display: none;
}

.creator-profile-glow {
  position: absolute;

  width: 260px;
  height: 260px;

  left: -110px;
  top: -100px;

  border-radius: 50%;

  background:
    rgba(124,58,237,.24);

  filter:
    blur(75px);

  pointer-events: none;
}

.creator-profile-crown {
  position: relative;
  z-index: 2;

  width: 78px;
  height: 78px;

  flex: 0 0 78px;

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

  border:
    1px solid rgba(192,132,252,.30);

  border-radius:
    20px;

  background:
    linear-gradient(
      145deg,
      rgba(124,58,237,.24),
      rgba(91,33,182,.10)
    );

  font-size: 31px;

  box-shadow:
    0 0 30px rgba(124,58,237,.20);
}

.creator-profile-content {
  position: relative;
  z-index: 2;

  min-width: 0;
}

.creator-profile-eyebrow {
  display: block;

  margin-bottom: 6px;

  color: #a78bfa;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1.2px;
}

.creator-profile-title-row {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 10px;
}

.creator-profile-title-row h3 {
  margin: 0;

  color: #f8f7ff;

  font-size: 24px;

  letter-spacing: -.5px;
}

.creator-profile-owner {
  display: inline-flex;

  align-items: center;

  padding: 5px 8px;

  border:
    1px solid rgba(192,132,252,.35);

  border-radius: 999px;

  background:
    rgba(124,58,237,.17);

  color: #dec9ff;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: .75px;

  box-shadow:
    0 0 14px rgba(124,58,237,.13);
}

.creator-profile-position {
  display: block;

  margin-top: 7px;

  color: #c4b5fd;

  font-size: 11px;
}

.creator-profile-content p {
  margin:
    10px 0 0;

  max-width:
    570px;

  color:
    #8f95a8;

  font-size:
    11px;

  line-height:
    1.6;
}

.creator-profile-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top:
    14px;
}

.creator-profile-tags span {
  padding:
    5px 8px;

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

  border-radius:
    999px;

  background:
    rgba(255,255,255,.028);

  color:
    #9da2b3;

  font-size:
    8px;

  font-weight:
    750;
}

.creator-profile-footer {
  margin-top:
    13px;

  color:
    #62687a;

  font-size:
    8px;

  font-weight:
    850;

  letter-spacing:
    .8px;
}


/* Creator Modal bekommt etwas mehr Glow */

.creator-modal-active .modal-window,
.creator-modal-active .manage-modal-window {
  border-color:
    rgba(139,92,246,.20);

  box-shadow:
    0 28px 80px rgba(0,0,0,.42),
    0 0 55px rgba(124,58,237,.08);
}


@media (max-width: 700px) {

  .creator-profile-card {
    align-items: flex-start;

    flex-direction: column;
  }

}



/* ============================================================
   Discord-ID Verknüpfung
   ============================================================ */

.discord-link-card {
  max-width: 560px;
}

.discord-link-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  margin-bottom: 22px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 12px;
}

.discord-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(88, 101, 242, 0.18);
  font-size: 22px;
  font-weight: 800;
}

.discord-link-info strong {
  display: block;
  margin-bottom: 4px;
}

.discord-link-info small {
  display: block;
  color: #adadb8;
  line-height: 1.45;
}

.discord-link-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #3a3a40;
  border-radius: 10px;
  background: #0e0e10;
  color: #ffffff;
  font: inherit;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.discord-link-field input:focus {
  border-color: #9147ff;
  box-shadow: 0 0 0 3px rgba(145, 71, 255, 0.12);
}

.discord-link-field input::placeholder {
  color: #71717a;
}

.discord-link-field > small {
  color: #71717a;
  font-size: 12px;
  line-height: 1.45;
}

.discord-link-actions {
  flex-wrap: wrap;
}

.discord-skip-button {
  margin-left: auto;
}

#discord-link-message.discord-link-error {
  color: #ff6b6b;
}

#discord-link-message.discord-link-success {
  color: #4ade80;
}

@media (max-width: 600px) {
  .discord-skip-button {
    margin-left: 0;
  }
}

