:root {
  --bg-primary: #0e0b16;
  --bg-secondary: #15112b;
  --bg-card: #1a1432;
  --bg-card-hover: #1f1840;
  --bg-input: #0d0a1a;
  --bg-sidebar: #110e20;

  --purple-50: #faf5ff;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-900: #581c87;

  --magenta-400: #f472b6;
  --magenta-500: #ec4899;
  --magenta-600: #db2777;

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;

  --teal-500: #14b8a6;

  --text-primary: #f0edf6;
  --text-secondary: #9b8fc2;
  --text-muted: #6b5f8a;

  --border-color: rgba(168, 85, 247, 0.15);
  --border-glow: rgba(168, 85, 247, 0.3);

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);

  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;

  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
  --gradient-magenta: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  --gradient-dark: linear-gradient(135deg, #1a1432 0%, #0e0b16 100%);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: 0.2s ease;

  /* Liquid Glass */
  --glass-bg: rgba(17, 14, 32, 0.65);
  --glass-bg-light: rgba(17, 14, 32, 0.45);
  --glass-blur: blur(24px) saturate(180%);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-refraction: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.03) 100%);
}

body.light-theme {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-light: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-hover: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(139, 92, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --glass-shadow-lg: 0 16px 64px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --glass-refraction: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.2) 100%);
}

