:root {
  /* Farben liegen zentral in eindenny-theme.css. */
  --radius: 16px;
  --radius-sm: 11px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

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

html, body {
  min-height: 100%;
}

/* color-scheme bleibt als Fallback; customSelect.js rendert die sichtbare
   Dropdown-Liste browserunabhängig im dunklen Panel-Theme. */
select {
  color-scheme: dark;
}

/* Einheitliches dunkles Formular-Theme für das gesamte Mod-Panel. Einige
   neuere Owner-Seiten verwendeten zwar bereits class="input", hatten aber
   keine globale Definition und fielen deshalb auf weiße Browser-Felder
   zurück. */
.input {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: linear-gradient(145deg, rgba(var(--theme-bg-rgb),.96), rgba(var(--theme-bg-rgb),.98));
  color: var(--text);
  padding: 10px 12px;
  font: 600 13px/1.4 var(--font-body);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input:hover {
  border-color: rgba(var(--brand-primary-rgb),.3);
}

.input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb),.1), inset 0 1px rgba(255,255,255,.03);
}

.input::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

textarea.input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select.input {
  color-scheme: dark;
  cursor: pointer;
}

select.input option {
  background: var(--theme-surface-deep);
  color: var(--text);
}

input.input:-webkit-autofill,
input.input:-webkit-autofill:hover,
input.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #151006 inset;
  caret-color: var(--text);
}

/* Eigene Dropdown-Liste (customSelect.js) - ersetzt optisch komplett die
   native <select>-Aufklappliste, der echte <select> bleibt nur unsichtbar
   für den Formularwert bestehen. */
.custom-select-wrapper {
  position: relative;
}

.custom-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  margin-top: 4px;
}

.custom-select-trigger:hover {
  border-color: var(--border-hover);
}

.custom-select-trigger.open {
  border-color: var(--violet);
}

.custom-select-trigger::after {
  content: '▾';
  color: var(--text-faint);
  flex-shrink: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 4px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 4px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--violet-2));
  border: 2px solid var(--text);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--violet-2));
  border: 2px solid var(--text);
  cursor: pointer;
}

input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, var(--magenta), var(--violet-2));
}

.custom-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--theme-surface-2);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}

.custom-select-list.open {
  display: block;
}

.custom-select-item {
  padding: 9px 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
}

.custom-select-item:hover {
  background: rgba(255,255,255,0.07);
}

.custom-select-item.selected {
  background: rgba(var(--brand-primary-rgb),0.22);
  font-weight: 700;
}

body {
  color: var(--text);
  font-family: var(--font-body);
  padding: 32px 20px 80px;
  position: relative;
}

/* Globaler Hintergrund + Bewegung liegen ausschließlich in theme-core.css. */

a {
  color: inherit;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 32px;
}

.brand .dot {
  color: var(--magenta);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 22px 50px -34px rgba(var(--brand-secondary-rgb),0.36);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--violet-2), var(--violet));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(var(--brand-primary-rgb),0.48);
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

/* filter statt background-Überschreibung, weil sehr viele Buttons im Panel
   ihre Farbe per Inline-style setzen (rot fürs Bannen, "Glas"-Grau fürs
   Zurücksetzen usw. - grep bestätigt das für clips/livecontrol/modtools/
   overlay-layout/overlay-editor). Eine :hover-Regel, die nur "background"
   setzt, wird von einem Inline-style NIE überschrieben (Inline gewinnt
   immer) - deshalb hatte bisher NUR ein Teil der Buttons (die ohne Inline-
   Farbe) überhaupt eine Chance auf Hover, und selbst die hatten keine Regel.
   "filter" wird dagegen unabhängig von der Hintergrundquelle immer korrekt
   abgedunkelt (wirkt auch auf den box-shadow-Schein mit) - funktioniert
   dadurch für WIRKLICH jeden Button im Panel gleich, egal welche Farbe. */
.btn:hover {
  filter: brightness(0.85);
}

.btn:active {
  filter: brightness(0.72);
  transform: translateY(1px);
}

.btn.secondary,
.btn.btn-ghost {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn.secondary:hover,
.btn.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
  filter: none;
}

.btn.secondary:active,
.btn.btn-ghost:active {
  background: rgba(255,255,255,0.05);
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

body.auth-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.auth-page-body .login-shell {
  min-height: 0;
  flex: 1;
}

.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 100vh;
}

.login-card {
  position: relative;
  background: linear-gradient(155deg, rgba(var(--theme-surface-3-rgb),0.72), rgba(var(--theme-surface-deep-rgb),0.64));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 420px;
  overflow: hidden;
}

/* Gleicher schimmernder Rand-Verlauf wie bei .glow-card (siehe unten) --
   bewusst eine eigene Regel statt die Klasse zu kombinieren, damit das
   großzügige Login-Padding (48px/40px) unangetastet bleibt. */
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(120deg, var(--violet), transparent 35%, transparent 65%, var(--magenta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}

.login-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.login-card.hero {
  max-width: 460px;
  padding: 44px 38px;
  background: rgba(var(--theme-surface-rgb),0.56);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.5);
}

.login-card.hero .hero-orb {
  opacity: 0.4;
  width: 220px;
  height: 220px;
  top: -80px;
  right: -60px;
}

.login-card.hero .hero-orb::before {
  width: 150px;
  height: 150px;
  top: 24px;
  left: -36px;
}

.login-card.hero .hero-orb::after {
  width: 70px;
  height: 70px;
  top: 46px;
  right: 34px;
}

.hero-logo {
  width: 192px;
  height: 192px;
  margin: 0 auto 14px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(var(--brand-primary-rgb),0.42));
}

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 380px;
  margin: 0 auto 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn-brand {
  padding: 13px 26px;
  font-size: 14.5px;
  border: 1px solid transparent;
}

.btn-brand svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-discord {
  background: rgba(88,101,242,0.14);
  border-color: rgba(88,101,242,0.4);
  color: #b8beff;
  box-shadow: none;
}

.btn-discord:hover {
  background: rgba(88,101,242,0.22);
  border-color: rgba(88,101,242,0.6);
}

.btn-twitch {
  background: rgba(var(--brand-primary-rgb),0.14);
  border-color: rgba(var(--brand-primary-rgb),0.4);
  color: #f4d88f;
}

.btn-twitch:hover {
  background: rgba(var(--brand-primary-rgb),0.22);
  border-color: rgba(var(--brand-primary-rgb),0.48);
  filter: none;
}

.hero-hint {
  font-size: 11.5px;
  color: var(--text-faint);
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-preview-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px 7px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.preview-chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 12px;
  flex-shrink: 0;
}

/* Kleine Willkommens-Kopfzeile ganz oben im Dashboard (index.html) - nach
   dem Login soll sich die erste Seite nicht wie "einfach nur Dashboard"
   anfühlen, sondern wie eine echte Begrüßung. Nutzt die vorhandene
   .glow-card/.kicker-Basis, nur 2 neue Klassen für Titel/Untertext. */
.welcome-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 5px 0 7px;
}

