﻿/* =====================================================================
   NextWave Services - konsolidiertes Stylesheet
   Etappe 6: style.css wurde hier eingegliedert (Prefix-Block unten),
   danach folgt das neue Designsystem, das wo noetig ueberschreibt.
   ===================================================================== */

/* ============================ BEGIN: eingegliederte style.css (Legacy) ============================ */

/* ===============================================
   NextWave Services - Modern Redesign
   Clean, Professional, Mobile-First Design
   Ergänzt Tailwind CSS, nicht ersetzt!
   =============================================== */

/* ===============================================
   RESET & BASE STYLES
   =============================================== */
* {
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-light: rgba(148, 163, 184, 0.15);
  --border-medium: rgba(148, 163, 184, 0.3);
  --border-primary: #6366f1;
  
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn { animation: fadeIn var(--transition-normal) forwards;
}

.animate-fadeInUp {
  animation: fadeInUp var(--transition-normal) forwards;
}

.animate-fadeInDown {
  animation: fadeInDown var(--transition-normal) forwards;
}

.animate-slideIn {
  animation: slideInRight 0.3s ease-out forwards;
}

.animate-slideUp {
  animation: fadeInUp 0.4s ease-out forwards;
}

.animate-slideLoop {
  animation: slideLoop 30s linear infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.hidden {
  display: none !important;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===============================================
   LOADER (FÜR SEKTIONSÜBERGÄNGE)
   =============================================== */
#loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.98);
  align-items: center;
  justify-content: center;
  z-index: 9997;
  transition: opacity 0.3s ease;
}

#loader-overlay:not(.hidden) {
  display: flex !important;
}

.loader-container {
  text-align: center;
  animation: fadeInUp 0.4s ease-out;
}

.loader-dots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.loader-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  animation: bounceLoader 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
  animation-delay: 0.4s;
}

@keyframes bounceLoader {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.loader-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===============================================
   TICKET STATUS PROGRESS
   =============================================== */
.ticket-progress-container {
  background: rgba(31, 41, 55, 0.9);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.ticket-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.ticket-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-info-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
}

.ticket-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0;
}

.ticket-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 4px;
  background: #374151;
  border-radius: 2px;
  z-index: 1;
}

.ticket-progress-line {
  position: absolute;
  top: 15px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  border-radius: 2px;
  z-index: 2;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticket-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  flex: 1;
}

.ticket-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  background: #374151;
  color: #6b7280;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.ticket-step.active .ticket-step-icon,
.ticket-step.completed .ticket-step-icon {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.ticket-step.completed .ticket-step-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.ticket-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  transition: color 0.3s ease;
}

.ticket-step.active .ticket-step-label,
.ticket-step.completed .ticket-step-label {
  color: #e5e7eb;
}

.ticket-step.active .ticket-step-label {
  color: #a855f7;
}

/* Mobile Styles for Ticket Steps */
@media (max-width: 640px) {
  .ticket-progress-container {
    padding: 16px;
  }

  .ticket-step-icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .ticket-step-label {
    font-size: 0.625rem;
    line-height: 1.2;
  }

  .ticket-steps::before,
  .ticket-progress-line {
    top: 13px;
  }

  .ticket-info-row {
    flex-direction: column;
    gap: 12px;
  }
  
  /* Entbannungsform optimizations */
  .form-section h3 {
    font-size: 0.9rem;
  }
  
  #entbannung-section .bg-gradient-to-br {
    padding: 1rem !important;
  }
  
  /* Admin panel optimizations */
  .admin-tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  #news-lists-section {
    grid-template-columns: 1fr;
  }
  
  /* Server bans mobile optimizations */
  #bans-list li,
  #unban-request-list li {
    padding: 1rem !important;
  }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
  .ticket-steps {
    gap: 0.25rem;
  }
  
  .ticket-step-label {
    font-size: 0.55rem;
  }
  
  .step-dot {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
}

/* ===============================================
   SPLASH SCREEN
   =============================================== */
#splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  overflow: hidden;
}

.splash-content {
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
  padding: 2rem;
  max-width: 95vw;
  width: 100%;
}

.splash-logo-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-logo {
  width: min(180px, 40vw);
  height: min(180px, 40vw);
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.6), 0 0 120px rgba(236, 72, 153, 0.3);
  animation: float 3.5s ease-in-out infinite;
}

#splash-text {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1em;
}

.splash-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: rgba(229, 231, 235, 0.7);
  margin-bottom: 2rem;
  font-weight: 500;
}

.splash-progress {
  width: min(280px, 70vw);
  height: 6px;
  background: rgba(31, 41, 55, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.splash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #ec4899, #a855f7);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite, progressPulse 1.2s ease-in-out infinite;
  width: 0%;
  transition: width 0.6s ease;
}

#splash-screen.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
  transition: all 0.5s ease-out;
}

.splash-text {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 2rem;
}

.splash-letter {
  display: inline-block;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(20px);
  animation: letterFadeIn 0.5s ease-out forwards;
}

@keyframes letterFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* ===============================================
   ANNOUNCEMENT BANNER
   =============================================== */
#announcement-banner {
  background: var(--secondary-gradient);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
  animation: fadeInDown var(--transition-normal);
  box-shadow: var(--shadow-medium);
}

#announcement-banner.hide {
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-normal);
}

.announcement-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.announcement-icon {
  font-size: 1.25rem;
  animation: bounce 2s ease-in-out infinite;
}

.announcement-text {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}

.announcement-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ===============================================
   HEADER
   =============================================== */
.modern-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 30;
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

/* Responsive Header for Mobile */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .header-content {
    gap: 0.75rem;
  }
  
  .logo-section {
    gap: 0.5rem;
  }
  
  .logo-text {
    display: none; /* Hide logo text on very small screens */
  }
  
  .header-nav {
    flex: 0;
  }
  
  .nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .nav-item .nav-label {
    display: none; /* Hide text label, show only icon */
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  /* The dropdown anchors to the header itself instead of the small
     avatar button: on mobile the header-actions row doesn't always sit
     flush against the screen edge (it can share a line with the nav),
     so anchoring to the tiny button caused the panel to render mostly
     off-screen to the left. */
  .user-menu {
    position: static;
  }

  .user-dropdown {
    top: 100%;
    right: 1rem;
    left: auto;
    margin-top: 0.5rem;
    width: min(92vw, 340px);
    min-width: 0;
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.1rem;
  }
  
  .logo-text {
    display: none;
  }
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.logo-section:hover {
  transform: scale(1.02);
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-icon {
  font-size: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  font-size: 1.1rem;
  position: relative;
}

.icon-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--border-primary);
  color: white;
  transform: scale(1.05);
}

#notification-bell {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger-gradient);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  min-width: 280px;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.2s ease-out;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
  padding-left: 1.5rem;
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.login-section {
  padding: 1.25rem;
}

.login-hint {
  margin: 0 0 0.875rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

.discord-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.discord-login-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.45);
}

.discord-login-btn:active {
  transform: translateY(0);
}

.discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.header-bottom {
  width: 100%;
}

.progress-indicator {
  width: 100%;
  height: 2px;
  background: var(--bg-tertiary);
}

.progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  width: 100%;
}

/* ===============================================
   BUTTONS
   =============================================== */
.button-animate {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.button-animate::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.button-animate:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  background-position: 100% 50%;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--border-medium);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--border-primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success-gradient);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: var(--danger-gradient);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-back {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-filter {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-filter:hover {
  border-color: var(--border-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-filter.all:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-filter.open {
  border-color: rgba(245, 158, 11, 0.5);
}

.btn-filter.open:hover {
  background: rgba(245, 158, 11, 0.1);
}

.btn-filter.approved {
  border-color: rgba(16, 185, 129, 0.5);
}

.btn-filter.approved:hover {
  background: rgba(16, 185, 129, 0.1);
}

.btn-filter.rejected {
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-filter.rejected:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ===============================================
   CARDS
   =============================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ===============================================
   ACTION CARDS (Startseite)
   =============================================== */
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.action-card:hover::before {
  opacity: 1;
}

.action-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.card-icon {
  font-size: 1.75rem;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.action-card:hover .card-icon {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.action-card:hover .card-title {
  color: #a78bfa;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-arrow {
  margin-top: auto;
  align-self: flex-end;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-light);
  color: var(--border-primary);
  transition: all var(--transition-fast);
}

.action-card:hover .card-arrow {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  transform: translateX(4px);
}

/* ===============================================
   STAT CARD
   =============================================== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.stat-icon-badge {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  position: relative;
  z-index: 1;
}

.stat-content {
  text-align: left;
  position: relative;
  z-index: 1;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.125rem;
}

.stat-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===============================================
   TICKET SEARCH CARD
   =============================================== */
.ticket-search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.ticket-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary-gradient);
}

.ticket-search-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-glow);
}

/* ===============================================
   START SELECTION (Startseite Hero)
   =============================================== */
#start-selection {
  position: relative;
  isolation: isolate;
}

#start-selection::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 50%;
  width: min(800px, 90vw);
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ===============================================
   TEAM SECTION
   =============================================== */
#team-section {
  position: relative;
  isolation: isolate;
}

#team-section::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 50%;
  width: min(800px, 90vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.team-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .team-toolbar {
    flex-direction: row;
  }
}

.team-search-input,
.team-filter-select {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.team-search-input {
  flex: 1;
}

.team-search-input::placeholder {
  color: var(--text-muted);
}

.team-search-input:hover,
.team-filter-select:hover {
  border-color: var(--border-medium);
}

.team-search-input:focus,
.team-filter-select:focus {
  outline: none;
  border-color: var(--border-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.team-group {
  margin-bottom: 0;
}

.team-group-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.team-group-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.team-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.team-group-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.team-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.team-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.team-member-card:hover .team-avatar {
  transform: scale(1.06);
}

.team-member-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.team-member-card:hover .team-member-name {
  color: #a78bfa;
}

.team-member-job {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.475rem;
}

.team-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.team-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.team-member-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--border-primary);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
}

.team-member-card:hover .team-member-more {
  opacity: 1;
  transform: translateY(0);
}

/* Used by the member-detail / comparison modals (rank badges there
   are paired with a Tailwind bg-* utility that overrides this default). */
.team-rank {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin: 0.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  background: var(--primary-gradient);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-card-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all var(--transition-normal);
  text-align: center;
  cursor: pointer;
}

.dept-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ===============================================
   FORM ELEMENTS
   =============================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.025em;
}