/* ===== MIDNIGHT THEME (azul oscuro) ===== */
body.midnight-theme {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-card: #121b30;
  --bg-card-hover: #16203a;
  --bg-input: #080c18;
  --bg-sidebar: #0b1124;

  --purple-400: #818cf8;
  --purple-500: #6366f1;
  --purple-600: #4f46e5;
  --purple-700: #4338ca;
  --purple-900: #312e81;

  --magenta-400: #f472b6;
  --magenta-500: #ec4899;
  --magenta-600: #db2777;

  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;

  --indigo-500: #818cf8;
  --indigo-600: #6366f1;

  --teal-500: #2dd4bf;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(99, 102, 241, 0.15);
  --border-glow: rgba(99, 102, 241, 0.3);

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);

  --gradient-primary: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
  --gradient-magenta: linear-gradient(135deg, #ec4899 0%, #818cf8 100%);
  --gradient-dark: linear-gradient(135deg, #121b30 0%, #0a0e1a 100%);

  --glass-bg: rgba(15, 22, 41, 0.75);
  --glass-bg-light: rgba(15, 22, 41, 0.55);
  --glass-blur: blur(24px) saturate(180%);
  --glass-border: rgba(129, 140, 248, 0.1);
  --glass-border-hover: rgba(129, 140, 248, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(129, 140, 248, 0.06);
  --glass-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(129, 140, 248, 0.08);
  --glass-highlight: inset 0 1px 0 rgba(129, 140, 248, 0.06);
  --glass-refraction: linear-gradient(135deg, rgba(129,140,248,0.06) 0%, rgba(129,140,248,0) 50%, rgba(129,140,248,0.03) 100%);
}

body.midnight-theme .login-orb-1 { background: rgba(99, 102, 241, 0.35); }
body.midnight-theme .login-orb-2 { background: rgba(129, 140, 248, 0.25); }
body.midnight-theme .login-orb-3 { background: rgba(56, 189, 248, 0.2); }

/* ===== EMERALD THEME (verde oscuro) ===== */
body.emerald-theme {
  --bg-primary: #0a1410;
  --bg-secondary: #0d1f16;
  --bg-card: #11261a;
  --bg-card-hover: #163122;
  --bg-input: #07120d;
  --bg-sidebar: #0b1811;

  --purple-400: #6ee7b7;
  --purple-500: #34d399;
  --purple-600: #10b981;
  --purple-700: #059669;
  --purple-900: #065f46;

  --magenta-400: #f472b6;
  --magenta-500: #ec4899;
  --magenta-600: #db2777;

  --blue-400: #22d3ee;
  --blue-500: #06b6d4;
  --blue-600: #0891b2;

  --indigo-500: #2dd4bf;
  --indigo-600: #14b8a6;

  --teal-500: #34d399;

  --text-primary: #d1fae5;
  --text-secondary: #6ee7b7;
  --text-muted: #4ade80;

  --border-color: rgba(16, 185, 129, 0.15);
  --border-glow: rgba(16, 185, 129, 0.3);

  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.1);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.1);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);

  --gradient-primary: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  --gradient-magenta: linear-gradient(135deg, #ec4899 0%, #34d399 100%);
  --gradient-dark: linear-gradient(135deg, #11261a 0%, #0a1410 100%);

  --glass-bg: rgba(13, 31, 22, 0.75);
  --glass-bg-light: rgba(13, 31, 22, 0.55);
  --glass-blur: blur(24px) saturate(180%);
  --glass-border: rgba(16, 185, 129, 0.1);
  --glass-border-hover: rgba(16, 185, 129, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(16, 185, 129, 0.06);
  --glass-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(16, 185, 129, 0.08);
  --glass-highlight: inset 0 1px 0 rgba(16, 185, 129, 0.06);
  --glass-refraction: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, rgba(16,185,129,0) 50%, rgba(16,185,129,0.03) 100%);
}

body.emerald-theme .login-orb-1 { background: rgba(16, 185, 129, 0.35); }
body.emerald-theme .login-orb-2 { background: rgba(52, 211, 153, 0.25); }
body.emerald-theme .login-orb-3 { background: rgba(6, 182, 212, 0.2); }

/* ===== DRACULA THEME (morado/rosa oscuro) ===== */
body.dracula-theme {
  --bg-primary: #1a1124;
  --bg-secondary: #231a30;
  --bg-card: #2b203a;
  --bg-card-hover: #332847;
  --bg-input: #140e1c;
  --bg-sidebar: #1c1428;

  --purple-400: #d8b4fe;
  --purple-500: #c084fc;
  --purple-600: #a855f7;
  --purple-700: #9333ea;
  --purple-900: #7e22ce;

  --magenta-400: #f9a8d4;
  --magenta-500: #f472b6;
  --magenta-600: #ec4899;

  --blue-400: #67e8f9;
  --blue-500: #22d3ee;
  --blue-600: #06b6d4;

  --indigo-500: #a78bfa;
  --indigo-600: #8b5cf6;

  --teal-500: #5eead4;

  --text-primary: #f5d0fe;
  --text-secondary: #d8b4fe;
  --text-muted: #a78bfa;

  --border-color: rgba(168, 85, 247, 0.2);
  --border-glow: rgba(236, 72, 153, 0.35);

  --danger: #fb7185;
  --danger-bg: rgba(251, 113, 133, 0.1);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.1);
  --success: #6ee7b7;
  --success-bg: rgba(110, 231, 183, 0.1);

  --gradient-primary: linear-gradient(135deg, #d8b4fe 0%, #a855f7 50%, #ec4899 100%);
  --gradient-magenta: linear-gradient(135deg, #f472b6 0%, #c084fc 100%);
  --gradient-dark: linear-gradient(135deg, #2b203a 0%, #1a1124 100%);

  --glass-bg: rgba(35, 26, 48, 0.75);
  --glass-bg-light: rgba(35, 26, 48, 0.55);
  --glass-blur: blur(24px) saturate(180%);
  --glass-border: rgba(216, 180, 254, 0.1);
  --glass-border-hover: rgba(216, 180, 254, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(216, 180, 254, 0.06);
  --glass-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(216, 180, 254, 0.08);
  --glass-highlight: inset 0 1px 0 rgba(216, 180, 254, 0.06);
  --glass-refraction: linear-gradient(135deg, rgba(216,180,254,0.06) 0%, rgba(216,180,254,0) 50%, rgba(216,180,254,0.03) 100%);
}

body.dracula-theme .login-orb-1 { background: rgba(168, 85, 247, 0.4); }
body.dracula-theme .login-orb-2 { background: rgba(236, 72, 153, 0.3); }
body.dracula-theme .login-orb-3 { background: rgba(216, 180, 254, 0.2); }

/* ===== LIGHT THEME ===== */
body.light-theme {
  --bg-primary: #f5f3ff;
  --bg-secondary: #ede9fe;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f3ff;
  --bg-input: #f0ecf9;
  --bg-sidebar: #ffffff;

  --text-primary: #1a1432;
  --text-secondary: #6b5f8a;
  --text-muted: #9b8fc2;

  --border-color: rgba(139, 92, 246, 0.2);
  --border-glow: rgba(139, 92, 246, 0.35);

  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);

  --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
  --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.16);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.1);

  --gradient-dark: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

body.light-theme .login-orb-1 { background: rgba(168, 85, 247, 0.2); }
body.light-theme .login-orb-2 { background: rgba(236, 72, 153, 0.15); }
body.light-theme .login-orb-3 { background: rgba(59, 130, 246, 0.15); }

body.light-theme .user-status.online { color: var(--success); }
body.light-theme .clip-thumb { filter: brightness(1.05); }
body.light-theme .chat-msg.own { background: rgba(168, 85, 247, 0.06); }
body.light-theme ::-webkit-scrollbar-thumb { background: var(--purple-300, #c4b5fd); }
body.light-theme ::-webkit-scrollbar-thumb:hover { background: var(--purple-400); }

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

html { font-size: 14px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

a { color: var(--purple-400); text-decoration: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple-700); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--purple-600); }

.hidden { display: none !important; }

/* ===== LIQUID GLASS ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
  z-index: 0;
}

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

.glass-lg {
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
  position: relative;
}

.glass-lg::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
  z-index: 0;
}

.glass-lg > * {
  position: relative;
  z-index: 1;
}

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

/* ===== LOGIN ===== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Changelog public screen: allow scroll when visible */
#changelog-screen[style*="display: block"],
#changelog-screen[style*="display:block"] {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: unset;
  justify-content: unset;
}

.login-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.login-orb-1 {
  width: 500px; height: 500px;
  background: var(--purple-700);
  top: -200px; left: -100px;
  animation: float1 12s ease-in-out infinite;
}

.login-orb-2 {
  width: 400px; height: 400px;
  background: var(--magenta-600);
  bottom: -150px; right: -100px;
  animation: float2 10s ease-in-out infinite;
}

.login-orb-3 {
  width: 300px; height: 300px;
  background: var(--blue-600);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 14s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, -60px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--glass-shadow-lg);
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
  z-index: 0;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-logo {
  margin-bottom: 24px;
}

.twitch-logo-svg {
  width: 60px;
  height: 60px;
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.login-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-twitch-login {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--purple-600);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-twitch-login:hover {
  background: var(--purple-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.login-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.login-feature svg { color: var(--purple-400); }

/* ===== DASHBOARD ===== */
.dashboard {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  z-index: 100;
  flex-shrink: 0;
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-refraction);
  pointer-events: none;
  z-index: 0;
}

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

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover { color: var(--purple-400); background: rgba(168, 85, 247, 0.1); }

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .user-info,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-footer span { display: none; }

.sidebar.collapsed .sidebar-header { justify-content: center; }
.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar.collapsed .sidebar-user { justify-content: center; padding: 16px 8px; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }
.sidebar.collapsed .nav-item svg { margin: 0; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--purple-600);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.user-status.online { color: var(--success); }
.user-status.live { color: var(--danger); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
  margin-bottom: 2px;
  white-space: nowrap;
}

.nav-item:hover { color: var(--text-primary); background: rgba(168, 85, 247, 0.08); }
.nav-item.active { color: var(--purple-400); background: rgba(168, 85, 247, 0.12); font-weight: 500; }
.nav-item.active svg { filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4)); }
.nav-item svg { flex-shrink: 0; }

.sidebar-footer {
  padding: 8px;
  border-top: 1px solid var(--border-color);
}

.logout { color: var(--danger) !important; }
.logout:hover { background: var(--danger-bg) !important; }

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  flex-shrink: 0;
  position: relative;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-refraction);
  pointer-events: none;
}

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

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.mod-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(145, 71, 255, 0.2);
  color: #b794f6;
  border: 1px solid rgba(145, 71, 255, 0.35);
  white-space: nowrap;
  font-weight: 500;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.stream-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.live {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: pulse 2s infinite;
}

.status-dot.offline { background: var(--text-muted); }

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

.viewer-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Pages */
.page-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.25s ease; }

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