.welcome-sub {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.tile {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
}

.tile .label {
  color: var(--text-faint);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tile .value {
  font-family: var(--font-display);
  font-size: 17px;
  margin-top: 5px;
}

.tile.ok .value {
  color: var(--ok);
}

.tile.down .value {
  color: var(--down);
}

.tile.streamer .value {
  color: var(--warn);
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

a.module-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.module-card .module-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.module-card .module-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
}

.module-card .module-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.module-card.soon {
  opacity: .5;
}

.module-card.soon .module-icon {
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

/* Live-Übersicht-Kacheln fürs Dashboard (Bans/Timeouts/Subs/Bits/Raids/
   Follows, siehe activityLog.js/panelActivityApi.js) - eigene, größere
   Karten als .module-card, weil hier zusätzlich noch eine kurze
   Ereignis-Liste reinpasst. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card:not(.ok) {
  opacity: 0.55;
}

.stat-card:not(.ok) .stat-icon {
  background: var(--surface-strong);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.preset-btn {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
}

.preset-btn:hover {
  border-color: var(--violet);
  color: var(--text);
}

.preset-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  border-color: transparent;
  color: #fff;
}

.preset-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.preset-btn:disabled:hover {
  border-color: var(--border);
  color: var(--text-dim);
}

.stat-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb),0.28), rgba(var(--brand-accent-rgb),0.2));
  border: 1px solid var(--border);
  font-size: 15px;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin-top: 2px;
}

.stat-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

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

.stat-list-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 5px;
}

.stat-list-item b {
  color: var(--text);
  font-weight: 700;
}

.stat-list-item .stat-list-time {
  color: var(--text-faint);
  flex-shrink: 0;
}

#stat-streamstatus.live .stat-value {
  color: var(--ok);
}

.stat-card.ok .stat-value {
  color: var(--ok);
}

/* Kompakte Live-Chat-Vorschau auf dem Dashboard - eigene, kleinere Variante
   der .chat-box/.chat-msg-Optik von /panel/chat (dort noch als Seiten-
   lokales <style>, hier bewusst geteilt, weil jetzt zwei Stellen dieselbe
   Chat-Nachrichten-Optik brauchen). */
.chat-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
}

.chat-mini .chat-msg {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface-strong);
  border-radius: 8px;
  border-left: 3px solid var(--border-hover);
  font-size: 12.5px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-mini .chat-username {
  font-weight: 700;
  color: var(--magenta);
}

.chat-mini .chat-empty {
  color: var(--text-faint);
  font-size: 12.5px;
  padding: 10px;
}

/* Kompakter Fahrplan-Bereich für angekündigte Funktionen. */
.roadmap-card {
  padding-bottom: 18px;
}

.roadmap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roadmap-item {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-strong);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 7px 14px;
}

.error-box {
  background: rgba(var(--status-danger-rgb),0.12);
  border: 1px solid rgba(var(--status-danger-rgb),0.4);
  color: #ffb3c1;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}

.game-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  max-width: 420px;
  width: max-content;
  padding: 9px 16px;
  font-size: 12px;
  margin-bottom: 0;
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
  text-align: center;
  pointer-events: none;
}

@media (max-width: 640px) {
  .game-toast {
    top: auto;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}

/* ============================================================
   Sidebar-Navigation (ab hier) - eigene Klasse auf <body>, damit
   die Login-Seite (die KEINE Sidebar hat) von den Padding-Resets
   unten unberührt bleibt.
   ============================================================ */
body.has-sidebar {
  padding: 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 272px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 400;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    width: 100%;
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(var(--theme-bg-rgb),0.6);
  z-index: 390;
}

@media (max-width: 900px) {
  .sidebar-backdrop.open {
    display: block;
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.35;
}

.sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-brand .dot {
  color: var(--magenta);
  flex-shrink: 0;
}

.sidebar-brand .sub {
  display: block;
  color: var(--text-faint);
  font-weight: 500;
  font-size: 11px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Klar getrennte Mod- und Streamer-Bereiche mit eigenen Überschriften. */
.sidebar-areas {
  display: flex;
  flex-direction: column;
  gap: 26px;
  flex: 1;
}

/* Abstand zwischen User-Chip und Navigation im Mod-Bereich. */
.sidebar-area:not(.streamer-area) {
  padding-top: 20px;
}

.sidebar-area-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sidebar-area-label.mod {
  color: var(--violet);
}

.sidebar-area-label.streamer {
  color: var(--warn);
}

.sidebar-area.streamer-area {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.sidebar-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-section-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 10px;
}

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

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
}

.sidebar-nav a:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff;
}

.sidebar-nav a .soon-tag {
  margin-left: auto;
  font-size: 9px;
  color: var(--text-faint);
}

.sidebar-nav a.active .soon-tag {
  color: rgba(255,255,255,0.75);
}

.sidebar-nav a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: .85;
}

.sidebar-nav a.active svg {
  opacity: 1;
}

.sidebar-nav a:hover svg {
  opacity: 1;
}

.sidebar-nav a.sidebar-link-locked {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.sidebar-nav a.sidebar-link-locked svg {
  opacity: .5;
}

.sidebar-lock-badge {
  margin-left: auto;
  font-size: 12px;
}

/* Logout jetzt als eigene Zeile ganz unten in der Sidebar statt im
   User-Chip mitgequetscht - "margin-top: auto" drückt sie im Flex-Layout
   der Sidebar (.sidebar { display:flex; flex-direction:column; ... })
   an den unteren Rand, solange der Inhalt drüber nicht die volle
   Sidebar-Höhe füllt. */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 13px;
}

.sidebar-logout-btn:hover {
  background: var(--surface-strong);
  color: var(--down);
}

.sidebar-copyright {
  margin-top: 8px;
  padding: 0 10px;
  font-size: 10.5px;
  color: var(--text-faint);
  text-align: center;
}

/* Gleiche Fußzeile wie .sidebar-copyright, für die Login-Seite (siehe
   login.html), die keine Sidebar hat. */
.login-copyright {
  padding: 24px 10px 32px;
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
}

.status-page-card {
  text-align: center;
  padding: 56px 40px;
  max-width: 560px;
  margin: 40px auto;
}

.status-page-logo {
  width: 144px;
  height: 144px;
  margin: 0 auto 18px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(var(--brand-primary-rgb),0.42));
}

.status-page-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.status-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  margin-top: 8px;
}

.status-page-text {
  color: var(--text-dim);
  font-size: 14px;
  margin: 16px auto 26px;
  max-width: 440px;
  line-height: 1.65;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 22px 22px 70px;
}

.main-content .wrap {
  max-width: 1600px;
  width: 100%;
  margin: 0;
}

/* ============================================================
   Gemeinsame Glow-Design-Bausteine für Panel-Karten.
   ============================================================ */
