:root {
  --bg: #030303;
  --bg-panel: rgba(255, 255, 255, 0.035);
  --bg-panel-2: rgba(255, 255, 255, 0.028);
  --bg-panel-3: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.065);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --accent: #5abdf6;
  --accent-bright: #8fd4fa;
  --accent-dark: #2e9de0;
  --accent-glow: rgba(90, 189, 246, 0.32);
  --accent-shadow-glow: 0 0 20px rgba(90, 189, 246, 0.35);
  --font-body: "Inter", "Segoe UI", ui-sans-serif, system-ui, Roboto, -apple-system, sans-serif;
  --font-display: "Orbitron", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --teal: #5fd4c4;
  --teal-bright: #8fe6da;
  --teal-glow: rgba(95, 212, 196, 0.24);
  --gold: #e8b866;
  --gold-bright: #f3cd8c;
  --gold-dark: #c9962f;
  --gold-glow: rgba(232, 184, 102, 0.24);
  --text: #f2f2f5;
  --text-muted: #9997a6;
  --text-faint: #686773;
  --success: #6ee7a8;
  --success-glow: rgba(110, 231, 168, 0.22);
  --error: #f38ba0;
  --error-glow: rgba(243, 139, 160, 0.22);
  /* Plattform-Markenfarben - fuer die Discord-/Twitch-Seiten, statt ueberall nur
     die eine Akzentfarbe zu nutzen (echtes Discord-Blurple/Twitch-Violett). */
  --discord: #5865f2;
  --discord-bright: #8b93f8;
  --discord-glow: rgba(88, 101, 242, 0.3);
  --twitch: #9146ff;
  --twitch-bright: #b98bff;
  --twitch-glow: rgba(145, 70, 255, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(139, 143, 245, 0.2), 0 0 18px -6px var(--accent-glow);
  --glass-blur: blur(8px) saturate(130%);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* Blue-Glassmorphism-Design: staerkeres Glas fuer Karten/Modals/Tabellen,
     getrennt von --glass-blur (schwaecher, fuer Sidebar/Inputs). Radius bewusst
     niedrig gehalten - backdrop-filter-Blur ist teuer zu rendern (Kosten skalieren
     ~quadratisch mit dem Radius) und liess Hover-Uebergaenge traege wirken. */
  --glass-blur-strong: blur(12px) saturate(140%);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  --glass-highlight-strong: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glow-blue: 0 0 24px rgba(80, 180, 240, 0.35), 0 0 48px rgba(80, 180, 240, 0.15);
  --glow-blue-strong: 0 0 28px rgba(80, 180, 240, 0.5);
  --glow-gold: 0 0 24px rgba(232, 184, 102, 0.35), 0 0 48px rgba(232, 184, 102, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.icon {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

::selection {
  background: rgba(139, 143, 245, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2a2a33;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a46;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% -10%, rgba(139, 143, 245, 0.14), transparent 65%),
    radial-gradient(45% 40% at 100% 0%, rgba(95, 212, 196, 0.08), transparent 60%);
}

@keyframes borderGlow {
  0%,
  100% {
    border-color: rgba(80, 180, 240, 0.3);
  }
  50% {
    border-color: rgba(80, 180, 240, 0.6);
  }
}

.animate-border-glow {
  animation: borderGlow 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-border-glow {
    animation: none;
  }
}

/* ---------- Glass-Utility-Bausteine ---------- */

.glass {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--glass-highlight-strong), var(--shadow-md);
}

.glass-blue {
  background: linear-gradient(135deg, rgba(80, 180, 240, 0.14), rgba(80, 180, 240, 0.04));
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid rgba(80, 180, 240, 0.3);
  box-shadow: var(--glass-highlight-strong), var(--shadow-md);
}

.glass-gold {
  background: linear-gradient(135deg, rgba(232, 184, 102, 0.14), rgba(232, 184, 102, 0.04));
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid rgba(232, 184, 102, 0.3);
  box-shadow: var(--glass-highlight-strong), var(--shadow-md);
}

.glow-blue {
  box-shadow: var(--glow-blue);
}

.glow-gold {
  box-shadow: var(--glow-gold);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #d4af37, #f4d03f, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

a {
  color: var(--accent-bright);
  transition: color 0.15s var(--ease);
}
a:hover {
  color: var(--teal-bright);
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 244px;
  background: rgba(13, 15, 18, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
  padding: 22px 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
  transition: width 0.2s var(--ease), padding 0.2s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

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

.sidebar-collapse-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 8px;
  background: var(--bg-panel-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: none;
}

.sidebar-collapse-btn:hover {
  background: var(--bg-panel-3);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.sidebar.collapsed {
  width: 76px;
}

.sidebar.collapsed .brand-text-wrap,
.sidebar.collapsed .label-text,
.sidebar.collapsed .nav-section,
.sidebar.collapsed .logout .who {
  display: none;
}

.sidebar.collapsed .brand {
  justify-content: center;
}

.sidebar.collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
}

.sidebar.collapsed nav a {
  justify-content: center;
}

.brand .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(90, 189, 246, 0.3), rgba(90, 189, 246, 0.08));
  border: 1px solid rgba(90, 189, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(90, 189, 246, 0.2);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.brand:hover .brand-icon {
  transform: scale(1.06);
  border-color: var(--accent);
  box-shadow: var(--accent-shadow-glow);
}

.brand .brand-text {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand .brand-text small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

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

.nav-section {
  margin: 14px 0 4px;
  padding: 0 13px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.nav-section:first-child {
  margin-top: 2px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  position: relative;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-soft);
  color: var(--text);
}

.sidebar nav a.active {
  background: linear-gradient(to right, rgba(90, 189, 246, 0.15), rgba(90, 189, 246, 0.05));
  border-color: rgba(90, 189, 246, 0.2);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar nav a.nav-discord.active {
  background: linear-gradient(to right, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
  border-color: rgba(88, 101, 242, 0.2);
  color: var(--discord-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar nav a.nav-twitch.active {
  background: linear-gradient(to right, rgba(145, 70, 255, 0.15), rgba(145, 70, 255, 0.05));
  border-color: rgba(145, 70, 255, 0.2);
  color: var(--twitch-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-upgrade {
  margin-top: auto;
  padding-top: 14px;
}

.sidebar-upgrade .btn {
  width: 100%;
  justify-content: center;
}

.sidebar .logout {
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.sidebar .logout .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-panel-3);
}

.sidebar .logout .avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-panel-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar .logout .who {
  min-width: 0;
  flex: 1;
}

.sidebar .logout .who .name {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-open-btn {
  margin-top: 2px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-faint);
  cursor: pointer;
  box-shadow: none;
}
.profile-open-btn:hover {
  color: var(--accent);
  background: none;
  box-shadow: none;
  transform: none;
}

/* ---------- Profil-Popup ---------- */

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.15s var(--ease) both;
}
.profile-modal-backdrop[hidden] {
  display: none;
}

.profile-modal {
  width: 100%;
  max-width: 320px;
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), 0 0 60px rgba(140, 190, 220, 0.15);
  padding: 18px;
  margin: 16px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.2s var(--ease) both;
}

.profile-modal-glows {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.profile-modal-glows span {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.profile-modal-glows span:nth-child(1) {
  width: 200px;
  height: 200px;
  top: -70px;
  left: -70px;
  background: rgba(90, 189, 246, 0.25);
}
.profile-modal-glows span:nth-child(2) {
  width: 180px;
  height: 180px;
  top: 30%;
  right: -80px;
  background: rgba(90, 189, 246, 0.15);
}
.profile-modal-glows span:nth-child(3) {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -50px;
  background: rgba(95, 212, 196, 0.1);
}

.profile-modal-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.profile-modal-header .avatar,
.profile-modal-header .avatar-fallback {
  width: 40px;
  height: 40px;
}

.profile-modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.profile-modal-title-wrap #profile-modal-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-modal-subtitle {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.profile-modal-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-panel-3);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
}
.profile-modal-close:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-panel-3);
  box-shadow: none;
  transform: none;
}

.profile-modal-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.profile-tab-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: calc(var(--radius-sm) - 3px);
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}
.profile-tab-btn:hover {
  color: var(--text);
  background: var(--bg-panel-3);
  box-shadow: none;
  transform: none;
}
.profile-tab-btn.active {
  background: rgba(90, 189, 246, 0.15);
  border-color: rgba(90, 189, 246, 0.25);
  color: var(--accent-bright);
}

.profile-modal-body {
  position: relative;
  z-index: 1;
  min-height: 46px;
}

.profile-tab-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.profile-tab-panel.active {
  display: flex;
}

.profile-tab-panel .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Main ---------- */

.main {
  flex: 1;
  padding: 32px 40px 56px;
  max-width: 1160px;
  min-width: 0;
}

.page-header {
  margin: 0 0 26px;
  padding: 20px 26px;
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--glass-highlight-strong), var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 140% at 100% 0%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.page-header.discord::before {
  background: radial-gradient(55% 140% at 100% 0%, var(--discord-glow), transparent 70%);
}

.page-header.twitch::before {
  background: radial-gradient(55% 140% at 100% 0%, var(--twitch-glow), transparent 70%);
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header-title {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.page-header-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(90, 189, 246, 0.3), rgba(90, 189, 246, 0.1));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--accent-bright);
}

.page-header-icon.discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(88, 101, 242, 0.1));
  border-color: rgba(88, 101, 242, 0.4);
  color: var(--discord-bright);
}

.page-header-icon.twitch {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.35), rgba(145, 70, 255, 0.1));
  border-color: rgba(145, 70, 255, 0.4);
  color: var(--twitch-bright);
}

.main h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  animation: fadeInUp 0.3s var(--ease) both;
}

.main h2 .grad {
  color: var(--text);
}

.page-subtitle {
  margin: 3px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  animation: fadeInUp 0.3s var(--ease) both;
}

.filters.tab-bar a {
  font-weight: 600;
}

.filters.tab-bar.twitch-tabs a.active {
  background: rgba(145, 70, 255, 0.15);
  color: var(--twitch-bright);
  border-color: rgba(145, 70, 255, 0.3);
  box-shadow: none;
}

.filters.tab-bar.discord-tabs a.active {
  background: rgba(88, 101, 242, 0.15);
  color: var(--discord-bright);
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: none;
}

.filters .count {
  opacity: 0.6;
  margin-left: 2px;
}

/* ---------- Farbige Initialen-Avatare (Subscriber-/Teilnehmerlisten) ---------- */

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-bright);
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(90, 189, 246, 0.25), rgba(90, 189, 246, 0.05));
  border: 1px solid rgba(90, 189, 246, 0.25);
  transition: box-shadow 0.15s var(--ease);
}