/* ===== COMPONENTS ===== */

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--purple-400); }
.stat-icon.magenta { background: rgba(236, 72, 153, 0.15); color: var(--magenta-400); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.stat-icon.teal { background: rgba(20, 184, 166, 0.15); color: var(--teal-500); }

.stat-content { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-label { color: var(--text-secondary); font-size: 0.8rem; margin-top: 2px; }

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
  z-index: 0;
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* Home Grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.quick-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.quick-action-btn > * {
  position: relative;
  z-index: 1;
}

.quick-action-btn:hover {
  color: var(--purple-400);
  border-color: var(--glass-border-hover);
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary { background: var(--purple-600); color: white; }
.btn-primary:hover { background: var(--purple-500); box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3); }

.btn-secondary {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--purple-400);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover { background: rgba(168, 85, 247, 0.15); border-color: var(--glass-border-hover); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(245, 158, 11, 0.2); }
.btn-warning:hover { background: rgba(245, 158, 11, 0.2); }

.btn-success { background: var(--success-bg); color: var(--success); border-color: rgba(16, 185, 129, 0.2); }
.btn-success:hover { background: rgba(16, 185, 129, 0.2); }

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

.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), 0 0 16px rgba(168, 85, 247, 0.1);
}

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

textarea.form-input { resize: vertical; min-height: 60px; }

select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239b8fc2' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 16px;
  flex: 1;
  max-width: 400px;
  transition: all var(--transition);
}

.search-bar:focus-within { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15); }

.search-bar input {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px 0;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  outline: none;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }

/* Mod Controls */
.mod-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mod-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}

.mod-user-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
}

.mod-user-selected img { width: 28px; height: 28px; border-radius: 50%; }
.mod-user-selected span { font-weight: 500; white-space: nowrap; }

.mod-action-btns { display: flex; gap: 6px; }

/* Mod Stats Bar */
.mod-stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--purple-400);
  font-weight: 500;
}

/* User Item Inline Actions */
.user-item-actions-inline {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.user-item:hover .user-item-actions-inline { opacity: 1; }

/* Ban Type Selector */
.ban-type-selector {
  display: flex;
  gap: 8px;
}

.ban-type-btn {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.ban-type-btn:hover { border-color: var(--purple-600); color: var(--text-primary); }
.ban-type-btn.active { background: var(--purple-600); color: white; border-color: var(--purple-600); }

/* Role Options */
.role-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.role-option:hover {
  border-color: var(--purple-600);
  background: rgba(168, 85, 247, 0.05);
  transform: translateX(4px);
}

.role-option-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-option-info { display: flex; flex-direction: column; gap: 2px; }
.role-option-title { font-weight: 600; font-size: 0.95rem; }
.role-option-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Mod Tabs */
.mod-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.mod-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.mod-tab.active { background: var(--purple-600); color: white; }
.mod-tab:not(.active):hover { color: var(--text-primary); background: rgba(168, 85, 247, 0.1); }

.mod-tab-content { display: none; }
.mod-tab-content.active { display: block; }

/* User List */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid transparent;
}

.user-item:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--glass-border);
}

.user-item.selected { background: rgba(168, 85, 247, 0.15); border: 1px solid var(--purple-600); }

.user-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-item-info { flex: 1; min-width: 0; }
.user-item-name { font-weight: 500; font-size: 0.9rem; }
.user-item-meta { font-size: 0.75rem; color: var(--text-muted); }

.user-item-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.user-item:hover .user-item-actions { opacity: 1; }

/* Page Actions */
.page-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* Config Grid */
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Rewards Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.reward-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}

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

.reward-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reward-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.reward-title {
  font-weight: 600;
  font-size: 1rem;
}

.reward-cost {
  color: var(--magenta-400);
  font-weight: 600;
  font-size: 0.85rem;
}

.reward-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.reward-actions {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--purple-400);
}

/* Settings List */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.setting-info {
  display: flex;
  flex-direction: column;
}

.setting-label { font-weight: 500; font-size: 0.9rem; }
.setting-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Toggle Switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: all var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--purple-500); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Color Options */
.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-btn {
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.color-btn.active { border-color: white; box-shadow: 0 0 12px rgba(255,255,255,0.2); }
.color-btn:hover { transform: scale(1.05); }

/* Stats Detail */
.stats-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-highlight .card-body.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.big-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.big-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.big-stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.channel-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.channel-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.channel-info-item .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.channel-info-item .value { font-weight: 500; }

/* Category Search */
.category-search-wrapper { position: relative; }

.category-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}

.category-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
}

.category-option:hover { background: rgba(168, 85, 247, 0.1); }
.category-option img { width: 30px; height: 30px; border-radius: 4px; }

.current-category {
  margin-top: 8px;
  padding: 10px;
  background: rgba(168, 85, 247, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Empty & Loading */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow-lg);
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
  z-index: 0;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 { font-size: 1.1rem; font-weight: 600; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--danger); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow-lg);
  min-width: 300px;
  animation: slideIn 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.toast > * {
  position: relative;
  z-index: 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(--blue-500); }

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