.form-group input,
.form-group textarea,
.form-group select,
.custom-select {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  font-family: inherit;
  width: 100%;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover,
.custom-select:hover {
  border-color: var(--border-medium);
  background: var(--bg-tertiary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--border-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.form-section h3 span:first-child {
  width: 2rem;
  height: 2rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.divider-line {
  height: 1px;
  background: var(--border-light);
}

/* ===============================================
   MULTI-STEP FORM
   =============================================== */
.form-step {
  animation: fadeIn 0.3s ease-in-out;
}

.form-step.hidden {
  display: none;
}

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

.step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #374151;
  border: 2px solid #4b5563;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition-normal);
  font-size: 0.875rem;
}

.step-dot.active {
  background: var(--primary-gradient);
  border-color: #a855f7;
  color: white;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.step-dot.completed {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.step-line {
  transition: background var(--transition-normal);
}

.step-line.completed {
  background: linear-gradient(to right, #a855f7, #ec4899);
}

/* Custom styles for modern unban request card */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

.unban-card-modern .group {
  position: relative;
}

/* ===============================================
   RATING STARS
   =============================================== */
.rating-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#rating-stars {
  display: flex;
  gap: 0.5rem;
}

.rating-star {
  font-size: 2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.rating-star:hover {
  transform: scale(1.2);
  color: #fbbf24;
}

.rating-star.active {
  color: #fbbf24;
}

.rating-star.half {
  background: linear-gradient(90deg, #fbbf24 50%, var(--text-muted) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#rating-text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===============================================
   SECTIONS
   =============================================== */
section {
  padding: 2rem 0.5rem; /* Reduced horizontal padding from 0.75rem to 0.5rem for more space */
  animation: fadeInUp var(--transition-normal);
  width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  section {
    padding: 3rem 1.5rem;
  }
  .container {
    max-width: 1200px;
    padding: 0;
  }
}

/* Make admin cards full width on mobile */
.admin-controls-card,
.admin-requests-card,
.notifications-card,
.news-settings-wrapper,
.settings-card,
.editor-settings-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
}

@media (min-width: 768px) {
  .admin-controls-card,
  .admin-requests-card,
  .notifications-card,
  .news-settings-wrapper,
  .settings-card,
  .editor-settings-container {
    padding: 1.5rem;
  }
}



.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ===============================================
   ADMIN PANEL
   =============================================== */
.admin-nav-tabs {
  margin-bottom: 2rem;
}

.admin-tab-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-tab-btn:hover {
  border-color: var(--border-primary);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
}

.admin-tab-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.admin-tab-content {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.admin-tab-content.active {
  display: block;
}

.admin-controls-card,
.admin-requests-card,
.notifications-card,
.news-settings-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ===============================================
   NOTIFICATIONS
   =============================================== */
#notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.notification-item:hover {
  border-color: var(--border-primary);
  background: var(--bg-tertiary);
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===============================================
   TEAM REFRESH MESSAGE
   =============================================== */
#team-refresh-message {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-medium);
  z-index: 50;
  animation: fadeInDown var(--transition-normal);
}

/* ===============================================
   MODERN UNBAN REQUESTS CARD STYLES
   =============================================== */
/* Initial toggle icon state */
#unban-toggle-icon {
  transform: rotate(-90deg);
}

/* Smooth section transitions */
#unban-requests-section {
  transition: all 0.3s ease;
}

/* Enhanced Status Filter Button Styles */
#status-filters button {
  position: relative;
  overflow: hidden;
}

#status-filters button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

#status-filters button:hover::before {
  left: 100%;
}

/* Beautiful gradient background for the control panel */
.bg-gray-800\/70 {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.85), rgba(17, 24, 39, 0.9)) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Search input enhancement */
input[type="text"]#search-input {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.95)) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.1) !important;
}

input[type="text"]#search-input:focus {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Select dropdown enhancement */
select#sort-select {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.95)) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.1) !important;
}

select#sort-select:focus {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced unban card styles */
.unban-card-modern {
  position: relative;
  /* Don't hide overflow so shadow is visible */
}

/* Animated glow effect for card hover */
.unban-card-modern {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.unban-card-modern:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2), 0 0 60px rgba(236, 72, 153, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}

/* Beautiful avatar glow effect */
.unban-card-modern img {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Gradient text for username */
.unban-card-modern a.text-lg {
  background: linear-gradient(135deg, #fff, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.unban-card-modern a.text-lg:hover {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Info box enhancement */
.unban-card-modern .bg-gray-800\/50 {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.7), rgba(17, 24, 39, 0.8)) !important;
  border: 1px solid rgba(107, 114, 128, 0.3) !important;
}

/* Details section enhancement */
.unban-card-modern details[open] summary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05)) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Button enhancement (not for badges!) */
.unban-card-modern button:not(.ticket-id-badge) {
  position: relative;
  overflow: hidden;
}

.unban-card-modern button:not(.ticket-id-badge)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.unban-card-modern button:not(.ticket-id-badge):hover::before {
  left: 100%;
}

/* Empty state enhancement */
.text-center.py-12 {
  position: relative;
}

.text-center.py-12::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Header section background enhancement */
.relative.bg-gradient-to-r.from-gray-800\/90 {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.95)) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* Status badge pulse animation */
.status-badge .w-2.h-2 {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
  50% {
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
  }
}

/* Ticket ID badge enhancement */
.bg-gray-800\/80, .ticket-id-badge {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9)) !important;
  border: 1px solid rgba(107, 114, 128, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  width: auto !important;
  min-width: fit-content !important;
}


.unban-request-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.unban-request-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.unban-request-card:hover::before {
  opacity: 1;
}

/* News Editor Section */
#admin-tab-news select:hover,
#admin-tab-news select:focus {
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2) !important;
}

#admin-tab-news button {
  position: relative;
  overflow: hidden;
}

#admin-tab-news button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

#admin-tab-news button:hover::before {
  left: 100%;
}

.unban-request-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.status-badge.open {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.processed {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Discord Embed Preview Styles */
.discord-message-preview {
  background-color: #313338;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  flex-shrink: 0;
}

.discord-message-content {
  flex: 1;
  min-width: 0;
}

.discord-username-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.discord-username {
  font-size: 16px;
  font-weight: 600;
  color: #f2f3f5;
  line-height: 1.375;
}

.discord-bot-badge {
  background: #5865f2;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1.3;
}

.discord-timestamp {
  font-size: 12px;
  color: #949ba4;
}

.discord-ping-role {
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  font-weight: 500;
  padding: 0 2px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.discord-embed {
  background: #2b2d31;
  border-left: 4px solid #a855f7;
  border-radius: 4px;
  padding: 12px 16px;
  max-width: 520px;
}

.discord-embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.discord-embed-author-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-embed-author-name {
  font-size: 14px;
  font-weight: 500;
  color: #f2f3f5;
}

.discord-embed-title {
  font-size: 16px;
  font-weight: 600;
  color: #00a8fc;
  margin-bottom: 8px;
  line-height: 1.375;
}

.discord-embed-description {
  font-size: 14px;
  color: #b5bac1;
  margin-bottom: 12px;
  line-height: 1.375;
  white-space: pre-wrap;
}

.discord-embed-fields {
  margin-bottom: 12px;
}

.discord-field-row {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.discord-field {
  min-width: 0;
}

.discord-field-name {
  font-size: 14px;
  font-weight: 600;
  color: #f2f3f5;
  margin-bottom: 2px;
  line-height: 1.375;
}

.discord-field-value {
  font-size: 14px;
  color: #b5bac1;
  line-height: 1.375;
}

.discord-embed-thumbnail {
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
  float: right;
  margin-left: 16px;
  object-fit: cover;
}

.discord-embed-image {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 8px;
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #949ba4;
}

.discord-embed-footer-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-embed-footer-text {
  line-height: 1.375;
}

.discord-embed-footer-separator {
  margin: 0 2px;
}

.discord-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.discord-button {
  background: #4752c4;
  color: white;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.375;
  cursor: pointer;
}

.discord-button:hover {
  background: #3c45a5;
}

/* Markdown in Embeds */
.discord-embed-description strong,
.discord-embed-title strong,
.discord-field-name strong,
.discord-field-value strong {
  font-weight: 700;
}

.discord-embed-description em,
.discord-embed-title em,
.discord-field-name em,
.discord-field-value em {
  font-style: italic;
}

.discord-embed-description code,
.discord-embed-title code,
.discord-field-name code,
.discord-field-value code {
  background: rgba(0, 0, 0, 0.3);
  font-family: 'Consolas', 'Monaco', monospace;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 13px;
}

.discord-embed-heading-1,
.discord-embed-heading-2,
.discord-embed-heading-3 {
  color: #f2f3f5;
  font-weight: 700;
  line-height: 1.3;
}

.discord-embed-heading-1 {
  font-size: 20px;
  margin: 12px 0 6px;
}

.discord-embed-heading-2 {
  font-size: 17px;
  margin: 10px 0 5px;
}

.discord-embed-heading-3 {
  font-size: 15px;
  margin: 8px 0 4px;
}

.discord-blockquote {
  padding: 2px 0 2px 10px;
  margin: 4px 0;
  border-left: 4px solid #4e5058;
  color: #b5bac1;
}

.discord-bullet {
  margin: 2px 0;
  padding-left: 4px;
}

.discord-hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: 10px 0;
}

.discord-link {
  color: #00a8fc;
  text-decoration: underline;
  word-break: break-word;
}

.discord-link:hover {
  text-decoration: none;
}

/* ===============================================
   REQUEST LIST ITEMS
   =============================================== */
#unban-request-list,
#bans-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#unban-request-list li,
#bans-list li {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.5rem;
  list-style: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#unban-request-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

#unban-request-list li:hover::before {
  opacity: 1;
}

#unban-request-list li:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

#unban-request-list li h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

#unban-request-list li .status-text {
  font-weight: 700;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.status-open {
  color: #fbbf24;
}

.status-accepted {
  color: #34d399;
}

.status-denied {
  color: #ef4444;
}

/* ===============================================
   MODALS
   =============================================== */
#status-reason-modal,
#publish-confirmation-modal-backdrop,
#embed-settings-modal-backdrop,
#upload-modal-backdrop,
#team-member-modal-backdrop,
#team-comparison-modal-backdrop,
#news-settings-modal,
#confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

#status-reason-modal:not(.show),
#publish-confirmation-modal-backdrop.hidden,
#embed-settings-modal-backdrop.hidden,
#upload-modal-backdrop.hidden,
#team-member-modal-backdrop.hidden,
#team-comparison-modal-backdrop.hidden,
#news-settings-modal.hidden,
#confirmation-modal.hidden {
  display: none !important;
}

.modal-content,
#publish-confirmation-modal,
#embed-settings-modal,
#confirmation-modal > div,
#status-reason-modal > div {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
}

.modal-header,
#publish-confirmation-modal > div:first-child,
#embed-settings-modal > div:first-child,
#confirmation-modal > div:first-child {
  background: var(--primary-gradient);
  padding: 1.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
}

.modal-header h2,
#publish-confirmation-modal h2,
#embed-settings-modal h2,
#confirmation-modal h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-body,
#publish-confirmation-modal > div:nth-child(2),
#embed-settings-modal > div:nth-child(2) {
  padding: 1.5rem;
}

.modal-footer,
#publish-confirmation-modal > div:last-child,
#embed-settings-modal > div:last-child {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border-light);
}

/* ===============================================
   NEWS EDITOR
   =============================================== */
.news-editor-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .news-editor-grid {
    grid-template-columns: 1fr;
  }
}

#embeds-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.news-lists-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .news-lists-section {
    grid-template-columns: 1fr;
  }
}

.settings-card {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.editor-settings-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ===============================================
   ERROR MESSAGE
   =============================================== */
#error-message {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: shake 0.5s ease-in-out;
}

#error-message:not(.hidden) {
  display: flex;
}

.error-text {
  color: #fca5a5;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===============================================
   TEAM CONTROLS
   =============================================== */
#team-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

#team-stats-section,
#advanced-filters {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

#team-departments-stats {
  gap: 1rem;
}

/* ===============================================
   PROGRESS WRAPPER (Entbannungsantrag)
   =============================================== */
#progress-wrapper {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 2px solid var(--border-primary);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.progress-container {
  height: 1rem;
  width: 100%;
  background: var(--bg-tertiary);
  border-radius: 9999px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 9999px;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* ===============================================
   FOOTER
   =============================================== */
.modern-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-section-modern {
  flex: 1;
}