tbody tr:hover .avatar-circle {
  box-shadow: 0 0 14px rgba(90, 189, 246, 0.3);
}

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

.user-cell .user-name {
  font-weight: 600;
  color: var(--text);
}

.user-cell .user-sub {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: 1px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.section-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
}

.section-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.section-title .desc {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 400;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--glass-highlight-strong), var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  animation: fadeInUp 0.3s var(--ease) both;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 55%);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(90, 189, 246, 0.3);
  box-shadow: var(--glass-highlight-strong), var(--glow-blue);
}

.card .icon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(90, 189, 246, 0.3), rgba(90, 189, 246, 0.08));
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--accent-bright);
}

.card .icon-badge.success {
  background: linear-gradient(135deg, rgba(110, 231, 168, 0.3), rgba(110, 231, 168, 0.08));
  border-color: rgba(110, 231, 168, 0.3);
  color: var(--success);
}

.card .icon-badge.error {
  background: linear-gradient(135deg, rgba(243, 139, 160, 0.3), rgba(243, 139, 160, 0.08));
  border-color: rgba(243, 139, 160, 0.3);
  color: var(--error);
}

.card .icon-badge.gold {
  background: linear-gradient(135deg, rgba(232, 184, 102, 0.3), rgba(232, 184, 102, 0.08));
  border-color: rgba(232, 184, 102, 0.3);
  color: var(--gold-bright);
}

