/* ===== SISTEMA DE TEMAS - VARIÁVEIS CSS ===== */

/* Tema Claro (padrão) - TEAMVAGA RED THEME */
:root {
  /* Cores de fundo */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --bg-topbar: #ffffff;
  --bg-hover: rgba(var(--primary-rgb), 0.08);
  --bg-active: rgba(var(--primary-rgb), 0.15);

  /* Cores de texto */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-muted: #cbd5e1;
  --text-inverse: #ffffff;

  /* Bordas */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;

  /* Cores de destaque - TEAMVAGA RED */
  --accent-primary: var(--accent-primary);
  --accent-primary-hover: var(--accent-primary-hover);
  --accent-success: #10b981;
  --accent-danger: var(--accent-primary);
  --accent-warning: #f59e0b;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Scrollbar */
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;

  /* Cards Dashboard - Tema Claro */
  --dashboard-hero-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --dashboard-card-bg: #ffffff;
  --dashboard-card-border: #e2e8f0;
  --dashboard-text: #1e293b;
  --dashboard-text-muted: #64748b;
  --dashboard-stat-card-bg: rgba(255, 255, 255, 0.9);
  --dashboard-stat-card-border: #e2e8f0;

  /* Tables */
  --table-header-bg: #f8fafc;
  --table-row-hover: #f8fafc;
}

/* Tema Escuro - TEAMVAGA RED THEME */
[data-theme="dark"] {
  /* Cores de fundo */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-sidebar: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  --bg-topbar: #1e293b;
  --bg-hover: rgba(var(--primary-rgb), 0.15);
  --bg-active: rgba(var(--primary-rgb), 0.25);

  /* Cores de texto */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;
  --text-inverse: #0f172a;

  /* Bordas */
  --border-color: #334155;
  --border-light: #1e293b;
  --border-dark: #475569;

  /* Cores de destaque - TEAMVAGA RED */
  --accent-primary: var(--accent-primary-light);
  --accent-primary-hover: var(--accent-primary);
  --accent-success: #34d399;
  --accent-danger: var(--accent-primary-light);
  --accent-warning: #fbbf24;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

  /* Scrollbar */
  --scrollbar-track: #1e293b;
  --scrollbar-thumb: #475569;
  --scrollbar-thumb-hover: #64748b;

  /* Cards Dashboard - Tema Escuro */
  --dashboard-hero-bg: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #334155 100%
  );
  --dashboard-card-bg: #1e293b;
  --dashboard-card-border: rgba(255, 255, 255, 0.08);
  --dashboard-text: #f1f5f9;
  --dashboard-text-muted: rgba(255, 255, 255, 0.5);
  --dashboard-stat-card-bg: rgba(255, 255, 255, 0.1);
  --dashboard-stat-card-border: rgba(255, 255, 255, 0.1);

  /* Tables */
  --table-header-bg: rgba(255, 255, 255, 0.05);
  --table-row-hover: rgba(255, 255, 255, 0.03);
}

/* ===== MELHORIAS DE LEGIBILIDADE DARK MODE ===== */

/* Progress Steps */
[data-theme="dark"] .progress-steps .step-title {
  color: #cbd5e0;
  font-weight: 500;
}

[data-theme="dark"] .progress-steps .step.active .step-title {
  color: #f7fafc;
  font-weight: 600;
}

[data-theme="dark"] .progress-steps .step-icon {
  background-color: #4a5568;
  color: #e2e8f0;
}

[data-theme="dark"] .progress-steps .step.active .step-icon {
  background-color: #4299e1;
  color: #ffffff;
}

[data-theme="dark"] .progress {
  background-color: #2d3748;
}