.footer-links-modern {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footer-link-item:hover {
  color: #a78bfa;
  transform: translateY(-2px);
}

.social-icons-modern {
  display: flex;
  gap: 1rem;
}

.social-icon-modern {
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.social-icon-modern:hover {
  border-color: var(--border-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.footer-divider-modern {
  height: 1px;
  background: var(--border-light);
  margin-bottom: 1.5rem;
}

.footer-credit-modern {
  text-align: center;
}

.footer-credit-modern p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-credit-modern strong {
  color: var(--text-primary);
}

.footer-version-modern {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.heart {
  color: #ec4899;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ===============================================
   SCROLL TO TOP BUTTON
   =============================================== */
#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 9999px;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-fast);
  z-index: 40;
}

#scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ===============================================
   RESPONSIVE DESIGN - MOBILE
   =============================================== */
@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  /* Team section controls */
  #team-controls {
    width: 100%;
  }

  #team-controls .flex.flex-col.sm\\:flex-row {
    flex-direction: column !important;
  }

  #team-controls .custom-select,
  #team-controls input[type="text"] {
    width: 100% !important;
  }

  /* News editor grid */
  .news-editor-grid {
    grid-template-columns: 1fr;
  }

  /* Admin nav tabs */
  .admin-tab-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .admin-tab-btn {
    flex: 1 1 auto;
    min-width: auto;
  }

  .admin-tab-btn .tab-label {
    display: none;
  }

  .announcement-content {
    gap: 0.5rem;
  }

  .announcement-text {
    font-size: 0.85rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  .header-content {
    gap: 1rem;
    padding: 0.625rem 0;
    flex-wrap: wrap;
  }

  .logo-section {
    gap: 0.5rem;
  }

  .header-logo {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    display: none;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .user-menu {
    position: static;
  }

  .user-dropdown {
    width: min(92vw, 340px);
    min-width: 0;
    max-width: calc(100vw - 2rem);
    right: 1rem;
    left: auto;
    position: absolute;
    top: 100%;
    margin-top: 0.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .section-header h1,
  .section-header h2 {
    font-size: 1.875rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .card,
  .team-card,
  .admin-controls-card,
  .admin-requests-card {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .team-card h3 {
    font-size: 1.125rem;
  }

  .team-rank {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
  }

  .admin-tab-buttons {
    gap: 0.375rem;
  }

  .admin-tab-btn {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-success,
  .btn-danger,
  .btn-back {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }

  #unban-request-list li {
    padding: 1.25rem;
  }

  #unban-request-list li h3 {
    font-size: 1.125rem;
  }

  .action-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem;
  }

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

  /* Team section controls */
  #team-controls {
    width: 100%;
  }

  #team-controls .flex.flex-col.sm\:flex-row {
    flex-direction: column !important;
  }

  #team-controls .custom-select,
  #team-controls input[type="text"] {
    width: 100% !important;
  }

  /* News editor grid */
  .news-editor-grid {
    grid-template-columns: 1fr;
  }

  /* Admin nav tabs */
  .admin-tab-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .admin-tab-btn {
    flex: 1 1 auto;
    min-width: auto;
  }

  /* Unban requests & bans list on mobile */
  #unban-request-list li,
  #bans-list li,
  .news-item {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  /* Make sure text doesn't get cut off */
  #unban-request-list li h3,
  #bans-list li h3,
  .news-item h3,
  .news-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Team member names/info on mobile */
  .team-card p {
    font-size: 0.9rem;
  }

  /* Form elements more spacious */
  .form-group input,
  .form-group textarea,
  .form-group select,
  .custom-select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  /* Buttons on mobile */
  .btn-primary,
  .btn-secondary,
  .btn-success,
  .btn-danger,
  .btn-back {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Unban card modern mobile optimization */
  .unban-card-modern {
    border-radius: 1rem;
  }

  /* Better padding selector for unban cards */
  .unban-card-modern .relative {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Ticket ID and User ID badges on mobile */
  .ticket-id-badge {
    font-size: 0.65rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden !important;
  }



  /* Better touch targets for buttons */
  button,
  .button-animate {
    min-height: 44px !important;
  }

  /* Admin tab buttons on mobile */
  .admin-tab-buttons {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .admin-tab-btn {
    flex: 1 1 calc(50% - 0.5rem) !important;
    min-width: fit-content !important;
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  /* Smaller text on mobile */
  .unban-card-modern .text-base {
    font-size: 1rem !important;
  }

  .unban-card-modern .text-xs {
    font-size: 0.75rem !important;
  }

  .unban-card-modern .text-\[10px\] {
    font-size: 0.65rem !important;
  }
}

/* ===============================================
   NEWS & UPDATES REDESIGN
   =============================================== */
.news-card {
  position: relative;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(148, 163, 184, 0.1);
  backdrop-filter: blur(10px);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.25), 0 0 0 1px rgba(236, 72, 153, 0.2);
}

.news-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color, #a855f7) 0%, var(--card-color, #a855f7) 100%);
  z-index: 10;
}

.news-card-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.news-card:hover .news-card-image {
  transform: scale(1.06);
}

.news-card-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.news-card-content {
  padding: 2rem;
}

.news-card-with-image {
  padding-top: 1.5rem;
}

.news-card-no-image {
  padding-top: 2rem;
}

.news-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.news-card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-card-date {
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card-description {
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  color: rgba(209, 213, 219, 0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-card-description .discord-link {
  color: #c4b5fd;
}

.news-card-description .discord-blockquote {
  border-left-color: var(--card-color, #a855f7);
}

.news-card-description.is-collapsible {
  position: relative;
  max-height: 12.5rem;
  overflow: hidden;
  margin-bottom: 0;
}

.news-card-description.is-collapsible:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4.5rem;
  background: linear-gradient(to bottom, transparent, #111827);
  pointer-events: none;
}

.news-card-description.is-collapsible.expanded {
  max-height: none;
}

.news-read-more {
  display: block;
  margin: 0.75rem 0 1.5rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a78bfa;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.news-read-more:hover {
  color: #c4b5fd;
}

.news-card-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.news-card-field {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.news-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(168, 85, 247, 0.9);
  margin-bottom: 0.4rem;
}

.news-field-value {
  display: block;
  font-size: 0.95rem;
  color: rgba(229, 231, 235, 0.95);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .news-card-image-container {
    height: 180px;
  }

  .news-card-content {
    padding: 1.5rem;
  }

  .news-card-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .news-card-image-container {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .section-header h1,
  .section-header h2 {
    font-size: 1.5rem;
  }

  .header-nav {
    gap: 0.25rem;
  }

  .nav-item {
    padding: 0.5rem 0.75rem;
  }

  /* Modals */
  .modal-content,
  #publish-confirmation-modal,
  #embed-settings-modal,
  #status-reason-modal > div,
  #confirmation-modal > div,
  #thank-you-rating > div,
  #thank-you-unban > div {
    border-radius: 1rem;
    margin: 1rem;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .modal-header,
  #publish-confirmation-modal > div:first-child,
  #embed-settings-modal > div:first-child,
  .modal-body,
  #publish-confirmation-modal > div:nth-child(2),
  #embed-settings-modal > div:nth-child(2),
  .modal-footer,
  #publish-confirmation-modal > div:last-child,
  #embed-settings-modal > div:last-child,
  #thank-you-rating > div,
  #thank-you-unban > div {
    padding: 1rem;
  }

  /* Thank you modals */
  #thank-you-rating h2,
  #thank-you-unban h2 {
    font-size: 1.5rem;
  }

  #thank-you-rating p,
  #thank-you-unban p {
    font-size: 0.9rem;
  }

  /* Toast container */
  #toast-container {
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .toast-message {
    padding: 0.75rem 1rem;
  }
}

/* ===============================================
   RESPONSIVE DESIGN - TABLET
   =============================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-container {
    padding: 0 1.25rem;
  }

  section {
    padding: 2.5rem 1.25rem;
  }
}

/* ===============================================
   SCROLLBAR STYLING
   =============================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 9999px;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-primary);
}

/* ===============================================
   SELECTION
   =============================================== */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

/* ===============================================
   TAILWIND OVERRIDES FOR BETTER DESIGN
   =============================================== */
.bg-gray-700,
.bg-gray-800,
.bg-gray-900 {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
}

.bg-gray-600 {
  background: var(--bg-tertiary) !important;
}

.text-gray-400 {
  color: var(--text-muted) !important;
}

.text-gray-300 {
  color: var(--text-secondary) !important;
}

.text-purple-200,
.text-purple-300,
.text-purple-400 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-purple-500 {
  border-color: var(--border-primary) !important;
}

.rounded-xl {
  border-radius: 1rem !important;
}

.rounded-2xl {
  border-radius: 1.25rem !important;
}

.rounded-3xl {
  border-radius: 1.5rem !important;
}

/* ===============================================
   UPLOAD SPINNER
   =============================================== */
.upload-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--border-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===============================================
   STARS BACKGROUND
   =============================================== */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
}

/* ===============================================
   THANK YOU MODALS
   =============================================== */
#thank-you-rating,
#thank-you-unban {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

#thank-you-rating > div,
#thank-you-unban > div {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  animation: fadeInUp 0.4s ease-out;
  max-width: 500px;
  width: 90%;
}

#thank-you-rating h2 {
  color: #34d399;
}

#thank-you-unban h2 {
  color: #ef4444;
}

/* ===============================================
   NEWS CONTAINER
   =============================================== */
#news-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===============================================
   TOP REVIEWS SLIDER
   =============================================== */
#top-reviews {
  display: flex;
  gap: 1rem;
  animation: slideLoop 30s linear infinite;
}

/* Prevent horizontal overflow on the slider container */
#bewertung-section .overflow-hidden {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

#bewertung-section .overflow-hidden::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* ===============================================
   TOAST CONTAINER
   =============================================== */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
}

.toast-message {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: fadeInRight 0.3s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===============================================
   LOGOUT ICON
   =============================================== */
#logout-icon {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  font-size: 2rem;
  z-index: 30;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: none;
}

#logout-icon.show {
  display: block;
  animation: bounce 0.5s ease-out;
}


/* ============================ END: eingegliederte style.css (Legacy) ============================ */

/* =====================================================================
   NextWave Services — Design System (VIX-angelehnt, eigenständig)
   Etappe 0: Tokens, Primitives, Shell, Startseite
   Wird NACH style.css geladen und gewinnt für migrierte Bereiche.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  TOKENS                                                            */
/* ------------------------------------------------------------------ */
:root {
  /* Flächen – near-black mit leichtem Cyan-Stich */
  --nw-bg-0: #080b0c;
  --nw-bg-1: #0d1113;
  --nw-bg-2: #12181a;
  --nw-bg-3: #18211f;
  --nw-surface: #101717;
  --nw-panel: rgba(20, 28, 28, 0.72);
  --nw-panel-solid: #131b1b;
  --nw-elev: rgba(30, 42, 42, 0.55);

  /* Akzent – Teal (Primär) + Amber (sparsame Sekundärsignale) */
  --nw-accent: #22e3c3;
  --nw-accent-strong: #12b8a0;
  --nw-accent-ink: #04211d;
  --nw-accent-dim: rgba(34, 227, 195, 0.14);
  --nw-accent-line: rgba(34, 227, 195, 0.28);
  --nw-accent-glow: rgba(34, 227, 195, 0.35);
  --nw-amber: #f0a94c;
  --nw-amber-dim: rgba(240, 169, 76, 0.14);

  /* Text */
  --nw-text: #e8f0ee;
  --nw-text-dim: #a4b5b1;
  --nw-text-mute: #6c817d;
  --nw-text-faint: #4a5754;

  /* Status */
  --nw-ok: #34d399;
  --nw-warn: #fbbf24;
  --nw-err: #f87171;
  --nw-info: #38bdf8;

  /* Linien */
  --nw-border: rgba(148, 179, 173, 0.14);
  --nw-border-strong: rgba(148, 179, 173, 0.26);

  /* Radius – bewusst kantig */
  --nw-r-sm: 3px;
  --nw-r-md: 5px;
  --nw-r-lg: 8px;

  /* Ecken-Cut (VIX-Notch) */
  --nw-cut: 14px;
  --nw-cut-sm: 9px;

  /* Schatten */
  --nw-shadow: 0 18px 45px -20px rgba(0, 0, 0, 0.75);
  --nw-shadow-lg: 0 40px 90px -35px rgba(0, 0, 0, 0.8);

  /* Typo */
  --nw-font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --nw-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Timing */
  --nw-t-fast: 130ms cubic-bezier(0.4, 0, 0.2, 1);
  --nw-t: 240ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nw-max: 1240px;
  --nw-gutter: clamp(1rem, 4vw, 2.75rem);
  --nw-header-h: 72px;
}