.glow-card {
  position: relative;
  background: linear-gradient(155deg, rgba(var(--theme-surface-3-rgb),0.72), rgba(var(--theme-surface-deep-rgb),0.64));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 26px 60px -36px rgba(var(--brand-accent-rgb),0.32), 0 26px 60px -30px rgba(var(--brand-secondary-rgb),0.30);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.glow-card:hover {
  border-color: rgba(var(--brand-accent-rgb),0.32);
  box-shadow: 0 30px 70px -34px rgba(var(--brand-accent-rgb),0.38), 0 30px 70px -28px rgba(var(--brand-secondary-rgb),0.38);
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(120deg, var(--violet), transparent 35%, transparent 65%, var(--magenta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.glow-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
}

.glow-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb),0.32), rgba(var(--brand-accent-rgb),0.24));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: none;
  flex-shrink: 0;
}

.kicker {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--status-ok-rgb),0.12);
  border: 1px solid rgba(var(--status-ok-rgb),0.35);
  color: var(--ok);
}

.live-pill.pending {
  background: rgba(var(--status-warn-rgb),0.12);
  border-color: rgba(var(--status-warn-rgb),0.4);
  color: var(--warn);
}

.live-pill.pending::before {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}

.live-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(var(--brand-primary-rgb),0.12);
  border: 1px solid rgba(var(--brand-primary-rgb),0.28);
  color: #f8e6b8;
  border-radius: 999px;
  padding: 5px 11px 5px 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  flex-shrink: 0;
}

.chip-empty {
  color: var(--text-faint);
  font-size: 13px;
  padding: 6px 2px;
}

.topbar {
  /* Menüs über Seitenkarten, unter Dialogen und mobiler Navigation. */
  position: relative;
  z-index: 300;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px -34px rgba(var(--brand-secondary-rgb),0.36);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Menü-Knopf für die neue Off-Canvas-Sidebar (siehe .sidebar
   @media (max-width: 900px) oben) - nur auf schmalen Bildschirmen
   sichtbar, auf breiten Bildschirmen bleibt die Sidebar wie gehabt immer
   sichtbar, kein Knopf nötig. */
.topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .topbar-menu-btn {
    display: flex;
  }
}

.topbar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.topbar-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.topbar-bell:hover {
  border-color: var(--border-hover);
}

.topbar-bell-wrap {
  position: relative;
}

.topbar-bell-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 300px;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(var(--theme-surface-2-rgb),.98), rgba(var(--theme-bg-rgb),.98));
  box-shadow: 0 20px 45px rgba(0,0,0,.4);
}

.topbar-bell-section {
  padding: 6px 4px;
}

.topbar-bell-section + .topbar-bell-section {
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.topbar-bell-section small {
  display: block;
  margin: 2px 6px 6px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar-bell-section a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--theme-text);
  font-size: 10.5px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.topbar-bell-section a:hover {
  background: rgba(var(--brand-primary-rgb),.14);
  color: #fff;
}

.topbar-bell-empty {
  padding: 22px 12px;
  color: var(--text-faint);
  font-size: 10px;
  text-align: center;
}

.topbar-clock {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.topbar-user img,
.topbar-user .avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-hover);
}

.topbar-user .avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
}

.topbar-user .role-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
  color: var(--violet);
  background: rgba(var(--brand-primary-rgb),0.14);
  border-radius: 5px;
  padding: 1px 6px;
}

.topbar-user .role-badge.owner {
  color: var(--warn);
  background: rgba(var(--status-warn-rgb),0.14);
}

.topbar-user .role-badge.mod {
  color: var(--cyan);
  background: rgba(var(--status-info-rgb),0.14);
}

.topbar-user .role-badge.wheel-vip {
  color:var(--brand-soft);
  background:linear-gradient(135deg,rgba(var(--status-warn-rgb),.2),rgba(var(--brand-accent-rgb),.16));
  border-color:rgba(var(--status-warn-rgb),.5);
  box-shadow:0 0 14px rgba(var(--status-warn-rgb),.14);
}

.wheel-vip-badge {
  width:max-content;
  margin-top:4px;
  align-items:center;
  padding:2px 7px;
  border:1px solid rgba(var(--status-warn-rgb),.45);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(var(--status-warn-rgb),.17),rgba(var(--brand-accent-rgb),.12));
  color:var(--brand-soft);
  font-size:8px;
  font-weight:900;
  letter-spacing:.03em;
  box-shadow:0 0 12px rgba(var(--status-warn-rgb),.12);
}

.wave-emoji {
  display: inline-block;
  animation: wave-hello 2.4s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave-hello {
  0%, 60%, 100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-emoji {
    animation: none;
  }
}

.owner-name {
  background: linear-gradient(90deg, #ffd76a, #fff3c4, var(--brand-accent), #ffd76a);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  animation: owner-name-shimmer 4s linear infinite;
}

@keyframes owner-name-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.owner-crown-icon {
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(var(--status-warn-rgb),0.6));
}

.topbar-user .role-badge.owner-crown {
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-accent));
}

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

.mod-name {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.tag-pill {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-pill.owner {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-accent));
  color: var(--brand-ink);
}

.tag-pill.mod {
  background: rgba(var(--status-info-rgb),0.16);
  color: var(--cyan);
}

.tag-pill.follower {
  background: rgba(var(--status-ok-rgb),0.15);
  color: var(--ok);
}

.tag-pill.viewer {
  background: var(--surface-strong);
  color: var(--text-faint);
}

.coin-float {
  position: fixed;
  z-index: 500;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  pointer-events: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  animation: coin-float-up 1.7s ease-out forwards;
}

.coin-float.gain {
  color: #eafff4;
  background: rgba(var(--status-ok-rgb),0.22);
  border: 1px solid rgba(var(--status-ok-rgb),0.55);
  text-shadow: 0 0 10px rgba(var(--status-ok-rgb),0.7);
}

.coin-float.loss {
  color: #fff0f3;
  background: rgba(var(--status-danger-rgb),0.22);
  border: 1px solid rgba(var(--status-danger-rgb),0.55);
  text-shadow: 0 0 10px rgba(var(--status-danger-rgb),0.7);
}

@keyframes coin-float-up {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.85);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.12);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -52px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -78px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coin-float {
    animation: none;
    opacity: 0;
  }
}

/* Login-Seite hat keine Sidebar/Topbar - hier nichts zu tun, .topbar wird
   dort schlicht nie gerendert. Auf sehr schmalen Fenstern darf der
   User-Name im Topbar-Chip verschwinden (Avatar reicht als Wiedererkennung),
   Titel/Live/Uhrzeit bleiben wichtiger. */
@media (max-width: 560px) {
  .topbar-user span:not(.avatar-fallback) {
    display: none;
  }
}

.topbar-settings {
  position: relative;
}

.topbar-gear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
}

.topbar-gear-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.topbar-settings.open .topbar-gear-btn {
  border-color: var(--magenta);
  color: var(--text);
}

.topbar-gear-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  max-width: calc(100vw - 32px);
  max-height: 60vh;
  overscroll-behavior: contain;
  overflow-y: auto;
  background: var(--theme-surface-2);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  padding: 6px;
  z-index: 60;
}

.topbar-settings.open .topbar-gear-menu {
  display: block;
}