/* Cards */
[data-theme="dark"] .card {
  background-color: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .card-modern {
  background-color: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .card-body {
  color: #e2e8f0;
}

[data-theme="dark"] .card-header-modern {
  background-color: #1a202c;
  border-bottom-color: #4a5568;
  color: #f7fafc;
}

/* Page Headers */
[data-theme="dark"] .page-title {
  color: #f7fafc !important;
}

[data-theme="dark"] .page-subtitle {
  color: #cbd5e0 !important;
}

/* Alerts */
[data-theme="dark"] .alert-danger {
  background-color: #742a2a;
  border-color: #9b2c2c;
  color: #feb2b2;
}

[data-theme="dark"] .alert-info {
  background-color: #2c5282;
  border-color: #2b6cb0;
  color: #bee3f8;
}

[data-theme="dark"] .alert-success {
  background-color: #22543d;
  border-color: #276749;
  color: #9ae6b4;
}

/* Form Labels e Inputs */
[data-theme="dark"] label,
[data-theme="dark"] .form-label {
  color: #f7fafc !important;
  font-weight: 500;
}

[data-theme="dark"] .form-text {
  color: #cbd5e0 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #f7fafc;
}

[data-theme="dark"] .form-control::placeholder {
  color: #718096;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #2d3748;
  border-color: #4299e1;
  color: #f7fafc;
  box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

[data-theme="dark"] textarea.form-control {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #f7fafc;
}

/* Buttons */
[data-theme="dark"] .btn-outline-secondary {
  color: #cbd5e0;
  border-color: #4a5568;
}

[data-theme="dark"] .btn-outline-secondary:hover {
  background-color: #4a5568;
  border-color: #4a5568;
  color: #f7fafc;
}

[data-theme="dark"] .btn-primary {
  background-color: #4299e1;
  border-color: #4299e1;
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #3182ce;
  border-color: #3182ce;
}

/* Badges Dark Mode - Bootstrap Override */
[data-theme="dark"] .badge {
  color: #ffffff;
}

[data-theme="dark"] .badge.bg-secondary {
  background-color: #475569 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .badge.bg-light {
  background-color: #475569 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .badge.bg-dark {
  background-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Tables Dark Mode - Bootstrap Override */
[data-theme="dark"] .table {
  color: #e2e8f0;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table > thead {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table > thead > tr > th {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table > tbody > tr > td {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .table > tbody > tr {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.08);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.1);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .table-dark > thead > tr > th {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .table-primary {
  --bs-table-bg: rgba(var(--primary-rgb), 0.15);
  --bs-table-striped-bg: rgba(var(--primary-rgb), 0.18);
  --bs-table-hover-bg: rgba(var(--primary-rgb), 0.2);
  color: #e2e8f0;
}

[data-theme="dark"] .table-warning {
  --bs-table-bg: rgba(245, 158, 11, 0.15);
  --bs-table-striped-bg: rgba(245, 158, 11, 0.18);
  --bs-table-hover-bg: rgba(245, 158, 11, 0.2);
  color: #e2e8f0;
}

/* Text Muted Dark Mode */
[data-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}

/* Small Text Dark Mode */
[data-theme="dark"] small {
  color: #cbd5e1;
}

[data-theme="dark"] small.text-muted {
  color: #94a3b8 !important;
}

/* Strong Text Dark Mode */
[data-theme="dark"] strong {
  color: #f1f5f9;
}

/* Border Dark Mode */
[data-theme="dark"] .border {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .rounded {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Card Header Dark Mode */
[data-theme="dark"] .card-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

/* Badge de Nível/Ranque - Padronizado */
.level-badge-large,
.level-badge-small {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-weight: bold;
  color: #fff;
  text-shadow:
    0 2px 8px #000,
    0 1px 0 #222;
  overflow: hidden;
}
.level-badge-large {
  width: 128px;
  height: 128px;
  font-size: 3.5rem;
  margin: 0 auto;
}
.level-badge-small {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}
.level-badge-large span,
.level-badge-small span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  pointer-events: none;
}
/* Reset e Estilos Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Player Ranking Badge */
.badge-lg {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.player-ranking-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

/* ========================================
   MOBILE MENU TOGGLE - PREMIUM
   ======================================== */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.mobile-menu-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.1) 0%,
    rgba(var(--primary-rgb), 0.05) 100%
  );
  opacity: 0;
  border-radius: 14px;
  transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover::before {
  opacity: 1;
}

.mobile-menu-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: scale(1.05);
  box-shadow:
    0 8px 24px rgba(var(--primary-rgb), 0.2),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--text-secondary);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
  position: relative;
  z-index: 1;
}

.mobile-menu-toggle:hover .hamburger-line {
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--accent-primary);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0) rotate(180deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--accent-primary);
}

.mobile-menu-toggle.active {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-rgb), 0.08) 100%
  );
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

/* ========================================
   SIDEBAR PREMIUM REDESIGN
   ======================================== */

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(30, 41, 59, 0.65) 100%
  );
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
  animation: overlayFadeIn 0.4s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px) saturate(100%);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px) saturate(180%);
  }
}

/* Sidebar Container */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: var(--bg-sidebar);
  z-index: 1000;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    8px 0 40px rgba(0, 0, 0, 0.2),
    4px 0 20px rgba(0, 0, 0, 0.1),
    0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
}

/* Sidebar Header - Premium */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  backdrop-filter: blur(10px);
  position: relative;
}

.sidebar-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-header::after {
  opacity: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  position: relative;
}

.sidebar-logo {
  height: 38px;
  width: 210px;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 12px rgba(var(--primary-rgb), 0.4));
}

/* Text-based brand (when no logo) */
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0 0.75rem 0.5rem;
  position: relative;
  border-left: 3px solid transparent;
  border-image: linear-gradient(
      180deg,
      var(--accent-primary) 0%,
      transparent 100%
    )
    1;
  padding-left: 0.875rem;
}

.brand-text-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  position: relative;
  line-height: 1.1;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  text-shadow:
    0 0 20px rgba(var(--primary-rgb), 0.4),
    0 2px 4px rgba(0, 0, 0, 0.6);
}

.brand-text-main::first-letter {
  color: var(--accent-primary);
  font-size: 1.15em;
  font-weight: 900;
}

.brand-text-subtitle {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text-subtitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.5) 0%,
    transparent 100%
  );
  max-width: 40px;
}

.sidebar-close {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-hover-rgb), 0.1) 100%
  );
  color: var(--accent-primary-light);
  border-radius: 12px;
  cursor: pointer;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.15s ease;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.sidebar-close::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease,
    height 0.4s ease;
}

.sidebar-close:hover::before {
  width: 100px;
  height: 100px;
}

.sidebar-close:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.25) 0%,
    rgba(var(--primary-hover-rgb), 0.15) 100%
  );
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.sidebar-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Sidebar Navigation - Premium Scrollbar */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(var(--primary-rgb), 0.4) 0%,
    rgba(var(--primary-rgb), 0.2) 100%
  );
  border-radius: 10px;
  transition: background 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(var(--primary-rgb), 0.6) 0%,
    rgba(var(--primary-rgb), 0.4) 100%
  );
}

