/* Kiksi Control Panel - Main Styles */
/* Modern Dark Theme with Glassmorphism */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ========== DESIGN TOKENS ========== */

  /* Background */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #141414;
  --bg-card: rgba(20, 20, 20, 0.95);
  --bg-hover: rgba(30, 30, 30, 0.95);

  /* Primary Color */
  --accent-primary: #7ab8ff;
  --accent-secondary: #5ba3f5;
  --accent-hover: #a5cdff;
  --accent-glow: rgba(122, 184, 255, 0.2);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --text-tertiary: #8a8a8a;

  /* Status Colors */
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.3);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.3);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);
  --info: #8b5cf6;

  /* Glass / Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 10px;

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(122, 184, 255, 0.5);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius - 3 Stufen + full */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows - max 2 layers */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Navbar offset - padding-top for all page containers */
  --navbar-offset: 6rem; /* desktop */

  /* Aliases for inline HTML styles */
  --primary-color: var(--accent-primary);
  --primary-hover: var(--accent-secondary);
  --text-muted: var(--text-tertiary);

  /* ========== BACKWARD COMPAT (to be removed) ========== */
  --radius-xl: var(--radius-lg);
  --radius-2xl: 20px;
  --shadow-xl: var(--shadow-lg);
  --shadow-floating: var(--shadow-lg);
  --shadow-floating-hover: var(--shadow-lg);
  --transition-base: var(--transition-normal);
  --transition-slow: var(--transition-normal);

  /* ========== DASHBOARD DESIGN TOKENS ========== */
  --card-bg:      rgba(10, 13, 22, 0.95);
  --card-border:  rgba(96, 165, 250, 0.08);
  --card-radius:  14px;
  --card-padding: 1.5rem;
  --label-color:  #1e3050;
  --muted-color:  #243044;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: #000000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/img/bg-pattern.svg') center/cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Dashboard & Server Pages - Stronger Blur for Visual Distinction */
body.dashboard-page::before,
body.server-page::before {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  will-change: backdrop-filter;
  contain: strict;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-sm);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast), text-decoration-thickness var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

/* Accessibility: Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Remove default outline when using mouse */
:focus:not(:focus-visible) {
  outline: none;
}

/* Exceptions: Navigation and button links without underline */
.nav-item a,
.btn,
.header-btn,
.navbar-brand a,
.sidebar a,
.server-card a,
.module-card a,
.user-dropdown-btn {
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  transition: filter 0.2s ease;
}

/* Card */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.15);
}

.main-content {
  position: relative;
  z-index: 1;
}

/* ── Section Card (einheitliche Dashboard-Karte) ── */
.section-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
}

/* ── Section Label mit Trennlinie ── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--label-color);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.card-body {
  color: var(--text-secondary);
}

/* ============================================
   FLOATING DESIGN SYSTEM - NEW
   ============================================ */

/* Floating Card - Universal Component */
.floating-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.floating-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Floating Navbar */
.floating-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1400px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.floating-navbar:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Blur Layer Classes */
.layer-1,
.layer-2,
.layer-3 {
  backdrop-filter: blur(var(--glass-blur));
}

/* Transparent Container - For floating layouts */
.transparent-container {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}


.btn-primary {
  background: rgba(122, 184, 255, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(122, 184, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: rgba(122, 184, 255, 0.25);
  border-color: rgba(122, 184, 255, 0.5);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff6b6b, var(--danger));
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--success);
  color: white;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  background: #1fa855;
  box-shadow: var(--shadow-md);
}

.btn-full { width: 100%; }
.btn-flex-1 { flex: 1; }
.btn-flex-2 { flex: 2; }