.card .icon-badge.discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.08));
  border-color: rgba(88, 101, 242, 0.32);
  color: var(--discord-bright);
}

.card .icon-badge.twitch {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.3), rgba(145, 70, 255, 0.08));
  border-color: rgba(145, 70, 255, 0.32);
  color: var(--twitch-bright);
}

.grid .card:nth-child(1) { animation-delay: 0.02s; }
.grid .card:nth-child(2) { animation-delay: 0.05s; }
.grid .card:nth-child(3) { animation-delay: 0.08s; }
.grid .card:nth-child(4) { animation-delay: 0.11s; }
.grid .card:nth-child(5) { animation-delay: 0.14s; }
.grid .card:nth-child(6) { animation-delay: 0.17s; }

.card .label {
  color: var(--text-muted);
  font-size: 0.71rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 7px;
  color: var(--text);
  letter-spacing: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.online,
.badge.live,
.badge.active {
  background: rgba(110, 231, 168, 0.14);
  color: var(--success);
}

.badge.online::before,
.badge.live::before,
.badge.active::before {
  animation: pulseDot 2s ease-in-out infinite;
}

.badge.offline,
.badge.inactive {
  background: rgba(153, 151, 166, 0.14);
  color: var(--text-muted);
}

.badge.error {
  background: rgba(243, 139, 160, 0.14);
  color: var(--error);
}

.badge.gold {
  background: rgba(232, 184, 102, 0.14);
  color: var(--gold-bright);
}

.badge.accent {
  background: rgba(90, 189, 246, 0.14);
  color: var(--accent-bright);
}

.badge.teal {
  background: rgba(95, 212, 196, 0.14);
  color: var(--teal-bright);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--glass-highlight-strong), var(--shadow-sm);
  animation: fadeInUp 0.3s var(--ease) both;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
}