/* Nav Sections - Premium */
.nav-section {
  padding: 0.75rem 0;
  position: relative;
}

.nav-section:not(:last-child) {
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

.nav-section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 163, 184, 0.15) 50%,
    transparent 100%
  );
}

.nav-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem 0.625rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.3s ease;
}

.nav-section-label::before {
  content: "";
  width: 3px;
  height: 12px;
  background: linear-gradient(
    180deg,
    var(--accent-primary) 0%,
    var(--accent-primary-hover) 100%
  );
  border-radius: 10px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-section:hover .nav-section-label::before {
  opacity: 1;
}

.nav-section-label i {
  font-size: 0.65rem;
}

/* Nav Items - Premium Design */
.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  position: relative;
  margin: 0.25rem 1rem;
  border-radius: 12px;
  overflow: hidden;
  /* Reset button styles */
  width: calc(100% - 2rem);
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.sidebar-nav .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.08) 0%,
    rgba(var(--primary-rgb), 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.sidebar-nav .nav-item:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.12) 0%,
    rgba(var(--primary-rgb), 0.06) 100%
  );
  color: #e2e8f0;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.sidebar-nav .nav-item:hover::before {
  opacity: 1;
}

.sidebar-nav .nav-item.active {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.12) 0%,
    rgba(var(--primary-rgb), 0.06) 100%
  );
  color: #e2e8f0;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.sidebar-nav .nav-item.active::before {
  opacity: 1;
}

.sidebar-nav .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.1) 0%,
    rgba(148, 163, 184, 0.05) 100%
  );
  border-radius: 11px;
  font-size: 1rem;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  position: relative;
  z-index: 1;
}

.sidebar-nav .nav-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.1) 100%
  );
  border-radius: 11px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-nav .nav-item:hover .nav-icon {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.12) 100%
  );
  color: var(--accent-primary-light);
  transform: scale(1.08) rotate(-5deg);
}

.sidebar-nav .nav-item:hover .nav-icon::before {
  opacity: 1;
}

.sidebar-nav .nav-item.active .nav-icon {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.12) 100%
  );
  color: var(--accent-primary-light);
  transform: scale(1.08) rotate(-5deg);
}

.sidebar-nav .nav-item.active .nav-icon::before {
  opacity: 1;
}

.sidebar-nav .nav-text {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.nav-submenu-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  position: relative;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  overflow: hidden;
}

.nav-submenu-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.08) 0%,
    rgba(var(--primary-rgb), 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-submenu-toggle:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.12) 0%,
    rgba(var(--primary-rgb), 0.06) 100%
  );
  color: #e2e8f0;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.nav-submenu-toggle:hover::before {
  opacity: 1;
}

.nav-submenu-toggle:hover .nav-icon {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.12) 100%
  );
  color: var(--accent-primary-light);
  transform: scale(1.08) rotate(-5deg);
}

.nav-submenu.active > .nav-submenu-toggle,
.nav-submenu.open > .nav-submenu-toggle {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.12) 0%,
    rgba(var(--primary-rgb), 0.06) 100%
  );
  color: #e2e8f0;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.nav-submenu.active > .nav-submenu-toggle::before,
.nav-submenu.open > .nav-submenu-toggle::before {
  opacity: 1;
}

.nav-submenu.active > .nav-submenu-toggle .nav-icon,
.nav-submenu.open > .nav-submenu-toggle .nav-icon {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.12) 100%
  );
  color: var(--accent-primary-light);
  transform: scale(1.08) rotate(-5deg);
}

.nav-submenu-toggle .nav-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 8px;
}

.nav-submenu.open > .nav-submenu-toggle .nav-arrow {
  transform: rotate(180deg);
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--accent-primary-light);
}

.nav-submenu-items {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  padding-left: 0.75rem;

  opacity: 0;
}

.nav-submenu.open > .nav-submenu-items {
  max-height: 600px;
  opacity: 1;
  margin-left: 1rem;
}

.nav-submenu-items .nav-item {
  padding: 0.75rem 1.25rem 0.75rem 2.75rem;
  font-size: 0.85rem;
  margin: 0.125rem 0.5rem;
  position: relative;
}

.nav-submenu-items .nav-item .nav-icon {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

/* Active state for submenu items */
.nav-submenu-items .nav-submenu-toggle.active {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.1) 100%
  );
  color: var(--accent-primary-light);
  border-left: 3px solid var(--accent-primary);
  transform: translateX(4px);
  font-weight: 600;
}

.nav-submenu-items .nav-submenu-toggle.active::before {
  opacity: 1;
}

.nav-submenu-items .nav-submenu-toggle.active .nav-icon {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.3) 0%,
    rgba(var(--primary-rgb), 0.2) 100%
  );
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* Sidebar Footer - Premium User Card */
.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  backdrop-filter: blur(10px);
  position: relative;
}

.sidebar-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.4) 50%,
    transparent 100%
  );
}