.modal-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.btn-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.btn-icon:hover::before {
  transform: scale(1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-success {
  background: rgba(63, 185, 80, 0.15);
  color: var(--success);
}

.badge-danger {
  background: rgba(248, 81, 73, 0.15);
  color: var(--danger);
}

.badge-warning {
  background: rgba(210, 153, 34, 0.15);
  color: var(--warning);
}

.badge-info {
  background: rgba(88, 166, 255, 0.15);
  color: var(--info);
}

/* Input - Apple Glass Style */
.input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input:focus {
  outline: none;
  background: rgba(25, 25, 25, 0.5);
  border-color: rgba(122, 184, 255, 0.4);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 0 0 3px rgba(122, 184, 255, 0.1);
}

/* Select - Apple Glass Style */
.select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select:focus {
  outline: none;
  background: rgba(25, 25, 25, 0.5);
  border-color: rgba(122, 184, 255, 0.4);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(122, 184, 255, 0.2);
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  box-shadow: 0 0 20px rgba(122, 184, 255, 0.3);
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  min-width: 300px;
  padding: var(--spacing-lg);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

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

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

.toast-body { display: flex; align-items: flex-start; gap: 12px; }
.toast-text { flex: 1; }
.toast-message { margin: 4px 0 0; font-size: 0.875rem; }
.toast-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.25rem; padding: 0; line-height: 1; }

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.125rem; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

.hidden { display: none !important; }

/* Attachment preview in bug report modal */
.attachment-preview { margin-top: 0.5rem; }
.attachment-preview img { max-width: 200px; border-radius: 8px; border: 1px solid var(--border); }

/* Channel selection group in reminder modal */
.channel-selection-group {
  margin-top: 1rem;
  margin-left: 2rem;
}

.block { display: block; }
.flex-wrap { flex-wrap: wrap; }

/* Bug report modal global classes (used in server.html + dashboard.html) */
.bug-tab-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bug-tab-btn { border-radius: 0; }
.bug-tab-btn.active { border-bottom: 2px solid var(--primary-color); }

.bug-modal-hint {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.bug-textarea { padding: 0.5rem; }

/* Key input styling (monospace, uppercase) */
.key-input {
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.1em;
}

/* Error screen classes (dashboard.html error state) */
.error-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.offline-notice {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
}

.offline-text { color: #fca5a5; }

/* Global link utility classes */
.link-primary { color: var(--primary-color); text-decoration: none; }
.link-primary:hover { text-decoration: underline; }
.link-accent { color: var(--accent-primary, var(--primary-color)); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

/* Text size utility */
.text-sm { font-size: 0.875rem; }

/* Module grid error state */
.module-error { text-align: center; padding: 2rem; }

/* Confirm dialog overlay (used by showConfirm in utils.js + dashboard.js) */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-dialog {
  background: #1e1e2e;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.confirm-body { text-align: center; }
.confirm-title { color: #cdd6f4; margin-bottom: 1rem; }
.confirm-message { color: #bac2de; margin-bottom: 1.5rem; line-height: 1.6; white-space: pre-line; }
.confirm-btn-mr { margin-right: 0.5rem; }

/* Bug report list items (server.html + dashboard.html user view) */
.bug-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.bug-item-desc { margin: 0.5rem 0; }
.bug-attachment { margin: 0.75rem 0; }
.bug-attachment img { max-width: 200px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.bug-comment { margin-top: 0.75rem; padding: 0.75rem; background: rgba(96, 165, 250, 0.1); border-left: 3px solid var(--accent-primary); border-radius: 4px; }
.bug-comment-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.bug-comment-text { font-size: 0.875rem; }
.bug-claim-btn { margin-top: 0.5rem; }

/* Premium/Vote Reminder Button */
.btn-premium {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.btn-premium:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.25));
  border-color: rgba(251, 191, 36, 0.5);
}

/* Vote Reminder Modal */
.vote-reminder-hint { color: var(--text-muted, #888); margin-bottom: 1.5rem; }
.reminder-section-label { margin-bottom: 1rem; display: block; }
.reminder-option { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }
.reminder-label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; margin: 0; }
.reminder-input { width: 18px; height: 18px; accent-color: #fbbf24; }
.reminder-option-title { font-weight: 500; }
.reminder-option-hint { color: var(--text-secondary); font-size: 0.85rem; margin: 0.5rem 0 0 2rem; }
.reminder-select-group { margin-bottom: 0.75rem; }
.reminder-select-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.25rem; display: block; }
.reminder-timing-list { display: flex; flex-direction: column; gap: 0.75rem; }
.reminder-timing-option { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; padding: 0.75rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; }
.reminder-timing-option-start { align-items: flex-start; }
.reminder-timing-option-start .reminder-input { margin-top: 2px; }
.reminder-timing-desc { color: var(--text-secondary); font-size: 0.85rem; margin: 0.25rem 0 0; }
.reminder-timing-body { flex: 1; }
.reminder-time-input { width: 120px; }
.reminder-timezone { font-size: 0.85rem; color: var(--text-secondary); margin-left: 0.5rem; }

/* Card variants for colored sections */
.card-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
  border-color: rgba(139, 92, 246, 0.3);
}

.card-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border-color: rgba(34, 197, 94, 0.3);
}

.card-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.3);
}

.card-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  border-color: rgba(245, 158, 11, 0.3);
}

/* =========================== */
/* COMPONENT CLASSES           */
/* =========================== */

/* Server Cards - Apple Glass Effect */
.server-card {
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.25);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 2px solid rgba(122, 184, 255, 0.12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

/* Subtle Light Refraction */
.server-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.server-card:hover {
  transform: translateY(-2px);
  background: rgba(25, 25, 25, 0.35);
  border: 2px solid rgba(122, 184, 255, 0.35);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-lg);
}

.server-card-active {
  position: relative;
  border: 1px solid rgba(122, 184, 255, 0.28);
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(122, 184, 255, 0.06) inset;
}

.server-card-active:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 184, 255, 0.5);
  background: rgba(22, 22, 22, 0.6);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(122, 184, 255, 0.1),
    0 0 0 1px rgba(122, 184, 255, 0.1) inset;
}

.server-card-active .server-icon {
  border: 2px solid rgba(122, 184, 255, 0.35);
  box-shadow:
    0 0 0 4px rgba(122, 184, 255, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-normal);
}

.server-card-active:hover .server-icon {
  border-color: rgba(122, 184, 255, 0.6);
  box-shadow:
    0 0 0 5px rgba(122, 184, 255, 0.12),
    0 0 18px rgba(122, 184, 255, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.server-card-active .server-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.server-card-active .server-detail-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.server-card-active .server-detail-row::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(122, 184, 255, 0.45);
  flex-shrink: 0;
}

.server-card-active .manage-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.75rem;
  background: rgba(122, 184, 255, 0.1);
  border: 1px solid rgba(122, 184, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.server-card-active .manage-btn:hover {
  background: rgba(122, 184, 255, 0.18);
  border-color: rgba(122, 184, 255, 0.45);
  box-shadow: 0 2px 12px rgba(122, 184, 255, 0.15);
  color: #fff;
}

.server-card-inactive {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.35);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  opacity: 1;
}

.server-card-inactive:hover {
  background: rgba(15, 15, 15, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

.server-card-inactive .server-icon {
  filter: none;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Variant 1: no-bot — Invitation State */
.server-card-inactive.no-bot {
  border-color: rgba(122, 184, 255, 0.15);
  background: rgba(122, 184, 255, 0.02);
}

.server-card-inactive.no-bot:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 184, 255, 0.28);
  background: rgba(122, 184, 255, 0.04);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 16px rgba(122, 184, 255, 0.05);
}

.server-card-inactive.no-bot .server-icon {
  border-color: rgba(122, 184, 255, 0.15);
}

.server-card-inactive.no-bot:hover .server-icon {
  border-color: rgba(122, 184, 255, 0.3);
}

/* Add Bot CTA Button */
.add-bot-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  text-decoration: none;
}

.add-bot-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.15);
  color: #fff;
}

