@charset "UTF-8";
/* Aurora Management - Modular SCSS */
:root {
  /* Colors (Aurora Host Theme) */
  --bg-primary: #030712;
  --bg-secondary: #0b0f1a;
  --bg-tertiary: #111827;
  --bg-floating: #090e1a;
  --aurora-blue: #3b82f6;
  --aurora-violet: #8b5cf6;
  --aurora-accent: #c084fc;
  /* Mapping brand tokens */
  --brand-blue: var(--aurora-blue);
  --brand-blue-hover: #2563eb;
  --brand-red: #ef4444;
  --brand-red-hover: #dc2626;
  --brand-green: #10b981;
  --brand-yellow: #f59e0b;
  --text-active: #ffffff;
  --text-normal: #f3f4f6;
  --text-muted: #9ca3af;
  --text-link: var(--aurora-blue);
  /* Glassmorphism Styles */
  --glass-bg: rgba(17, 24, 39, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;
  --bg-modifier-hover: rgba(255, 255, 255, 0.05);
  --bg-modifier-selected: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.06);
  /* Layout Sizes */
  --header-height: 52px;
  --rail-width: 72px;
  --secondary-pane-width: 280px;
  /* Fonts */
  --font-primary: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

* {
  box-sizing: border-box;
}

body.mgmt-theme-dark {
  background-color: var(--bg-primary);
  color: var(--text-normal);
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--aurora-blue);
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  color: var(--aurora-violet);
  text-decoration: underline;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  background-clip: content-box;
}

.mgmt-app {
  display: flex;
  flex-direction: row;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

/* Rail + Arbeitsbereich (Haupt + optionale Liste) */
.mgmt-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.mgmt-workspace > .mgmt-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* The Rail (Left-most slim bar) */
.mgmt-rail {
  width: var(--rail-width);
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  flex-shrink: 0;
  border-right: 1px solid var(--glass-border);
}

.mgmt-rail__item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-normal);
  font-size: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.mgmt-rail__item:hover, .mgmt-rail__item.is-active {
  border-radius: 16px;
  background-color: var(--brand-blue);
  color: var(--text-active);
}

.mgmt-rail__item--logout {
  color: var(--brand-red);
}

.mgmt-rail__item--logout:hover {
  background-color: var(--brand-red);
  color: var(--text-active);
}

.mgmt-rail__spacer {
  flex-grow: 1;
}

/* Secondary Pane */
.mgmt-secondary {
  width: var(--secondary-pane-width);
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--glass-border);
}

.mgmt-secondary__header {
  min-height: var(--header-height);
  height: auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.2s;
  z-index: 2;
}

.mgmt-secondary__header h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgmt-secondary__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

/* The Main Content Area */
.mgmt-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  min-width: 0;
}

.mgmt-main__topbar {
  min-height: var(--header-height);
  height: auto;
  padding: 0.5rem 16px;
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.mgmt-main__context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.mgmt-main__title {
  font-weight: 700;
  color: var(--text-active);
  font-size: 15px;
}

.mgmt-main__desc {
  font-size: 13px;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--bg-modifier-hover);
  color: var(--text-muted);
}

.mgmt-main__content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

.mgmt-mobile-nav-btn {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--bg-modifier-hover);
  color: var(--text-normal);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mgmt-mobile-nav-btn:hover {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--text-active);
}
.mgmt-mobile-nav-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

.mgmt-lists-backdrop {
  display: none;
  pointer-events: none;
}

.mgmt-lists-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}

/* Management — einladendes Team-Dashboard */
.mgmt-dashboard {
  max-width: 72rem;
  margin: 0 auto;
}

.mgmt-dash-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.12) 45%, rgba(192, 132, 252, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.mgmt-dash-welcome__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mgmt-dash-welcome__icon--sunrise {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.55), rgba(249, 115, 22, 0.35));
  color: #fffbeb;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.22);
}

.mgmt-dash-welcome__icon--sun {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.5), rgba(234, 179, 8, 0.38));
  color: #fefce8;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.2);
}

.mgmt-dash-welcome__icon--moon {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.5), rgba(67, 56, 202, 0.42));
  color: #e0e7ff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.22);
}

.mgmt-dash-welcome__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-normal);
  letter-spacing: 0.01em;
}

.mgmt-dash-welcome__accent {
  color: #c4d4ff;
  font-weight: 700;
}