.user-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.08) 0%,
    rgba(148, 163, 184, 0.04) 100%
  );
  border-radius: 14px;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.user-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.1) 0%,
    rgba(var(--primary-rgb), 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-card:hover {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.15) 0%,
    rgba(148, 163, 184, 0.08) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.user-card:hover::before {
  opacity: 1;
}

.user-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(var(--primary-rgb), 0.4);
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.user-card:hover .user-avatar {
  border-color: rgba(var(--primary-rgb), 0.6);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.user-avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--accent-primary-light) 0%,
    var(--accent-primary) 50%,
    var(--accent-primary-hover) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: 2px solid rgba(var(--primary-rgb), 0.4);
  box-shadow:
    0 4px 12px rgba(var(--primary-rgb), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.user-card:hover .user-avatar-placeholder {
  transform: scale(1.08) rotate(-3deg);
  box-shadow:
    0 6px 20px rgba(var(--primary-rgb), 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.steam-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background: #171a21;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: white;
  border: 2px solid #0f172a;
}

.user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
  z-index: 1;
}

.user-name {
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.user-card:hover .user-name {
  color: #fff;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.user-role-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-role-badge:hover::before {
  opacity: 1;
}

.user-role-badge.admin {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-hover-rgb), 0.15) 100%
  );
  color: var(--accent-primary-light);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

.user-role-badge.admin:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.3) 0%,
    rgba(var(--primary-hover-rgb), 0.2) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.user-role-badge.mod {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.2) 0%,
    rgba(245, 158, 11, 0.15) 100%
  );
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
}

.user-role-badge.mod:hover {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.3) 0%,
    rgba(245, 158, 11, 0.2) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.logout-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-hover-rgb), 0.1) 100%
  );
  color: var(--accent-primary-light);
  border-radius: 12px;
  text-decoration: none;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  overflow: hidden;
}

.logout-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease,
    height 0.4s ease;
}

.logout-btn:hover::before {
  width: 80px;
  height: 80px;
}

.logout-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.25) 0%,
    rgba(var(--primary-hover-rgb), 0.15) 100%
  );
  color: #fef2f2;
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.logout-btn:active {
  transform: scale(0.95) rotate(-10deg);
}

.logout-btn i {
  position: relative;
  z-index: 1;
}

/* Legacy nav-link support */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
}

.nav-link:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--accent-primary);
}

.nav-link.active {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--accent-primary);
  border-right: 3px solid var(--accent-primary);
}

.nav-link i {
  width: 20px;
  font-size: 1rem;
}

.nav-section-title {
  padding: 1rem 1.5rem 0.5rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid #334155;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-section-title:first-of-type {
  border-top: none;
  margin-top: 1rem;
}

/* Avatar Inicial */
.avatar-initial {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Main Content */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  background: var(--bg-primary);
  transition: all 0.3s ease;
}

/* ========================================
   TOPBAR PREMIUM REDESIGN
   ======================================== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  min-height: 80px;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition:
    all 0.3s ease,
    box-shadow 0.3s ease;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topbar:hover::after {
  opacity: 1;
}

.topbar-left {
  flex: 1;
  min-width: 0;
  position: relative;
}

.topbar-left .page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleFadeIn 0.6s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-left .page-title-icon,
.page-title .page-title-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  background: none;
  -webkit-text-fill-color: var(--accent-primary);
  animation: iconFadeIn 0.4s ease;
  transition: transform 0.3s ease, color 0.3s ease;
}

.topbar-left .page-title-icon:hover,
.page-title .page-title-icon:hover {
  transform: scale(1.1);
}

@keyframes iconFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar-left .page-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.375rem 0 0 0;
  font-weight: 500;
  animation: subtitleFadeIn 0.8s ease;
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile actions toggle - hidden on desktop */
.topbar-actions-toggle {
  display: none;
}

/* Action Buttons Group */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Unified Topbar Button - Premium */
.topbar-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.05rem;
  cursor: pointer;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topbar-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-rgb), 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.topbar-btn:hover::before {
  opacity: 1;
}

.topbar-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 6px 20px rgba(var(--primary-rgb), 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.topbar-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.topbar-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.topbar-btn:hover i {
  transform: scale(1.1);
}

/* Topbar Button Badge - Premium with Animation */
.topbar-btn-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-primary-hover) 50%,
    var(--accent-primary-hover) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(var(--primary-rgb), 0.5),
    0 0 0 2px var(--bg-card),
    0 0 0 4px rgba(var(--primary-rgb), 0.2);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 4px 12px rgba(var(--primary-rgb), 0.5),
      0 0 0 2px var(--bg-card),
      0 0 0 4px rgba(var(--primary-rgb), 0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow:
      0 6px 16px rgba(var(--primary-rgb), 0.6),
      0 0 0 2px var(--bg-card),
      0 0 0 6px rgba(var(--primary-rgb), 0.3);
  }
}

/* Language Button - Premium */
.topbar-btn-lang {
  width: auto;
  padding: 0 1rem;
  gap: 0.625rem;
  min-width: 80px;
}

.topbar-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar-btn-lang:hover .topbar-flag {
  transform: scale(1.1) rotate(-5deg);
}

.topbar-lang-code {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.topbar-lang-arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  position: relative;
  z-index: 1;
}

.topbar-btn-lang:hover .topbar-lang-arrow {
  opacity: 1;
  transform: translateY(2px);
}

.dropdown.show .topbar-lang-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.topbar-lang-menu {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow:
    var(--shadow-lg),
    0 8px 32px rgba(0, 0, 0, 0.15);
  background: var(--bg-card);
  overflow: hidden;
  min-width: 180px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: dropdownSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topbar-lang-menu .dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  font-weight: 600;
  transition:
    all 0.2s ease,
    background 0.15s ease;
  position: relative;
}