/* ------------------------------------------------------------------ */
/*  BASE                                                              */
/* ------------------------------------------------------------------ */
html,
body {
  background: var(--nw-bg-0);
  color: var(--nw-text);
  font-family: var(--nw-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Hintergrund-Textur: Grid + radiale Glows, fixiert */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(34, 227, 195, 0.1), transparent 60%),
    radial-gradient(760px 480px at 6% 12%, rgba(240, 169, 76, 0.05), transparent 55%),
    linear-gradient(180deg, var(--nw-bg-1) 0%, var(--nw-bg-0) 55%, #05080800 100%),
    var(--nw-bg-0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 179, 173, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 179, 173, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

::selection {
  background: var(--nw-accent);
  color: var(--nw-accent-ink);
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--nw-accent-strong) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(34, 227, 195, 0.28);
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 227, 195, 0.5);
}

/* ------------------------------------------------------------------ */
/*  TYPO-PRIMITIVES                                                   */
/* ------------------------------------------------------------------ */
.nw-kicker {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--nw-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.nw-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--nw-accent), transparent);
}

.nw-display {
  font-family: var(--nw-font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nw-accent-text {
  color: var(--nw-accent);
}

/* ------------------------------------------------------------------ */
/*  LAYOUT                                                            */
/* ------------------------------------------------------------------ */
.nw-container {
  width: 100%;
  max-width: var(--nw-max);
  margin-inline: auto;
  padding-inline: var(--nw-gutter);
}

.nw-section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

/* ------------------------------------------------------------------ */
/*  BUTTONS                                                           */
/* ------------------------------------------------------------------ */
.nw-btn {
  --_cut: var(--nw-cut-sm);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nw-text);
  background: var(--nw-elev);
  border: 1px solid var(--nw-border-strong);
  clip-path: polygon(var(--_cut) 0, 100% 0, 100% calc(100% - var(--_cut)), calc(100% - var(--_cut)) 100%, 0 100%, 0 var(--_cut));
  cursor: pointer;
  transition: background var(--nw-t-fast), color var(--nw-t-fast), transform var(--nw-t-fast), box-shadow var(--nw-t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.nw-btn:hover {
  transform: translateY(-2px);
  border-color: var(--nw-accent-line);
  box-shadow: 0 12px 30px -14px var(--nw-accent-glow);
}
.nw-btn:active {
  transform: translateY(0);
}

.nw-btn--primary {
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong));
  color: var(--nw-accent-ink);
  border-color: transparent;
  font-weight: 700;
}
.nw-btn--primary:hover {
  box-shadow: 0 16px 40px -12px var(--nw-accent-glow);
  filter: brightness(1.06);
}

.nw-btn--ghost {
  background: transparent;
  border-color: var(--nw-border-strong);
  color: var(--nw-text-dim);
}
.nw-btn--ghost:hover {
  color: var(--nw-text);
  background: var(--nw-accent-dim);
}

.nw-btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
}

.nw-btn--block {
  width: 100%;
}

/* ------------------------------------------------------------------ */
/*  CARD / PANEL                                                      */
/* ------------------------------------------------------------------ */
.nw-card {
  position: relative;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-md);
  backdrop-filter: blur(10px);
}

.nw-panel {
  position: relative;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  clip-path: polygon(var(--nw-cut) 0, 100% 0, 100% calc(100% - var(--nw-cut)), calc(100% - var(--nw-cut)) 100%, 0 100%, 0 var(--nw-cut));
  backdrop-filter: blur(12px);
}

/* Akzent-Kante links */
.nw-panel--edge::before,
.nw-card--edge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, var(--nw-accent), transparent);
}

/* ------------------------------------------------------------------ */
/*  BADGE / PILL / TAG                                                */
/* ------------------------------------------------------------------ */
.nw-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nw-accent);
  background: var(--nw-accent-dim);
  border: 1px solid var(--nw-accent-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nw-tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--nw-accent);
  box-shadow: 0 0 0 0 var(--nw-accent-glow);
  animation: nw-pulse 2s infinite;
}

@keyframes nw-pulse {
  0% { box-shadow: 0 0 0 0 var(--nw-accent-glow); }
  70% { box-shadow: 0 0 0 8px rgba(34, 227, 195, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 227, 195, 0); }
}

.nw-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--nw-accent);
  background: var(--nw-accent-dim);
  border-radius: var(--nw-r-sm);
}

/* ------------------------------------------------------------------ */
/*  INPUTS                                                            */
/* ------------------------------------------------------------------ */
.nw-input,
.nw-textarea,
.nw-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--nw-font-body);
  font-size: 0.92rem;
  color: var(--nw-text);
  background: rgba(8, 12, 12, 0.6);
  border: 1px solid var(--nw-border-strong);
  border-radius: var(--nw-r-sm);
  transition: border-color var(--nw-t-fast), box-shadow var(--nw-t-fast), background var(--nw-t-fast);
}
.nw-input::placeholder,
.nw-textarea::placeholder {
  color: var(--nw-text-mute);
}
.nw-input:focus,
.nw-textarea:focus,
.nw-select:focus {
  outline: none;
  border-color: var(--nw-accent);
  box-shadow: 0 0 0 3px var(--nw-accent-dim);
  background: rgba(8, 12, 12, 0.85);
}
.nw-textarea {
  resize: vertical;
  min-height: 96px;
}

/* ------------------------------------------------------------------ */
/*  HEADER                                                            */
/* ------------------------------------------------------------------ */
#main-header.modern-header,
.nw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 12, 0.78);
  border-bottom: 1px solid var(--nw-border);
  backdrop-filter: blur(16px);
}

.nw-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  height: var(--nw-header-h);
  max-width: var(--nw-max);
  margin-inline: auto;
  padding-inline: var(--nw-gutter);
}

.nw-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nw-brand__logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--nw-r-sm);
  border: 1px solid var(--nw-accent-line);
}
.nw-brand__text {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nw-text);
  line-height: 1;
}
.nw-brand__text b {
  color: var(--nw-accent);
  font-weight: 700;
}
.nw-brand__sub {
  display: block;
  font-family: var(--nw-font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--nw-text-mute);
  margin-top: 3px;
}

.nw-header__divider {
  width: 1px;
  height: 28px;
  background: var(--nw-border-strong);
  flex-shrink: 0;
}

.nw-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: auto;
}
.nw-nav .nav-item,
.nw-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-family: var(--nw-font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nw-text-mute);
  background: transparent;
  border: 0;
  border-radius: var(--nw-r-sm);
  cursor: pointer;
  transition: color var(--nw-t-fast), background var(--nw-t-fast);
}
.nw-nav .nav-item:hover,
.nw-nav__link:hover {
  color: var(--nw-text);
  background: var(--nw-accent-dim);
}
.nw-nav .nav-item.active,
.nw-nav__link.active {
  color: var(--nw-accent);
}
.nw-nav .nav-item.active::after {
  content: "";
  display: block;
}

.nw-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.icon-btn,
.nw-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: var(--nw-text-dim);
  background: var(--nw-elev);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-sm);
  cursor: pointer;
  transition: color var(--nw-t-fast), border-color var(--nw-t-fast), background var(--nw-t-fast);
}
.icon-btn:hover,
.nw-iconbtn:hover {
  color: var(--nw-accent);
  border-color: var(--nw-accent-line);
  background: var(--nw-accent-dim);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-family: var(--nw-font-display);
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nw-accent-ink);
  background: var(--nw-accent);
  border-radius: 99px;
}

/* User-Menü / Dropdown */
.user-menu {
  position: relative;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  padding: 1.1rem;
  background: var(--nw-panel-solid);
  border: 1px solid var(--nw-border-strong);
  border-radius: var(--nw-r-md);
  box-shadow: var(--nw-shadow);
}
.login-hint {
  font-size: 0.82rem;
  color: var(--nw-text-dim);
  margin-bottom: 0.8rem;
}
.discord-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #5865f2;
  border: 0;
  border-radius: var(--nw-r-sm);
  cursor: pointer;
  transition: filter var(--nw-t-fast), transform var(--nw-t-fast);
}
.discord-login-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.discord-icon {
  width: 20px;
  height: 20px;
}
.dropdown-item {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--nw-text-dim);
  background: transparent;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-sm);
  cursor: pointer;
  transition: color var(--nw-t-fast), background var(--nw-t-fast);
}
.dropdown-item:hover {
  color: var(--nw-text);
  background: var(--nw-elev);
}
.dropdown-item.danger:hover {
  color: var(--nw-err);
  border-color: rgba(248, 113, 113, 0.35);
}

/* ------------------------------------------------------------------ */
/*  ANNOUNCEMENT BAR                                                  */
/* ------------------------------------------------------------------ */
#announcement-banner.announcement-banner {
  background: linear-gradient(90deg, var(--nw-accent-dim), transparent 70%);
  border-bottom: 1px solid var(--nw-accent-line);
  overflow: hidden;
  transition: max-height var(--nw-t), opacity var(--nw-t);
  max-height: 120px;
}
#announcement-banner.announcement-banner.hide {
  max-height: 0;
  opacity: 0;
}
.announcement-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--nw-max);
  margin-inline: auto;
  padding: 0.6rem var(--nw-gutter);
}
.announcement-icon {
  font-size: 0.95rem;
}
.announcement-text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--nw-text-dim);
  margin: 0;
}
.announcement-close {
  background: transparent;
  border: 0;
  color: var(--nw-text-mute);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--nw-t-fast);
}
.announcement-close:hover {
  color: var(--nw-text);
}

/* ------------------------------------------------------------------ */
/*  HERO / STARTSEITE                                                 */
/* ------------------------------------------------------------------ */
#start-selection:not(.hidden) {
  display: block;
}
#start-selection {
  min-height: auto;
  padding: 0;
}

.nw-hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.nw-hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.nw-hero__eyebrow {
  margin: 1.1rem 0 0;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nw-text-dim);
}
.nw-hero__title {
  font-family: var(--nw-font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.015em;
  font-size: clamp(2.9rem, 7.4vw, 5.2rem);
  margin: 0.25rem 0 0;
}
.nw-hero__title span {
  display: block;
  color: var(--nw-accent);
  text-shadow: 0 0 44px var(--nw-accent-glow);
}
.nw-hero__sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.02rem;
  color: var(--nw-text-dim);
}
.nw-hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Update-Logs-Panel (rechts) */
.nw-updates {
  padding: 1.4rem 1.5rem;
}
.nw-updates__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--nw-border);
}
.nw-updates__title {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--nw-text-mute);
}
.nw-updates__list {
  display: flex;
  flex-direction: column;
}
.nw-updates__item {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--nw-border);
  font-size: 0.85rem;
  color: var(--nw-text-dim);
  line-height: 1.55;
}
.nw-updates__item:last-child {
  border-bottom: 0;
}
.nw-updates__ver {
  font-family: var(--nw-font-display);
  font-weight: 700;
  color: var(--nw-accent);
  margin-right: 0.5rem;
}

/* ------------------------------------------------------------------ */
/*  STAT-BAR (Ø Bewertung)                                            */
/* ------------------------------------------------------------------ */
#average-rating-box.stat-card,
.nw-statbar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
  padding: 1.15rem 1.4rem;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-left: 3px solid var(--nw-accent);
  border-radius: var(--nw-r-sm);
}
.stat-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  background: var(--nw-accent-dim);
  border-radius: var(--nw-r-sm);
  flex-shrink: 0;
}
.stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-title {
  font-family: var(--nw-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nw-text-mute);
}
.stat-value {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--nw-text);
}
.stat-description {
  font-size: 0.78rem;
  color: var(--nw-text-dim);
}

/* ------------------------------------------------------------------ */
/*  ACTION-CARDS                                                      */
/* ------------------------------------------------------------------ */
.nw-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

#start-selection .action-card,
.nw-action {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  clip-path: polygon(var(--nw-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--nw-cut));
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--nw-t-fast), border-color var(--nw-t-fast), background var(--nw-t-fast);
}
#start-selection .action-card::after,
.nw-action::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--nw-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--nw-t);
}
#start-selection .action-card:hover,
.nw-action:hover {
  transform: translateY(-4px);
  border-color: var(--nw-accent-line);
  background: var(--nw-elev);
}
#start-selection .action-card:hover::after,
.nw-action:hover::after {
  transform: scaleX(1);
}
.card-icon,
.nw-action__icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nw-accent-dim);
  border-radius: var(--nw-r-sm);
}
.card-title,
.nw-action__title {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nw-text);
}
.card-description,
.nw-action__desc {
  font-size: 0.85rem;
  color: var(--nw-text-dim);
  line-height: 1.5;
}
.card-arrow,
.nw-action__arrow {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--nw-font-display);
  font-weight: 700;
  color: var(--nw-accent);
  transition: transform var(--nw-t-fast);
}
#start-selection .action-card:hover .card-arrow,
.nw-action:hover .nw-action__arrow {
  transform: translateX(6px);
}