.topbar-gear-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.topbar-gear-menu a:hover {
  background: rgba(255,255,255,0.07);
}

.topbar-gear-menu a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .85;
}

.topbar-gear-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* ============================================================
   Feine, zum Look passende Scrollbar (WebKit) statt der grauen
   Standard-Leiste - rein kosmetisch, betrifft nur die Optik der
   Scrollbar selbst, kein Layout/Verhalten ändert sich.
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--brand-primary-rgb),0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--brand-primary-rgb),0.55);
  background-clip: padding-box;
}

.glow-card.hero-welcome {
  position: relative;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, rgba(255,255,255,0.4), var(--magenta) 30%, transparent 68%);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  filter: blur(46px);
  mix-blend-mode: screen;
  animation: heroOrbDrift1 16s ease-in-out infinite alternate;
}

/* Zweiter, kleinerer und andersfarbiger Fleck (violett/blau) mit eigenem
   Timing statt eines starr mitrotierenden Rings - überlappt den ersten
   Fleck teilweise, dadurch wirkt die Mischfarbe an der Überlappung lebendig
   statt wie ein statisches Verlaufsbild. */
.hero-orb::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--violet-2), transparent 70%);
  opacity: 0.55;
  filter: blur(38px);
  animation: heroOrbDrift2 12s ease-in-out infinite alternate;
}

/* Sehr feiner Kern-Glanz - deutlich kleiner/blasser als beim alten
   Versuch, sorgt nur noch für einen dezenten Lichtpunkt statt einer
   sichtbaren zweiten Kugel. */
.hero-orb::after {
  content: "";
  position: absolute;
  top: 70px;
  right: 60px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 72%);
  opacity: 0.5;
  filter: blur(12px);
  animation: heroOrbPulse 5s ease-in-out infinite;
}

/* Dezenter Außenring als ruhiger Hero-Akzent. */
.hero-orb-ring2 {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: -1;
}

@keyframes heroOrbDrift1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-18px, 14px) scale(1.08);
  }
}

@keyframes heroOrbDrift2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(16px, -10px) scale(0.92);
  }
}

@keyframes heroOrbPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

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

@media (max-width: 640px) {
  /* Auf schmalen Bildschirmen (bzw. wenn die Karte durch .hero-grid
     schmaler als die Vorlage-Breite wird) insgesamt kleiner/dezenter,
     damit auch dort garantiert kein Text überdeckt wird. */
  .hero-orb {
    width: 190px;
    height: 190px;
    top: -70px;
    right: -50px;
    opacity: 0.35;
  }
  .hero-orb::before {
    width: 130px;
    height: 130px;
    top: 20px;
    left: -30px;
  }
  .hero-orb::after {
    width: 60px;
    height: 60px;
    top: 40px;
    right: 30px;
  }
  .hero-orb-ring2 {
    display: none;
  }
}

/* ============================================================
   Responsive Dashboard-Komposition aus Hero, Stream-Status, KPIs,
   Chat, Schnellzugriff, Ereignissen, Modulen und Stream-Zielen.
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

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

.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-quickbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
}

.hero-quickbar .hero-quickstats {
  margin-top: 0;
}

.hero-quickbar {
  overflow: visible;
}

/* Drei-Spalten-Zeile (Neueste Ereignisse / Bot-Module / Bot-Verbindungen,
   angelehnt an die Vorlage) - eigene Klasse statt .hero-grid
   wiederzuverwenden, weil hier alle drei Spalten gleich breit sein sollen. */
.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

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

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

.tri-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 700px) {
  .tri-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--surface);
}

.social-card.primary {
  border-color: rgba(var(--brand-primary-rgb),0.5);
  box-shadow: 0 0 0 1px rgba(var(--brand-primary-rgb),0.25);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 4px;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
}

.social-handle {
  font-size: 11.5px;
  color: var(--text-dim);
}

.social-cta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--magenta);
  text-decoration: none;
}

.social-card {
  cursor: default;
}

.social-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
  gap: 6px;
}

.social-copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.social-copy-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface);
}

.social-copy-btn.copied {
  color: var(--ok);
  border-color: var(--ok);
}

/* Schnellzugriff-Zeile in der Willkommens-Karte (echte Links zu
   bestehenden Seiten, keine neue Funktion). */
.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  position: relative;
}

.hero-quick-actions a.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
}

.hero-quick-actions a.pill-link:hover {
  border-color: var(--border-hover);
}

/* Prominente Stream-Status-Karte in der rechten Hero-Spalte. */
.stream-status-card {
  display: flex;
  flex-direction: column;
}

.stream-status-card .stat-card {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 14px;
}

.stream-status-card .stat-icon {
  width: 34px;
  height: 34px;
  font-size: 17px;
}

.stream-status-card .stat-value {
  font-size: 22px;
}

/* Rein dekorative "Audio-Wellenform" - reagiert auf die echte .live-
   Klasse, die panel.js bereits auf #stat-streamstatus setzt (siehe
   loadStreamStatus()), pulsiert nur, wenn wirklich live. */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin: 4px 0 14px;
}

.waveform span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--magenta), var(--violet-2));
  opacity: 0.35;
  height: 30%;
}

#stat-streamstatus.live ~ .waveform span,
.stream-status-card:has(#stat-streamstatus.live) .waveform span {
  opacity: 0.9;
  animation: waveformBounce 1.1s ease-in-out infinite;
}

.waveform span:nth-child(1) {
  animation-delay: -1.0s;
}

.waveform span:nth-child(2) {
  animation-delay: -0.8s;
}

.waveform span:nth-child(3) {
  animation-delay: -0.6s;
}

.waveform span:nth-child(4) {
  animation-delay: -0.4s;
}

.waveform span:nth-child(5) {
  animation-delay: -0.2s;
}

.waveform span:nth-child(6) {
  animation-delay: -0.9s;
}

.waveform span:nth-child(7) {
  animation-delay: -0.5s;
}

.waveform span:nth-child(8) {
  animation-delay: -0.1s;
}

.waveform span:nth-child(9) {
  animation-delay: -0.7s;
}

.waveform span:nth-child(10) {
  animation-delay: -0.3s;
}