.topbar-lang-menu .dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topbar-lang-menu .dropdown-item:hover {
  background: var(--bg-hover);
  padding-left: 1.5rem;
}

.topbar-lang-menu .dropdown-item:hover::before {
  opacity: 1;
}

.topbar-lang-menu .dropdown-item.active {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-rgb), 0.08) 100%
  );
  color: var(--accent-primary);
}

.topbar-lang-menu .dropdown-item.active::before {
  opacity: 1;
}

.topbar-lang-menu .dropdown-item img {
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.topbar-lang-menu .dropdown-item:hover img {
  transform: scale(1.1);
}

/* Theme Toggle Icons */
.topbar-btn .theme-icon-light,
.topbar-btn .theme-icon-dark {
  position: absolute;
  transition: all 0.3s ease;
}

.topbar-btn .theme-icon-light {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.topbar-btn .theme-icon-dark {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .topbar-btn .theme-icon-light {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .topbar-btn .theme-icon-dark {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* Search Bar - Premium Design */
.topbar-search {
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border-color);
}

.topbar-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.topbar-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition:
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.topbar-search-form:focus-within .topbar-search-icon {
  color: var(--accent-primary);
  transform: scale(1.15) rotate(-10deg);
}

.topbar-search-input {
  width: 22rem;
  padding: 0.625rem 3rem 0.625rem 2.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  outline: none;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topbar-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.topbar-search-input:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.topbar-search-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-card);
  box-shadow:
    0 0 0 4px rgba(var(--primary-rgb), 0.15),
    0 8px 24px rgba(var(--primary-rgb), 0.2);
  transform: translateY(-1px);
}

.topbar-search-input:focus + .topbar-search-kbd,
.topbar-search-input:not(:placeholder-shown) + .topbar-search-kbd {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.topbar-search-kbd {
  position: absolute;
  right: 12px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", monospace;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  pointer-events: none;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.05em;
}

/* Topbar Autocomplete Dropdown - Premium */
.topbar-autocomplete {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow:
    var(--shadow-lg),
    0 12px 48px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 9999;
  max-height: 450px;
  overflow-y: auto;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
}

.topbar-autocomplete::-webkit-scrollbar {
  width: 6px;
}

.topbar-autocomplete::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.topbar-autocomplete::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(var(--primary-rgb), 0.4) 0%,
    rgba(var(--primary-rgb), 0.2) 100%
  );
  border-radius: 10px;
}

.topbar-autocomplete::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(var(--primary-rgb), 0.6) 0%,
    rgba(var(--primary-rgb), 0.4) 100%
  );
}

.topbar-autocomplete.show {
  display: block;
  animation: autocompleteSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes autocompleteSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topbar-autocomplete-section {
  padding: 0.75rem 0;
}

.topbar-autocomplete-section:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.topbar-autocomplete-title {
  padding: 0.625rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-autocomplete-title i {
  font-size: 0.75rem;
  color: var(--accent-primary);
}

.topbar-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition:
    all 0.2s ease,
    background 0.15s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  margin: 0.125rem 0.5rem;
  border-radius: 10px;
}

.topbar-autocomplete-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.08) 0%,
    rgba(var(--primary-rgb), 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.topbar-autocomplete-item:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.topbar-autocomplete-item:hover::before {
  opacity: 1;
}

.topbar-autocomplete-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.topbar-autocomplete-item:hover .topbar-autocomplete-avatar {
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.topbar-autocomplete-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.topbar-autocomplete-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.topbar-autocomplete-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.topbar-autocomplete-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--bg-tertiary);
}

.topbar-autocomplete-badge {
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-rgb), 0.08) 100%
  );
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.topbar-autocomplete-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.topbar-autocomplete-empty i {
  font-size: 2rem;
  opacity: 0.5;
}

.topbar-autocomplete-footer {
  padding: 1rem 1.25rem 1.125rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.03) 100%
  );
}

.topbar-autocomplete-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: 12px;
  border: 1.5px solid rgba(var(--primary-rgb), 0.3);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.08) 0%,
    rgba(var(--primary-rgb), 0.04) 100%
  );
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.15);
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.topbar-autocomplete-footer a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-rgb), 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topbar-autocomplete-footer a:hover::before {
  opacity: 1;
}

.topbar-autocomplete-footer a:hover,
.topbar-autocomplete-footer a:focus-visible {
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px) scale(1.02);
}

.topbar-autocomplete-footer a i {
  position: relative;
  z-index: 1;
}

.topbar-autocomplete-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.1) 0%,
    rgba(148, 163, 184, 0.05) 100%
  );
  border-radius: 10px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.topbar-autocomplete-loading {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.topbar-autocomplete-loading i {
  font-size: 1.25rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Legacy support - remover depois */
.notification-bell-btn {
  position: relative;
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 0.5rem !important;
}

.notification-bell-btn:hover {
  color: var(--accent-primary);
}

.notification-badge-count {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-primary-hover)
  );
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.4);
}

/* ========================================
   NOTIFICATIONS DROPDOWN - PREMIUM
   ======================================== */