.mgmt-dash-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse 90% 70% at 0% 0%, rgba(99, 102, 241, 0.22), transparent 55%), radial-gradient(ellipse 70% 60% at 100% 20%, rgba(139, 92, 246, 0.18), transparent 50%), radial-gradient(ellipse 50% 40% at 50% 120%, rgba(59, 130, 246, 0.1), transparent 45%), linear-gradient(165deg, rgba(17, 24, 39, 0.92) 0%, rgba(11, 15, 26, 0.98) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.mgmt-dash-hero::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.mgmt-dash-hero__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-active);
  background: linear-gradient(120deg, #fff 0%, #e0e7ff 55%, #ddd6fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mgmt-dash-hero__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.95);
}

.mgmt-dash-hero__footnote {
  position: relative;
  z-index: 1;
  margin: 0 0 1.75rem;
  padding: 0.65rem 0.85rem;
  max-width: 38rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid rgba(129, 140, 248, 0.45);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 10px 10px 0;
}

.mgmt-dash-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.25rem;
}

@media (max-width: 900px) and (min-width: 481px) {
  .mgmt-dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mgmt-dash-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.mgmt-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(17, 24, 39, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mgmt-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.mgmt-stat-card__icon-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
  font-size: 1.2rem;
}

.mgmt-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mgmt-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-active);
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.mgmt-dash-section-head {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.mgmt-dash-section-hint {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.mgmt-dash-section-head i {
  margin-right: 0.4rem;
  opacity: 0.9;
}

.mgmt-alert-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(17, 24, 39, 0.5) 100%);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid rgba(148, 163, 184, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mgmt-alert-item:last-child {
  margin-bottom: 0;
}
.mgmt-alert-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mgmt-alert-item--ok {
  border-left-color: rgba(52, 211, 153, 0.85);
}

.mgmt-alert-item--danger {
  border-left-color: var(--brand-red);
}

.mgmt-alert-item--warning {
  border-left-color: var(--brand-yellow);
}

.mgmt-alert-item--info {
  border-left-color: var(--brand-blue);
}

.mgmt-alert-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: #cbd5e1;
}

.mgmt-alert-item--ok .mgmt-alert-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.mgmt-alert-content {
  flex: 1 1 auto;
  min-width: 0;
}

.mgmt-alert-title {
  font-weight: 700;
  color: var(--text-active);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.mgmt-alert-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mgmt-alert-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 0.2rem;
}

.mgmt-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mgmt-quick-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(17, 24, 39, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-normal);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.mgmt-quick-link:hover {
  transform: translateX(4px);
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-active);
}
.mgmt-quick-link:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.6);
  outline-offset: 2px;
}

.mgmt-quick-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  flex-shrink: 0;
}