/* ------------------------------------------------------------------ */
/*  TICKET-SUCHE                                                      */
/* ------------------------------------------------------------------ */
#start-selection .ticket-search-card,
.nw-ticket {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-md);
}
.nw-ticket__title {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nw-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.nw-ticket__hint {
  font-size: 0.85rem;
  color: var(--nw-text-dim);
  margin-bottom: 1.1rem;
}
.nw-ticket__row {
  display: flex;
  gap: 0.75rem;
}
.nw-ticket__result {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/*  SECTION-HEAD (wiederverwendbar für spätere Etappen)              */
/* ------------------------------------------------------------------ */
.nw-sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.nw-sec-head__title {
  font-family: var(--nw-font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  letter-spacing: -0.01em;
  margin: 0.7rem 0 0.5rem;
}
.nw-sec-head__sub {
  color: var(--nw-text-dim);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------ */
/*  FOOTER                                                            */
/* ------------------------------------------------------------------ */
.modern-footer,
.nw-footer {
  margin-top: auto;
  border-top: 1px solid var(--nw-border);
  background: rgba(8, 11, 12, 0.6);
}
.footer-wrapper {
  max-width: var(--nw-max);
  margin-inline: auto;
  padding: 2.4rem var(--nw-gutter) 1.8rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-links-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.footer-link-item {
  font-size: 0.82rem;
  color: var(--nw-text-dim);
  text-decoration: none;
  transition: color var(--nw-t-fast);
}
.footer-link-item:hover {
  color: var(--nw-accent);
}
.social-icons-modern {
  display: flex;
  gap: 0.7rem;
}
.social-icon-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--nw-elev);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-sm);
  transition: border-color var(--nw-t-fast), transform var(--nw-t-fast);
}
.social-icon-modern:hover {
  border-color: var(--nw-accent-line);
  transform: translateY(-2px);
}
.footer-divider-modern {
  height: 1px;
  background: var(--nw-border);
  margin: 1.6rem 0 1.2rem;
}
.footer-credit-modern {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-credit-modern p {
  font-size: 0.78rem;
  color: var(--nw-text-mute);
  margin: 0;
}
.footer-version-modern {
  font-family: var(--nw-font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.heart {
  color: var(--nw-err);
}

/* ------------------------------------------------------------------ */
/*  ENTRANCE-ANIMATION                                                */
/* ------------------------------------------------------------------ */
@keyframes nw-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.nw-rise {
  animation: nw-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nw-rise-2 { animation-delay: 0.08s; }
.nw-rise-3 { animation-delay: 0.16s; }
.nw-rise-4 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .nw-rise,
  .nw-tag__dot {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/*  RESPONSIVE                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 940px) {
  .nw-hero__grid {
    grid-template-columns: 1fr;
  }
  .nw-updates {
    order: 2;
  }
}

/* ================================================================== */
/*  ETAPPE 1 — ENTBANNUNGSANTRAG (mehrstufiges Formular)              */
/*  Klassen .form-step/.form-section/.step-dot/.step-line/            */
/*  #step-progress-bar/#step-number/#step-title bleiben (JS-Hooks).   */
/* ================================================================== */
#entbannung-section:not(.hidden) {
  display: block;
}
#entbannung-section {
  min-height: auto;
  padding: 0;
}
.nw-formwrap {
  padding-block: clamp(2rem, 6vw, 4rem);
}
.nw-form {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.nw-form .nw-sec-head {
  margin-bottom: 1.5rem;
}

/* Step-Indikator */
.nw-steps {
  margin-bottom: 2rem;
}
.nw-steps__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.nw-steps__title {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nw-text-dim);
}
.nw-steps__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
#entbannung-section .step-dot {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--nw-text-mute);
  background: var(--nw-elev);
  border: 1px solid var(--nw-border-strong);
  border-radius: var(--nw-r-sm);
  transition: color var(--nw-t-fast), background var(--nw-t-fast), border-color var(--nw-t-fast), box-shadow var(--nw-t-fast);
}
#entbannung-section .step-dot.active {
  color: var(--nw-accent-ink);
  background: var(--nw-accent);
  border-color: transparent;
  box-shadow: 0 0 22px -6px var(--nw-accent-glow);
}
#entbannung-section .step-dot.completed {
  color: var(--nw-accent);
  background: var(--nw-accent-dim);
  border-color: var(--nw-accent-line);
}
#entbannung-section .step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--nw-border-strong);
  border-radius: 99px;
  transition: background var(--nw-t-fast);
}
#entbannung-section .step-line.completed {
  background: var(--nw-accent);
}
.nw-progress {
  height: 4px;
  background: var(--nw-elev);
  border-radius: 99px;
  overflow: hidden;
}
#step-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--nw-accent-strong), var(--nw-accent));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hinweis-Box */
.nw-note {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--nw-text-dim);
  background: var(--nw-elev);
  border: 1px solid var(--nw-border-strong);
  border-left: 3px solid var(--nw-text-mute);
  border-radius: var(--nw-r-sm);
}
.nw-note strong {
  color: var(--nw-text);
}
.nw-note--warn {
  color: #f3d9a6;
  background: rgba(251, 191, 36, 0.06);
  border-left-color: var(--nw-warn);
}

/* Schritte / Sektionen / Felder */
.nw-form__body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
#entbannung-section .form-step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: nw-rise 0.4s ease both;
}
#entbannung-section .form-step.hidden {
  display: none;
}
#entbannung-section .form-section {
  margin: 0;
  padding: 1.4rem;
  background: rgba(8, 12, 12, 0.4);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-md);
}
#entbannung-section .nw-fs__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--nw-text);
}
#entbannung-section .nw-fs__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nw-accent);
  background: var(--nw-accent-dim);
  border: 1px solid var(--nw-accent-line);
  border-radius: var(--nw-r-sm);
}
.nw-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
#entbannung-section .form-group + .form-group {
  margin-top: 1.1rem;
}
.nw-label {
  font-family: var(--nw-font-display);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nw-text-dim);
}
.nw-hint {
  font-size: 0.76rem;
  color: var(--nw-text-mute);
}
.nw-input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}
.nw-input.ring-red-500,
.nw-textarea.ring-red-500,
.nw-select.ring-red-500 {
  border-color: var(--nw-err) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16) !important;
}
input[type="file"].nw-input {
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
input[type="file"].nw-input::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  cursor: pointer;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nw-accent-ink);
  background: var(--nw-accent);
  border-radius: var(--nw-r-sm);
}
#proof-preview:not(.hidden) {
  margin-top: 0.75rem;
}
#proof-preview img {
  border-radius: var(--nw-r-sm);
  border: 1px solid var(--nw-border-strong);
}

/* Navigation / Fuß */
.nw-form__nav {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nw-border);
}
.nw-form__nav .nw-btn {
  flex: 1;
}
.nw-form__nav .nw-btn.hidden {
  display: none;
}
.nw-form__legal {
  margin: 0;
  padding: 1rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--nw-text-mute);
  background: var(--nw-elev);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-sm);
}
.nw-form__legal a {
  color: var(--nw-accent);
}
.nw-form__foot {
  text-align: center;
  margin-top: 1.25rem;
}
.nw-linklike {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--nw-text-mute);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--nw-t-fast);
}
.nw-linklike:hover {
  color: var(--nw-accent);
}

@media (max-width: 720px) {
  .nw-form__nav {
    flex-direction: column;
  }
}

/* ================================================================== */
/*  ETAPPE 2 — BEWERTUNGEN                                            */
/*  Hooks: #rating-form, .rating-star[data-value] (.active/.half),    */
/*  #rating-text, #rating, #top-reviews (.animate-slideLoop),         */
/*  .review-card (von renderTopReviews erzeugt)                       */
/* ================================================================== */
#bewertung-section:not(.hidden) {
  display: block;
}
#bewertung-section {
  min-height: auto;
  padding: 0;
}
#bewertung-section > .nw-container {
  padding-block: clamp(2rem, 6vw, 4rem);
}
.nw-form--rating {
  max-width: 720px;
  margin-inline: auto;
}
#bewertung-section .nw-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Sterne */
#bewertung-section .rating-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  background: rgba(8, 12, 12, 0.55);
  border: 1px solid var(--nw-border-strong);
  border-radius: var(--nw-r-sm);
}
#bewertung-section #rating-stars {
  display: flex;
  gap: 0.35rem;
}
#bewertung-section .rating-star {
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: var(--nw-text-faint);
  transition: transform var(--nw-t-fast), color var(--nw-t-fast);
}
#bewertung-section .rating-star:hover {
  transform: scale(1.15);
  color: var(--nw-amber);
}
#bewertung-section .rating-star.active {
  color: var(--nw-amber);
}
#bewertung-section .rating-star.half {
  background: linear-gradient(90deg, var(--nw-amber) 50%, var(--nw-text-faint) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#bewertung-section #rating-text {
  font-family: var(--nw-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--nw-text-dim);
}

/* Top-Bewertungen Marquee */
.nw-reviews {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.nw-reviews__head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.nw-reviews__head .nw-kicker {
  justify-content: center;
}
.nw-reviews__track {
  overflow: hidden;
  position: relative;
  padding: 0.25rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
#top-reviews {
  display: flex;
  gap: 1rem;
  width: max-content;
}
#bewertung-section .review-card {
  min-width: 300px;
  max-width: 340px;
  padding: 1.25rem 1.4rem;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-left: 3px solid var(--nw-accent);
  border-radius: var(--nw-r-sm);
}
#bewertung-section .review-card .text-purple-300 {
  color: var(--nw-accent);
  font-family: var(--nw-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#bewertung-section .review-card .text-yellow-300 {
  color: var(--nw-amber);
}
#bewertung-section .review-card .text-gray-100 {
  color: var(--nw-text);
}
#bewertung-section .review-card .text-gray-300 {
  color: var(--nw-text-mute);
}

/* ================================================================== */
/*  ETAPPE 3 — TEAM                                                   */
/*  JS-erzeugte Klassen: .team-group(-header/-icon/-title/-count),    */
/*  .team-member-card, .team-avatar, .team-member-name/-job/-more,    */
/*  .team-badges/.team-badge, .team-rank. Hooks: #team-search,        */
/*  #filter-rank, #team-loading, #team-groups[data-view-mode],        */
/*  Modal-IDs unverändert.                                            */
/* ================================================================== */
#team-section:not(.hidden) {
  display: block;
}
#team-section {
  min-height: auto;
  padding: 0;
}
.nw-team {
  padding-block: clamp(2rem, 6vw, 4rem);
}
.nw-team__toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.nw-team__toolbar #team-search {
  flex: 1 1 240px;
}
.nw-team__toolbar #filter-rank {
  flex: 0 1 220px;
}

.nw-team__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  font-size: 0.85rem;
  color: var(--nw-text-mute);
}
.nw-dots {
  display: flex;
  gap: 0.5rem;
}
.nw-dots span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--nw-accent);
  animation: nw-bounce 1.2s ease-in-out infinite;
}
.nw-dots span:nth-child(2) {
  animation-delay: 0.15s;
  opacity: 0.7;
}
.nw-dots span:nth-child(3) {
  animation-delay: 0.3s;
  opacity: 0.45;
}
@keyframes nw-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
}

.nw-team__groups {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}
.nw-team__groups.hidden {
  display: none;
}

#team-section .team-group {
  animation: nw-rise 0.5s ease both;
}
#team-section .team-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--nw-border);
}
#team-section .team-group-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: var(--nw-r-sm);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
#team-section .team-group-title {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--nw-text);
}
#team-section .team-group-count {
  font-family: var(--nw-font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nw-text-mute);
}