.notifications-dropdown-menu {
  width: 400px;
  max-width: calc(100vw - 2rem);
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow:
    var(--shadow-lg),
    0 12px 48px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  background: var(--bg-card);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  animation: notificationsSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes notificationsSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notifications-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary-light) 0%,
    var(--accent-primary) 50%,
    var(--accent-primary) 100%
  );
  color: white;
  position: relative;
  overflow: hidden;
}

.notifications-dropdown-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
}

.notifications-dropdown-header h6 {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notifications-dropdown-header .badge {
  background: rgba(255, 255, 255, 0.25) !important;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.625rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.notifications-dropdown-body {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
}

.notifications-dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.notifications-dropdown-body::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.notifications-dropdown-body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(var(--primary-rgb), 0.4) 0%,
    rgba(var(--primary-rgb), 0.2) 100%
  );
  border-radius: 10px;
}

.notifications-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.notifications-empty i {
  font-size: 3rem;
  opacity: 0.4;
  color: var(--accent-primary);
}

.notifications-empty p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.notification-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition:
    all 0.2s ease,
    background 0.15s ease;
  position: relative;
  cursor: pointer;
}

.notification-dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--primary-rgb), 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notification-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.notification-dropdown-item:hover::before {
  opacity: 1;
}

.notification-dropdown-item.unread {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.08) 0%,
    rgba(var(--primary-rgb), 0.04) 100%
  );
}

.notification-dropdown-item.read {
  opacity: 0.7;
}

.notification-dropdown-item.read:hover {
  opacity: 1;
}

.notification-dropdown-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.notification-dropdown-item:hover .notification-dropdown-icon {
  transform: scale(1.1) rotate(-5deg);
}

.notification-dropdown-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.notification-dropdown-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}

.notification-dropdown-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

.notification-dropdown-time i {
  font-size: 0.7rem;
}

.notification-unread-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(
    135deg,
    var(--accent-primary-light) 0%,
    var(--accent-primary) 100%
  );
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  box-shadow:
    0 0 12px rgba(var(--primary-rgb), 0.6),
    0 2px 4px rgba(var(--primary-rgb), 0.4);
  animation: notificationDotPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes notificationDotPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 12px rgba(var(--primary-rgb), 0.6),
      0 2px 4px rgba(var(--primary-rgb), 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow:
      0 0 20px rgba(var(--primary-rgb), 0.8),
      0 4px 8px rgba(var(--primary-rgb), 0.5);
  }
}

.notifications-dropdown-footer {
  padding: 1rem 1.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.03) 100%
  );
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.notifications-dropdown-footer a {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition:
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.notifications-dropdown-footer a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.1) 0%,
    rgba(var(--primary-rgb), 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.notifications-dropdown-footer a:hover::before {
  opacity: 1;
}

.notifications-dropdown-footer a:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.notifications-dropdown-footer a i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.notifications-dropdown-footer a:hover i {
  transform: scale(1.1);
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* Cards Modernos */
.card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header-modern {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  color: var(--text-primary);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card.primary {
  border-left-color: var(--accent-primary);
}

.stat-card.success {
  border-left-color: #10b981;
}

.stat-card.danger {
  border-left-color: var(--accent-primary);
}

.stat-card.warning {
  border-left-color: #f59e0b;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0.8;
}

/* Tabelas Modernas */
.table-modern {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}

.table-modern thead th {
  background: var(--bg-tertiary);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.table-modern tbody td {
  padding: 1rem 1.5rem;
  border: none;
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-primary);
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.table-modern tbody tr:hover {
  background: var(--bg-tertiary);
}

/* Badges Modernos */
.badge-modern {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-live {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-primary-hover)
  );
  color: white;
  animation: pulse-live 2s infinite;
}

/* Botões Modernos */
.btn-modern {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
  color: white;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Formulários Modernos */
.form-modern {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Animações */
@keyframes pulse-live {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease;
}

/* ========================================
   RESPONSIVIDADE PREMIUM
   ======================================== */

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
    animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow:
      12px 0 48px rgba(0, 0, 0, 0.3),
      8px 0 24px rgba(0, 0, 0, 0.2);
  }

  .sidebar.show {
    transform: translateX(0);
    animation: slideInBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes slideInBounce {
    from {
      transform: translateX(-100%);
      opacity: 0.8;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    padding-left: 5rem;
    min-height: auto;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .topbar {
    padding: 1rem;
    padding-left: 4.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: auto;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
    position: relative;
  }

  .topbar-actions-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    order: 1;
  }

  .topbar-actions-toggle:hover,
  .topbar-actions-toggle.active {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
  }

  .topbar-actions {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    gap: 0.4rem;
    flex-direction: row;
    align-items: center;
  }

  .topbar-actions.show {
    display: flex;
  }

  .topbar-search {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    flex: 1;
    min-width: 0;
    order: 0;
  }

  .topbar-search-input {
    width: 100%;
  }

  .topbar-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .topbar-btn-lang {
    padding: 0 0.5rem;
    flex-shrink: 0;
  }

  .topbar-lang-code {
    font-size: 0.75rem;
  }

  .topbar-search-kbd {
    display: none;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .page-subtitle {
    font-size: 0.875rem;
  }

  .content-wrapper {
    padding: 1rem;
  }

  /* Mobile sidebar improvements */
  .sidebar {
    width: 280px;
  }

  .sidebar-nav .nav-item {
    padding: 0.875rem 1.25rem;
  }

  .sidebar-nav .nav-icon {
    width: 40px;
    height: 40px;
  }

  .user-card {
    padding: 0.875rem;
  }

  .user-avatar,
  .user-avatar-placeholder {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-toggle {
    top: 0.75rem;
    left: 0.75rem;
    width: 40px;
    height: 40px;
  }

  .hamburger-line {
    width: 18px;
    height: 2px;
  }

  .topbar {
    padding: 0.75rem;
    padding-left: 3.5rem;
  }

  .topbar-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .topbar-btn-lang {
    padding: 0 0.4rem;
    gap: 0.25rem;
  }

  .topbar-lang-code,
  .topbar-lang-arrow {
    display: none;
  }

  .topbar-search-input {
    padding: 0.4rem 0.6rem 0.4rem 2rem;
    font-size: 0.8rem;
  }

  .notifications-dropdown-menu {
    position: fixed !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    transform: none !important;
  }

  .sidebar {
    width: 100%;
    max-width: 300px;
  }
}

/* Login Page - CS2 (Clean) */
.cs2-login {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Rajdhani", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.cs2-login-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cs2-login-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
}

.cs2-login-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 14, 18, 0.9) 0%,
    rgba(18, 20, 24, 0.9) 50%,
    rgba(12, 14, 18, 0.9) 100%
  );
}

.cs2-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 48, 32, 0.08),
      transparent 45%
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(var(--primary-rgb), 0.06),
      transparent 50%
    );
  pointer-events: none;
  z-index: 1;
}

.cs2-socials {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 3;
}

.cs2-social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  text-decoration: none;
  border: 1px solid rgba(248, 250, 252, 0.15);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cs2-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.3);
  color: #ffffff;
}