.mgmt-quick-link__chev {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.mgmt-quick-link:hover .mgmt-quick-link__chev {
  color: #a5b4fc;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .mgmt-stat-card,
  .mgmt-quick-link {
    transition: none;
  }
  .mgmt-stat-card:hover,
  .mgmt-quick-link:hover {
    transform: none;
  }
}
/* Management-UI: Mobil & schmale Viewports */
@media (max-width: 768px) {
  .mgmt-mobile-nav-btn {
    display: inline-flex;
  }
  .mgmt-app {
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100vh;
    position: relative;
  }
  /*
   * Modul-Leiste: fixed unten + hoher z-index — verhindert, dass der Arbeitsbereich
   * (transform / stacking) Taps abfängt (iOS/Android).
   */
  .mgmt-rail {
    order: 2;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 3.25rem;
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    gap: 0.15rem;
    border-right: none;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    box-sizing: border-box;
    touch-action: manipulation;
  }
  .mgmt-rail__spacer {
    display: none;
  }
  .mgmt-rail__item {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.05rem;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
  }
  .mgmt-workspace {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: row;
    isolation: isolate;
    /* Platz für fixed Rail + Safe Area */
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  /* Sekundärspalte: Off-Canvas — unten bis über die fixed Rail (kein Überdecken) */
  .mgmt-secondary {
    position: absolute;
    top: 0;
    left: 0;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    width: min(17.5rem, 88vw);
    max-width: 100%;
    z-index: 40;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
    border-right: 1px solid var(--glass-border);
    pointer-events: none;
    touch-action: pan-y;
  }
  .mgmt-app--lists-open .mgmt-secondary {
    transform: translateX(0);
    pointer-events: auto;
  }
  /* Backdrop: dimmt nur den Arbeitsbereich, nicht die untere Rail */
  .mgmt-lists-backdrop {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
  }
  .mgmt-app--lists-open .mgmt-lists-backdrop {
    display: block;
    pointer-events: auto;
  }
  .mgmt-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    z-index: 1;
  }
  .mgmt-main__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .mgmt-main__desc {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .mgmt-main__content-scroll {
    padding: 1rem 0.9rem 1.25rem;
  }
  .mgmt-chat-history {
    padding: 1rem 0.85rem;
  }
  .mgmt-chat-intro__title {
    font-size: 1.35rem;
  }
  .mgmt-chat-input-area {
    padding: 0 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .mgmt-chat-input-body {
    padding: 1rem;
  }
  .mgmt-chat-input-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
  }
  .mgmt-message {
    gap: 0.65rem;
    padding: 0.65rem 0.5rem;
  }
  .mgmt-message__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
  }
  .mgmt-message__author {
    font-size: 0.9rem;
  }
  .mgmt-message__body {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }
  .mgmt-ticket-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .mgmt-empty-state {
    padding: 2rem 1rem;
  }
  .mgmt-dash-hero {
    padding: 1.25rem;
  }
  .mgmt-dash-hero__title {
    font-size: 1.35rem;
  }
  .mgmt-dash-hero__footnote {
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
  }
  .mgmt-dash-stats {
    grid-template-columns: 1fr;
    margin-top: 0;
    gap: 0.85rem;
  }
  .mgmt-dash-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 480px) {
  .mgmt-rail__item {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mgmt-secondary {
    transition: none !important;
  }
}
/* Cards */
.mgmt-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mgmt-card__header {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 20px;
  font-weight: 700;
  color: var(--text-active);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--glass-border);
}

.mgmt-card__body {
  padding: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none !important;
}

.btn--primary {
  background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-violet));
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn--secondary {
  background: var(--bg-modifier-hover);
  border-color: var(--glass-border);
  color: var(--text-normal);
}

.btn--secondary:hover {
  background: var(--bg-modifier-selected);
}

.btn--danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.btn--danger:hover {
  background: #ef4444;
  color: white;
}

.btn--xs {
  padding: 4px 10px;
  font-size: 11px;
}

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

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-normal);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--aurora-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  outline: none;
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges */
.mgmt-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mgmt-badge--admin {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.mgmt-badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mgmt-badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.mgmt-badge--muted {
  background: var(--bg-modifier-hover);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

/* Ticket Module Styling */
/* Sidebar Headers & Pills */
.mgmt-secondary__header {
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
  gap: 12px;
}

.mgmt-search-box {
  width: 100%;
}

.mgmt-search-box form {
  position: relative;
  display: flex;
  align-items: center;
}

.mgmt-search-box i.fa-search {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.mgmt-search-box input[type=text] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 36px 8px 36px;
  color: var(--text-normal);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.mgmt-search-box input[type=text]:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--aurora-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mgmt-search-clear {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.mgmt-secondary__header-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 4px 0;
}

.mgmt-pill {
  padding: 5px 12px;
  background: var(--bg-modifier-hover);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: all 0.2s;
  border: 1px solid var(--glass-border);
}

.mgmt-pill:hover {
  background: var(--bg-modifier-selected);
  color: var(--text-normal);
}

.mgmt-pill.is-active {
  background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-violet));
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Ticket List Scroll & Items */
.mgmt-list-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.mgmt-ticket-list {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 4px;
}

.mgmt-ticket-item {
  position: relative;
  display: flex;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-normal);
  text-decoration: none !important;
  transition: all 0.2s;
  background: transparent;
  margin: 0 12px;
}

.mgmt-ticket-item:hover {
  background-color: var(--bg-modifier-hover);
}

.mgmt-ticket-item.is-active {
  background-color: var(--bg-modifier-selected);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mgmt-ticket-item__status-bar {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
}

.mgmt-ticket-item__id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.mgmt-ticket-item__subject {
  font-weight: 600;
  font-size: 14px;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgmt-ticket-item__user {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Chat Interface */
.mgmt-chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mgmt-chat-history {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px 24px;
}

.mgmt-chat-intro {
  margin: 0 0 48px 16px;
  max-width: 600px;
}

.mgmt-chat-intro__icon {
  width: 52px;
  height: 52px;
  background: var(--bg-modifier-hover);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-normal);
  margin-bottom: 24px;
}

.mgmt-chat-intro__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-active);
  margin: 0 0 12px 0;
}

.mgmt-chat-intro__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.mgmt-chat-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.mgmt-chat-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border);
}