#team-section .team-member-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.4rem;
  cursor: pointer;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-left-width: 3px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: transform var(--nw-t-fast), background var(--nw-t-fast), border-color var(--nw-t-fast);
}
#team-section .team-member-card:hover {
  transform: translateY(-4px);
  background: var(--nw-elev);
}
#team-section .team-avatar {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  border-radius: var(--nw-r-sm);
}
#team-section .team-member-name {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--nw-text);
}
#team-section .team-member-job {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--nw-text-dim);
}
#team-section .team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
#team-section .team-badge {
  padding: 0.2rem 0.55rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--nw-r-sm);
}
#team-section .team-member-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nw-accent);
}
#team-section .team-member-card:hover .team-member-more {
  color: var(--nw-accent);
}

/* Team-Modals */
.nw-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 7, 7, 0.82);
  backdrop-filter: blur(6px);
}
.nw-modal.hidden {
  display: none;
}
.nw-modal__card {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--nw-panel-solid);
  border: 1px solid var(--nw-border-strong);
  border-left: 3px solid var(--nw-accent);
  clip-path: polygon(var(--nw-cut) 0, 100% 0, 100% calc(100% - var(--nw-cut)), calc(100% - var(--nw-cut)) 100%, 0 100%, 0 var(--nw-cut));
}
.nw-modal__card--wide {
  max-width: 860px;
}
.nw-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.nw-modal__title {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--nw-text);
}
.nw-modal__close {
  background: none;
  border: 0;
  color: var(--nw-text-mute);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--nw-t-fast);
}
.nw-modal__close:hover {
  color: var(--nw-text);
}
.nw-modal__job {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--nw-text-dim);
}
.nw-modal__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.nw-rankwrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.nw-modal .team-rank {
  padding: 0.28rem 0.6rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: var(--nw-r-sm);
}
#team-comparison-modal .text-purple-300 {
  color: var(--nw-accent);
}
#team-comparison-modal .text-green-300 {
  color: var(--nw-ok);
}
#team-comparison-modal #comparison-member-1,
#team-comparison-modal #comparison-member-2,
#team-comparison-modal #comparison-shared-ranks {
  background: rgba(8, 12, 12, 0.5) !important;
  border-color: var(--nw-border) !important;
  border-radius: var(--nw-r-sm) !important;
}
#team-comparison-modal [class*="border-purple-500"] {
  border-color: var(--nw-border) !important;
}
#team-comparison-modal select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--nw-font-body);
  font-size: 0.9rem;
  color: var(--nw-text);
  background: rgba(8, 12, 12, 0.75);
  border: 1px solid var(--nw-border-strong);
  border-radius: var(--nw-r-sm);
}
#team-comparison-modal select:focus {
  outline: none;
  border-color: var(--nw-accent);
  box-shadow: 0 0 0 3px var(--nw-accent-dim);
}

@media (max-width: 720px) {
  .nw-team__toolbar #filter-rank {
    flex: 1 1 100%;
  }
}

/* ================================================================== */
/*  ETAPPE 4 — NEWS (öffentliche Ansicht)                            */
/*  JS-erzeugte Klassen: .news-card + .news-card-*, .news-read-more.  */
/*  Hooks: #news-loading, #news-container (.hidden),                  */
/*  toggleNewsDescription(), loadPublicNews(). Embed-Farbe via        */
/*  --card-color / inline background-color bleibt erhalten.           */
/* ================================================================== */
#news-section:not(.hidden) {
  display: block;
}
#news-section {
  min-height: auto;
  padding: 0;
}
.nw-news {
  padding-block: clamp(2rem, 6vw, 4rem);
}
.nw-news__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.nw-news__list.hidden {
  display: none;
}

#news-container .news-card {
  position: relative;
  overflow: hidden;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-md);
  transition: transform var(--nw-t-fast), border-color var(--nw-t-fast);
}
#news-container .news-card:hover {
  transform: translateY(-3px);
  border-color: var(--nw-border-strong);
}
#news-container .news-card-overlay {
  display: none;
}
#news-container .news-card-image-container {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}
#news-container .news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#news-container .news-card-content {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}
#news-container .news-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
#news-container .news-card-title {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--nw-text);
}
#news-container .news-card-date {
  flex: 0 0 auto;
  font-family: var(--nw-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--nw-text-mute);
}
#news-container .news-card-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--nw-text-dim);
  margin-bottom: 1.25rem;
}
#news-container .news-card-description .discord-link {
  color: var(--nw-accent);
}
#news-container .news-card-description .discord-blockquote {
  border-left: 3px solid var(--card-color, var(--nw-accent));
  padding-left: 0.8rem;
  color: var(--nw-text-dim);
}
#news-container .news-card-description.is-collapsible:not(.expanded)::after {
  background: linear-gradient(transparent, var(--nw-panel-solid)) !important;
}
#news-container .news-read-more {
  display: block;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nw-accent);
  cursor: pointer;
}
#news-container .news-card-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
#news-container .news-card-field {
  padding: 0.8rem 0.95rem;
  background: rgba(8, 12, 12, 0.45);
  border: 1px solid var(--nw-border);
  border-left: 2px solid var(--card-color, var(--nw-accent));
  border-radius: var(--nw-r-sm);
}
#news-container .news-field-label {
  display: block;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nw-accent);
  margin-bottom: 0.2rem;
}
#news-container .news-field-value {
  font-size: 0.85rem;
  color: var(--nw-text-dim);
}
#news-container .news-card-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
}
#news-container .text-red-400 {
  color: var(--nw-err);
}

/* ================================================================== */
/*  ETAPPE 5 — ADMIN-PANEL + BENACHRICHTIGUNGEN (Re-Skin)            */
/*  Shell + Tab-Nav + Notifications neu; Tab-Inhalte per gezielten   */
/*  Overrides von Lila/Pink auf Teal + kantig umgefärbt. Hooks:      */
/*  switchAdminTab(), .admin-tab-content(.active), data-tab,         */
/*  alle Tab-/Ticket-/Ban-/News-Editor-IDs unverändert.             */
/* ================================================================== */

/* ---- Benachrichtigungen ---- */
#notifications-section:not(.hidden) {
  display: block;
}
#notifications-section {
  min-height: auto;
  padding: 0;
}
#notifications-section #notifications-container {
  min-height: auto;
  padding: 0;
}
.nw-notif {
  padding-block: clamp(2rem, 6vw, 4rem);
}
#notifications-section .notifications-card {
  padding: clamp(1.35rem, 4vw, 2rem);
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-md);
}
#notifications-section .notification-item {
  padding: 1rem 1.15rem;
  background: rgba(8, 12, 12, 0.45);
  border: 1px solid var(--nw-border);
  border-left: 2px solid var(--nw-text-mute);
  border-radius: var(--nw-r-sm);
  transition: border-color var(--nw-t-fast), background var(--nw-t-fast);
}
#notifications-section .notification-item.unread {
  border-left-color: var(--nw-accent);
  background: var(--nw-accent-dim);
}
#notifications-section .notification-item.selected {
  border-color: var(--nw-accent);
}
#notifications-section .notification-item-wrapper {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
#notifications-section .notification-title {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nw-text);
}
#notifications-section .notification-message {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--nw-text-dim);
}
#notifications-section .notification-time {
  font-size: 0.72rem;
  color: var(--nw-text-mute);
}
#notifications-section .notification-status {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nw-text);
  background: var(--nw-elev);
  border: 1px solid var(--nw-border-strong);
  border-radius: var(--nw-r-sm);
}
#notifications-section .notification-status.new {
  color: var(--nw-accent);
  background: var(--nw-accent-dim);
  border-color: var(--nw-accent-line);
}
#notifications-section .notification-status.approved {
  color: var(--nw-ok);
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}
#notifications-section .notification-status.rejected {
  color: var(--nw-err);
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}
#notifications-section .notification-status.processed {
  color: var(--nw-info);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}
#notifications-section .notification-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--nw-accent);
}
#notifications-section .nw-notif__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
#notifications-section .nw-notif__heading {
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nw-text);
}
#notifications-section .nw-notif__tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
#notifications-section .nw-notif__sep {
  color: var(--nw-text-mute);
}
#notifications-section .nw-notif__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
#notifications-section #delete-actions {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(8, 12, 12, 0.6) !important;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-sm);
}
#notifications-section #delete-actions:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
#notifications-section #selected-count {
  font-size: 0.82rem;
  color: var(--nw-text-dim);
}
#notifications-section .nw-notif__delrow {
  display: flex;
  gap: 0.5rem;
}
.nw-btn--danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.nw-btn--danger:hover {
  filter: brightness(1.08);
}

/* ---- Admin-Shell ---- */
#admin-panel:not(.hidden) {
  display: block;
}
#admin-panel {
  min-height: auto;
  padding: 0;
}
#admin-panel #admin-panel-container {
  max-width: var(--nw-max);
  padding-block: clamp(2rem, 6vw, 4rem);
}
.admin-nav-tabs {
  margin-bottom: 2rem;
}
.admin-tab-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem !important;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nw-text-mute);
  background: var(--nw-elev);
  border: 1px solid var(--nw-border-strong) !important;
  border-radius: var(--nw-r-sm);
  cursor: pointer;
  transition: color var(--nw-t-fast), background var(--nw-t-fast), border-color var(--nw-t-fast);
}
.admin-tab-btn:hover {
  color: var(--nw-text);
  background: var(--nw-accent-dim);
  border-color: var(--nw-accent-line) !important;
}
.admin-tab-btn.active {
  color: var(--nw-accent-ink) !important;
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px -12px var(--nw-accent-glow);
}
.admin-tab-content {
  display: none;
}
@keyframes nw-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.admin-tab-content.active {
  display: block;
  animation: nw-fade 0.3s ease both;
}

/* ---- Broad palette re-tint (Tab-Inhalte + Admin-Modals) ---- */
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="blur-2xl"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="blur-3xl"] {
  display: none !important;
}
#admin-panel [class*="animate-spin"] {
  border-color: var(--nw-accent) !important;
  border-top-color: transparent !important;
}
#admin-panel .h-px {
  background: var(--nw-border) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) div[class*="bg-gradient-to-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) section[class*="bg-gradient-to-"] {
  background: var(--nw-panel) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal) button[class*="bg-gradient-to-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) a[class*="bg-gradient-to-"] {
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  color: var(--nw-accent-ink) !important;
  border-color: transparent !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal) button[class*="from-red-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) button[class*="from-rose-"] {
  background: linear-gradient(135deg, #f87171, #dc2626) !important;
  color: #fff !important;
}
#admin-panel [class*="bg-gradient-to-br"][class*="w-12"] {
  background: var(--nw-accent-dim) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="rounded-3xl"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="rounded-2xl"] {
  border-radius: var(--nw-r-md) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="rounded-xl"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="rounded-lg"] {
  border-radius: var(--nw-r-sm) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-purple-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-pink-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-indigo-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-violet-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-fuchsia-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-sky-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-cyan-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-gray-6"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="border-gray-7"] {
  border-color: var(--nw-border) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="text-purple-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="text-pink-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="text-indigo-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="text-violet-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="text-fuchsia-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="text-sky-"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="text-cyan-"] {
  color: var(--nw-accent) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="bg-gray-800"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal, #thank-you-rating, #thank-you-unban) [class*="bg-gray-900"],
:is(#admin-panel, #status-reason-modal, #confirmation-modal) [class*="bg-gray-700"] {
  background: rgba(8, 12, 12, 0.5) !important;
}
#admin-panel [class*="bg-purple-5"],
#admin-panel [class*="bg-pink-5"],
#admin-panel [class*="bg-indigo-5"],
#admin-panel [class*="bg-violet-5"],
#admin-panel [class*="bg-cyan-5"],
#admin-panel [class*="bg-sky-5"] {
  background: var(--nw-accent-dim) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:is(#admin-panel, #status-reason-modal, #confirmation-modal) textarea,
:is(#admin-panel, #status-reason-modal, #confirmation-modal) select {
  background: rgba(8, 12, 12, 0.62) !important;
  border: 1px solid var(--nw-border-strong) !important;
  border-radius: var(--nw-r-sm) !important;
  color: var(--nw-text) !important;
}
:is(#admin-panel, #status-reason-modal, #confirmation-modal) input:focus,
:is(#admin-panel, #status-reason-modal, #confirmation-modal) textarea:focus,
:is(#admin-panel, #status-reason-modal, #confirmation-modal) select:focus {
  outline: none !important;
  border-color: var(--nw-accent) !important;
  box-shadow: 0 0 0 3px var(--nw-accent-dim) !important;
}
#admin-panel input[type="checkbox"] {
  accent-color: var(--nw-accent);
}

/* ------------------------------------------------------------------ */
/*  LEGACY-OVERRIDES (Etappe 0 – bis style.css abgelöst ist)          */
/* ------------------------------------------------------------------ */
#team-section::before {
  background: radial-gradient(ellipse, rgba(34, 227, 195, 0.08), transparent 70%) !important;
}
#start-selection::before {
  background: radial-gradient(ellipse, rgba(34, 227, 195, 0.09), transparent 70%) !important;
}
#average-rating-box.stat-card::before {
  display: none !important;
}
#average-rating-box.stat-card,
#average-rating-box.stat-card:hover {
  border-color: var(--nw-border);
  border-left: 3px solid var(--nw-accent);
  box-shadow: none;
  transform: none;
  border-radius: var(--nw-r-sm);
}
#average-rating-box .stat-value,
#average-rating {
  background: none !important;
  -webkit-text-fill-color: var(--nw-text) !important;
  color: var(--nw-text) !important;
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 1.5rem;
}
#start-selection .ticket-search-card::before {
  background: linear-gradient(90deg, var(--nw-accent), transparent) !important;
}
#start-selection .ticket-search-card:hover {
  border-color: var(--nw-accent-line);
  box-shadow: none;
}