.cs2-lang-toggle {
  gap: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs2-lang-code {
  font-size: 0.75rem;
}

.cs2-lang-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.35rem;
  min-width: 170px;
  box-shadow: var(--shadow-md);
}

.cs2-lang-item {
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cs2-lang-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.cs2-lang-item.active {
  background: rgba(232, 48, 32, 0.12);
  color: #c5281a;
}

.cs2-lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.cs2-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 860px;
  margin: 0 auto 0 6vw;
  position: relative;
  z-index: 2;
}

.cs2-login-shell.single-panel {
  max-width: 720px;
  margin: 0 auto 0 clamp(1.5rem, 0vw, 9rem);
}

.cs2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(232, 48, 32, 0.12);
  border: 1px solid rgba(232, 48, 32, 0.35);
  color: #c5281a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs2-hero-strip {
  display: flex;
  justify-self: center;
  gap: 2rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cs2-hero-strip i {
  color: var(--accent-primary-hover);
}

.cs2-hero-strip-compact {
  margin-bottom: 1.5rem;
}

.cs2-login-panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  animation: cs2-fade-rise 0.7s ease 0.05s both;
}

.cs2-login-panel::before {
  display: none;
}

.cs2-panel-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.cs2-logo {
  width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.cs2-logo-hero {
  width: min(320px, 70vw);
}

.cs2-panel-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.cs2-panel-subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cs2-alert {
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-light-rgb), 0.35);
  background: rgba(var(--primary-light-rgb), 0.08);
  color: var(--accent-primary-hover);
}

.cs2-alert.alert-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

.cs2-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.login-divider span {
  padding: 0 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.6);
}

.cs2-field .form-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.cs2-input {
  position: relative;
  display: flex;
  align-items: center;
}

.cs2-input i {
  position: absolute;
  left: 1rem;
  color: var(--text-tertiary);
  font-size: 0.95rem;
  z-index: 2;
}