@keyframes waveformBounce {
  0%, 100% {
    height: 25%;
  }
  50% {
    height: 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveform span {
    animation: none !important;
  }
}

.stream-status-totals {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.stream-status-totals div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stream-status-totals .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.stream-status-totals .l {
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stream-status-mini-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.stat-card.mini {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.stat-card.mini .stat-icon {
  width: 26px;
  height: 26px;
  font-size: 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.stat-card.mini .stat-label,
.stat-card.mini .stat-sub {
  display: none;
}

.stat-card.mini .stat-value {
  font-size: 13px;
  margin-top: 0;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Kompaktes Follower-Ziel unter den Mini-Kacheln. */
.goal-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.goal-compact-info {
  flex: 1;
  min-width: 0;
}

.goal-compact-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--magenta);
  margin-bottom: 6px;
}

.goal-compact .goal-track {
  margin: 6px 0;
  height: 7px;
}

.goal-compact-stats {
  font-size: 11px;
  color: var(--text-dim);
}

.goal-compact-stats span {
  color: var(--text);
  font-weight: 700;
}

.radial-progress.small {
  width: 48px;
  height: 48px;
}

.radial-progress.small .radial-progress-inner {
  width: 38px;
  height: 38px;
  font-size: 10.5px;
}

.quick-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.quick-control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

/* .quick-control-btn wird teils auch als <a> für reine Sprungmarken genutzt
   (z.B. Bingo/Win-Challenge/Umfrage/Gewinnspiel öffnen) - Browser-Standard-
   Linkfarbe/-Unterstreichung hier explizit aus. */
a.quick-control-btn {
  text-decoration: none;
}

.quick-control-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.quick-control-btn.open {
  border-color: var(--violet);
  background: rgba(var(--brand-primary-rgb),0.12);
}

.quick-control-btn.danger:hover {
  border-color: rgba(var(--status-danger-rgb),0.6);
}

.qc-icon {
  font-size: 22px;
  line-height: 1;
}

.qc-label {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.quick-control-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Ereignis-Liste "Neueste Ereignisse" (echte Daten aus derselben
   activityCache wie die Live-Übersicht-Kacheln, siehe panel.js ->
   renderRecentAlerts()). */
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-top: 1px solid var(--border);
}

.alert-item:first-child {
  border-top: none;
}

.alert-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb),0.28), rgba(var(--brand-accent-rgb),0.2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.alert-body {
  min-width: 0;
  flex: 1;
}

.alert-title {
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-time {
  font-size: 11px;
  color: var(--text-faint);
}

/* Stream-Ziel-Fortschrittsbalken - nutzt dieselben Werte wie das
   bestehende Follower-Ziel (/panel/settings, /api/followercount),
   bleibt per JS versteckt, solange kein Ziel gesetzt ist (siehe
   panel.js -> loadTotals()), damit hier nie ein irreführendes "0 von 0"
   auftaucht. */
.goal-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 14px 0;
}

.goal-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  width: 0%;
  transition: width .6s ease;
}

.goal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.goal-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.goal-stats .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.goal-stats .l {
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.goal-visual {
  display: flex;
  align-items: center;
  gap: 20px;
}

.goal-visual-track {
  flex: 1;
  min-width: 0;
}

.goal-visual-track .goal-track {
  margin-top: 0;
}

@media (max-width: 640px) {
  .goal-visual {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Sidebar-Maskottchen ganz unten (rein dekorativ, angelehnt an die
   Vorlage) - zeigt bewusst KEINEN erfundenen "Online"-Status (dafür
   müsste jede Seite zusätzlich den Bot-Verbindungsstatus abfragen),
   nur die Marke selbst. */
.sidebar-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px 6px;
  text-align: center;
}

.sidebar-mascot .mascot-orb {
  width: 128px;
  height: 128px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.sidebar-mascot .mascot-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-mascot .mascot-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.sidebar-brand .sub, .topbar-title-sub {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--violet) !important;
  font-weight: 700;
}

/* Quick-Actions-Dropdown in der Willkommens-Karte - ein einzelner Knopf
   statt mehrerer loser Pills, öffnet per Klick eine kleine Liste
   derselben echten Links (siehe panel.js -> Quick-Actions-Handler).
   Rein clientseitig, keine neue Funktion, nur eine andere Darstellung. */
.quick-actions-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  z-index: 1;
}

.quick-actions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.quick-actions-btn:hover {
  border-color: var(--border-hover);
}

.quick-actions-btn .chev {
  font-size: 10px;
  transition: transform .15s ease;
}

.quick-actions-dropdown.open .quick-actions-btn .chev {
  transform: rotate(180deg);
}

.quick-actions-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--theme-surface-2);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  padding: 6px;
  z-index: 50;
}

.quick-actions-dropdown.open .quick-actions-menu {
  display: block;
}

.quick-actions-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.quick-actions-menu a:hover {
  background: rgba(255,255,255,0.07);
}

.module-status-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.module-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}

.module-status-item:first-child {
  border-top: none;
}

.module-status-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(var(--status-ok-rgb),0.12);
  border: 1px solid rgba(var(--status-ok-rgb),0.35);
  color: var(--ok);
}

.module-status-pill.off {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--text-faint);
}

.module-status-footer {
  margin-top: 10px;
  text-align: right;
}

.module-status-footer a {
  font-size: 12px;
  color: var(--violet);
  text-decoration: none;
  font-weight: 700;
}

.module-status-footer a:hover {
  text-decoration: underline;
}

.top-clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.top-clip-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-strong);
  transition: border-color .15s ease, transform .15s ease;
}

.top-clip-card:hover {
  border-color: var(--magenta);
  transform: translateY(-2px);
}

.top-clip-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.top-clip-body {
  padding: 8px 10px;
}

.top-clip-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-clip-meta {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
}