/* Prediction / Poll Items */
.prediction-item, .poll-item {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.prediction-item::before, .poll-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.prediction-item > *, .poll-item > * {
  position: relative;
  z-index: 1;
}

.prediction-item h4, .poll-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.prediction-status, .poll-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.prediction-status.active, .poll-status.active { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.prediction-status.resolved, .poll-status.ended { background: rgba(168, 85, 247, 0.15); color: var(--purple-400); }
.prediction-status.canceled, .poll-status.canceled { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.prediction-outcomes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.prediction-outcome {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-color);
}

.prediction-outcome .outcome-name { font-weight: 500; margin-bottom: 4px; }
.prediction-outcome .outcome-color { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.prediction-outcome .outcome-bar { height: 4px; background: var(--bg-primary); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.prediction-outcome .outcome-fill { height: 100%; border-radius: 2px; transition: width 0.3s ease; }

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.poll-option-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
}

.poll-option-fill { height: 100%; background: var(--gradient-primary); border-radius: 3px; transition: width 0.3s; }
.poll-option-text { min-width: 120px; font-weight: 500; font-size: 0.9rem; }
.poll-option-pct { min-width: 50px; text-align: right; color: var(--text-secondary); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1024px) {
  .config-grid { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .stats-detail-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .automod-panel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 200;
    transition: left var(--transition);
  }

  .sidebar.open { left: 0; }
  .sidebar.collapsed { left: -260px; }
  .mobile-menu-btn { display: flex; }
  .sidebar-toggle { display: none; }

  .mod-controls { flex-direction: column; align-items: stretch; }
  .search-bar { max-width: 100%; }
  .mod-user-actions { flex-direction: column; align-items: stretch; }
  .mod-user-selected { border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; margin-bottom: 4px; }
  .mod-action-btns { flex-wrap: wrap; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-detail-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .channel-info-grid { grid-template-columns: 1fr; }
  .rewards-grid { grid-template-columns: 1fr; }
  .mod-tabs { overflow-x: auto; flex-wrap: nowrap; }
}

/* Chat Send Section */
.chat-send-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input-row .form-input {
  flex: 1;
}

.chat-char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.chat-quick-messages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.charts-grid .card:last-child {
  grid-column: 1 / -1;
}

.chart-container {
  width: 100%;
  overflow: hidden;
}

.chart-container canvas {
  width: 100%;
  height: auto;
}

.chart-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--purple-400);
}

/* Emotes Grid */
.emotes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emote-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.emote-item:hover {
  border-color: var(--purple-600);
  transform: scale(1.15);
}

.emote-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.emote-item.emote-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px;
}

/* AutoMod Panel */
.automod-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.automod-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.automod-input-row .form-input {
  flex: 1;
}

.automod-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.automod-word-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--danger);
}

.automod-word-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}

.automod-word-remove:hover { opacity: 1; }

.automod-result {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

.automod-result.blocked {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.automod-result.allowed {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

/* Action Log */
.action-log-controls {
  margin-bottom: 12px;
}

.action-log-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}

.action-log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.action-log-entry:hover {
  background: rgba(168, 85, 247, 0.05);
}

.action-log-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.action-log-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-log-action {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.action-log-target {
  font-weight: 500;
}

.action-log-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.action-log-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.action-log-moderator {
  font-size: 0.8rem;
  color: var(--purple-400);
}

.action-log-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Thumbnail */
.thumbnail-preview {
  margin-bottom: 12px;
}

.thumbnail-preview img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* About Page */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.about-hero {
  text-align: center;
  padding: 40px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(236, 72, 153, 0.08));
  pointer-events: none;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

.about-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

.about-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.about-version {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.about-section {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.about-section > * {
  position: relative;
  z-index: 1;
}

.about-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.about-feature-card {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.about-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.about-feature-card > * {
  position: relative;
  z-index: 1;
}

.about-feature-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.about-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.about-feature-icon.purple { background: rgba(147, 51, 234, 0.15); color: var(--purple-400); }
.about-feature-icon.magenta { background: rgba(236, 72, 153, 0.15); color: var(--pink-400); }
.about-feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.about-feature-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green-400); }
.about-feature-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--orange-400); }
.about-feature-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--red-400); }

.about-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.about-feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

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

.about-tech-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--purple-400);
  font-weight: 500;
}

.about-footer {
  text-align: center;
}

.about-links {
  margin-top: 12px !important;
}

.about-links a {
  color: var(--purple-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.about-links a:hover {
  color: var(--purple-300);
  text-decoration: underline;
}

.about-separator {
  color: var(--text-muted);
  margin: 0 12px;
}

/* DOCUMENTATION TABS */
.doc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.doc-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.doc-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.doc-tab > * {
  position: relative;
  z-index: 1;
}

.doc-tab:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.doc-tab.active {
  background: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.4);
  color: var(--purple-400);
  font-weight: 600;
}

.doc-tab-content {
  display: none;
}

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

/* CHANGELOG STYLES - TIMELINE */

/* --- Hero --- */
.changelog-hero {
  text-align: center;
  padding: 48px 24px 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.changelog-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  top: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: changelogOrbFloat 8s ease-in-out infinite;
}

.changelog-hero::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: changelogOrbFloat 10s ease-in-out infinite reverse;
}

@keyframes changelogOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -10px) scale(1.08); }
}

.changelog-hero > * {
  position: relative;
  z-index: 1;
}

.changelog-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(147, 51, 234, 0.15);
  margin-bottom: 16px;
  color: var(--purple-400);
}

.changelog-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.changelog-hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.changelog-hero-latest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(147, 51, 234, 0.18));
  border: 1px solid rgba(236, 72, 153, 0.22);
  color: #ec4899;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  border-radius: 20px;
  animation: changelogPulse 2.5s ease-in-out infinite;
}

.changelog-hero-latest svg {
  width: 14px;
  height: 14px;
}

@keyframes changelogPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(236, 72, 153, 0); }
}

/* --- Stats Bar --- */
.changelog-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 20px;
  margin-bottom: 28px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.changelog-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.changelog-stat-value {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.changelog-stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

/* --- Timeline --- */
.changelog-timeline {
  position: relative;
  padding-left: 36px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.45), var(--purple-400), rgba(147, 51, 234, 0.06));
  border-radius: 1px;
}

.changelog-entry {
  position: relative;
  margin-bottom: 20px;
  padding-left: 22px;
  animation: changelogFadeIn 0.45s ease-out both;
}

.changelog-entry:nth-child(1) { animation-delay: 0s; }
.changelog-entry:nth-child(2) { animation-delay: 0.04s; }
.changelog-entry:nth-child(3) { animation-delay: 0.08s; }
.changelog-entry:nth-child(4) { animation-delay: 0.12s; }
.changelog-entry:nth-child(5) { animation-delay: 0.16s; }
.changelog-entry:nth-child(6) { animation-delay: 0.2s; }
.changelog-entry:nth-child(7) { animation-delay: 0.24s; }
.changelog-entry:nth-child(8) { animation-delay: 0.28s; }

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

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-400);
  border: 2.5px solid var(--bg-primary, #0e0a1a);
  box-shadow: 0 0 0 2px var(--purple-400), 0 0 10px rgba(147, 51, 234, 0.2);
  z-index: 2;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
}

.changelog-entry:hover::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 3px var(--purple-400), 0 0 18px rgba(147, 51, 234, 0.35);
}