@media (max-width: 720px) {
  :root {
    --nw-header-h: 62px;
  }
  .nw-header__divider,
  .nw-brand__sub {
    display: none;
  }
  .nw-nav {
    display: none;
  }
  .nw-ticket__row {
    flex-direction: column;
  }
  .nw-hero__cta {
    flex-direction: column;
  }
  .nw-hero__cta .nw-btn {
    width: 100%;
  }
}


/* ================================================================== */
/*  ETAPPE 6 — CHROME-REDESIGN (globale Elemente aufs neue System)    */
/*  Legacy-Regeln stehen im Prefix-Block oben; diese hier gewinnen.   */
/* ================================================================== */

/* ---- Splash-Screen ---- */
#splash-screen {
  background:
    radial-gradient(900px 520px at 70% 10%, rgba(34, 227, 195, 0.12), transparent 60%),
    linear-gradient(160deg, #0b1113 0%, #080b0c 60%, #050807 100%) !important;
}
#splash-screen .splash-logo {
  border-radius: var(--nw-r-lg) !important;
  box-shadow: 0 0 70px rgba(34, 227, 195, 0.4), 0 0 120px rgba(34, 227, 195, 0.16) !important;
}
#splash-screen #splash-text,
#splash-screen .splash-text {
  font-family: var(--nw-font-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
}
#splash-screen .splash-letter {
  background: linear-gradient(135deg, var(--nw-accent) 0%, #7ff3e2 50%, var(--nw-accent) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
#splash-screen .splash-subtitle {
  color: var(--nw-text-dim) !important;
}
#splash-screen .splash-progress {
  background: rgba(8, 12, 12, 0.8) !important;
  border-radius: 999px !important;
}
#splash-screen .splash-progress-bar {
  background: linear-gradient(90deg, var(--nw-accent-strong), var(--nw-accent), var(--nw-accent-strong)) !important;
  background-size: 200% 100% !important;
}

/* ---- Section-Loader-Overlay ---- */
#loader-overlay {
  background: rgba(8, 11, 12, 0.96) !important;
}
#loader-overlay .loader-dot {
  background: var(--nw-accent) !important;
}
#loader-overlay .loader-dot:nth-child(2) { background: var(--nw-accent-strong) !important; opacity: 0.75; }
#loader-overlay .loader-dot:nth-child(3) { background: var(--nw-accent) !important; opacity: 0.5; }
#loader-overlay .loader-text {
  font-family: var(--nw-font-display) !important;
  color: var(--nw-text-dim) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ---- Toasts ---- */
#toast-container .toast-message {
  border-radius: var(--nw-r-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  font-family: var(--nw-font-body);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* ---- Scroll-to-Top ---- */
#scroll-to-top {
  width: 46px !important;
  height: 46px !important;
  border-radius: var(--nw-r-sm) !important;
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  color: var(--nw-accent-ink) !important;
  box-shadow: 0 14px 34px -14px var(--nw-accent-glow) !important;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
#scroll-to-top:hover {
  filter: brightness(1.08);
  box-shadow: 0 18px 40px -12px var(--nw-accent-glow) !important;
}

/* ---- Stars-Hintergrund (dezenter) ---- */
#stars .star {
  background: rgba(34, 227, 195, 0.55) !important;
  opacity: 0.35 !important;
}

/* ---- Danke-Modals ---- */
#thank-you-rating > div,
#thank-you-unban > div {
  background: var(--nw-panel-solid) !important;
  border: 1px solid var(--nw-border-strong) !important;
  border-left: 3px solid var(--nw-accent) !important;
  border-radius: var(--nw-r-md) !important;
  clip-path: polygon(var(--nw-cut) 0, 100% 0, 100% calc(100% - var(--nw-cut)), calc(100% - var(--nw-cut)) 100%, 0 100%, 0 var(--nw-cut));
}
#thank-you-rating h2,
#thank-you-unban h2 {
  font-family: var(--nw-font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---- Team-Refresh-Pill ---- */
#team-refresh-message {
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  color: var(--nw-accent-ink) !important;
  border-radius: var(--nw-r-sm) !important;
  font-family: var(--nw-font-display);
}

/* ---- Legacy Button-Aliasse aufs neue System ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  color: var(--nw-accent-ink) !important;
  font-family: var(--nw-font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0 !important;
  border-radius: var(--nw-r-sm) !important;
  box-shadow: none !important;
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn-back,
.btn-secondary {
  background: var(--nw-elev) !important;
  color: var(--nw-text-dim) !important;
  font-family: var(--nw-font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--nw-border-strong) !important;
  border-radius: var(--nw-r-sm) !important;
}
.btn-back:hover,
.btn-secondary:hover { color: var(--nw-text) !important; background: var(--nw-accent-dim) !important; }
.btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626) !important;
  color: #fff !important;
  font-family: var(--nw-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 0 !important;
  border-radius: var(--nw-r-sm) !important;
  box-shadow: none !important;
}
.btn-success {
  background: linear-gradient(135deg, var(--nw-ok), #059669) !important;
  color: #04211d !important;
  border-radius: var(--nw-r-sm) !important;
  box-shadow: none !important;
}
.btn-sm { padding: 0.5rem 0.9rem !important; font-size: 0.72rem !important; }
.btn-block { width: 100%; display: block; }

/* ---- Ticket-Status-Fortschritt (Startseite, oeffentlich) ---- */
.ticket-progress-container {
  background: var(--nw-panel) !important;
  border: 1px solid var(--nw-border) !important;
  border-left: 3px solid var(--nw-accent) !important;
  border-radius: var(--nw-r-sm) !important;
}
.ticket-info-label {
  font-family: var(--nw-font-display);
  color: var(--nw-text-mute) !important;
}
.ticket-info-value { color: var(--nw-text) !important; }
.ticket-steps::before { background: var(--nw-border-strong) !important; }
.ticket-progress-line {
  background: linear-gradient(90deg, var(--nw-accent-strong), var(--nw-accent)) !important;
}
.ticket-step-icon {
  background: var(--nw-elev) !important;
  color: var(--nw-text-mute) !important;
  font-family: var(--nw-font-display);
}
.ticket-step.active .ticket-step-icon {
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  color: var(--nw-accent-ink) !important;
  box-shadow: 0 0 20px -4px var(--nw-accent-glow) !important;
}
.ticket-step.completed .ticket-step-icon {
  background: linear-gradient(135deg, var(--nw-ok), #059669) !important;
  color: #04211d !important;
  box-shadow: none !important;
}
.ticket-step.active .ticket-step-label { color: var(--nw-accent) !important; }
.ticket-step.completed .ticket-step-label,
.ticket-step.active .ticket-step-label { }

/* ---- Upload-Spinner ---- */
.upload-spinner {
  border-color: var(--nw-border-strong) !important;
  border-top-color: var(--nw-accent) !important;
}

/* ---- #news-container darf im .hidden-Zustand nicht flexen ---- */
#news-container.hidden { display: none !important; }

/* ---- Mobile-Fix: User-Dropdown im Viewport halten ---- */
@media (max-width: 480px) {
  .user-dropdown {
    position: fixed;
    top: calc(var(--nw-header-h) + 8px);
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - var(--nw-header-h) - 24px);
    overflow-y: auto;
  }
}

/* ---- Mobile: Announcement kompakter ---- */
@media (max-width: 480px) {
  #announcement-banner.announcement-banner { max-height: 140px; }
  .announcement-content { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .announcement-text { font-size: 0.72rem; line-height: 1.35; text-align: left; }
  .announcement-icon { display: none; }
}

/* ================================================================== */
/*  ETAPPE 6 — NEWS-SEKTION als kompakter Changelog                   */
/*  (Look des "Update Logs"-Panels von der Startseite; ersetzt die    */
/*   schweren Embed-Karten). Nur CSS, #news-container-scoped.         */
/* ================================================================== */
#news-section .nw-news { max-width: 900px; }

#news-container.nw-news__list {
  gap: 0 !important;
  background: var(--nw-panel);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-md);
  overflow: hidden;
}

#news-container .news-card {
  display: block !important;
  padding: 1.1rem clamp(1rem, 3vw, 1.5rem) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nw-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  transition: background var(--nw-t-fast) !important;
}
#news-container .news-card:last-child { border-bottom: 0 !important; }
#news-container .news-card:hover {
  transform: none !important;
  background: rgba(34, 227, 195, 0.035) !important;
  border-color: var(--nw-border) !important;
}

/* Ballast weg: Bilder, Felder, Deko-Leisten */
#news-container .news-card-image-container,
#news-container .news-card-image,
#news-container .news-card-image-overlay,
#news-container .news-card-overlay,
#news-container .news-card-accent,
#news-container .news-card-fields {
  display: none !important;
}

#news-container .news-card-content {
  padding: 0 !important;
}
#news-container .news-card-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 0.8rem;
  margin-bottom: 0.45rem !important;
}
#news-container .news-card-date {
  order: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  font-family: var(--nw-font-display);
  font-weight: 600;
  font-size: 0.64rem !important;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--nw-accent) !important;
  background: var(--nw-accent-dim);
  border: 1px solid var(--nw-accent-line);
  border-radius: var(--nw-r-sm);
}
#news-container .news-card-title {
  order: 2;
  font-family: var(--nw-font-display) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--nw-text) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}
#news-container .news-card-description {
  margin: 0 !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  color: var(--nw-text-dim) !important;
}
#news-container .news-card-description.is-collapsible {
  max-height: 6.5rem !important;
}
#news-container .news-card-description.is-collapsible:not(.expanded)::after {
  height: 3rem !important;
  background: linear-gradient(transparent, var(--nw-panel-solid)) !important;
}
#news-container .news-read-more {
  margin: 0.45rem 0 0 !important;
}