.overlay-preview-frame {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.overlay-preview-frame iframe {
  width: 100%;
  max-width: 420px;
  height: 280px;
  border: 0;
  background: transparent;
}

.news-post {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.news-post:last-child {
  margin-bottom: 0;
}

.news-post-today {
  border-left-color: var(--brand-soft);
}

.news-post-update {
  border-left-color: var(--ok);
}

.news-post-bugfix {
  border-left-color: var(--down);
}

.news-post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.news-post-badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.news-post-badge.today {
  background: rgba(var(--brand-primary-rgb),0.18);
  color: var(--brand-soft);
}

.news-post-badge.update {
  background: rgba(var(--status-ok-rgb),0.15);
  color: var(--ok);
}

.news-post-badge.bugfix {
  background: rgba(var(--status-danger-rgb),0.15);
  color: var(--down);
}

.news-post-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.news-post-meta {
  font-size: 11px;
  color: var(--text-faint);
}

.news-post-body {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.5;
}

.news-post-body p {
  margin: 0 0 8px;
}

.news-post-body p:last-child {
  margin-bottom: 0;
}

.news-post-body ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.news-post-body ul:last-child {
  margin-bottom: 0;
}

.news-post-body li {
  margin-bottom: 3px;
}

.news-post-body li::marker {
  color: var(--magenta);
}

.news-post-body strong {
  color: var(--text);
  font-weight: 800;
}

.news-post-body code {
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11.5px;
  font-family: 'Courier New', monospace;
  color: var(--brand-soft);
}

.poll-bar-row {
  margin-bottom: 10px;
}

.poll-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.poll-bar-label b {
  color: var(--text);
}

.poll-bar-track {
  height: 8px;
  border-radius: 5px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  transition: width .3s ease;
}

.giveaway-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.giveaway-stat .label {
  color: var(--text-faint);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.giveaway-stat .value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.word-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.word-filter-chip {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'Courier New', monospace;
}

.word-filter-meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.word-filter-meta b {
  color: var(--text-dim);
}

/* Echter Klick-Schalter (statt der reinen Pill oben) - ersetzt
   .module-status-pill innerhalb von .module-status-item, wenn JS ihn
   erzeugt (siehe loadOverlayModules() in panel.js). Eigene Klasse statt
   die Pill umzubauen, damit andere Seiten, die .module-status-pill evtl.
   noch woanders read-only nutzen, unangetastet bleiben. */
.module-toggle {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background .18s ease, border-color .18s ease;
}

.module-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform .18s ease, background .18s ease;
}

.module-toggle.on {
  background: rgba(var(--status-ok-rgb),0.18);
  border-color: rgba(var(--status-ok-rgb),0.5);
}

.module-toggle.on::before {
  transform: translateX(17px);
  background: var(--ok);
  box-shadow: 0 0 8px rgba(var(--status-ok-rgb),0.6);
}

.module-toggle:disabled {
  opacity: .5;
  cursor: wait;
}

.module-toggle:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

@property --pct {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.radial-progress {
  --pct: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--magenta) calc(var(--pct) * 1%), var(--surface-strong) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 1s ease;
}

.radial-progress::before {
  content: "";
  position: absolute;
}

.radial-progress-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

.hero-quickstats {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-quickstat {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.hero-quickstat b {
  color: var(--text);
  font-family: var(--font-display);
}

/* Quick Mod Tools - echte Timeout/Bann-Aktionen über die bestehende
   /api/panel/modtools-API (dieselbe wie /panel/modtools), nur direkt vom
   Dashboard aus erreichbar statt erst dorthin wechseln zu müssen. */
.quick-mod-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-mod-input {
  width: 100%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
}

.quick-mod-input:focus {
  outline: none;
  border-color: var(--border-hover);
}

.quick-mod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-mod-actions .btn {
  justify-content: center;
  padding: 10px 14px;
  font-size: 13px;
}

.quick-mod-actions .btn.danger {
  background: linear-gradient(135deg, var(--down), #c62a49);
}

.quick-mod-hint {
  font-size: 11px;
  color: var(--text-faint);
}

.quick-mod-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-mod-links a {
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  text-decoration: none;
}

.quick-mod-links a:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* Echte Benachrichtigungs-Zahl an der Topbar-Glocke (siehe sidebar.js ->
   renderTopbar()) - zählt echte, kürzlich passierte Ereignisse aus
   /api/panel/activity, keine erfundene Zahl. Bleibt unsichtbar, solange
   es nichts Neues gibt. */
.topbar-bell {
  position: relative;
}

.topbar-bell .bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg-2);
}

.topbar-bell.has-ping .bell-badge {
  animation: bellPing 1.6s ease-in-out infinite;
}

@keyframes bellPing {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 0 rgba(var(--brand-accent-rgb),0.42);
  }
  50% {
    box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 5px rgba(var(--brand-accent-rgb),0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-bell.has-ping .bell-badge {
    animation: none;
  }
}

.panel-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(var(--theme-bg-rgb),0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: panelConfirmFadeIn .15s ease;
}

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

.panel-confirm-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(var(--brand-primary-rgb),0.08);
  animation: panelConfirmPop .18s ease;
}

@keyframes panelConfirmPop {
  from {
    transform: scale(.94) translateY(6px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.panel-confirm-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-confirm-msg {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  white-space: pre-line;
}

.panel-confirm-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-1);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text);
  margin: -8px 0 20px;
}

.panel-confirm-input:focus {
  outline: none;
  border-color: var(--violet);
}

.panel-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.panel-confirm-actions .btn {
  padding: 10px 20px;
  font-size: 13.5px;
}

.panel-confirm-actions .btn.danger {
  background: linear-gradient(135deg, var(--down), #c62a49);
}

.panel-confirm-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.promo-ticker {
  background: linear-gradient(90deg, #d99a2b, var(--violet), var(--magenta));
  border-radius: 12px;
  padding: 10px 0;
  margin-bottom: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.promo-ticker-track {
  display: inline-block;
  padding-left: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  letter-spacing: .02em;
  animation: promo-ticker-scroll 40s linear infinite;
}

@keyframes promo-ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-ticker-track {
    animation: none;
    padding-left: 16px;
  }
}

/* Geschenk-Hinweis im Zuschauer-Topbar */
.account-gift-button {
  position:relative;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid rgba(var(--status-warn-rgb),.42);
  border-radius:999px;
  background:rgba(var(--status-warn-rgb),.10);
  color:#fff;
  cursor:pointer;
  font-size:18px;
  animation:accountGiftGlow 1.8s ease-in-out infinite;
}

.account-gift-button span {
  position:absolute;
  right:-4px;
  top:-5px;
  min-width:17px;
  height:17px;
  padding:0 4px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--brand-accent);
  color:#fff;
  font-size:9px;
  font-weight:900;
}

@keyframes accountGiftGlow {
  50% {
    transform:translateY(-2px);
    box-shadow:0 0 20px rgba(var(--status-warn-rgb),.45);
  }
}

/* Einheitliche, stapelbare Bunny-Meldungen statt Browser-alert/confirm. */
.bunny-toast-stack {
  position:fixed;
  top:76px;
  right:18px;
  z-index:10030;
  width:min(390px, calc(100vw - 28px));
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}

.bunny-toast {
  --toast-tone:var(--violet);
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 24px;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid color-mix(in srgb, var(--toast-tone) 46%, var(--border));
  border-radius:14px;
  background:linear-gradient(145deg, rgba(var(--theme-bg-2-rgb),.97), rgba(var(--theme-bg-rgb),.98));
  box-shadow:0 18px 50px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.05);
  opacity:0;
  transform:translateX(30px) scale(.97);
  transition:opacity .2s ease, transform .2s ease;
  pointer-events:auto;
  overflow:hidden;
}

.bunny-toast::before {
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:var(--toast-tone);
  box-shadow:0 0 18px var(--toast-tone);
}

.bunny-toast.show {
  opacity:1;
  transform:none;
}

.bunny-toast.success {
  --toast-tone:var(--ok);
}

.bunny-toast.error {
  --toast-tone:var(--down);
}

.bunny-toast.warning {
  --toast-tone:var(--warn);
}

.bunny-toast-icon {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:color-mix(in srgb, var(--toast-tone) 17%, transparent);
  color:var(--toast-tone);
  font-weight:900;
  font-size:17px;
}

.bunny-toast-copy {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.bunny-toast-copy b {
  color:#fff;
  font:800 12px/1.35 var(--font-display);
}

.bunny-toast-copy small {
  color:var(--text-dim);
  font-size:11.5px;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.bunny-toast > button {
  width:24px;
  height:24px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--text-faint);
  cursor:pointer;
  font-size:19px;
}

.bunny-toast > button:hover {
  background:rgba(255,255,255,.07);
  color:#fff;
}

.account-notification-bell {
  appearance:none;
  cursor:pointer;
  color:inherit;
}

.account-notification-bell .bell-badge[hidden] {
  display:none;
}

.account-notification-backdrop {
  position:fixed;
  inset:0;
  z-index:10008;
  background:rgba(var(--theme-bg-rgb),.58);
  backdrop-filter:blur(2px);
  opacity:0;
  visibility:hidden;
  transition:.22s ease;
}

.account-notification-backdrop.open {
  opacity:1;
  visibility:visible;
}

.account-notification-drawer {
  position:fixed;
  z-index:10009;
  top:0;
  right:0;
  width:min(430px, 100vw);
  height:100dvh;
  display:flex;
  flex-direction:column;
  border-left:1px solid rgba(var(--brand-primary-rgb),.3);
  background:radial-gradient(circle at 90% 3%, rgba(var(--brand-accent-rgb),.14), transparent 28%), linear-gradient(160deg, var(--theme-bg-2), var(--theme-bg) 70%);
  box-shadow:-28px 0 70px rgba(0,0,0,.5);
  transform:translateX(105%);
  transition:transform .26s cubic-bezier(.2,.8,.2,1);
}

.account-notification-drawer.open {
  transform:none;
}

.account-notification-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 20px 15px;
  border-bottom:1px solid var(--border);
}

.account-notification-head > div {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.account-notification-head small {
  color:var(--magenta);
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
}

.account-notification-head b {
  color:#fff;
  font:900 20px/1.2 var(--font-display);
}

.account-notification-head button {
  width:36px;
  height:36px;
  border:1px solid var(--border);
  border-radius:11px;
  background:rgba(255,255,255,.035);
  color:var(--text-dim);
  cursor:pointer;
  font-size:22px;
}

.account-message-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  padding:11px 12px 0;
}

.account-message-tabs button {
  position:relative;
  min-height:49px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.022);
  color:var(--text-faint);
  cursor:pointer;
  transition:.18s ease;
}

.account-message-tabs button:hover {
  border-color:rgba(var(--brand-primary-rgb),.42);
  color:#fff;
}

.account-message-tabs button.active {
  border-color:rgba(var(--brand-primary-rgb),.54);
  background:linear-gradient(135deg,rgba(var(--brand-primary-rgb),.18),rgba(var(--brand-accent-rgb),.075));
  color:#fff;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 8px 24px rgba(0,0,0,.16);
}

.account-message-tabs button > span {
  font-size:16px;
}

.account-message-tabs button > b {
  font:800 10.5px/1 var(--font-display);
}

.account-message-tabs button > i {
  min-width:18px;
  height:18px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--magenta),var(--violet));
  color:#fff;
  font:900 8px/1 var(--font-body);
  font-style:normal;
  box-shadow:0 0 14px rgba(var(--brand-accent-rgb),.38);
}