/* Variant 2: no-permission — Information State */
.server-card-inactive.no-permission {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.3);
  cursor: default;
}

.server-card-inactive.no-permission:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.35);
}

.server-card-inactive.no-permission .server-icon {
  filter: saturate(0.4) brightness(0.75);
  border-color: rgba(255, 255, 255, 0.07);
}

.server-card-inactive.no-permission .server-name {
  color: var(--text-secondary);
}

.server-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: var(--spacing-lg);
  object-fit: cover;
  background: var(--bg-tertiary);
  border: 3px solid var(--border);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.server-card:hover .server-icon {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 12px rgba(122, 184, 255, 0.3);
}

.server-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.server-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.server-stats {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  font-size: 0.875rem;
  flex-wrap: wrap;

  /* Glasmorphism Box */
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.server-stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.server-detail-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.server-id-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Status Badges - Transparent Glass Style */
.status-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  background: transparent;
  transition: all var(--transition-fast);
}

.status-badge-active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.status-badge-active:hover {
  background: rgba(34, 197, 94, 0.2);
}

.status-badge-inactive {
  background: rgba(156, 163, 175, 0.15);
  color: var(--text-tertiary);
}

.status-badge-inactive:hover {
  background: rgba(156, 163, 175, 0.2);
}

/* Info Boxes */
.info-box {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.info-box-primary {
  background: rgba(124, 58, 237, 0.1);
}

.info-box-warning {
  background: rgba(210, 153, 34, 0.1);
}

.info-box-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.info-box-subtitle {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Skeleton Loading States - Apple Glass Style */
.skeleton-card {
  position: relative;
  background: rgba(15, 15, 15, 0.25);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 2px solid rgba(122, 184, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

.skeleton-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.skeleton-name {
  width: 60%;
  height: 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.1s;
  position: relative;
  z-index: 2;
}

.skeleton-text {
  width: 80%;
  height: 0.875rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
  position: relative;
  z-index: 2;
}

.skeleton-text-sm {
  width: 50%;
  height: 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
  position: relative;
  z-index: 2;
}

.skeleton-button {
  width: 100%;
  height: 2.5rem;
  margin-top: var(--spacing-sm);
  border-radius: var(--radius-md);
  background: linear-gradient(90deg,
    rgba(122, 184, 255, 0.1) 0%,
    rgba(122, 184, 255, 0.2) 50%,
    rgba(122, 184, 255, 0.1) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.4s;
  position: relative;
  z-index: 2;
}

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

/* Fade-in animation for real cards */
.server-card-entering {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Search & Filter Bar */
.search-filter-bar {
  margin-top: 2rem;
  margin-bottom: var(--spacing-lg);
}

/* Search Filter Container - Flexbox Layout */
.search-filter-container {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

/* Search Input Wrapper - Flexible on Desktop */
.search-input-wrapper {
  flex: 1;
  min-width: 250px;
}

.search-input-wrapper .input {
  width: 100%;
}

/* User Servers Section - Spacing for mobile navbar overlap prevention */
#userServersSection {
  /* Desktop: no extra padding needed */
}

/* Filter Button Group - Tab-Style Kästchen */
.filter-button-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Filter Buttons - Tab Style */
.filter-btn {
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: calc(var(--radius-md) - 4px);
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(122, 184, 255, 0.2);
  color: white;
  box-shadow: 0 2px 8px rgba(122, 184, 255, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.help-text-muted {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: var(--spacing-xs);
}

/* Server Stats Grid (used on stats page) */
.server-stats-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

/* Divider */
.divider {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

/* Full Width Button */
.btn-full {
  width: 100%;
  padding: 0.75rem;
  font-weight: 600;
}

/* Section Spacing */
.section-spacing {
  margin-bottom: var(--spacing-2xl);
}

/* Grid Layouts */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* Stat Cards */
.stat-card {
  background: rgba(28, 33, 40, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.stat-card:hover {
  border-color: rgba(122, 184, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
}

.empty-channels {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* Loading */
.loading {
  text-align: center;
  padding: var(--spacing-2xl);
}

/* Navbar */
.navbar {
  /* White Glass Navbar - Fixed Top */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));

  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);

  padding: 1rem 2rem;
  z-index: 1000;

  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-lg);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-separator {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.25rem;
  position: relative;
  overflow: hidden;
}

.navbar-separator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(122, 184, 255, 0.3) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar:hover .navbar-separator::before {
  opacity: 1;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-btn {
  white-space: nowrap;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Navbar Button Variants */
.btn-success.navbar-btn {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.btn-success.navbar-btn:hover {
  background: rgba(34, 197, 94, 0.25) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}

.btn-primary.navbar-btn {
  background: rgba(122, 184, 255, 0.15) !important;
  border-color: rgba(122, 184, 255, 0.3) !important;
}

.btn-primary.navbar-btn:hover {
  background: rgba(122, 184, 255, 0.25) !important;
  border-color: rgba(122, 184, 255, 0.4) !important;
}

.btn-secondary.navbar-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.btn-secondary.navbar-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-width: fit-content;
}

/* Public Navigation Links - For non-logged-in users */
.navbar-public-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.navbar-public-links .btn {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .navbar-public-links {
    gap: 0.25rem;
  }

  .navbar-public-links .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Prevent navbar layout shift when dropdown opens */
.user-menu-wrapper {
  position: relative;
  /* Fixed positioning prevents layout shift */
}

.navbar-username {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.navbar-username::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 184, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.navbar-username:hover::before {
  left: 100%;
}

.navbar-admin-btn {
  position: relative;
  overflow: hidden;
}

.navbar-admin-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 184, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.navbar-admin-btn:hover::before {
  left: 100%;
}



.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(122, 184, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.user-avatar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(122, 184, 255, 0.4), rgba(91, 163, 245, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.user-avatar:hover {
  border-color: rgba(122, 184, 255, 0.4);
  box-shadow: 0 0 12px rgba(122, 184, 255, 0.4),
              0 0 0 5px rgba(122, 184, 255, 0.12);
}

.user-avatar:hover::before {
  opacity: 1;
}

/* User Dropdown Menu - removed duplicate, already defined above */

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 12px;
  opacity: 1;
  transform: translateY(0);
  animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.user-dropdown.hidden {
  display: none;
}

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

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.user-dropdown-btn:last-child {
  margin-bottom: 0;
}

.user-dropdown-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.user-dropdown-btn:hover::before {
  width: 300px;
  height: 300px;
}

.user-dropdown-btn.primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: white;
  box-shadow: 0 4px 8px rgba(122, 184, 255, 0.3);
}

.user-dropdown-btn.primary:hover {
  box-shadow: 0 6px 16px rgba(122, 184, 255, 0.5);
}

.user-dropdown-btn.danger {
  background: var(--bg-secondary);
  border-color: var(--border);
}

.user-dropdown-btn.danger:hover {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border-color: var(--danger);
  color: white;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.user-dropdown-btn svg {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.user-dropdown-btn span {
  position: relative;
  z-index: 1;
}

/* User Dropdown - Streak Badge & Notification Dot */
.user-dropdown-separator {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Dropdown Backdrop Blur Effect — echtes DOM-Element, von renderGlobalNavbar() injiziert */
#nav-backdrop {
  display: none;
  position: fixed;
  top: 60px; /* Below navbar */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 900;
  pointer-events: none;
}

body.dropdown-open #nav-backdrop {
  display: block;
}

/* Blur page content when dropdown is open — filter: blur() on the element directly
   is cross-browser reliable, unlike backdrop-filter on a fixed overlay */
body.dropdown-open > .container {
  filter: blur(8px);
}

body.dropdown-open .user-dropdown {
  z-index: 1001;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  margin-left: auto;
}

.notification-dot {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
  animation: pulse 2s ease-in-out infinite;
}

.notification-dot.cooldown {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning-glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Notification Bell */
.notif-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--error, #ef4444);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 12px;
  z-index: 1000;
  animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-item {
  padding: 0.75rem;
  cursor: pointer;
}

.notif-item:hover {
  transform: none;
}

.notif-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.notif-body {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
}

.notif-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.notif-dropdown-footer {
  border-top: 1px solid var(--glass-border);
  margin-top: 8px;
  padding-top: 8px;
}

.notif-vote-reminder-link {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.notif-vote-reminder-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Search Bar */
.search-bar {
  margin-bottom: var(--spacing-lg);
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Forms */
.add-channel-form {
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.select-channel {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
}

.select-channel:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Action Cards */
.action-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.action-card h3 {
  margin: 0 0 var(--spacing-md) 0;
  font-size: 1.25rem;
}

.action-card p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-secondary);
}

.action-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.status-online {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.status-offline {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

/* Logs */
.logs-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  max-height: 400px;
  overflow-y: auto;
}

.log-entry {
  padding: 0.75rem;
  margin-bottom: var(--spacing-sm);
  background: var(--bg-primary);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

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

.log-time {
  color: var(--text-secondary);
  font-weight: 500;
}

.log-action {
  color: var(--accent-primary);
  font-weight: 600;
}

.log-user {
  color: var(--text-primary);
}

.log-success {
  border-left-color: #22c55e;
}

.log-error {
  border-left-color: #ef4444;
}

/* Stats Summary */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.stat-box {
  background: rgba(28, 33, 40, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.stat-box:hover {
  border-color: rgba(122, 184, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(122, 184, 255, 0.15);
}

.stat-box-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.stat-box-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* =========================== */
/* PAGE-SPECIFIC LAYOUTS       */
/* =========================== */

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(122, 184, 255, 0.15) 0%, transparent 70%);
  top: -250px;
  right: -250px;
}

.login-container::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91, 163, 245, 0.1) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
}

.login-card {
  max-width: 450px;
  width: 100%;
  position: relative;
  z-index: 1;
  background: rgba(28, 33, 40, 0.98);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(122, 184, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 100px rgba(122, 184, 255, 0.1);
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

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

/* Dashboard & Server Pages */
.main-content {
  padding: var(--navbar-offset) 0 2rem 0;
  min-height: calc(100vh - 80px);
  animation: fadeIn 0.5s ease;
}

/* Spezifitaets-Anker: .container.main-content (0,2,0) gewinnt immer gegen
   einzelne .container oder .main-content Regeln aus anderen CSS-Dateien */
.container.main-content {
  padding-top: var(--navbar-offset);
}

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

.logo-image {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(122, 184, 255, 0.2);
  transition: all var(--transition-normal);
  box-shadow: 0 0 4px rgba(122, 184, 255, 0.2);
}

.logo-image:hover {
  box-shadow: 0 0 12px rgba(122, 184, 255, 0.5);
}

/* Section Styling */
.section {
  margin-bottom: 3rem;
  animation: slideUp 0.6s ease;
  animation-fill-mode: both;
}

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

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }

/* Card Grid Variations */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Enhanced Gradients */
.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) - 2px);
  z-index: -1;
}

/* Discord SVG Icon in Buttons */
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Improved Loading States */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  animation: fadeIn 0.3s ease;
}

/* Enhanced Empty States */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-state h2 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

/* =========================== */
/* RESPONSIVE                  */
/* =========================== */

@media (max-width: 768px) {
  html { font-size: 15px; }

  :root {
    --navbar-offset: 80px; /* mobile: 72px navbar + 8px spacing */
  }

  /* Navbar Mobile Anpassungen */
  .navbar {
    padding: 0.75rem 0.25rem;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-brand-text {
    display: none;
  }

  /* Logo styled like avatar - round with glass border - 2px kleiner als Avatar */
  .logo-image {
    height: 46px;
    width: 46px;
    border-radius: 50%;
    border: 2px solid rgba(122, 184, 255, 0.25);
    box-shadow: 0 0 6px rgba(122, 184, 255, 0.25),
                0 0 0 4px rgba(122, 184, 255, 0.08);
  }

  .logo-image:hover {
    box-shadow: 0 0 16px rgba(122, 184, 255, 0.6),
                0 0 0 5px rgba(122, 184, 255, 0.12);
  }

  .navbar-username {
    display: none;
  }

  /* User avatar - larger and less glow on mobile */
  .user-avatar {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(122, 184, 255, 0.25);
    box-shadow: 0 0 8px rgba(122, 184, 255, 0.3),
                0 0 0 4px rgba(122, 184, 255, 0.08);
  }

  .user-avatar::before {
    opacity: 0.3;
  }

  .user-avatar:hover {
    box-shadow: 0 0 12px rgba(122, 184, 255, 0.4),
                0 0 0 5px rgba(122, 184, 255, 0.12);
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  /* main-content NACH container: padding-top muss .container shorthand überschreiben */
  .main-content {
    padding-top: var(--navbar-offset);
    padding-bottom: 2rem;
  }


  /* Search Filter - Stack vertically on mobile */
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  /* Search Input - Full width on mobile */
  .search-input-wrapper {
    width: 100%;
    flex: none;
    min-width: unset;
  }

  /* Search input with glow effect on mobile */
  .search-input-wrapper .input {
    border: 1px solid rgba(122, 184, 255, 0.4);
    box-shadow: 0 0 12px rgba(122, 184, 255, 0.3);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
  }

  .search-input-wrapper .input:focus {
    box-shadow: 0 0 20px rgba(122, 184, 255, 0.5);
    border-color: rgba(122, 184, 255, 0.6);
  }

  .card {
    padding: var(--spacing-md);
  }

  .toast {
    right: var(--spacing-md);
    left: var(--spacing-md);
    min-width: auto;
  }

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

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-user {
    gap: var(--spacing-sm);
  }

  .login-card {
    margin: 0 1rem;
  }

  .logo {
    font-size: 2.5rem;
  }

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

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Mobile navbar layout - flex-start + brand margin-right: auto = Desktop-Struktur */
  .navbar-content {
    gap: 0.25rem;
    justify-content: flex-start;
  }

  /* Show navbar actions on mobile - kein margin-left: auto, brand pushes space */
  .navbar-actions {
    display: flex;
    gap: 0.375rem;
  }

  /* Adjust navbar buttons for mobile - proper touch targets */
  /* !important noetig: .btn { min-height/padding } kommt danach in derselben Media Query */
  .navbar-btn {
    padding: 0 !important;
    font-size: 1.1rem;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Show separator on mobile - DEUTLICHER mit statischem Glow */
  .navbar-separator {
    display: block;
    margin: 0 0.375rem;
    width: 2px;
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(122, 184, 255, 0.6) 50%,
      transparent 100%);
    box-shadow: 0 0 6px rgba(122, 184, 255, 0.4);
  }

  /* User section - closer to separator */
  .navbar-user {
    margin-left: 0;
  }

  /* Notification dropdown - fixed to viewport edges on mobile */
  .notif-dropdown {
    position: fixed;
    top: 72px;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-width: none;
  }

  .notif-list {
    max-height: 50vh;
  }

  /* Mobile-optimized Server Cards */
  .server-card {
    padding: var(--spacing-lg);
  }

  .server-icon {
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-lg);
  }

  .server-name {
    font-size: 1.375rem;
  }

  /* Ensure all buttons meet touch target requirements (min 44px height) */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  .btn-full {
    width: 100%;
  }

  /* Make server card buttons full-width on mobile */
  .server-card .btn {
    width: 100%;
    margin-top: var(--spacing-sm);
  }

  /* Status badges larger for better visibility */
  .status-badge {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }

  /* Skeleton cards mobile optimization */
  .skeleton-icon {
    width: 100px;
    height: 100px;
  }

  /* Error state touch-friendly */
  #retryButton {
    min-height: 48px;
    font-size: 1.0625rem;
    width: 100%;
    max-width: 300px;
  }
}

/* Onboarding Guide Banner */
.onboarding-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  animation: onboarding-border-pulse 2.5s ease-in-out infinite;
}

@keyframes onboarding-border-pulse {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  50%       { border-color: rgba(122, 184, 255, 0.45); box-shadow: 0 0 0 3px rgba(122, 184, 255, 0.08); }
}

/* Avatar: pulsing ring shown during onboarding */
.user-avatar.onboarding-active {
  border-color: rgba(122, 184, 255, 0.8);
  animation: avatar-ring-pulse 2.5s ease-in-out infinite;
}

@keyframes avatar-ring-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0px rgba(122, 184, 255, 0),
                0 0 0 4px rgba(122, 184, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(122, 184, 255, 0.5),
                0 0 16px rgba(122, 184, 255, 0.35);
  }
}

.onboarding-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.onboarding-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.onboarding-steps strong {
  font-size: 1rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.onboarding-step {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.onboarding-step-num {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.onboarding-avatar-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.onboarding-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .onboarding-banner-inner { flex-direction: column; }
  .onboarding-actions { width: 100%; }
  .onboarding-actions .btn { flex: 1; }
}

/* Review Reminder Banner */
.review-reminder-banner {
  background: linear-gradient(135deg, rgba(122, 184, 255, 0.15) 0%, rgba(91, 163, 245, 0.15) 100%);
  border: 1px solid rgba(122, 184, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 12px rgba(122, 184, 255, 0.1);
  transition: all var(--transition-normal);
}

.review-reminder-banner:hover {
  border-color: rgba(122, 184, 255, 0.5);
  box-shadow: 0 6px 20px rgba(122, 184, 255, 0.2);
}

.review-reminder-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.review-reminder-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.review-reminder-text {
  flex: 1;
}

.review-reminder-text strong {
  color: var(--text-primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.review-reminder-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.review-reminder-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .review-reminder-content {
    flex-direction: column;
    text-align: center;
  }

  .review-reminder-actions {
    flex-direction: column;
    width: 100%;
  }

  .review-reminder-actions .btn {
    width: 100%;
  }
}

/* ============================================
   FOOTER SECTION
   ============================================ */

.site-footer {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(122, 184, 255, 0.2) 25%,
    rgba(122, 184, 255, 0.3) 50%,
    rgba(122, 184, 255, 0.2) 75%,
    transparent 100%
  );
}

/* Minimal Footer Layout */
.footer-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.footer-copyright a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: var(--accent-hover);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

.footer-legal span {
  color: var(--text-tertiary);
}

/* Footer Main - Horizontal Layout */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(122, 184, 255, 0.1);
  margin-bottom: var(--spacing-md);
}

/* Footer Brand Section */
.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
}

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer Widget */
.footer-widget {
  margin-top: var(--spacing-md);
}

.footer-widget a {
  display: inline-block;
  transition: all var(--transition-normal);
}

.footer-widget img {
  height: 90px;
  width: auto;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  filter: brightness(0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-widget a:hover img {
  filter: brightness(1.1) drop-shadow(0 0 20px rgba(122, 184, 255, 0.6));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 184, 255, 0.3);
}

/* Footer Links Wrapper - 3 Columns Side by Side */
.footer-links-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Footer Headings */
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
  margin-top: 5px;
  opacity: 0.5;
}

/* Footer Links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Footer Status */
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--success);
  margin-top: var(--spacing-xs);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-dot.status-online {
  background: var(--success);
  box-shadow: 0 0 10px var(--success-glow);
  animation: pulse-status 2s ease-in-out infinite;
}

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

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-copyright a,
.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-copyright a:hover,
.footer-legal a:hover {
  color: var(--accent-primary);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-legal span {
  color: var(--text-tertiary);
  opacity: 0.5;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-links-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  /* Hide top.gg widget and brand section on mobile */
  .footer-widget,
  .footer-brand-section {
    display: none;
  }

  /* Make footer more compact on mobile */
  .site-footer {
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
  }

  .footer-main {
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-md);
  }

  /* 3 columns, tighter gap on mobile */
  .footer-links-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  /* Reduce spacing in footer columns */
  .footer-heading {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .footer-links {
    gap: 4px;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  /* Reduce brand section spacing */
  .footer-brand-section {
    gap: 6px;
  }

  .footer-tagline {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .footer-logo-text {
    font-size: 1.1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
    padding-top: var(--spacing-sm);
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}


@media (max-width: 768px) {
  /* Footer Minimal Mobile */
  .footer-minimal {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-copyright {
    align-items: center;
  }

  /* Search & Filter Bar Mobile - No extra margin-top */
  .search-filter-bar {
    margin-top: 0;
    padding-top: 1rem;
  }

  /* Filter Button Group Mobile - compact and round */
  .filter-button-group {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .filter-btn {
    flex: 0 1 auto;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    border-radius: 16px;
    min-height: 44px;
    white-space: nowrap;
  }
}

/* Dashboard Header - Xtremez.me Style */
.dashboard-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl) 0;
}

.dashboard-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.dashboard-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Dashboard Features - Why Choose Us Style */
.dashboard-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 184, 255, 0.05), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(122, 184, 255, 0.2) inset;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(122, 184, 255, 0.3));
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: var(--spacing-md) 0;
  text-shadow: 0 0 20px rgba(122, 184, 255, 0.4);
}

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

/* Responsive Dashboard Header */
@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 2rem;
  }

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

  .dashboard-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .feature-card {
    padding: var(--spacing-lg);
  }

  .feature-value {
    font-size: 2rem;
  }
}

/* ============================================
   Refresh Hint - Dashboard Tip
   ============================================ */

.refresh-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

.refresh-hint .hint-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.refresh-hint .hint-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.refresh-hint .hint-text strong {
  color: var(--text-secondary);
  font-weight: 500;
  margin-right: 0.25rem;
}

.refresh-hint .hint-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .refresh-hint {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
  }
}

/* ─── Custom Confirm Dialog — showConfirm() in utils.js ─── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.confirm-box {
  background: var(--bg-card, #1a1a2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
}

.confirm-message {
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