.mgmt-chat-divider span {
  position: relative;
  z-index: 1;
  background: #060912; /* Aurora base slightly lighter */
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.mgmt-message {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  margin: 4px 0;
  transition: all 0.2s;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
}

.mgmt-message:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.mgmt-message__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-modifier-hover);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.mgmt-message--staff .mgmt-message__avatar {
  background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-violet));
  color: white;
  border: none;
}

.mgmt-message__content {
  flex-grow: 1;
  min-width: 0;
}

.mgmt-message__header {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mgmt-message__author {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-active);
}

.mgmt-message__tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  margin-left: 2px;
}

.mgmt-message__tag--staff {
  background: var(--aurora-blue);
}

.mgmt-message__time {
  font-size: 12px;
  color: var(--text-muted);
}

/* Grounded Bubble Variant */
.mgmt-message__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-normal);
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: inline-block;
  max-width: 100%;
}

.mgmt-message--staff .mgmt-message__body {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

/* Chat Input Area */
.mgmt-chat-input-area {
  padding: 0 32px 32px 32px;
}

.mgmt-chat-input-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.mgmt-chat-input-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.mgmt-chat-status-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mgmt-chat-status-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.mgmt-chat-status-select {
  background: var(--bg-modifier-selected);
  border: 1px solid var(--glass-border);
  color: var(--text-active);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mgmt-chat-status-select:hover {
  border-color: var(--aurora-blue);
}

.mgmt-chat-meta-links a {
  font-size: 12px;
  color: var(--aurora-blue);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mgmt-chat-meta-links a:hover {
  color: var(--aurora-accent);
}

.mgmt-chat-input-body {
  padding: 24px;
  position: relative;
}

.mgmt-chat-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-normal);
  font-size: 16px;
  resize: none;
  min-height: 24px;
  max-height: 400px;
  outline: none;
  font-family: inherit;
  line-height: 1.6;
}

.mgmt-chat-input-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.mgmt-chat-send-btn {
  background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-violet));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.mgmt-chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
}

/* Empty State */
.mgmt-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 64px 32px;
  text-align: center;
  color: var(--text-muted);
}

.mgmt-empty-state i {
  font-size: 48px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.8;
}

.mgmt-empty-state p {
  font-size: 16px;
  font-weight: 500;
  max-width: 240px;
  line-height: 1.5;
}

.mgmt-error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.mgmt-error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--bg-tertiary);
  line-height: 1;
  margin-bottom: -40px;
  user-select: none;
}

.mgmt-error-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-color);
}

.mgmt-error-card i {
  font-size: 48px;
  color: var(--brand-red);
  margin-bottom: 20px;
}

.mgmt-error-card h1 {
  font-size: 24px;
  margin: 0 0 12px 0;
  color: var(--text-active);
}

.mgmt-error-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/**
 * Aurora Host — Bubble Background Animation
 */
.bg-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-primary);
  background-image: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 50%;
  opacity: 0.3;
  animation: bubble-float 15s infinite ease-in-out;
  filter: blur(2px);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.bubble::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 20%;
  height: 20%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