.account-message-tabs button > i[hidden] {
  display:none;
}

.account-notification-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 20px;
  border-bottom:1px solid var(--border);
  color:var(--text-faint);
  font-size:11px;
}

.account-notification-tools button {
  border:0;
  background:transparent;
  color:var(--cyan);
  cursor:pointer;
  font-size:11px;
  font-weight:800;
}

.account-notification-list {
  flex:1;
  min-height:0;
  overflow:auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.account-notification-item {
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 8px;
  align-items:start;
  gap:10px;
  padding:13px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}

.account-notification-item:hover {
  border-color:rgba(var(--brand-primary-rgb),.46);
  background:rgba(var(--brand-primary-rgb),.06);
  transform:translateY(-1px);
}

.account-notification-item.unread {
  border-color:rgba(var(--brand-accent-rgb),.24);
  background:linear-gradient(145deg, rgba(var(--brand-primary-rgb),.1), rgba(var(--brand-accent-rgb),.035));
}

.notification-icon {
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--brand-primary-rgb),.25);
  border-radius:12px;
  background:rgba(var(--brand-primary-rgb),.1);
  font-size:17px;
}

.notification-icon.success {
  border-color:rgba(var(--status-ok-rgb),.28);
  background:rgba(var(--status-ok-rgb),.09);
}

.notification-icon.warning {
  border-color:rgba(var(--status-warn-rgb),.28);
  background:rgba(var(--status-warn-rgb),.09);
}

.notification-icon.mail {
  border-color:rgba(var(--brand-accent-rgb),.32);
  background:linear-gradient(145deg,rgba(var(--brand-accent-rgb),.13),rgba(var(--brand-primary-rgb),.1));
  box-shadow:inset 0 1px rgba(255,255,255,.04);
}

.notification-copy {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.notification-meta {
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:var(--text-faint);
  font-size:9.5px;
}

.notification-meta em {
  color:var(--cyan);
  font-style:normal;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.notification-copy > b {
  color:#fff;
  font:800 12px/1.35 var(--font-display);
}

.notification-copy > small {
  color:var(--text-dim);
  font-size:11px;
  line-height:1.45;
  white-space:pre-line;
  overflow-wrap:anywhere;
}

.notification-copy > .mail-author {
  color:var(--cyan);
  font-size:9.5px;
  font-weight:750;
}

.notification-copy > .mail-preview {
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  color:var(--text-faint);
}

.notification-amount {
  width:max-content;
  margin-top:5px;
  padding:3px 7px;
  border-radius:999px;
  font-size:10.5px;
}

.notification-amount.gain {
  background:rgba(var(--status-ok-rgb),.1);
  color:var(--ok);
}

.notification-amount.loss {
  background:rgba(var(--status-warn-rgb),.1);
  color:var(--warn);
}

.notification-unread-dot {
  align-self:center;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--magenta);
  box-shadow:0 0 12px var(--magenta);
}

.notification-read-check {
  align-self:center;
  color:var(--ok);
  font-size:10px;
  font-style:normal;
}

.account-notification-item.read {
  opacity:.72;
}

.account-mail-item.read:hover {
  opacity:1;
}

.account-notification-empty {
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:var(--text-faint);
  text-align:center;
}

.account-notification-empty span {
  font-size:42px;
  filter:drop-shadow(0 0 18px rgba(var(--brand-primary-rgb),.55));
}

.account-notification-empty b {
  color:var(--text-dim);
  font-size:13px;
}

.account-notification-empty small {
  max-width:260px;
  font-size:11px;
  line-height:1.5;
}

.account-mail-detail {
  flex:1;
  min-height:0;
  overflow:auto;
  padding:12px;
}

.account-mail-detail[hidden],.account-notification-list[hidden] {
  display:none;
}

.account-mail-back {
  width:max-content;
  margin:0 0 10px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:9px;
  background:rgba(255,255,255,.025);
  color:var(--text-dim);
  cursor:pointer;
  font:800 9px var(--font-body);
}

.account-mail-back:hover {
  border-color:rgba(var(--brand-primary-rgb),.48);
  color:#fff;
}

.account-mail-letter {
  position:relative;
  overflow:hidden;
  padding:20px;
  border:1px solid rgba(var(--brand-accent-rgb),.23);
  border-radius:17px;
  background:radial-gradient(circle at 100% 0,rgba(var(--brand-accent-rgb),.13),transparent 35%),linear-gradient(150deg,rgba(var(--theme-surface-2-rgb),.98),rgba(var(--theme-bg-rgb),.98));
  box-shadow:0 20px 45px rgba(0,0,0,.28);
}

.account-mail-letter::before {
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(var(--magenta),var(--violet),var(--cyan));
  box-shadow:0 0 18px var(--magenta);
}

.mail-letter-kicker {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--text-faint);
  font-size:8.5px;
}