/* Markdown-Ausgabe im Changelog zurückhaltender */
#news-container .news-card-description h1,
#news-container .news-card-description h2,
#news-container .news-card-description h3 {
  font-family: var(--nw-font-display);
  font-size: 0.92rem !important;
  font-weight: 600;
  text-transform: none;
  color: var(--nw-text) !important;
  margin: 0.5rem 0 0.25rem !important;
}
#news-container .news-card-description hr {
  margin: 0.6rem 0 !important;
  border: 0;
  border-top: 1px solid var(--nw-border);
}
#news-container .news-card-description ul,
#news-container .news-card-description ol {
  margin: 0.3rem 0 !important;
  padding-left: 1.1rem !important;
}
#news-container .news-card-description p { margin: 0.35rem 0 !important; }

/* --- News-Changelog: Feinschliff (Header + Markdown kompakt) --- */
#news-container .news-card-header {
  justify-content: flex-start !important;
}
#news-container .news-card-title { flex: 1 1 auto; }

/* Beschreibung: fuer alle Eintraege auf ~3 Zeilen kuerzen, mit Fade */
#news-container .news-card-description {
  position: relative;
  margin-bottom: 0 !important;
}
#news-container .news-card-description br + br {
  display: none;
}
#news-container .news-card-description.is-collapsible {
  max-height: 8em !important;
  overflow: hidden !important;
}
#news-container .news-card-description.is-collapsible:not(.expanded)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.4rem;
  background: linear-gradient(transparent, var(--nw-panel-solid));
  pointer-events: none;
}
#news-container .news-card-description.is-collapsible.expanded {
  max-height: none !important;
}

/* Markdown zurueckhaltend */
#news-container .news-card-description .discord-blockquote {
  border-left: 0 !important;
  padding-left: 0 !important;
  margin: 0.2rem 0 !important;
  color: var(--nw-text-dim) !important;
}
#news-container .news-card-description .discord-bullet { margin: 0.15rem 0 !important; }
#news-container .news-card-description .discord-embed-heading-1,
#news-container .news-card-description .discord-embed-heading-2,
#news-container .news-card-description .discord-embed-heading-3 {
  font-family: var(--nw-font-display);
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--nw-text) !important;
  margin: 0.35rem 0 0.15rem !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}
#news-container .news-card-description .discord-hr {
  margin: 0.45rem 0 !important;
  border: 0;
  border-top: 1px solid var(--nw-border);
}
#news-container .news-card-description .discord-link { color: var(--nw-accent) !important; }

/* ================================================================== */
/*  ETAPPE 6 — NEWS-EDITOR (Admin) — Rebuild von Shell/Layout/Preview */
/*  JS-Hooks unveraendert: alle #setting-*, #step-*, #news-*, #summary-*,*/
/*  #progress-*, #upload-*, .step-content, .embed-card, onclicks.      */
/* ================================================================== */
#admin-tab-news .nw-ned { display: flex; flex-direction: column; gap: 1.25rem; }

.nw-ned__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.nw-ned__title {
  font-family: var(--nw-font-display); font-weight: 700;
  font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--nw-text); margin: 0.35rem 0 0;
}
.nw-ned__hidesm { }

.nw-ned__grid { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1000px) {
  .nw-ned__grid { display: grid; grid-template-columns: 340px 1fr; align-items: start; }
  .nw-ned__rail { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
}
.nw-ned__rail { display: flex; flex-direction: column; gap: 1.25rem; }

.nw-ned__panel {
  background: var(--nw-panel); border: 1px solid var(--nw-border);
  border-radius: var(--nw-r-md); padding: clamp(1rem, 3vw, 1.35rem);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.nw-ned__panel--publish { border-left: 3px solid var(--nw-accent); }
.nw-ned__ph {
  display: flex; align-items: center; gap: 0.55rem; margin: 0;
  font-family: var(--nw-font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--nw-text);
}
.nw-ned__ph span { font-size: 1rem; }

.nw-ned__mainhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* Segmented Editor/Vorschau */
.nw-seg {
  display: inline-flex; padding: 3px; gap: 3px;
  background: rgba(8,12,12,0.6); border: 1px solid var(--nw-border-strong);
  border-radius: var(--nw-r-sm);
}
.nw-seg button {
  padding: 0.45rem 0.9rem; border: 0; cursor: pointer;
  font-family: var(--nw-font-display); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nw-text-mute); background: transparent;
  border-radius: calc(var(--nw-r-sm) - 1px);
  transition: color var(--nw-t-fast), background var(--nw-t-fast);
}
.nw-seg button:hover { color: var(--nw-text); }
.nw-seg button.is-active,
.nw-seg button.bg-purple-600 {
  color: var(--nw-accent-ink) !important;
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
}

/* Publish-Zusammenfassung */
.nw-ned__summary {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.85rem 1rem; background: rgba(8,12,12,0.45);
  border: 1px solid var(--nw-border); border-radius: var(--nw-r-sm);
}
.nw-ned__summary > div {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.8rem; color: var(--nw-text-mute);
}
.nw-ned__summary > div span:last-child {
  color: var(--nw-text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nw-ned__confirm {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-size: 0.85rem; color: var(--nw-text-dim);
}
.nw-ned__confirm input { width: 18px; height: 18px; accent-color: var(--nw-accent); flex-shrink: 0; }

/* Embed-Liste */
.nw-ned__embeds {
  display: flex; flex-direction: column; gap: 0.9rem;
  max-height: min(62vh, 560px); overflow-y: auto; padding-right: 4px;
}
.nw-ned__embeds > p { color: var(--nw-text-mute); text-align: center; padding: 2rem 0; font-size: 0.85rem; }

#news-embeds-container .embed-card {
  background: rgba(8,12,12,0.5) !important;
  border: 1px solid var(--nw-border) !important;
  border-radius: var(--nw-r-sm) !important;
  padding: 0.9rem !important;
}
#news-embeds-container .embed-card h4 { color: var(--nw-accent) !important; font-family: var(--nw-font-display); }
#news-embeds-container .embed-drag-handle { color: var(--nw-text-mute); font-size: 1rem; letter-spacing: -2px; }
#news-embeds-container .embed-card [class*="bg-gray-6"] { background: var(--nw-elev) !important; }
#news-embeds-container .embed-card [class*="bg-purple-6"] { background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important; color: var(--nw-accent-ink) !important; }
#news-embeds-container .embed-card [class*="bg-red-6"] { background: rgba(248,113,113,0.14) !important; color: var(--nw-err) !important; }

/* Vorschau-Bereich */
.nw-ned__preview {
  max-height: min(62vh, 560px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 0.25rem;
}
.nw-ned__empty {
  color: var(--nw-text-mute); text-align: center; padding: 3rem 1rem;
  font-style: italic; font-size: 0.9rem;
}

/* Entwuerfe / Veroeffentlichte Listen */
.nw-ned__lists { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) { .nw-ned__lists { grid-template-columns: 1fr 1fr; } }
.nw-ned__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  max-height: 300px; overflow-y: auto;
}
.nw-ned__list li { font-size: 0.85rem; color: var(--nw-text-dim); }
.nw-ned__listempty { text-align: center; padding: 1.5rem 0; color: var(--nw-text-mute); font-style: italic; }

/* ---------- Discord-Vorschau: aufpoliert ---------- */
.discord-message-preview {
  background: #1e2124 !important;
  border: 1px solid var(--nw-border) !important;
  border-radius: var(--nw-r-sm) !important;
  padding: 14px 16px !important;
}
.discord-message-header { display: flex; gap: 12px; }
.discord-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  flex-shrink: 0;
}
.discord-username { color: #f2f3f5 !important; font-weight: 600; }
.discord-bot-badge {
  background: var(--nw-accent) !important; color: var(--nw-accent-ink) !important;
  font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.discord-timestamp { color: #949ba4 !important; font-size: 12px; }
.discord-ping-role { color: var(--nw-accent) !important; background: var(--nw-accent-dim); border-radius: 3px; padding: 0 4px; display: inline-block; font-size: 13px; }
.discord-embed {
  background: #2b2d31 !important;
  border-left: 4px solid var(--nw-accent) !important;
  border-radius: 4px !important;
  padding: 12px 16px 16px !important;
  margin-top: 8px;
  max-width: 520px;
}
.discord-embed-author-name { color: #f2f3f5 !important; font-weight: 600; font-size: 13px; }
.discord-embed-title { color: var(--nw-accent) !important; font-weight: 700 !important; font-size: 15px !important; margin-bottom: 8px; }
.discord-embed-description { color: #dbdee1 !important; font-size: 13.5px !important; line-height: 1.5; }
.discord-embed-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.discord-field-name { color: #f2f3f5 !important; font-weight: 600; font-size: 12px; display: block; }
.discord-field-value { color: #dbdee1 !important; font-size: 12.5px; }
.discord-embed-image, .discord-embed-thumbnail img, .discord-embed img {
  border-radius: 4px; max-width: 100%;
}
.discord-embed-footer { color: #949ba4 !important; font-size: 11.5px; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.discord-embed .discord-link { color: #00a8fc !important; }
.discord-embed .discord-blockquote {
  border-left: 3px solid rgba(255,255,255,0.2); padding-left: 10px; color: #b5bac1; margin: 4px 0;
}

/* ---------- Wizard-Modal: responsive & neu ---------- */
#embed-settings-modal-backdrop {
  padding: 0 !important;
  z-index: 300 !important;
}
#upload-modal-backdrop { z-index: 310 !important; }
#embed-settings-modal-backdrop > #embed-settings-modal {
  background: var(--nw-panel-solid) !important;
  border: 1px solid var(--nw-border-strong) !important;
  border-radius: var(--nw-r-md) !important;
  max-width: 780px !important;
}
#embed-settings-modal-backdrop #embed-settings-modal > div:first-child {
  background: rgba(8, 12, 12, 0.85) !important;
  border-bottom: 1px solid var(--nw-border) !important;
}
#embed-settings-modal-backdrop #embed-settings-modal .step-content > div {
  background: rgba(8, 12, 12, 0.4) !important;
  border: 1px solid var(--nw-border) !important;
}
#embed-settings-modal #modal-title {
  font-family: var(--nw-font-display); text-transform: uppercase; letter-spacing: 0.02em;
}
#embed-settings-modal #progress-bar {
  background: linear-gradient(90deg, var(--nw-accent-strong), var(--nw-accent)) !important;
}
#embed-settings-modal [id$="-indicator"] {
  font-family: var(--nw-font-display);
}
#embed-settings-modal [id$="-indicator"][class*="bg-gradient-to-"] {
  background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-strong)) !important;
  color: var(--nw-accent-ink) !important;
}
#embed-settings-modal .step-content > div {
  background: rgba(8,12,12,0.4) !important;
  border: 1px solid var(--nw-border) !important;
}
#embed-settings-modal input[type="color"] {
  padding: 0; border: 1px solid var(--nw-border-strong) !important; background: transparent !important;
}
@media (max-width: 640px) {
  #embed-settings-modal-backdrop {
    padding: 12px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #embed-settings-modal-backdrop > #embed-settings-modal {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 0 !important;
    border-radius: var(--nw-r-md) !important;
    clip-path: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  #embed-settings-modal-backdrop #embed-settings-modal > .flex-1 {
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  #embed-settings-modal .flex.flex-col.sm\:flex-row > button { width: 100%; }
}

/* Upload-Modal */
#upload-modal-backdrop > div {
  background: var(--nw-panel-solid) !important;
  border: 1px solid var(--nw-border-strong) !important;
  border-radius: var(--nw-r-md) !important;
}
#upload-progress-bar {
  background: linear-gradient(90deg, var(--nw-accent-strong), var(--nw-accent)) !important;
}

/* --- Wizard-Modal Feinschliff --- */
#embed-settings-modal #prev-btn,
#embed-settings-modal #next-btn {
  white-space: nowrap;
  flex: 1 1 0;
}
#embed-settings-modal .step-content h3 {
  color: var(--nw-accent) !important;
  font-family: var(--nw-font-display);
  text-transform: none;
}
#embed-settings-modal .step-content label {
  color: var(--nw-text-dim) !important;
}
#embed-settings-modal #setting-color-hex {
  font-family: monospace;
  color: var(--nw-text) !important;
  background: rgba(8,12,12,0.6) !important;
}