.changelog-entry:first-child::before {
  background: #ec4899;
  border-color: var(--bg-primary, #0e0a1a);
  box-shadow: 0 0 0 2px #ec4899, 0 0 14px rgba(236, 72, 153, 0.3);
  width: 12px;
  height: 12px;
  left: -28px;
  top: 19px;
}

.changelog-entry:first-child:hover::before {
  box-shadow: 0 0 0 3px #ec4899, 0 0 22px rgba(236, 72, 153, 0.45);
}

/* --- Card --- */
.changelog-card {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.changelog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.changelog-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(147, 51, 234, 0.12) 60%, rgba(236, 72, 153, 0.08) 80%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 0;
}

.changelog-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.08), 0 2px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.changelog-card:hover::after {
  opacity: 1;
}

.changelog-card > * {
  position: relative;
  z-index: 1;
}

/* Latest entry special card */
.changelog-entry:first-child .changelog-card {
  border-color: rgba(236, 72, 153, 0.18);
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.035), var(--glass-bg-light) 60%);
}

.changelog-entry:first-child .changelog-card::after {
  background: linear-gradient(135deg, transparent 30%, rgba(236, 72, 153, 0.1) 55%, rgba(147, 51, 234, 0.06) 75%, transparent 100%);
}

.changelog-entry:first-child .changelog-card:hover {
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 10px 36px rgba(236, 72, 153, 0.08), 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* --- Header --- */
.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.changelog-version {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(99, 102, 241, 0.1));
  color: var(--purple-400);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(147, 51, 234, 0.12);
}

.changelog-entry:first-child .changelog-version {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(147, 51, 234, 0.1));
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.18);
}

.changelog-date {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.changelog-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- List --- */
.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
  transition: color 0.2s, padding-left 0.2s;
}

.changelog-list li:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.changelog-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- Expandable Items --- */
.changelog-item {
  cursor: pointer;
  user-select: none;
}

.changelog-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.changelog-item-text {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.changelog-item-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  opacity: 0;
}

.changelog-item:hover .changelog-item-chevron {
  opacity: 1;
}

.changelog-item.expanded .changelog-item-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

.changelog-item-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
  opacity: 0;
  margin-top: 0;
}

.changelog-item.expanded .changelog-item-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

.changelog-item-details-content {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.changelog-item-details-content strong {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .changelog-item-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .changelog-item-chevron {
    opacity: 1;
  }
  .changelog-tag {
    min-width: unset;
  }
}

/* --- Tags --- */
.changelog-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 10px;
  flex-shrink: 0;
  min-width: 76px;
  white-space: nowrap;
  transition: transform 0.15s;
}

.changelog-item-header .changelog-tag {
  min-width: 70px;
  font-size: 0.55rem;
  padding: 2px 8px;
}

.changelog-list li:hover .changelog-tag {
  transform: scale(1.05);
}

.changelog-tag svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.changelog-tag.added {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-400);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.changelog-tag.fixed {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-400);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.changelog-tag.changed {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange-400);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.changelog-tag.removed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-400);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

/* --- Show More --- */
.changelog-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  background: none;
  border: 1px dashed rgba(147, 51, 234, 0.2);
  border-radius: var(--radius-md);
  color: var(--purple-400);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.changelog-show-more:hover {
  background: rgba(147, 51, 234, 0.06);
  border-color: rgba(147, 51, 234, 0.35);
  color: var(--purple-300, #c084fc);
}

.changelog-show-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.changelog-show-more.expanded svg {
  transform: rotate(180deg);
}

.changelog-entry.changelog-hidden {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .changelog-hero { padding: 32px 16px; }
  .changelog-hero-title { font-size: 1.4rem; }
  .changelog-stats { flex-wrap: wrap; gap: 12px 20px; }
  .changelog-card { padding: 18px 18px; }
  .changelog-header { flex-wrap: wrap; gap: 8px; }
  .changelog-timeline { padding-left: 28px; }
}

/* Guide-specific styles */
.guide-steps {
  color: var(--text-secondary);
  line-height: 2;
  margin: 0;
  padding-left: 20px;
}

.guide-steps li {
  margin-bottom: 4px;
}

.guide-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.guide-feature-card {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.guide-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.guide-feature-card > * {
  position: relative;
  z-index: 1;
}

.guide-feature-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.guide-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.guide-feature-icon.purple { background: rgba(147, 51, 234, 0.15); color: var(--purple-400); }
.guide-feature-icon.magenta { background: rgba(236, 72, 153, 0.15); color: var(--pink-400); }
.guide-feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.guide-feature-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green-400); }
.guide-feature-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--orange-400); }
.guide-feature-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--red-400); }
.guide-feature-icon.teal { background: rgba(20, 184, 166, 0.15); color: var(--teal-400); }

.guide-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.guide-feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

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

.guide-shortcut-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.guide-shortcut-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.guide-tips-list {
  color: var(--text-secondary);
  line-height: 2;
  margin: 0;
  padding-left: 20px;
}

.guide-tips-list li {
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  .about-title {
    font-size: 1.5rem;
  }
}

/* Nav divider */
.nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 16px;
}

/* Raids */
.raid-search-section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.raid-search-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.raid-search-section > * {
  position: relative;
  z-index: 1;
}

.raid-search-section h3 { margin: 0 0 4px 0; }
.raid-search-section .text-muted { margin: 0 0 16px 0; color: var(--text-muted); font-size: 0.9rem; }

.raid-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.raid-search-bar .form-input { flex: 1; }

.raid-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.raid-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.raid-result-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.raid-result-item > * {
  position: relative;
  z-index: 1;
}

.raid-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.raid-result-info { flex: 1; }
.raid-result-name { font-weight: 600; color: var(--text-primary); }
.raid-result-meta { font-size: 0.8rem; color: var(--text-muted); }

/* Ads */
.ads-schedule-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.ads-schedule-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.ads-schedule-card > * {
  position: relative;
  z-index: 1;
}

.ads-schedule-card h3 { margin: 0 0 16px 0; }

.ads-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.ads-info-item {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.ads-info-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ads-info-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ads-start-section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.ads-start-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.ads-start-section > * {
  position: relative;
  z-index: 1;
}

.ads-start-section h3 { margin: 0 0 4px 0; }
.ads-start-section .text-muted { margin: 0 0 16px 0; color: var(--text-muted); font-size: 0.9rem; }

.ads-duration-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Clips */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.clip-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
}