th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
}

thead tr:hover {
  background: transparent;
}

tbody tr {
  cursor: default;
  transition: background 0.15s var(--ease);
}

tbody tr:hover {
  background: rgba(90, 189, 246, 0.06);
}

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

code {
  background: var(--bg-panel-3);
  border: 1px solid var(--border-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.81rem;
  color: var(--teal-bright);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-muted);
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.89rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

/* Der native Options-Popup faellt in Chromium sonst auf helle System-Darstellung
   zurueck, egal was auf dem <select> selbst steht - color-scheme + explizite
   option-Farben erzwingen die dunkle Darstellung auch fuer die aufgeklappte Liste. */
select {
  color-scheme: dark;
}

select option {
  background: #1c1c22;
  color: var(--text);
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(90, 189, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(90, 189, 246, 0.16);
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

/* Nativer type="file"-Input faellt sonst komplett aus dem dunklen Theme (weisser
   System-Button + heller Dateiname-Text) - Container wie die anderen Inputs stylen,
   den Button-Teil ueber die ::file-selector-button-Pseudo-Klasse wie .btn aussehen lassen. */
input[type="file"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #081019;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

input[type="file"]::file-selector-button:hover {
  background: var(--accent-bright);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

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

.checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

button,
.btn {
  background: var(--accent);
  color: #081019;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--accent-shadow-glow);
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

button:hover,
.btn:hover {
  background: var(--accent-bright);
  color: #081019;
  box-shadow: var(--glow-blue-strong);
}

button:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--glow-blue-strong), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn.gold {
  background: var(--gold);
  color: #241a02;
  box-shadow: 0 0 20px rgba(232, 184, 102, 0.35);
}
.btn.gold:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 26px rgba(232, 184, 102, 0.5);
}

.btn.secondary {
  background: var(--bg-panel-3);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--bg-panel-3);
  border-color: var(--accent);
  box-shadow: none;
}

.btn.danger {
  background: var(--error);
  color: #2b0810;
  box-shadow: 0 0 20px rgba(243, 139, 160, 0.35);
}
.btn.danger:hover {
  background: #f8adbd;
  box-shadow: 0 0 26px rgba(243, 139, 160, 0.5);
}

.btn.small {
  padding: 5px 11px;
  font-size: 0.64rem;
  box-shadow: none;
}

.inline-form {
  display: inline-block;
  margin: 0 4px 0 0;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: fadeInUp 0.25s var(--ease) both;
}

.alert.success {
  background: rgba(110, 231, 168, 0.1);
  color: #8ff0bb;
  border-color: rgba(110, 231, 168, 0.25);
}

.alert.error {
  background: rgba(243, 139, 160, 0.1);
  color: #f6a5b6;
  border-color: rgba(243, 139, 160, 0.25);
}

.alert.success::before {
  content: "✓";
  font-weight: 800;
}
.alert.error::before {
  content: "!";
  font-weight: 800;
}

/* ---------- Public / login pages ---------- */

.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.center-page .icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.center-page h1,
.center-page p,
.center-page .btn {
  animation: fadeInUp 0.3s var(--ease) both;
}
.center-page p {
  animation-delay: 0.04s;
}
.center-page .btn {
  animation-delay: 0.08s;
}

.center-page h1 {
  margin-bottom: 8px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.onboarding-progress {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  animation: fadeInUp 0.3s var(--ease) both;
}

.center-page p {
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.55;
}

.filters {
  margin-bottom: 16px;
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  animation: fadeInUp 0.3s var(--ease) both;
}

.filters a {
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.filters a:hover {
  color: var(--text);
  border-color: transparent;
}

.filters a.active {
  background: rgba(90, 189, 246, 0.15);
  color: var(--accent-bright);
  border-color: rgba(90, 189, 246, 0.25);
  box-shadow: none;
}

/* ---------- Landing page ---------- */

.landing {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Fixed, viewport-wide decorative layer so the glow fills the screen on any
   size/aspect ratio instead of just hugging the (narrower) content column. */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, 5vh) scale(1.1); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5vw, -4vh) scale(1.05); }
}

.landing-bg::before,
.landing-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.landing-bg::before {
  width: 42vmin;
  height: 42vmin;
  top: -10vmin;
  left: 4vw;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation: driftA 18s ease-in-out infinite alternate;
}
.landing-bg::after {
  width: 38vmin;
  height: 38vmin;
  top: 18vh;
  right: 4vw;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  animation: driftB 20s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .landing-bg::before,
  .landing-bg::after {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.landing-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(90, 189, 246, 0.3), rgba(90, 189, 246, 0.08));
  border: 1px solid rgba(90, 189, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 14px rgba(90, 189, 246, 0.2);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.landing-nav-links a:hover {
  color: var(--accent-bright);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s var(--ease) both;
}

.landing-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 24px 56px;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.landing-hero .icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s var(--ease) both, floatY 4.5s ease-in-out 0.5s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero .icon {
    animation: fadeInUp 0.3s var(--ease) both;
  }
}

.landing-hero h1,
.landing-hero p,
.landing-cta,
.landing-hint {
  animation: fadeInUp 0.3s var(--ease) both;
}
.landing-hero p { animation-delay: 0.04s; }
.landing-cta { animation-delay: 0.08s; }
.landing-hint { animation-delay: 0.12s; }

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

.landing-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--accent-bright) 0%, var(--text) 35%, var(--teal-bright) 60%, var(--accent-bright) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 0.3s var(--ease) both, gradientShift 7s ease-in-out 0.3s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .landing-wordmark {
    animation: fadeInUp 0.3s var(--ease) both;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
  }
}

.landing-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent-bright) 35%, var(--teal-bright) 60%, var(--text) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 0.3s var(--ease) both, gradientShift 7s ease-in-out 0.3s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero h1 {
    animation: fadeInUp 0.3s var(--ease) both;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
  }
}