.cs2-login .form-control-cs2 {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.cs2-login .form-control-cs2::placeholder {
  color: var(--text-tertiary);
}

.cs2-login .form-control-cs2:focus {
  border-color: rgba(232, 48, 32, 0.7);
  box-shadow: 0 0 0 3px rgba(232, 48, 32, 0.12);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-cs2-primary {
  background: linear-gradient(135deg, #e83020 0%, #c5281a 100%);
  border: none;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 10px 18px rgba(232, 48, 32, 0.25);
}

.btn-cs2-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(232, 48, 32, 0.3);
  color: #0f172a;
}

.btn-cs2-primary:active {
  transform: translateY(0);
}

.cs2-divider {
  margin: 1.75rem 0 1.25rem;
}

.cs2-divider::before,
.cs2-divider::after {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cs2-divider span {
  color: var(--text-tertiary);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.cs2-login .btn-steam {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.35);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.cs2-login .btn-steam img {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.cs2-login .btn-steam:hover {
  background: linear-gradient(135deg, #1f3246 0%, #345874 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.3);
}

.cs2-footnote {
  color: var(--text-tertiary) !important;
}

.cs2-stagger .cs2-field,
.cs2-stagger .btn-cs2-primary {
  opacity: 0;
  animation: cs2-stagger 0.7s ease forwards;
}

.cs2-stagger .cs2-field:nth-of-type(1) {
  animation-delay: 0.05s;
}

.cs2-stagger .cs2-field:nth-of-type(2) {
  animation-delay: 0.15s;
}

.cs2-stagger .btn-cs2-primary {
  animation-delay: 0.25s;
}

@keyframes cs2-fade-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cs2-stagger {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .cs2-login-shell {
    grid-template-columns: 1fr;
    margin: 0 auto !important;
  }
}

@media (max-width: 720px) {
  .cs2-login-shell {
    padding: 1rem;
    margin: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  .cs2-panel-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cs2-logo {
    width: min(260px, 80vw);
  }

  .cs2-login-panel {
    border-radius: 14px;
    padding: 1.4rem 1.1rem 1.6rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  }

  .cs2-hero-strip {
    font-size: 0.85rem;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .cs2-hero-strip-compact {
    justify-content: center;
    text-align: center;
  }

  .cs2-login-video {
    display: none;
  }

  .cs2-login::before {
    background:
      radial-gradient(
        circle at top right,
        rgba(232, 48, 32, 0.08),
        transparent 50%
      ),
      radial-gradient(
        circle at 20% 20%,
        rgba(var(--primary-rgb), 0.05),
        transparent 60%
      );
  }

  .cs2-socials {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs2-login-video {
    display: none;
  }
}

@media (max-width: 480px) {
  .cs2-login-shell {
    padding: 0.75rem;
  }

  .cs2-login-panel {
    border-radius: 12px;
    padding: 1.2rem 1rem 1.4rem;
    max-width: 100%;
  }

  .cs2-hero-strip {
    justify-content: center;
    text-align: center;
  }
}

/* User Avatar */
.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

/* Avatar Level Badge */
.avatar-badge {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.6rem !important;
  position: absolute;
  bottom: -4px;
  right: -4px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-badge span {
  font-size: 0.55rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-weight: 700;
  line-height: 1;
}

.user-avatar-sm {
  width: 24px;
  height: 24px;
}

.user-avatar-lg {
  width: 48px;
  height: 48px;
}

/* Utilitários */
.text-primary {
  color: var(--accent-primary) !important;
}
.text-secondary {
  color: #6b7280 !important;
}
.text-success {
  color: #10b981 !important;
}
.text-danger {
  color: var(--accent-primary) !important;
}
.text-warning {
  color: #f59e0b !important;
}

.bg-primary {
  background: var(--accent-primary) !important;
}
.bg-secondary {
  background: #6b7280 !important;
}
.bg-success {
  background: #10b981 !important;
}
.bg-danger {
  background: var(--accent-primary) !important;
}
.bg-warning {
  background: #f59e0b !important;
}

.content-wrapper {
  padding: 2rem;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* ===== SISTEMA DE SÉRIES ===== */

/* Progress Steps */
.progress-steps {
  text-align: center;
}

.progress-steps .d-flex {
  position: relative;
}

.progress-steps .step {
  flex: 1;
  position: relative;
}

.progress-steps .step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
  transform: translateY(-50%);
}

.progress-steps .step:last-child::before {
  display: none;
}

.progress-steps .step.active::before {
  background: #007bff;
}

.progress-steps .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.progress-steps .step.active .step-icon {
  background: #007bff;
  color: white;
}

.progress-steps .step-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
}

.progress-steps .step.active .step-title {
  color: #007bff;
}

/* Team Cards */
.team-matchup {
  padding: 20px 0;
  text-align: center;
}

.team-matchup .team1-name,
.team-matchup .team2-name {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 10px;
}

.team-matchup .team1-name {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.team-matchup .team2-name {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.team-matchup .vs {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6c757d;
  margin: 0 15px;
}

/* Badge Styles */
.badge-lg {
  font-size: 0.9rem;
  padding: 8px 12px;
}

.badge-info {
  background-color: #17a2b8 !important;
  color: white;
}

.badge-warning {
  background-color: #ffc107 !important;
  color: #212529;
}

.badge-success {
  background-color: #28a745 !important;
  color: white;
}

.badge-danger {
  background-color: #dc3545 !important;
  color: white;
}

.badge-secondary {
  background-color: #6c757d !important;
  color: white;
}

/* SteamID Input Enhancement */
.steamid-input.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.8-.8-.8 1.4-1.4L7 7.3l1.4-1.4-1.4-1.4-.8-.8.8-.8-.8-.8L3 4.3l-1.4 1.4 1.4 1.4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Maps Display */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.map-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.map-card:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.map-card.banned {
  background: #f8f9fa;
  border-color: #dc3545;
  opacity: 0.6;
}

.map-card.picked {
  background: #d4edda;
  border-color: #28a745;
}

.map-card .map-image {
  height: 80px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 6px;
}

.map-card .map-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.map-card .map-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.map-card .map-status {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e9ecef;
  color: #6c757d;
  display: inline-block;
}

.map-card .map-status.banned {
  background: #f5c6cb;
  color: #721c24;
}

.map-card .map-status.picked {
  background: #d1ecf1;
  color: #0c5460;
}

/* Series Status */
.series-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.scheduled {
  background: #ffc107;
  animation: pulse 2s infinite;
}

.status-indicator.live {
  background: #28a745;
  animation: pulse 1s infinite;
}

.status-indicator.completed {
  background: #6c757d;
}

.status-indicator.cancelled {
  background: #dc3545;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

[data-theme="light"] .btn-back {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.btn-back:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

[data-theme="light"] .btn-back:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
    opacity: 0.5;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .progress-steps .step-title {
    display: none;
  }

  .team-matchup .team1-name,
  .team-matchup .team2-name {
    font-size: 1rem;
    margin: 5px 0;
    display: block;
  }

  .maps-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}