.clip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
  z-index: 0;
}

.clip-card > * {
  position: relative;
  z-index: 1;
}

.clip-card:hover { border-color: var(--glass-border-hover); }

.clip-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.clip-info { padding: 12px; }
.clip-title { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; font-size: 0.9rem; }
.clip-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.clip-actions { display: flex; gap: 6px; }

/* Shield Mode */
.shield-container {
  max-width: 600px;
  margin: 0 auto;
}

.shield-status-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.shield-status-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.shield-status-card > * {
  position: relative;
  z-index: 1;
}

.shield-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: color 0.3s;
}

.shield-icon.active {
  color: var(--green-400);
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.4));
}

.shield-status-card h2 { margin: 0 0 8px 0; }
.shield-status-card .text-muted { margin: 0 0 24px 0; color: var(--text-muted); font-size: 0.9rem; }

.shield-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.shield-info {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.shield-info::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.shield-info > * {
  position: relative;
  z-index: 1;
}

.shield-info h3 { margin: 0 0 12px 0; }
.shield-info p { color: var(--text-secondary); line-height: 1.7; margin: 0 0 12px 0; }
.shield-info ul { color: var(--text-secondary); padding-left: 20px; margin: 0; }
.shield-info li { margin-bottom: 6px; }

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Custom Commands */
.commands-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.command-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.command-item > * {
  position: relative;
  z-index: 1;
}

.command-name {
  font-weight: 700;
  color: var(--purple-400);
  font-family: monospace;
  margin-right: 12px;
}

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

.command-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.command-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--glass-bg);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.command-badge.enabled {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.command-badge.disabled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

.eventsub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.eventsub-connected {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.eventsub-disconnected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.eventsub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.eventsub-connected .eventsub-dot {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s infinite;
}

.eventsub-disconnected .eventsub-dot {
  background: var(--error);
}

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

/* Goals */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.goal-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.goal-card > * {
  position: relative;
  z-index: 1;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.goal-type {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.goal-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.goal-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-400);
}

.goal-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.goal-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-500), var(--pink-500));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.goal-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.goal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.goals-section {
  margin-bottom: 32px;
}

.goals-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* Chat Log */
.chat-log-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-height: 600px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.85rem;
}

.chat-log-entry {
  display: flex;
  gap: 10px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 4px;
  transition: background 0.15s;
}

.chat-log-entry:hover {
  background: rgba(168, 85, 247, 0.05);
}

.chat-log-entry:last-child { border-bottom: none; }

.chat-log-time {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.8rem;
}

.chat-log-user {
  font-weight: 700;
  flex-shrink: 0;
}

.chat-log-msg {
  color: var(--text-secondary);
  word-break: break-word;
}

/* ===== SETTINGS ===== */
.settings-container {
  max-width: 700px;
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.settings-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.settings-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-refraction);
  pointer-events: none;
}

.settings-card > * {
  position: relative;
  z-index: 1;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.settings-row + .settings-row {
  border-top: 1px solid var(--border-color);
}

.settings-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.settings-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  flex-wrap: wrap;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--glass-border);
  gap: 2px;
  max-width: 340px;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.theme-btn:hover {
  color: var(--text-primary);
}

.theme-btn.active {
  background: var(--purple-600);
  color: white;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.theme-btn svg {
  flex-shrink: 0;
}

/* Language Selector */
.language-selector {
  min-width: 180px;
}

.language-selector .form-input {
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  background-color: var(--bg-input);
}

/* ===== NEW FEATURES ===== */

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 26px;
  transition: all 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--purple-600);
  border-color: var(--purple-500);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: white;
}

/* Keyboard shortcut badge */
.kbd {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  white-space: nowrap;
}

/* Spam Log */
.spam-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--glass-border);
}