.mail-letter-kicker span {
  color:var(--magenta);
  font-weight:900;
  letter-spacing:.08em;
}

.account-mail-letter h3 {
  margin:15px 0 14px;
  color:#fff;
  font:900 22px/1.18 var(--font-display);
  overflow-wrap:anywhere;
}

.mail-letter-author {
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}

.mail-letter-avatar {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:linear-gradient(135deg,rgba(var(--brand-accent-rgb),.2),rgba(var(--brand-primary-rgb),.2));
  font-size:19px;
}

.mail-letter-author small,.mail-letter-author b {
  display:block;
}

.mail-letter-author small {
  color:var(--text-faint);
  font-size:7px;
  letter-spacing:.1em;
}

.mail-letter-author b {
  margin-top:2px;
  color:#fff;
  font-size:10px;
}

.account-mail-letter > p {
  min-height:140px;
  margin:18px 0;
  color:var(--theme-text);
  font-size:12.5px;
  line-height:1.72;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.account-mail-letter footer {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-top:13px;
  border-top:1px solid var(--border);
}

.account-mail-letter footer span {
  color:var(--ok);
  font-size:9px;
  font-weight:900;
}

.account-mail-letter footer small {
  max-width:220px;
  color:var(--text-faint);
  font-size:8.5px;
  line-height:1.4;
  text-align:right;
}

.mail-reply-history {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 16px;
}

.mail-reply-sent {
  padding:10px 12px;
  border:1px solid rgba(var(--brand-primary-rgb),.28);
  border-radius:11px;
  background:rgba(var(--brand-primary-rgb),.08);
}

.mail-reply-sent small {
  display:block;
  margin-bottom:4px;
  color:var(--violet);
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
}

.mail-reply-sent p {
  margin:0;
  color:var(--theme-text);
  font-size:11.5px;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.mail-reply-form {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 16px;
  padding:13px;
  border:1px solid var(--border);
  border-radius:13px;
  background:rgba(255,255,255,.02);
}

.mail-reply-form label {
  color:var(--text-dim);
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.mail-reply-form textarea {
  resize:vertical;
  min-height:60px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:rgba(0,0,0,.25);
  color:#fff;
  font:500 12px/1.5 var(--font-body, inherit);
}

.mail-reply-form textarea:focus {
  outline:none;
  border-color:rgba(var(--brand-primary-rgb),.48);
}

.mail-reply-form .btn {
  align-self:flex-end;
}

.mail-reply-hint {
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid rgba(var(--status-warn-rgb),.3);
  border-radius:11px;
  background:rgba(var(--status-warn-rgb),.08);
  color:var(--theme-text);
  font-size:11px;
  line-height:1.55;
}

.mail-reply-hint b {
  color:var(--warn);
}

.mail-reply-hint.used {
  border-color:var(--border);
  background:rgba(255,255,255,.02);
  color:var(--text-faint);
}

/* Bubble-Chat für Postfach-Unterhaltungen (Zuschauer-Widget UND Mod-Panel-
   Nutzerverwaltung nutzen dieselben Klassen, siehe account-sidebar.js und
   panel-user-management.js) - eigene Nachricht rechts/lila, Owner/Mod links. */
.mail-bubble-thread {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0 0 16px;
  max-height:340px;
  overflow-y:auto;
  padding-right:2px;
}

.mail-bubble {
  max-width:82%;
  padding:10px 13px;
  border-radius:15px;
  font-size:11.5px;
  line-height:1.55;
}

.mail-bubble p {
  margin:0;
  color:#f1ecfb;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.mail-bubble time {
  display:block;
  margin-top:5px;
  color:var(--text-faint);
  font-size:7.5px;
  letter-spacing:.04em;
}

.mail-bubble-author {
  display:block;
  margin-bottom:4px;
  color:var(--magenta);
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
}

.mail-bubble-staff {
  align-self:flex-start;
  border:1px solid rgba(var(--brand-accent-rgb),.25);
  border-bottom-left-radius:4px;
  background:linear-gradient(150deg,rgba(var(--brand-accent-rgb),.14),rgba(var(--theme-bg-2-rgb),.9));
}

.mail-bubble-mine {
  align-self:flex-end;
  border:1px solid rgba(var(--brand-primary-rgb),.3);
  border-bottom-right-radius:4px;
  background:linear-gradient(150deg,rgba(var(--brand-primary-rgb),.22),rgba(var(--theme-bg-2-rgb),.9));
}

.mail-bubble-mine time {
  text-align:right;
}

/* "Fancy" Gewinnspiel-Gewinn-Anzeige (kein "**Sternchen**"-Markdown mehr,
   siehe giveawayState.js) - Preisname bekommt einen animierten Regenbogen-
   Farbverlauf statt schlichtem Fettdruck. */
.mail-prize-badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:2px 0 16px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(var(--status-warn-rgb),.35);
  background:linear-gradient(150deg,rgba(var(--status-warn-rgb),.12),rgba(var(--theme-bg-2-rgb),.9));
}

.mail-prize-badge .mail-prize-icon {
  font-size:18px;
}

.mail-prize-badge .mail-prize-name {
  font-family: var(--font-display);
  font-weight:900;
  font-size:16px;
  letter-spacing:.01em;
  background: linear-gradient(90deg,var(--brand-accent),var(--status-warn),var(--brand-primary),#4dd9ff,var(--brand-accent));
  background-size: 300% auto;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation: mailPrizeShine 5s linear infinite;
}

@keyframes mailPrizeShine {
  to {
    background-position: 300% center;
  }
}

@media (max-width:640px) {
  .bunny-toast-stack {
    top:auto;
    right:14px;
    bottom:14px;
  }
  .account-notification-drawer {
    width:100vw;
  }
}

@media (prefers-reduced-motion:reduce) {
  .bunny-toast, .account-notification-drawer, .account-notification-backdrop {
    transition:none;
  }
}

/* Zuschauer-Navigation: Coming Soon wieder im kompakten goldenen Stil.
   Die Seite bleibt anklickbar, damit Zuschauer die Vorschau sehen können. */
.sidebar-nav a.account-nav-coming-soon {
  opacity:.86;
  border-color:transparent
}

.sidebar-nav a.account-nav-coming-soon:hover {
  opacity:1;
  background:rgba(255,196,65,.055)
}

.sidebar-nav a.account-nav-coming-soon.active {
  opacity:1
}

.account-nav-soon {
  margin-left:auto;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(255,196,65,.09);
  border:1px solid rgba(255,196,65,.28);
  color:#f3cf72;
  font-size:7px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:none
}

.sidebar-nav a.active .account-nav-soon {
  background:rgba(255,211,103,.14);
  border-color:rgba(255,220,133,.38);
  color:#ffe49a
}