.landing-hero p {
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin: 0 auto;
}

.landing-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
  max-width: 640px;
  width: 100%;
  animation: fadeInUp 0.3s var(--ease) both;
  animation-delay: 0.06s;
}

.landing-choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 24px 20px;
}

.landing-choice-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.landing-choice-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
}

.landing-choice-card p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.landing-choice-card .btn {
  width: 100%;
  justify-content: center;
}

.landing-choice-card .btn + .btn {
  margin-top: 8px;
}

@media (max-width: 560px) {
  .landing-choice {
    grid-template-columns: 1fr;
  }
}

.landing-hint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.landing-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin: 34px 0 0;
  animation: fadeInUp 0.3s var(--ease) 0.16s both;
}

.landing-stat {
  text-align: center;
}

.landing-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.landing-stat-label {
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.live-dot {
  background: var(--error);
  animation: pulseDot 2s ease-in-out infinite;
}

.landing-live-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-live-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

.landing-live-slider::-webkit-scrollbar {
  height: 8px;
}
.landing-live-slider::-webkit-scrollbar-thumb {
  background: #2a2a33;
  border-radius: 999px;
}

.landing-live-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-panel-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.landing-live-arrow:hover {
  background: var(--accent-dark);
  border-color: transparent;
  transform: scale(1.06);
}

.landing-live-card {
  scroll-snap-align: start;
  flex: 0 0 250px;
  display: block;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.landing-live-card:hover {
  transform: translateY(-3px);
  border-color: var(--error);
  box-shadow: 0 10px 22px -10px var(--error-glow);
  color: var(--text);
}

.landing-live-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-panel-3);
  background-size: cover;
  background-position: center;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.landing-live-thumb.no-thumb {
  background-image: radial-gradient(120% 140% at 20% -10%, rgba(139, 143, 245, 0.28), transparent 60%),
    radial-gradient(120% 140% at 100% 120%, rgba(95, 212, 196, 0.2), transparent 60%);
}

.landing-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--error);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.landing-live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.landing-live-body {
  padding: 14px 16px 16px;
}

