﻿:root {
  color-scheme: dark;
  --bg-primary: #060b1a;
  --bg-secondary: #0b1024;
  --bg-elevated: #111735;
  --bg-overlay: rgba(99, 102, 241, 0.18);
  --text-primary: #f3f6ff;
  --text-secondary: #8f9bc3;
  --text-tertiary: #a3afd9;
  --accent: linear-gradient(135deg, #6c5cff, #6d5bff 40%, #8c5bff);
  --accent-solid: #6c5cff;
  --accent-contrast: #0b1024;
  --accent-soft: rgba(108, 92, 255, 0.16);
  --border-color: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 1.5rem 4rem rgba(12, 10, 37, 0.55);
  --glow-purple: rgba(108, 92, 255, 0.55);
  --glow-green: rgba(56, 189, 149, 0.55);
  --footer-fade: rgba(6, 11, 26, 0.65);
  --info: #a78bfa;
  --info-subtle: rgba(167, 139, 250, 0.16);
  --theme-switch-thumb-off: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
  --theme-switch-thumb-on: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
  --theme-switch-track: rgba(255, 255, 255, 0.14);
  --theme-switch-border: rgba(255, 255, 255, 0.3);
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5f5;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #e6edff;
  --bg-secondary: #ffffff;
  --bg-elevated: #f6f7ff;
  --bg-overlay: rgba(99, 102, 241, 0.16);
  --text-primary: #0f172a;
  --text-secondary: #3f4a68;
  --text-tertiary: #5a6582;
  --accent: linear-gradient(135deg, #5a4dff, #7b5aff 45%, #9f63ff);
  --accent-solid: #5a4dff;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(90, 77, 255, 0.18);
  --border-color: rgba(16, 24, 40, 0.12);
  --shadow-soft: 0 1.25rem 3.25rem rgba(15, 23, 42, 0.14);
  --glow-purple: rgba(108, 92, 255, 0.32);
  --glow-green: rgba(45, 212, 191, 0.24);
  --footer-fade: radial-gradient(120% 120% at 50% 0%, rgba(108, 92, 255, 0.18), transparent 55%),
  radial-gradient(140% 120% at 85% 90%, rgba(52, 211, 153, 0.14), transparent 55%),
  var(--bg-primary);
  --info: #7c3aed;
  --info-subtle: rgba(124, 58, 237, 0.12);
  --theme-switch-thumb-off: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23facc15'/%3e%3c/svg%3e");
  --theme-switch-track: rgba(15, 23, 42, 0.12);
  --theme-switch-border: rgba(15, 23, 42, 0.25);
  --gray-100: #0f172a;
  --gray-200: #1e293b;
  --gray-300: #334155;
  --gray-400: #475569;
  --gray-500: #64748b;
  --gray-600: #94a3b8;
  --gray-700: #cbd5f5;
  --gray-800: #e2e8f0;
  --gray-900: #f8fafc;
}

[data-theme="light"] .dashboard-body {
  background: radial-gradient(120% 120% at 50% 0%, rgba(108, 92, 255, 0.18), transparent 55%),
    radial-gradient(140% 120% at 85% 90%, rgba(52, 211, 153, 0.14), transparent 55%),
    var(--bg-primary);
}

html, body {
  height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(120% 120% at 50% 0%, rgba(108, 92, 255, 0.18), transparent 55%),
    radial-gradient(140% 120% at 85% 90%, rgba(56, 189, 248, 0.08), transparent 55%),
    var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

.bg-gradient {
  background: radial-gradient(circle at top, var(--bg-overlay), transparent 55%),
    radial-gradient(circle at bottom right, rgba(79, 156, 255, 0.12), transparent 60%),
    var(--bg-primary);
}

.bg-brand {
  background-color: #0b4e26 !important;
}

.bg-info-subtle {
  background-color: var(--info-subtle) !important;
}

.text-info {
  color: var(--info) !important;
}

.bg-glass {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-elevated));
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.85rem 2.5rem rgba(79, 156, 255, 0.35);
  color: #fff;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.text-gray-100 { color: var(--gray-100) !important; }
.text-gray-200 { color: var(--gray-200) !important; }
.text-gray-300 { color: var(--gray-300) !important; }
.text-gray-400 { color: var(--gray-400) !important; }
.text-gray-500 { color: var(--gray-500) !important; }
.text-gray-600 { color: var(--gray-600) !important; }
.text-gray-700 { color: var(--gray-700) !important; }
.text-gray-800 { color: var(--gray-800) !important; }
.text-gray-900 { color: var(--gray-900) !important; }

.border-gray-100 { border-color: var(--gray-100) !important; }
.border-gray-200 { border-color: var(--gray-200) !important; }
.border-gray-300 { border-color: var(--gray-300) !important; }
.border-gray-400 { border-color: var(--gray-400) !important; }
.border-gray-500 { border-color: var(--gray-500) !important; }
.border-gray-600 { border-color: var(--gray-600) !important; }
.border-gray-700 { border-color: var(--gray-700) !important; }
.border-gray-800 { border-color: var(--gray-800) !important; }
.border-gray-900 { border-color: var(--gray-900) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-6 { margin-top: 3.5rem !important; }
.mt-7 { margin-top: 4rem !important; }
.mt-8 { margin-top: 4.5rem !important; }
.mt-9 { margin-top: 5rem !important; }
.mt-10 { margin-top: 5.5rem !important; }
.mt-n1 { margin-top: -0.25rem !important; }
.mt-n2 { margin-top: -0.5rem !important; }
.mt-n3 { margin-top: -1rem !important; }
.mt-n4 { margin-top: -1.5rem !important; }
.mt-n5 { margin-top: -3rem !important; }
.mt-n6 { margin-top: -3.5rem !important; }
.mt-n7 { margin-top: -4rem !important; }
.mt-n8 { margin-top: -4.5rem !important; }
.mt-n9 { margin-top: -5rem !important; }
.mt-n10 { margin-top: -5.5rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-6 { margin-bottom: 3.5rem !important; }
.mb-7 { margin-bottom: 4rem !important; }
.mb-8 { margin-bottom: 4.5rem !important; }
.mb-9 { margin-bottom: 5rem !important; }
.mb-10 { margin-bottom: 5.5rem !important; }
.mb-n1 { margin-bottom: -0.25rem !important; }
.mb-n2 { margin-bottom: -0.5rem !important; }
.mb-n3 { margin-bottom: -1rem !important; }
.mb-n4 { margin-bottom: -1.5rem !important; }
.mb-n5 { margin-bottom: -3rem !important; }
.mb-n6 { margin-bottom: -3.5rem !important; }
.mb-n7 { margin-bottom: -4rem !important; }
.mb-n8 { margin-bottom: -4.5rem !important; }
.mb-n9 { margin-bottom: -5rem !important; }
.mb-n10 { margin-bottom: -5.5rem !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }
.ms-6 { margin-left: 3.5rem !important; }
.ms-7 { margin-left: 4rem !important; }
.ms-8 { margin-left: 4.5rem !important; }
.ms-9 { margin-left: 5rem !important; }
.ms-10 { margin-left: 5.5rem !important; }
.ms-n1 { margin-left: -0.25rem !important; }
.ms-n2 { margin-left: -0.5rem !important; }
.ms-n3 { margin-left: -1rem !important; }
.ms-n4 { margin-left: -1.5rem !important; }
.ms-n5 { margin-left: -3rem !important; }
.ms-n6 { margin-left: -3.5rem !important; }
.ms-n7 { margin-left: -4rem !important; }
.ms-n8 { margin-left: -4.5rem !important; }
.ms-n9 { margin-left: -5rem !important; }
.ms-n10 { margin-left: -5.5rem !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }
.me-6 { margin-right: 3.5rem !important; }
.me-7 { margin-right: 4rem !important; }
.me-8 { margin-right: 4.5rem !important; }
.me-9 { margin-right: 5rem !important; }
.me-10 { margin-right: 5.5rem !important; }
.me-n1 { margin-right: -0.25rem !important; }
.me-n2 { margin-right: -0.5rem !important; }
.me-n3 { margin-right: -1rem !important; }
.me-n4 { margin-right: -1.5rem !important; }
.me-n5 { margin-right: -3rem !important; }
.me-n6 { margin-right: -3.5rem !important; }
.me-n7 { margin-right: -4rem !important; }
.me-n8 { margin-right: -4.5rem !important; }
.me-n9 { margin-right: -5rem !important; }
.me-n10 { margin-right: -5.5rem !important; }

.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.dashboard-body {
  min-height: 100vh;
  height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  background-attachment: fixed;
  --footer-height: 64px;
}

.dashboard-body::before,
.dashboard-body::after {
  content: "";
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.dashboard-body::before {
  background: rgba(108, 92, 255, 0.3);
  top: -200px;
  right: -160px;
}

.dashboard-body::after {
  background: rgba(56, 189, 248, 0.22);
  bottom: -240px;
  left: -180px;
}

.login-body::before,
.login-body::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.55;
  pointer-events: none;
}

.login-body::before {
  background: rgba(52, 211, 153, 0.38);
  top: -180px;
  left: -160px;
}

.login-body::after {
  background: rgba(52, 211, 153, 0.48);
  width: 360px;
  height: 360px;
  filter: blur(135px);
  bottom: -180px;
  right: -140px;
}

.login-wrapper {
  width: min(1020px, 100%);
  display: grid;
  gap: 2.5rem;
  justify-items: center;
  margin: 0 auto;
}

.brand-block {
  display: grid;
  gap: 1rem;
}

.brand-icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.32), rgba(111, 148, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 45px rgba(108, 92, 255, 0.25);
}

[data-theme="light"] .brand-icon {
  background: linear-gradient(135deg, rgba(90, 77, 255, 0.22), rgba(168, 99, 255, 0.18));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 38px rgba(90, 77, 255, 0.2);
}

.brand-icon-glow {
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: inherit;
  box-shadow: 0 0 70px #41d04a13;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.brand-icon i,
.brand-icon img {
  position: relative;
  z-index: 1;
}

.login-body .brand-icon img {
  border-radius: 1.7rem;
}

.brand-icon svg {
  width: 42px;
  height: 42px;
  color: #41d04a;
}

.brand-title {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-title .brand-name-bot {
  color: var(--text-primary);
  text-shadow: none;
}

.brand-title .brand-name-police {
  color: #41d04a;
  text-shadow: 0 0 16px #41d04a42;
}

.brand-title .brand-name-arbex {
  color: var(--gray-600);
  text-shadow: none;
}

.brand-subtitle {
  color: var(--text-tertiary);
  max-width: 360px;
  margin: 0 auto;
}

.login-card-modern {
  width: min(460px, 100%);
  padding: 2.75rem 2.5rem 2.85rem;
  border-radius: 32px;
  background: linear-gradient(155deg, rgba(17, 22, 43, 0.92), rgba(18, 21, 46, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 32px 60px rgba(8, 12, 32, 0.55);
  backdrop-filter: blur(24px);
}

[data-theme="light"] .login-card-modern {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 255, 0.95));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 45px rgba(15, 23, 42, 0.12);
}

.card-header h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.card-header p {
  margin: 0;
  color: var(--text-secondary);
}

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 32px rgba(108, 92, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  gap: 0.65rem;
}

.discord-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 38px rgba(108, 92, 255, 0.45);
  color: #fff;
}

.discord-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.course-actions .course-action-button {
  gap: 0.5rem;
  background: var(--accent-soft);
  border-color: rgba(108, 92, 255, 0.35);
  box-shadow: 0 10px 24px rgba(108, 92, 255, 0.12);
  font-weight: 600;
}

.course-actions .course-action-button:hover {
  background: rgba(108, 92, 255, 0.24);
  border-color: rgba(108, 92, 255, 0.55);
}

.course-actions .course-action-button i {
  color: var(--accent-solid);
}

.btn-ghost.danger {
  border-color: rgba(255, 84, 103, 0.25);
  color: #ff5467;
}

.btn-ghost.danger:hover {
  background: rgba(255, 84, 103, 0.15);
}

.btn-apply-settings {
  background: rgba(108, 92, 255, 0.16);
  border: 1px solid rgba(108, 92, 255, 0.45);
  color: #e6ecff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(108, 92, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.form-actions .btn-apply-settings,
.form-actions .btn-accent {
  height: 50px;
}

.btn-apply-settings:hover {
  background: rgba(108, 92, 255, 0.25);
  border-color: rgba(108, 92, 255, 0.65);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(108, 92, 255, 0.28);
  color: #ffffff;
}

.btn-apply-settings:disabled,
.btn-apply-settings.disabled {
  opacity: 0.6;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

[data-theme="light"] .btn-apply-settings {
  background: rgba(90, 77, 255, 0.16);
  border-color: rgba(90, 77, 255, 0.45);
  color: #2f3a5a;
}

[data-theme="light"] .btn-apply-settings:hover {
  background: rgba(90, 77, 255, 0.24);
  border-color: rgba(90, 77, 255, 0.6);
  color: #1e2540;
}

.card-divider {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.resource-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .resource-list li {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.resource-list strong {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.resource-list span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.servers-body {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  background-attachment: fixed;
  --server-surface: rgba(16, 23, 45, 0.7);
  --server-item: rgba(12, 18, 38, 0.92);
  --server-border: rgba(255, 255, 255, 0.08);
  --server-muted: #8f9bc3;
}

[data-theme="light"] .servers-body {
  --server-surface: rgba(255, 255, 255, 0.8);
  --server-item: rgba(255, 255, 255, 0.95);
  --server-border: rgba(15, 23, 42, 0.12);
  --server-muted: #5a6582;
}

.servers-body::before,
.servers-body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.servers-body::before {
  background: rgba(108, 92, 255, 0.35);
  top: -200px;
  right: -160px;
}

.servers-body::after {
  background: rgba(56, 189, 248, 0.25);
  bottom: -220px;
  left: -180px;
}

.servers-main {
  position: relative;
  z-index: 1;
}

.server-picker {
  width: min(640px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.server-picker-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #e8ecff;
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.55), rgba(96, 165, 250, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 36px rgba(108, 92, 255, 0.35);
}

[data-theme="light"] .server-picker-icon {
  color: #4f46e5;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 28px rgba(79, 70, 229, 0.2);
}

.server-picker h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
}

.server-user {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--server-item);
  border: 1px solid var(--server-border);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.server-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108, 92, 255, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c7d2fe;
}

.server-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.server-list-card {
  width: min(560px, 100%);
  background: var(--server-surface);
  border: 1px solid var(--server-border);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  margin: 0 auto 1.5rem;
  max-height: min(65vh, 560px);
  overflow: hidden;
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 124, 255, 0.45) rgba(255, 255, 255, 0.04);
}

.server-list::-webkit-scrollbar {
  width: 6px;
}

.server-list::-webkit-scrollbar-track {
  background: transparent;
}

.server-list::-webkit-scrollbar-thumb {
  background: rgba(108, 124, 255, 0.45);
  border-radius: 999px;
}

.server-list::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 124, 255, 0.65);
}

.server-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: var(--server-item);
  border: 1px solid var(--server-border);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.server-item:hover {
  background: rgba(23, 33, 60, 0.92);
  border-color: rgba(108, 124, 255, 0.45);
  transform: translateY(-1px);
}

[data-theme="light"] .server-item:hover {
  background: rgba(237, 242, 255, 0.95);
}

.server-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(108, 92, 255, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 600;
  color: #c7d2fe;
  flex-shrink: 0;
}

.server-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.server-item-info {
  flex: 1;
  min-width: 0;
}

.server-item-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.server-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.server-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag-owner {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
}

.tag-admin {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.tag-installed {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.tag-missing {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.server-item-arrow {
  color: var(--text-tertiary);
}

.server-empty {
  padding: 1.5rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

[data-theme="light"] .server-empty {
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(15, 23, 42, 0.1);
  color: var(--server-muted);
}

.server-note {
  font-size: 0.85rem;
  color: var(--server-muted);
}

.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
}

.resource-icon i {
  font-size: 1rem;
  color: currentColor;
}

.resource-icon.purple {
  color: #a78bfa;
  box-shadow: 0 10px 22px rgba(167, 139, 250, 0.25);
}

.resource-icon.green {
  color: #34d399;
  box-shadow: 0 10px 22px rgba(52, 211, 153, 0.25);
}

.resource-glow {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.resource-glow-purple {
  box-shadow: 0 12px 24px rgba(167, 139, 250, 0.35);
}

.resource-glow-green {
  box-shadow: 0 12px 24px rgba(52, 211, 153, 0.3);
}

.resource-glow-red {
  box-shadow: 0 12px 24px rgba(248, 113, 113, 0.35);
}

.login-copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
  margin: -0.35rem 0 0.5rem;
}

.terms-note {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
  margin: 0;
}

.terms-note a {
  color: #7c6cff;
}

.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0;
}

body[data-page="dashboard"] .theme-toggle,
body[data-page="setagem"] .theme-toggle {
  top: 0.75rem;
  right: 0.75rem;
}

[data-theme="light"] body[data-page="dashboard"     ],
[data-theme="light"] body[data-page="setagem"       ],
[data-theme="light"] body[data-page="cargos-siglas" ],
[data-theme="light"] body[data-page="sugestoes"     ],
[data-theme="light"] body[data-page="promocao"      ],
[data-theme="light"] body[data-page="ausencia"      ],
[data-theme="light"] body[data-page="advertencia"   ],
[data-theme="light"] body[data-page="exoneracao"    ],
[data-theme="light"] body[data-page="apreensao"     ],
[data-theme="light"] body[data-page="prisao"        ],
[data-theme="light"] body[data-page="cursos"        ],
[data-theme="light"] body[data-page="ponto-em-call" ]
 {
  --theme-switch-track: rgba(255, 255, 255, 0.14);
  --theme-switch-border: rgba(255, 255, 255, 0.3);
}

.theme-toggle.sidebar-theme {
  width: auto;
  gap: 0.6rem;
}


.sidebar {
  min-height: 100%;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: linear-gradient(160deg, rgba(17, 22, 43, 0.92), rgba(18, 21, 46, 0.84));
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .sidebar {
  --text-primary: #f3f6ff;
  --text-secondary: #8f9bc3;
  --text-tertiary: #a3afd9;
}

.sidebar-header {
  display: grid;
  gap: 0.85rem;
}

.sidebar-header .brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin: 0;
}

.sidebar-header .brand-icon svg {
  width: 28px;
  height: 28px;
  color: #cbd5ff;
}

.sidebar-header .brand-title {
  font-size: 1.65rem;
  margin: 0;
}

.sidebar-header .brand-subtitle {
  font-size: 0.85rem;
  margin: 0;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.sidebar .brand img {
  width: 34px;
  height: 34px;
}

.sidebar .nav-link {
  color: var(--text-secondary);
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.sidebar-nav a,
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-link.active,
.sidebar-link:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.sidebar-nav a.disabled,
.sidebar-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sidebar-footer {
  margin-top: auto;
  color: var(--text-tertiary);
}

.sidebar-theme i {
  color: var(--text-secondary);
  cursor: pointer;
}

[data-theme="light"] .sidebar-theme .fa-sun {
  color: #facc15;
}

[data-theme="dark"] .sidebar-theme .fa-moon {
  color: #ffffff;
}

.topbar {
  background: linear-gradient(165deg, rgba(17, 22, 43, 0.92), rgba(18, 21, 46, 0.82));
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 1.75rem 0;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-elevated);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.user-chip img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(79, 156, 255, 0.4);
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(108, 92, 255, 0.16);
  color: var(--text-primary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-bar .form-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-primary);
  padding-left: 1.1rem;
}

.search-bar .form-control::placeholder {
  color: var(--text-tertiary);
}

.search-bar .form-control:focus {
  border-color: rgba(79, 156, 255, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(79, 156, 255, 0.2);
}

.btn-ghost.icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.btn-ghost.icon-only svg {
  width: 20px;
  height: 20px;
}

.card-glass {
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: linear-gradient(155deg, rgba(17, 22, 43, 0.9), rgba(18, 21, 46, 0.84));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.card-glass h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.placeholder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.offcanvas-sidebar {
  background: linear-gradient(165deg, rgba(17, 22, 43, 0.92), rgba(18, 21, 46, 0.84));
  color: var(--text-primary);
}

.offcanvas-sidebar .nav-link {
  color: var(--text-secondary);
}

.offcanvas-sidebar .nav-link.active,
.offcanvas-sidebar .nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.badge-soft {
  background: rgba(79, 156, 255, 0.16);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
}

.badge-soft svg {
  width: 1rem;
  height: 1rem;
}

.guild-detail {
  min-height: 188px;
}

.guild-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.guild-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-installed {
  background: rgba(46, 204, 113, 0.18);
  color: #2ecc71;
}

.status-missing {
  background: rgba(231, 76, 60, 0.18);
  color: #e74c3c;
}

.status-owner {
  background: rgba(241, 196, 15, 0.18);
  color: #f1c40f;
}

.bg-glass-subtle {
  background: linear-gradient(135deg, rgba(17, 26, 45, 0.6), rgba(17, 26, 45, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.bg-glass-subtle:focus {
  border-color: rgba(90, 104, 190, 0.35);
  box-shadow: none;
}

[data-theme="dark"] .bg-glass-subtle {
  background: rgba(10, 14, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .bg-glass-subtle:focus {
  background: rgba(8, 12, 24, 0.98);
}

[data-theme="light"] .bg-glass-subtle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .bg-glass-subtle:focus {
  border-color: rgba(90, 77, 255, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(90, 77, 255, 0.18);
}

.bg-glass-subtle::placeholder {
  color: rgba(143, 155, 195, 0.9);
}

[data-theme="light"] .bg-glass-subtle::placeholder {
  color: rgba(63, 74, 104, 0.7);
}

.bg-glass-subtle option {
  background-color: #0b1024;
  color: #f3f6ff;
}

[data-theme="light"] .bg-glass-subtle option {
  background-color: #ffffff;
  color: #0f172a;
}
.dashboard-layout {
  display: flex;
  min-height: 100%;
  width: 100%;
  gap: 1.75rem;
  padding: 1.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  min-width: 0;
}

.main-content {
  flex: 1;
  padding: 1.5rem 1.75rem 2.5rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79, 156, 255, 0.24), transparent 55%);
  pointer-events: none;
}

.hero-card h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.mobile-menu-btn {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton::after {
  content: '';
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    gap: 2rem;
  }

  .login-card-modern {
    padding: 2.25rem 1.75rem 2.5rem;
    border-radius: 26px;
  }

  .discord-button {
    font-size: 0.95rem;
    padding: 0.85rem 0.9rem;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
  }

  .sidebar {
    position: fixed;
    inset: 0;
    transform: translateX(-100%);
    padding: 1.25rem 1.25rem 2rem;
  }

  .topbar {
    padding: 0.75rem 1rem;
    margin: 1rem 1rem 0;
  }
}

@media (max-width: 991px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 1.25rem 1.25rem 2rem;
  }

  .topbar {
    padding: 0.75rem 1rem;
    margin: 1rem 1.25rem 0;
  }

  .dashboard-layout {
    padding: 1.25rem;
    padding-left: 0;
  }
}

.dashboard-layout {
  padding: 0;
  gap: 0;
  align-items: stretch;
  padding-left: 260px;
  height: calc(100vh - var(--footer-height));
}

.sidebar.sidebar-manager {
  width: 260px;
  min-height: 100vh;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 1.75rem 1.5rem;
  border-radius: 0 24px 24px 0;
  background: linear-gradient(180deg, rgba(9, 12, 24, 0.98), rgba(11, 15, 29, 0.95));
  border-right: 1px solid var(--border-color);
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  gap: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 124, 255, 0.45) rgba(255, 255, 255, 0.04);
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(108, 124, 255, 0.45);
  border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 124, 255, 0.65);
}

.sidebar.sidebar-manager .sidebar-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 2.1rem 0.5rem 0.85rem;
  border-radius: 14px;
  border: 1px solid transparent;
  margin: 0;
  color: #9fb2d4;
  font-size: 0.95rem;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  white-space: nowrap;
}

.sidebar.sidebar-manager .sidebar-menu .nav-link i {
  width: 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #8aa0c9;
  cursor: pointer;
}

.offcanvas-sidebar .nav-link i {
  cursor: pointer;
}

.sidebar.sidebar-manager .sidebar-menu .nav-link.active,
.sidebar.sidebar-manager .sidebar-menu .nav-link:hover {
  background: rgba(23, 33, 60, 0.9);
  border-color: rgba(108, 124, 255, 0.45);
  color: #e6ecff;
}

.sidebar.sidebar-manager .sidebar-menu .nav-link.active i,
.sidebar.sidebar-manager .sidebar-menu .nav-link:hover i {
  color: #8fa4ff;
}

.sidebar.sidebar-manager .sidebar-menu .nav-link.active::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6c7cff;
}

.sidebar.sidebar-manager .sidebar-bottom .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 2.1rem 0.5rem 0.85rem;
  border-radius: 14px;
  border: 1px solid transparent;
  margin: 0;
  color: #9fb2d4;
  font-size: 0.95rem;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  white-space: nowrap;
}

.sidebar.sidebar-manager .sidebar-bottom .nav-link i {
  width: 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #8aa0c9;
  cursor: pointer;
}

.sidebar.sidebar-manager .sidebar-bottom .nav-link.active,
.sidebar.sidebar-manager .sidebar-bottom .nav-link:hover {
  background: rgba(23, 33, 60, 0.9);
  border-color: rgba(108, 124, 255, 0.45);
  color: #e6ecff;
}

.sidebar.sidebar-manager .sidebar-bottom .nav-link.active i,
.sidebar.sidebar-manager .sidebar-bottom .nav-link:hover i {
  color: #8fa4ff;
}

.sidebar.sidebar-manager .sidebar-bottom .nav-link.active::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6c7cff;
}

.dashboard-body footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: var(--footer-height);
  padding: 0;
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  border-top: none;
  pointer-events: none;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.45), rgba(99, 102, 241, 0.2));
  display: grid;
  place-items: center;
  color: #e0e7ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark i {
  font-size: 1rem;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-name-bot {
  color: var(--text-primary);
}

.brand-name-police {
  color: #41d04a;
  text-shadow: 0 0 16px #41d04a42;
}

.brand-name-arbex {
  color: var(--gray-600);
}

[data-theme="light"] .brand-mark {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.license-status {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 15px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: none;
  background: rgba(231, 76, 60, 0.18);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
  margin: -0.5rem 0 0.9rem;
  align-self: flex-start;
}

.license-status .license-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.85rem;
}

.license-status .icon-licensed,
.license-status .icon-unlicensed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.license-status.is-unlicensed .icon-licensed {
  display: none;
}

.license-status.is-licensed .icon-unlicensed {
  display: none;
}

.license-status.is-licensed .license-icon-secondary {
  display: none;
}

.license-status.is-unlicensed .license-dot {
  display: none;
}

.license-status [data-license-status-label] {
  flex: 1;
  text-align: center;
}

.license-status .license-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.license-status.is-licensed {
  background: rgba(46, 204, 113, 0.18);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.3);
}

.license-status.is-unlicensed {
  background: rgba(231, 76, 60, 0.18);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
}

.server-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(16, 23, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.server-card:hover {
  background: rgba(22, 31, 60, 0.9);
  border-color: rgba(108, 92, 255, 0.35);
}

.server-card.is-licensed:hover {
  border-color: rgba(46, 204, 113, 0.8);
}

.server-card.is-unlicensed:hover {
  border-color: rgba(231, 76, 60, 0.8);
}

.server-card.is-licensed {
  border-color: rgba(46, 204, 113, 0.6);
  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.15);
}

.server-card.is-unlicensed {
  border-color: rgba(231, 76, 60, 0.6);
  box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.15);
}

.server-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.server-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.license-locked .sidebar-nav,
.license-locked .offcanvas-body .nav,
.license-locked .menu-toggle {
  display: none !important;
}

.license-loading .license-status,
.license-loading .sidebar-nav,
.license-loading .server-card,
.license-loading .sidebar-bottom,
.license-loading .menu-toggle,
.license-loading .offcanvas-body .nav,
.license-loading .dashboard-main {
  display: none !important;
}

.license-warning {
  display: none;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  border-radius: 22px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: var(--text-primary);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.voice-stat-emphasis {
  color: var(--text-tertiary);
  font-weight: 600;
}

.voice-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.voice-stat-item {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
}

.voice-stat-item:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
}

.voice-stat-summary {
  font-size: 0.85rem;
}

.voice-stats-filters {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: end;
}

.voice-stats-filter {
  min-width: 0;
}

[data-theme="light"] .voice-stat-item {
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .voice-stat-item:nth-child(even) {
  background: rgba(15, 23, 42, 0.08);
}

.daterangepicker {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.daterangepicker .calendar-table {
  background: transparent;
  border: none;
}

.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
  color: var(--text-primary);
}

.daterangepicker .calendar-table .off,
.daterangepicker .calendar-table .off.in-range,
.daterangepicker .calendar-table .off.start-date,
.daterangepicker .calendar-table .off.end-date {
  color: var(--text-tertiary);
  opacity: 0.55;
  background: transparent;
}

.daterangepicker td.in-range {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background: var(--accent-solid);
  color: var(--accent-contrast);
}

.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.daterangepicker .drp-buttons {
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.daterangepicker .drp-selected {
  color: var(--text-tertiary);
}

.daterangepicker .applyBtn {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: var(--accent-contrast);
}

.daterangepicker .cancelBtn {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

[data-theme="dark"] .daterangepicker .ranges li {
  background: transparent;
  color: var(--text-secondary);
}

[data-theme="dark"] .daterangepicker .ranges li:hover {
  background: rgba(108, 92, 255, 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] .daterangepicker .ranges li.active,
[data-theme="dark"] .daterangepicker .ranges li.active:hover {
  background: var(--accent-solid);
  color: var(--accent-contrast);
}

[data-theme="light"] .daterangepicker {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .daterangepicker td.in-range {
  background: rgba(108, 92, 255, 0.12);
}

[data-theme="light"] .daterangepicker td.available:hover,
[data-theme="light"] .daterangepicker th.available:hover {
  background: rgba(108, 92, 255, 0.12);
}

[data-theme="light"] .daterangepicker .cancelBtn {
  color: var(--text-secondary);
}

.license-warning i {
  font-size: 2rem;
  color: #e74c3c;
  margin-bottom: 0.75rem;
}

.license-warning h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.license-warning p {
  margin: 0;
  color: var(--text-secondary);
}

.license-locked .dashboard-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-locked .dashboard-main > :not(.license-warning) {
  display: none !important;
}

.license-locked .license-warning {
  display: block;
}

.license-locked[data-page="pagamentos"] .dashboard-main {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
}

.license-locked[data-page="pagamentos"] .dashboard-main > :not(.license-warning) {
  display: block !important;
}

.license-locked[data-page="pagamentos"] .license-warning {
  display: none !important;
}

.server-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(108, 92, 255, 0.2);
  color: #c7d2fe;
  font-weight: 600;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.server-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  grid-area: 1 / 1;
}

.server-avatar span {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.server-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.server-info span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.server-select {
  background: rgba(8, 12, 32, 0.75);
  border: 1px solid var(--border-color);
  color: #f3f6ff;
  border-radius: 12px;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 1.5rem;
}

.server-select option {
  color: #f3f6ff;
  background-color: #0b1024;
}

.server-select:focus {
  border-color: rgba(108, 92, 255, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(108, 92, 255, 0.2);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-theme {
  padding: 0.5rem 0.85rem;
  width: 100%;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
}

.sidebar-theme i,
.sidebar-theme svg,
.sidebar-theme .svg-inline--fa,
.sidebar-theme [data-icon] {
  width: 1.1rem;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}

[data-theme="light"] body[data-page="dashboard"] .sidebar-theme,
[data-theme="light"] body[data-page="setagem"] .sidebar-theme {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #a3afd9;
}

[data-theme="light"] body[data-page="dashboard"] .sidebar-theme i,
[data-theme="light"] body[data-page="setagem"] .sidebar-theme i {
  color: #8f9bc3;
}

.sidebar-theme .form-check {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
}

.sidebar-theme .form-check-input {
  cursor: pointer;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  width: 7em;
  background-color: var(--theme-switch-track);
  border-color: var(--theme-switch-border);
  --bs-form-switch-bg: var(--theme-switch-thumb-off);
}

.sidebar-theme .form-check-input:checked {
  background-color: var(--theme-switch-track);
  border-color: var(--theme-switch-border);
  --bs-form-switch-bg: var(--theme-switch-thumb-on);
}

body[data-page="login"] .theme-toggle.sidebar-theme,
body[data-page="servers"] .theme-toggle.sidebar-theme {
  width: auto;
  padding: 0.25rem 0.55rem;
  border-radius: 12px;
  gap: 0.45rem;
  justify-content: center;
}

body[data-page="login"] .theme-toggle.sidebar-theme .form-check-input,
body[data-page="servers"] .theme-toggle.sidebar-theme .form-check-input {
  width: 2em;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.sidebar-logout {
  margin: 0;
}

.sidebar-logout .btn-ghost {
  width: 100%;
  justify-content: flex-start;
  gap: 0.65rem;
}

.logout-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.logout-link:hover {
  color: #ff6b6b;
  background: rgba(255, 72, 72, 0.12);
  border-color: rgba(255, 72, 72, 0.3);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2.75rem 3rem;
  position: relative;
  z-index: 1;
  height: calc(100vh - var(--footer-height));
  overflow-y: auto;
  padding-bottom: 3rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.page-header p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  display: grid;
  place-items: center;
}


.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(14, 18, 34, 0.92), rgba(11, 15, 28, 0.92));
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 40px rgba(8, 12, 26, 0.35);
}

[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.stat-info {
  display: grid;
  gap: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-change {
  font-size: 0.75rem;
}

.stat-change.positive {
  color: #34d399;
}

.stat-change.negative {
  color: #f87171;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #c7d2fe;
}

.stat-icon.warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.stat-icon.purple {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.stat-icon.orange {
  background: rgba(251, 146, 60, 0.2);
  color: #fdba74;
}

.stat-icon.green {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.stat-icon.red {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.stat-icon.blue {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.stat-icon.teal {
  background: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
}

.stat-icon.yellow {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}


.panel-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 18, 34, 0.92), rgba(11, 15, 28, 0.92));
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 48px rgba(7, 10, 24, 0.35);
}

[data-theme="light"] .panel-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.panel-header p {
  margin: 0.15rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.panel-icon.green {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.panel-icon.purple {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.panel-icon.blue {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.h-100,
.settings-card {
  height: 100%;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.form-optional {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-left: 0.35rem;
}

.settings-form .form-control,
.settings-form .form-select {
  border-radius: 14px;
  color: var(--text-primary);
}

.settings-form .form-control.is-invalid,
.settings-form .form-select.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 0.2rem rgba(248, 113, 113, 0.2);
}

.settings-form .form-control.is-invalid:focus,
.settings-form .form-select.is-invalid:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 0.2rem rgba(248, 113, 113, 0.28);
}

.settings-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

[data-payments-table] {
  --payments-row-bg: rgba(255, 255, 255, 0.04);
  --payments-row-border: rgba(255, 255, 255, 0.08);
  --payments-head-color: #c7d2fe;
  --payments-head-bg: rgba(12, 18, 38, 0.92);
  border-collapse: separate;
  border-spacing: 0 0.6rem;
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
}

[data-theme="light"] [data-payments-table] {
  --payments-row-bg: rgba(255, 255, 255, 0.9);
  --payments-row-border: rgba(15, 23, 42, 0.08);
  --payments-head-color: #4f46e5;
  --payments-head-bg: rgba(90, 77, 255, 0.12);
}

[data-payments-table] thead tr {
  background: var(--payments-head-bg);
}

[data-payments-table] thead th {
  padding: 0.55rem 0.9rem;
  border: none;
  background-color: var(--payments-head-bg) !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--payments-head-color);
  white-space: nowrap;
}

[data-payments-table] thead th:first-child {
  border-radius: 12px 0 0 12px;
}

[data-payments-table] thead th:last-child {
  border-radius: 0 12px 12px 0;
}

[data-payments-sort] {
  cursor: pointer;
  user-select: none;
}

[data-payments-sort]:hover,
[data-payments-sort][data-sort-active="true"] {
  color: var(--text-primary);
}

[data-payments-sort][data-sort-active="true"][data-sort-dir="asc"]::after,
[data-payments-sort][data-sort-active="true"][data-sort-dir="desc"]::after {
  font-size: 0.65rem;
  margin-left: 0.35rem;
  opacity: 0.7;
}

[data-payments-sort][data-sort-active="true"][data-sort-dir="asc"]::after {
  content: " ^";
}

[data-payments-sort][data-sort-active="true"][data-sort-dir="desc"]::after {
  content: " v";
}

[data-payments-table] tbody td {
  padding: 0.75rem 0.9rem;
  background: var(--payments-row-bg);
  border-top: 1px solid var(--payments-row-border);
  border-bottom: 1px solid var(--payments-row-border);
  font-size: 0.85rem;
  color: var(--text-primary);
}

[data-payments-table] tbody tr td:first-child {
  border-left: 1px solid var(--payments-row-border);
  border-radius: 14px 0 0 14px;
}

[data-payments-table] tbody tr td:last-child {
  border-right: 1px solid var(--payments-row-border);
  border-radius: 0 14px 14px 0;
}

[data-payments-table] tbody tr.payments-empty td {
  background: transparent;
  border: none;
  padding: 0.35rem 0.9rem 0.15rem;
  color: var(--text-tertiary);
}

.payments-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.payments-badge.status-approved {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.payments-badge.status-pending,
.payments-badge.status-in_process,
.payments-badge.status-in_mediation {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.payments-badge.status-overdue,
.payments-badge.status-rejected,
.payments-badge.status-cancelled,
.payments-badge.status-refunded {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.dashboard-main .form-check.form-switch .form-check-input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-main .form-check.form-switch .form-check-input:focus {
  border-color: rgba(108, 92, 255, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(108, 92, 255, 0.25);
}

.dashboard-main .form-check.form-switch .form-check-input:checked {
  background-color: var(--accent-solid);
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 0.2rem rgba(108, 92, 255, 0.25);
}

[data-theme="light"] .dashboard-main .form-check.form-switch .form-check-input {
  background-color: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .dashboard-main .form-check.form-switch .form-check-input:focus {
  border-color: rgba(90, 77, 255, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(90, 77, 255, 0.2);
}

[data-theme="light"] .dashboard-main .form-check.form-switch .form-check-input:checked {
  background-color: var(--accent-solid);
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 0.2rem rgba(90, 77, 255, 0.2);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.switch-row:last-of-type {
  border-bottom: none;
}

.switch-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.role-input {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.role-input .form-select {
  flex: 1;
}

.role-input .btn {
  white-space: nowrap;
}

.color-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-input .form-control {
  flex: 1;
}

.color-input .form-control-color {
  width: 3rem;
  height: 3rem;
  padding: 0.2rem;
}

.panel-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-preview-card {
  --preview-accent: #6c5cff;
  position: relative;
  padding: 1rem 1.1rem 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(12, 16, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 38px rgba(7, 10, 24, 0.3);
  overflow: hidden;
  color: #f3f6ff;
}

.panel-preview-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--preview-accent);
}


.panel-preview-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3f6ff;
}

.panel-preview-title i {
  color: var(--preview-accent);
}

.panel-preview-body {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.45;
}

.panel-preview-body strong,
.panel-preview-body em,
.panel-preview-body u,
.panel-preview-body s {
  color: #e6ecff;
}

.panel-preview-requirements {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(230, 236, 255, 0.8);
}

.panel-preview-requirements-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(230, 236, 255, 0.85);
}

.panel-preview-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(108, 92, 255, 0.18);
  border: 1px solid rgba(108, 92, 255, 0.3);
  color: #fff;
  font-size: 0.75rem;
}

.panel-preview-button {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  background: rgba(10, 14, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.panel-preview-button i {
  color: inherit;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(108, 92, 255, 0.16);
  border: 1px solid rgba(108, 92, 255, 0.22);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
}

.role-pill i {
  font-size: 0.7rem;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .activity-item {
  background: rgba(248, 250, 252, 0.7);
  border-color: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.activity-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #c7d2fe;
}

.activity-icon.warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.activity-icon.purple {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.activity-icon.blue {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.activity-icon.green {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.activity-icon.teal {
  background: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.stat-bars {
  display: grid;
  gap: 0.9rem;
}

.stat-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.stat-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.bar-purple {
  background: #6366f1;
}

.bar-green {
  background: #22c55e;
}

.bar-yellow {
  background: #f59e0b;
}

.bar-red {
  background: #ef4444;
}

.bar-blue {
  background: #60a5fa;
}

.rankings-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 992px) {
  .rankings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rank-card {
  --rank-accent: #a5b4fc;
  --rank-accent-soft: rgba(99, 102, 241, 0.2);
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .rank-card {
  background: rgba(248, 250, 252, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

.rank-card.blue {
  --rank-accent: #60a5fa;
  --rank-accent-soft: rgba(96, 165, 250, 0.2);
}

.rank-card.purple {
  --rank-accent: #a5b4fc;
  --rank-accent-soft: rgba(99, 102, 241, 0.2);
}

.rank-card.warning {
  --rank-accent: #fbbf24;
  --rank-accent-soft: rgba(245, 158, 11, 0.2);
}

.rank-card.red {
  --rank-accent: #f87171;
  --rank-accent-soft: rgba(248, 113, 113, 0.18);
}

.rank-card.white {
  --rank-accent: #f8fafc;
  --rank-accent-soft: rgba(248, 250, 252, 0.18);
}

.rank-card.teal {
  --rank-accent: #2dd4bf;
  --rank-accent-soft: rgba(45, 212, 191, 0.18);
}

.rank-card.green {
  --rank-accent: #34d399;
  --rank-accent-soft: rgba(52, 211, 153, 0.18);
}

.rank-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rank-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.rank-card-header p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.rank-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--rank-accent-soft);
  color: var(--rank-accent);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.rank-item {
  display: grid;
  gap: 0.35rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.rank-info {
  display: grid;
  gap: 0.2rem;
}

.rank-pos {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--rank-accent-soft);
  color: var(--rank-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.rank-name {
  font-weight: 600;
  font-size: 0.85rem;
  word-break: break-word;
}

.rank-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 2.25rem;
}

.rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.rank-meta-left,
.rank-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rank-meta-right {
  margin-left: auto;
}

.rank-meta i {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rank-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.rank-meta-id {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.rank-meta-id i {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rank-card[data-rank-module="voz"] .rank-value,
.rank-card[data-rank-module="voz"] .rank-meta-id {
  margin-top: -0.7rem;
}

.rank-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rank-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rank-accent), rgba(255, 255, 255, 0.2));
}

[data-theme="light"] .rank-bar {
  background: rgba(15, 23, 42, 0.08);
}


.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .status-item {
  background: rgba(248, 250, 252, 0.7);
  border-color: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.status-item.inactive {
  opacity: 0.55;
}

.status-item strong {
  display: block;
  font-size: 0.9rem;
}

.status-item span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.status-item span.muted {
  color: var(--text-tertiary);
  opacity: 0.45;
}

.status-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #c7d2fe;
}

.status-icon.green {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.status-icon.purple {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.status-icon.orange {
  background: rgba(251, 146, 60, 0.2);
  color: #fdba74;
}

.status-icon.blue {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.status-icon.teal {
  background: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
}

.status-icon.muted {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

@media (max-width: 991px) {
  .sidebar.sidebar-manager {
    display: none !important;
  }

  .dashboard-layout {
    padding: 0;
    padding-left: 0;
  }

  .dashboard-main {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    align-items: flex-start;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

.swal2-popup.swal2-toast {
  background: rgba(14, 18, 34, 0.96);
  color: #f3f6ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(7, 10, 24, 0.35);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  width: auto;
  max-width: 320px;
}

.swal2-popup.swal2-toast .swal2-title {
  color: inherit;
  font-size: 0.85rem;
  margin: 0.2rem 0.4rem 0.2rem 0;
  white-space: pre-line;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar {
  background: #34d399;
}

.swal2-popup.swal2-toast.swal2-icon-error .swal2-timer-progress-bar {
  background: #f87171;
}

.swal2-popup.swal2-toast .swal2-icon {
  margin: 0 0.35rem 0 0.15rem;
  transform: scale(0.85);
  transform-origin: center;
}

.swal2-popup.swal2-toast .swal2-icon.swal2-success {
  border-color: #34d399;
  color: #34d399;
}

.swal2-popup.swal2-toast .swal2-success [class^="swal2-success-line"] {
  background-color: #34d399;
}

.swal2-popup.swal2-toast .swal2-success .swal2-success-ring {
  border-color: rgba(52, 211, 153, 0.25);
}

.role-siglas-grid {
  width: 100%;
}

@media (min-width: 992px) {
  .role-siglas-grid,
  .role-siglas-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 96px 110px 120px;
    align-items: center;
    gap: 1rem;
  }

  .role-siglas-grid-head__setagem,
  .role-siglas-grid-head__convidado,
  .role-siglas-grid-head__promocao {
    text-align: center;
  }

  .role-siglas-col--setagem,
  .role-siglas-col--convidado,
  .role-siglas-col--promocao {
    align-items: center !important;
  }
}

.warn-config-grid {
  width: 100%;
}

@media (min-width: 992px) {
  .warn-config-grid,
  .warn-config-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.6fr) 160px 56px;
    align-items: center;
    gap: 1rem;
  }

  .warn-config-grid-head__days,
  .warn-config-grid-head__action {
    text-align: center;
  }

  .warn-config-col--days,
  .warn-config-col--action {
    display: flex;
    justify-content: center;
  }
}

.voice-category-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

[data-theme="light"] .voice-category-card {
  background: rgba(248, 250, 252, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

.voice-category-header {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 0.65rem;
}

.voice-channel-list {
  display: grid;
  gap: 0;
}

.voice-channel-row {
  padding: 0.45rem 0;
  align-items: center;
  padding-left: 0;
}

.voice-channel-row .form-check-input {
  margin-top: 0;
  margin-left: 0;
}

.voice-channel-row .form-check-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.voice-channel-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

[data-theme="light"] .voice-channel-row:not(:last-child) {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}