.spam-entry .spam-user { color: var(--danger); font-weight: 600; flex-shrink: 0; }
.spam-entry .spam-msg { color: var(--text-secondary); flex: 1; }
.spam-entry .spam-action {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.spam-entry .spam-action.warn { background: var(--warning-bg); color: var(--warning); }
.spam-entry .spam-action.flag { background: var(--danger-bg); color: var(--danger); }

/* Chart container */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.chart-container canvas { width: 100% !important; height: 100% !important; }

/* Alerts Widget */
.alerts-preview-box {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--glass-border);
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.alert-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-item-icon.follow { background: rgba(168, 85, 247, 0.15); color: var(--purple-400); }
.alert-item-icon.sub { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.alert-item-icon.bits { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.alert-item-icon.raid { background: rgba(236, 72, 153, 0.15); color: var(--magenta-400); }

.alert-floating {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  animation: alertSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateX(100px) scale(0.8); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Mod Activity Dashboard */
.mod-action-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
  transition: background 0.15s;
}

.mod-action-entry:hover { background: rgba(168, 85, 247, 0.05); }
.mod-action-entry:last-child { border-bottom: none; }
.mod-action-entry .mod-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.mod-action-entry .mod-action-icon.ban { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.mod-action-entry .mod-action-icon.timeout { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.mod-action-entry .mod-action-icon.warn { background: rgba(168, 85, 247, 0.15); color: var(--purple-400); }
.mod-action-entry .mod-action-icon.msg { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.mod-action-entry .mod-action-user { font-weight: 600; color: var(--text-primary); min-width: 120px; }
.mod-action-entry .mod-action-detail { flex: 1; color: var(--text-secondary); }
.mod-action-entry .mod-action-time { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }

.mod-leaderboard-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
}

.mod-leaderboard-entry:last-child { border-bottom: none; }
.mod-leaderboard-entry .mod-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  background: var(--glass-bg-light);
  color: var(--text-muted);
}

.mod-leaderboard-entry .mod-rank.gold { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.mod-leaderboard-entry .mod-rank.silver { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.mod-leaderboard-entry .mod-rank.bronze { background: rgba(180, 83, 9, 0.2); color: #d97706; }
.mod-leaderboard-entry .mod-name { flex: 1; font-weight: 500; }
.mod-leaderboard-entry .mod-count { color: var(--purple-400); font-weight: 700; }

/* Suspicious Users */
.suspicious-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.suspicious-add-row .form-input { flex: 1; }

.suspicious-user-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s;
}

.suspicious-user-entry:hover { background: rgba(239, 68, 68, 0.03); }
.suspicious-user-entry:last-child { border-bottom: none; }

.suspicious-user-entry .suspicious-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--danger-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.suspicious-user-entry .suspicious-info { flex: 1; }
.suspicious-user-entry .suspicious-name { font-weight: 600; color: var(--text-primary); }
.suspicious-user-entry .suspicious-reason { font-size: 0.8rem; color: var(--text-muted); }

.suspicious-user-entry .suspicious-badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
}

.suspicious-user-entry .suspicious-badge.spam { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.suspicious-user-entry .suspicious-badge.raid { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.suspicious-user-entry .suspicious-badge.alt { background: rgba(168, 85, 247, 0.15); color: var(--purple-400); }
.suspicious-user-entry .suspicious-badge.troll { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.suspicious-user-entry .suspicious-badge.other { background: var(--glass-bg-light); color: var(--text-muted); }

/* Chat Rules Manager */
.rules-preview-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-height: 100px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.rules-preview-box .rule-item {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  gap: 10px;
}

.rules-preview-box .rule-item:last-child { border-bottom: none; }
.rules-preview-box .rule-num {
  color: var(--purple-400);
  font-weight: 700;
  flex-shrink: 0;
}

/* Share Dashboard */
.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.share-link-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--purple-400);
  font-family: monospace;
  font-size: 0.85rem;
  outline: none;
}

/* Compact Mode */
body.compact-mode .page-container { padding: 14px; }
body.compact-mode .stat-card { padding: 12px; gap: 10px; }
body.compact-mode .stat-icon { width: 36px; height: 36px; }
body.compact-mode .stat-value { font-size: 1.1rem; }
body.compact-mode .stat-label { font-size: 0.7rem; }
body.compact-mode .card-body { padding: 14px; }
body.compact-mode .card-header { padding: 10px 14px; }
body.compact-mode .settings-row { padding: 10px 14px; }
body.compact-mode .user-item { padding: 6px 10px; }
body.compact-mode .stats-grid { gap: 10px; margin-bottom: 14px; }
body.compact-mode .home-grid { gap: 10px; }
body.compact-mode .quick-action-btn { padding: 12px; }
body.compact-mode .chat-log-entry { padding: 3px 6px; }
body.compact-mode .clip-card .clip-thumb { height: 120px; }

/* ===== ANIMATIONS ===== */

/* Page transitions */
.page { display: none; }
.page.active {
  display: block;
  animation: pageSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card animations */
.stat-card,
.about-feature-card,
.goal-card,
.clip-card,
.command-item,
.raid-result-item,
.about-section,
.ads-schedule-card,
.ads-start-section,
.shield-status-card,
.shield-info,
.raid-search-section {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15), 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.about-feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.2);
}

.goal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.12);
}

.clip-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.command-item:hover {
  transform: translateX(4px);
  border-color: var(--purple-500);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.1);
}

.raid-result-item:hover {
  transform: translateX(4px);
  border-color: var(--purple-500);
}

.about-section {
  animation: aboutSectionIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

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

/* Hero animation */
.about-hero {
  animation: heroPulse 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroPulse {
  0% { opacity: 0; transform: scale(0.9); }
  60% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* Button animations */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary:active {
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.5);
}

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

/* Button entrance stagger */
.page-actions .btn {
  animation: btnSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-actions .btn:nth-child(1) { animation-delay: 0.05s; }
.page-actions .btn:nth-child(2) { animation-delay: 0.1s; }
.page-actions .btn:nth-child(3) { animation-delay: 0.15s; }

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

/* Modal animations */
.modal-overlay {
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay:not(.hidden) .modal {
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-overlay.hidden .modal {
  animation: modalOut 0.2s ease forwards;
}

@keyframes modalOut {
  to { opacity: 0; transform: scale(0.95) translateY(8px); }
}

/* Toast animations */
.toast {
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

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

@keyframes toastOut {
  to { opacity: 0; transform: translateX(100%) scale(0.9); }
}

/* Sidebar nav item animations */
.nav-item {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item:active {
  transform: scale(0.97);
}

.nav-item.active {
  animation: navActive 0.3s ease;
}

@keyframes navActive {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Loading animations */
.loading {
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Stat value counter animation */
.stat-value {
  animation: countFade 0.5s ease;
}

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

/* Goal bar fill animation */
.goal-bar-fill {
  animation: barFill 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes barFill {
  from { width: 0% !important; }
}

/* Shield mode glow animation */
.shield-icon.active {
  animation: shieldGlow 2s ease-in-out infinite;
}

@keyframes shieldGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.4)); }
  50% { filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.7)); }
}

/* Login card entrance */
.login-card {
  animation: loginCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Login feature stagger */
.login-feature {
  animation: featureIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-feature:nth-child(1) { animation-delay: 0.3s; }
.login-feature:nth-child(2) { animation-delay: 0.4s; }
.login-feature:nth-child(3) { animation-delay: 0.5s; }

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

/* Channel Selection Cards */
.channel-select-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.channel-select-card:hover {
  border-color: var(--purple-500, #a855f7);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
  transform: translateY(-1px);
}
.channel-select-card--owner {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(124, 58, 237, 0.05));
}
.channel-select-card--owner:hover {
  border-color: var(--purple-500, #a855f7);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(124, 58, 237, 0.08));
}

/* Input focus glow */
.form-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), 0 0 16px rgba(168, 85, 247, 0.1);
}

/* User item hover */
.user-item {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-item:hover {
  transform: translateX(4px);
  border-color: var(--purple-500);
}

/* Chat log entry animation */
.chat-log-entry {
  animation: chatLogIn 0.2s ease;
}

@keyframes chatLogIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Tech badge hover */
.about-tech-badge {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-tech-badge:hover {
  transform: translateY(-2px);
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--purple-500);
  color: var(--purple-300);
}

/* Quick action hover */
.quick-action-btn:active {
  transform: scale(0.95);
}

/* Dropdown/form select animation */
select.form-input {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

select.form-input:focus {
  transform: scale(1.01);
}

/* Scrollbar smooth */
.page-container {
  scroll-behavior: smooth;
}

/* Skeleton loading shimmer */
.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.05) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Badge pulse for live */
.badge-live {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* Smooth reveal for lists */
.user-item,
.clip-card,
.goal-card,
.command-item,
.chat-log-entry {
  animation: listItemIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.user-item:nth-child(1), .clip-card:nth-child(1), .goal-card:nth-child(1),
.command-item:nth-child(1), .chat-log-entry:nth-child(1) { animation-delay: 0.02s; }

.user-item:nth-child(2), .clip-card:nth-child(2), .goal-card:nth-child(2),
.command-item:nth-child(2), .chat-log-entry:nth-child(2) { animation-delay: 0.04s; }

.user-item:nth-child(3), .clip-card:nth-child(3), .goal-card:nth-child(3),
.command-item:nth-child(3), .chat-log-entry:nth-child(3) { animation-delay: 0.06s; }

.user-item:nth-child(4), .clip-card:nth-child(4), .goal-card:nth-child(4),
.command-item:nth-child(4), .chat-log-entry:nth-child(4) { animation-delay: 0.08s; }

.user-item:nth-child(5), .clip-card:nth-child(5), .goal-card:nth-child(5),
.command-item:nth-child(5), .chat-log-entry:nth-child(5) { animation-delay: 0.1s; }

.user-item:nth-child(n+6), .clip-card:nth-child(n+6), .goal-card:nth-child(n+6),
.command-item:nth-child(n+6), .chat-log-entry:nth-child(n+6) { animation-delay: 0.12s; }

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

/* Gradient border glow for active sections */
.shield-status-card.active {
  border-image: linear-gradient(135deg, var(--green-400), var(--teal-500)) 1;
}

/* Ad info item hover */
.ads-info-item {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ads-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Clip thumbnail hover */
.clip-thumb {
  transition: transform 0.3s ease;
}

.clip-card:hover .clip-thumb {
  transform: scale(1.05);
}

/* Raid search input focus */
.raid-search-bar .form-input:focus {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Sidebar collapse animation */
.sidebar {
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-toggle svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Empty state fade */
.empty-state {
  animation: emptyFade 0.4s ease;
}

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

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

/* Login mode toggle */
.login-mode-btn {
  border: 1px solid var(--border) !important;
  background: transparent !important;
  color: var(--text-muted) !important;
}
.login-mode-btn.active {
  background: var(--purple-700) !important;
  color: #fff !important;
  border-color: var(--purple-600) !important;
}

/* ===== NIGHTBOT INTEGRATION ===== */
.nightbot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.nightbot-connected {
  background: rgba(30, 30, 30, 0.6);
  color: #9146ff;
  border: 1px solid rgba(145, 70, 255, 0.3);
}
.nightbot-disconnected {
  background: rgba(30, 30, 30, 0.4);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.nightbot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.nightbot-connected .nightbot-dot {
  background: #9146ff;
  box-shadow: 0 0 6px rgba(145, 70, 255, 0.6);
  animation: nightbotPulse 2s ease-in-out infinite;
}
.nightbot-disconnected .nightbot-dot {
  background: var(--text-muted);
}
@keyframes nightbotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.btn-nightbot {
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%) !important;
  color: #fff !important;
  border: none !important;
}
.btn-nightbot:hover {
  background: linear-gradient(135deg, #a06aff 0%, #8b3df0 100%) !important;
}
.nightbot-source-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(145, 70, 255, 0.15);
  color: #9146ff;
  border: 1px solid rgba(145, 70, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nightbot-command {
  border-left: 3px solid rgba(145, 70, 255, 0.4) !important;
}
.nightbot-command:hover {
  border-left-color: #9146ff !important;
}
.nightbot-connected-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.nightbot-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(145, 70, 255, 0.1);
  color: #9146ff;
  border: 1px solid rgba(145, 70, 255, 0.2);
}
.nightbot-join-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.nightbot-joined {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.nightbot-not-joined {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* ===== TEAM CHAT ===== */
.team-chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-height: 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-chat-msg {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  align-items: flex-start;
}

.team-chat-msg:hover {
  background: rgba(255, 255, 255, 0.03);
}

.team-chat-msg--me {
  background: rgba(145, 70, 255, 0.06);
}

.team-chat-msg--me:hover {
  background: rgba(145, 70, 255, 0.1);
}

.team-chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--glass-bg-light);
}

.team-chat-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-chat-msg-body {
  flex: 1;
  min-width: 0;
}

.team-chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.team-chat-msg-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.team-chat-msg-login {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.team-chat-role-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-chat-role-badge.owner {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.team-chat-role-badge.mod {
  background: rgba(145, 70, 255, 0.15);
  color: #9146ff;
}

.team-chat-msg-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

.team-chat-msg-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.team-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.15);
}

.team-chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s;
}

.team-chat-input-wrapper:focus-within {
  border-color: var(--purple-400);
}

.team-chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 8px 0;
}

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

.team-chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #9146ff, #772ce8);
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.team-chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
}

.team-chat-send-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   MULTI-PLATFORM CONNECTIONS
   ============================================================ */
.platform-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-status.connected {
  color: #22c55e;
}

.platform-status.disconnected {
  color: var(--text-secondary);
}

/* Multistream Bar */
.multistream-bar {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.multistream-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-secondary);
  white-space: nowrap;
  font-size: 0.85rem;
}

.ms-label {
  font-weight: 600;
}

.ms-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ms-status.live {
  background: #22c55e;
  color: #fff;
}

.ms-status.offline {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.ms-viewers {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Multistream Config Panel */
.multistream-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.ms-config-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.ms-config-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.ms-config-card .form-group {
  margin-bottom: 12px;
}

.ms-config-card label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* Multistream Chat */
.multistream-chat-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  height: 500px;
}

.ms-chat-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.ms-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.ms-chat-header svg {
  flex-shrink: 0;
}

.ms-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.ms-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.ms-chat-input input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.ms-chat-input input:focus {
  border-color: var(--purple-500);
}

.ms-chat-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 0;
}

.ms-chat-msg .msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ms-chat-msg .msg-user {
  font-weight: 600;
  font-size: 0.85rem;
}

.ms-chat-msg .msg-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  word-break: break-word;
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.platform-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.platform-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Platform content wrappers */
.config-content,
.chat-content,
.stats-content {
  display: block;
}