.landing-live-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.landing-live-flag {
  font-size: 0.85em;
  margin-left: 2px;
}

.landing-live-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-live-game {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.landing-live-empty {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .landing-stats {
    gap: 24px;
  }
  .landing-live-card {
    flex-basis: 210px;
  }
  .landing-live-arrow {
    display: none !important;
  }
}

.landing-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
}

.landing-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.landing-section-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.landing-section-title h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-feature {
  padding: 24px 22px;
}

.landing-feature h3 {
  margin: 16px 0 7px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.landing-feature p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.landing-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--bg-panel-3);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.landing-feature:hover .landing-feature-icon {
  transform: scale(1.08) rotate(-6deg);
  border-color: var(--accent);
}

/* Verifizierung - gruen (Erfolg/Freischaltung) */
.landing-feature:nth-of-type(1) .landing-feature-icon {
  background: linear-gradient(135deg, rgba(110, 231, 168, 0.35), rgba(110, 231, 168, 0.1));
  border-color: rgba(110, 231, 168, 0.3);
}
.landing-feature:nth-of-type(1):hover .landing-feature-icon {
  box-shadow: 0 0 20px var(--success-glow);
}
/* Live-Benachrichtigungen - rot (Live-Indikator) */
.landing-feature:nth-of-type(2) .landing-feature-icon {
  background: linear-gradient(135deg, rgba(243, 139, 160, 0.35), rgba(243, 139, 160, 0.1));
  border-color: rgba(243, 139, 160, 0.3);
}
.landing-feature:nth-of-type(2):hover .landing-feature-icon {
  box-shadow: 0 0 20px var(--error-glow);
}
/* Mod & VIP Sync - Discord-Blurple (Rollen-Feature) */
.landing-feature:nth-of-type(3) .landing-feature-icon {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(88, 101, 242, 0.1));
  border-color: rgba(88, 101, 242, 0.35);
}
.landing-feature:nth-of-type(3):hover .landing-feature-icon {
  box-shadow: 0 0 20px var(--discord-glow);
}
/* Giveaways - gold */
.landing-feature:nth-of-type(4) .landing-feature-icon {
  background: linear-gradient(135deg, rgba(232, 184, 102, 0.35), rgba(232, 184, 102, 0.1));
  border-color: rgba(232, 184, 102, 0.3);
}
.landing-feature:nth-of-type(4):hover .landing-feature-icon {
  box-shadow: 0 0 20px var(--gold-glow);
}
/* Server-Logging - teal */
.landing-feature:nth-of-type(5) .landing-feature-icon {
  background: linear-gradient(135deg, rgba(95, 212, 196, 0.35), rgba(95, 212, 196, 0.1));
  border-color: rgba(95, 212, 196, 0.3);
}
.landing-feature:nth-of-type(5):hover .landing-feature-icon {
  box-shadow: 0 0 20px var(--teal-glow);
}
/* Eigener Bereich - Haupt-Akzent (plattformuebergreifendes Feature) */
.landing-feature:nth-of-type(6) .landing-feature-icon {
  background: linear-gradient(135deg, rgba(90, 189, 246, 0.35), rgba(90, 189, 246, 0.1));
  border-color: rgba(90, 189, 246, 0.35);
}
.landing-feature:nth-of-type(6):hover .landing-feature-icon {
  box-shadow: var(--accent-shadow-glow);
}

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