@keyframes bubble-float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(-30vh) translateX(30px) scale(1.1);
  }
  66% {
    transform: translateY(-60vh) translateX(-30px) scale(0.9);
  }
  100% {
    transform: translateY(-110vh) translateX(0) scale(1);
  }
}
/* Bubble variants */
.bubble--1 {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.bubble--2 {
  width: 120px;
  height: 120px;
  left: 25%;
  animation-duration: 22s;
  animation-delay: 2s;
  opacity: 0.2;
}

.bubble--3 {
  width: 60px;
  height: 60px;
  left: 45%;
  animation-duration: 15s;
  animation-delay: 1s;
}

.bubble--4 {
  width: 100px;
  height: 100px;
  left: 60%;
  animation-duration: 25s;
  animation-delay: 4s;
  opacity: 0.15;
}

.bubble--5 {
  width: 140px;
  height: 140px;
  left: 80%;
  animation-duration: 20s;
  animation-delay: 0.5s;
  opacity: 0.1;
}

.bubble--6 {
  width: 70px;
  height: 70px;
  left: 90%;
  animation-duration: 16s;
  animation-delay: 3s;
}

.bubble--7 {
  width: 110px;
  height: 110px;
  left: 15%;
  animation-duration: 28s;
  animation-delay: 6s;
  opacity: 0.1;
}

.bubble--8 {
  width: 90px;
  height: 90px;
  left: 70%;
  animation-duration: 19s;
  animation-delay: 2.5s;
}

/* Auth-Shell & Karten (Login, 2FA, Passwort …) — nur management.css */
.mgmt-auth-shell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: 1.5rem 1rem 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--bg-primary);
  background-image: radial-gradient(ellipse 100% 80% at 50% -30%, rgba(59, 130, 246, 0.18), transparent 55%), radial-gradient(ellipse 70% 50% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 45%), radial-gradient(ellipse 60% 40% at 0% 100%, rgba(59, 130, 246, 0.08), transparent 50%);
}

.mgmt-auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(192, 132, 252, 0.06), transparent 45%);
  z-index: 0;
}

.mgmt-auth-shell > * {
  position: relative;
  z-index: 1;
}

.mgmt-auth-card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, var(--glass-bg) 42%, rgba(11, 15, 26, 0.92) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.mgmt-auth-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-active);
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.mgmt-auth-card h1 {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-active);
  background: linear-gradient(135deg, #fff 0%, rgba(191, 219, 254, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mgmt-auth-card__lead {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.mgmt-auth-card__badge {
  display: flex;
  justify-content: center;
  margin: 0 0 1.35rem;
}

.mgmt-auth-card__badge span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.mgmt-auth-alert {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.mgmt-auth-alert--error {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.mgmt-auth-alert--error p {
  margin: 0;
}
.mgmt-auth-alert--error p + p {
  margin-top: 0.35rem;
}

.mgmt-auth-card .form-group:last-of-type {
  margin-bottom: 0;
}

.mgmt-auth-card .btn--primary {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 10px;
}

.mgmt-auth-card__footer {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.mgmt-auth-card__footer a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
}
.mgmt-auth-card__footer a:hover {
  color: var(--aurora-blue);
}
.mgmt-auth-card__footer a:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

/* Gemeinsame „Glass“-Karte für Views mit .auth-card (2FA, Passwort, …) */
.auth-card {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05) 0%, var(--glass-bg) 42%, rgba(11, 15, 26, 0.92) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.auth-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-active);
  background: linear-gradient(135deg, #fff 0%, rgba(191, 219, 254, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-card__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-card__notice {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-normal);
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-card .error-list {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem 0.65rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  list-style-position: outside;
}

.auth-card__section {
  margin: 0 0 1.25rem;
}
.auth-card__section:last-of-type {
  margin-bottom: 0;
}

.auth-card__section-title {
  margin: 0 0 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
}
.auth-card__divider::before, .auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
}

.auth-card__divider-text {
  flex-shrink: 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.auth-card__footer {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-card__footer a {
  font-weight: 600;
  color: var(--aurora-blue);
  text-decoration: none;
}
.auth-card__footer a:hover {
  text-decoration: underline;
}
.auth-card__footer a:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}

.auth-card__links {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.875rem;
}
.auth-card__links a {
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.auth-card__links a:hover {
  color: var(--aurora-blue);
}
.auth-card__links a:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-stack .form-label {
  margin-bottom: 0.25rem;
}

.form-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: var(--text-normal);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--aurora-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.btn--block {
  width: 100%;
  justify-content: center;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .mgmt-auth-shell {
    background-image: none;
  }
}
/* User & Server Lists (Shared Style) */
.mgmt-user-list {
  display: flex;
  flex-direction: column;
}

.mgmt-user-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-normal);
  transition: background-color 0.1s;
  text-decoration: none !important;
  margin: 1px 0;
}

.mgmt-user-item:hover {
  background-color: var(--bg-modifier-hover);
}

.mgmt-user-item.is-active {
  background-color: var(--bg-modifier-selected);
}

.mgmt-user-item__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.mgmt-user-item__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

.mgmt-user-item__email {
  font-size: 14px;
  font-weight: 500;
}

.mgmt-user-item__meta {
  font-size: 11px;
  color: var(--text-muted);
}