@media (max-width: 520px) {
  .landing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 520px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  position: relative;
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pricing-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 4px 0 2px;
}

.pricing-price small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.pricing-card p {
  margin: 4px 0 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-height: 66px;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  overflow: visible;
}

.pricing-card.selected {
  border-color: var(--accent);
  box-shadow: var(--glow-blue);
}

.pricing-card.featured::before {
  border-radius: inherit;
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #241a02;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Fertige Seite bleibt im DOM (Code/Inhalt unveraendert), wird aber per leichtem
   Blur "noch nicht verfuegbar" gezeigt statt entfernt zu werden - siehe partner.ejs. */
.coming-soon-wrap {
  position: relative;
}

.coming-soon-content {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-panel-3);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.landing-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 820px) {
  .landing-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .landing-steps {
    grid-template-columns: 1fr;
  }
}

.landing-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.2s;
  z-index: 0;
}
.landing-steps.is-visible::before {
  transform: scaleX(1);
}

@media (max-width: 820px) {
  .landing-steps::before {
    display: none;
  }
}

.landing-step {
  position: relative;
  z-index: 1;
}

.landing-step-num {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #081019;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 4px var(--bg), var(--accent-shadow-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.landing-step:hover .landing-step-num {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px var(--bg), 0 4px 14px -4px var(--accent-glow);
}

.landing-step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.landing-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.landing-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.landing-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .landing-nav {
    padding: 16px 0;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-hero {
    min-height: auto;
    padding: 32px 8px 40px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 72px;
    padding: 18px 10px;
  }
  .brand-text-wrap,
  .sidebar nav a span.label-text,
  .nav-section,
  .sidebar .logout .who,
  .sidebar-collapse-btn {
    display: none;
  }
  .brand {
    justify-content: center;
    padding-bottom: 18px;
  }
  .sidebar nav a {
    justify-content: center;
    padding: 11px;
  }
  .main {
    padding: 22px 18px 44px;
  }
}
