:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #10121a;
  --bg-tertiary: #161824;
  --bg-glass: rgba(18, 20, 32, 0.72);
  --bg-glass-elevated: rgba(28, 31, 48, 0.82);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  
  
  --cat-halloween: #ff5400;
  --cat-midnight: #9d4edd;
  --cat-vocal: #06b6d4;
  
  
  
  --role-abus-start: #ae1c1c;
  --role-abus-end: #51060d;
  
  
  --role-staff-start: #508fce;
  --role-staff-end: #b2f9ff;
  
  
  --role-mod-start: #b185e0;
  --role-mod-end: #e9c9ff;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

.main-wrapper, .sidebar, .custom-table, .podium-card {
  will-change: transform, scroll-position;
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(174, 28, 28, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(80, 143, 206, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(177, 133, 224, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}


::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--role-staff-start);
}


.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.brand-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(174, 28, 28, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: #111;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b2f9ff;
  background: rgba(80, 143, 206, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 2px;
  border: 1px solid rgba(178, 249, 255, 0.3);
}

.nav-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0 12px;
  margin-bottom: 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(80, 143, 206, 0.18), rgba(80, 143, 206, 0.04));
  border-left: 3px solid var(--role-staff-start);
  box-shadow: inset 0 0 20px rgba(80, 143, 206, 0.1);
}

.nav-badge-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active .nav-badge-count {
  background: linear-gradient(135deg, var(--role-staff-start), var(--role-staff-end));
  color: #000;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.82rem;
  color: var(--accent-green);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.top-header {
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-title-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-title-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

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


.content-body {
  padding: 32px 36px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}


.podium-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 0px;
  flex-wrap: wrap;
}

.podium-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.podium-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.podium-filter-btn.active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(234, 179, 8, 0.1));
  border-color: rgba(234, 179, 8, 0.5);
  color: #fef08a;
  box-shadow: 0 4px 14px -2px rgba(234, 179, 8, 0.25);
}

.role-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.podium-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: flex-end;
}

.podium-card {
  position: relative;
  background: var(--bg-glass-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: var(--transition);
}

.podium-card:hover {
  transform: translateY(-4px);
}

.podium-rank-1 {
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: 0 20px 40px -5px rgba(234, 179, 8, 0.2);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.1) 0%, var(--bg-glass-elevated) 100%);
  padding: 32px 24px;
  transform: translateY(-12px);
  z-index: 2;
}

.podium-rank-1:hover {
  transform: translateY(-16px);
}

.podium-rank-2 {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.05) 0%, var(--bg-glass-elevated) 100%);
}

.podium-rank-3 {
  border-color: rgba(217, 119, 6, 0.3);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.05) 0%, var(--bg-glass-elevated) 100%);
}

.podium-badge-prize {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prize-nitro {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.prize-deco {
  background: linear-gradient(135deg, var(--role-staff-start), var(--role-staff-end));
  color: #0b1329;
}

.podium-avatar-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
}

.podium-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.podium-rank-tag {
  position: absolute;
  bottom: -6px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.rank-1-tag { border-color: #eab308; color: #eab308; }
.rank-2-tag { border-color: #94a3b8; color: #94a3b8; }
.rank-3-tag { border-color: #d97706; color: #d97706; }

.podium-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.podium-role {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.podium-time {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.podium-time-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}


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

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

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

.stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}


.data-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-filter-bar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover, .filter-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}


.filter-pill.active-role-abus {
  background: linear-gradient(135deg, rgba(174, 28, 28, 0.25), rgba(81, 6, 13, 0.4));
  color: #ff8585;
  border-color: rgba(174, 28, 28, 0.6);
  box-shadow: 0 0 15px rgba(174, 28, 28, 0.3);
}

.filter-pill.active-role-staff {
  background: linear-gradient(135deg, rgba(80, 143, 206, 0.25), rgba(178, 249, 255, 0.15));
  color: #b2f9ff;
  border-color: rgba(80, 143, 206, 0.6);
  box-shadow: 0 0 15px rgba(80, 143, 206, 0.3);
}

.filter-pill.active-role-mod {
  background: linear-gradient(135deg, rgba(177, 133, 224, 0.25), rgba(233, 201, 255, 0.15));
  color: #e9c9ff;
  border-color: rgba(177, 133, 224, 0.6);
  box-shadow: 0 0 15px rgba(177, 133, 224, 0.3);
}

.search-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  width: 240px;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--role-staff-start);
  box-shadow: 0 0 10px rgba(80, 143, 206, 0.3);
}


.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table th {
  text-align: left;
  padding: 14px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table th.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.custom-table th.sortable-th:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.custom-table th.sortable-th .th-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.custom-table th.sortable-th .sort-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}

.custom-table th.sortable-th:hover .sort-icon {
  opacity: 0.8;
}

.custom-table th.sortable-th.sort-active {
  color: #06b6d4;
}

.custom-table th.sortable-th.sort-active .sort-icon {
  opacity: 1;
}

.custom-table td {
  padding: 16px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.user-info-text .name {
  font-weight: 600;
  color: #fff;
}

.user-info-text .tag {
  font-size: 0.75rem;
  color: var(--text-dim);
}


.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}


.tag-abus {
  background: linear-gradient(135deg, rgba(174, 28, 28, 0.35), rgba(81, 6, 13, 0.6));
  color: #ff9999;
  border: 1px solid #ae1c1c;
  box-shadow: 0 0 12px rgba(174, 28, 28, 0.3);
}


.tag-staff {
  background: linear-gradient(135deg, rgba(80, 143, 206, 0.35), rgba(178, 249, 255, 0.2));
  color: #b2f9ff;
  border: 1px solid #508fce;
  box-shadow: 0 0 12px rgba(80, 143, 206, 0.3);
}


.tag-mod {
  background: linear-gradient(135deg, rgba(177, 133, 224, 0.35), rgba(233, 201, 255, 0.2));
  color: #e9c9ff;
  border: 1px solid #b185e0;
  box-shadow: 0 0 12px rgba(177, 133, 224, 0.3);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.time-counter {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-toggle-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (max-width: 1024px) {
  .podium-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .podium-rank-1 {
    order: -1;
    transform: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .top-header {
    padding: 14px 18px;
  }

  .header-title-block h2 {
    font-size: 1.15rem;
  }

  .content-body {
    padding: 16px 14px 40px;
    gap: 20px;
  }

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

  .table-filter-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-group {
    flex-wrap: wrap;
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .custom-table th, .custom-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.settings-modal-card {
  position: relative;
  background: #0f121d;
  background: radial-gradient(120% 120% at 50% 0%, #171b2e 0%, #0c0e18 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.85), 
              0 0 40px -10px rgba(139, 92, 246, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: visible;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-glow-bg {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 120px;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 24px 24px 0 0;
}

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

.settings-modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.settings-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
}

.settings-header-title h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.settings-header-title p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.settings-close-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settings-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  transform: rotate(90deg);
}

.settings-modal-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.settings-toggle-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s;
}

.settings-toggle-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.toggle-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-badge-status {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.toggle-badge-status.inactive {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

.toggle-card-info strong {
  font-size: 0.98rem;
  color: #fff;
  font-weight: 600;
}

.toggle-card-info small {
  font-size: 0.8rem;
  color: #94a3b8;
}

.premium-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-switch input:checked + .switch-slider {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}

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

.settings-grid-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}

.custom-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.control-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dropdown-trigger:hover, .dropdown-trigger.active {
  border-color: #8b5cf6;
  background: rgba(18, 22, 38, 0.95);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.dropdown-arrow {
  transition: transform 0.2s;
  color: #94a3b8;
}

.dropdown-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
  color: #c084fc;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #111422;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(139, 92, 246, 0.15);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}

.dropdown-menu.active {
  display: flex;
  animation: fadeInModal 0.18s ease;
}

.dropdown-option {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.dropdown-option:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
  transform: translateX(4px);
}

.dropdown-option.selected {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.15));
  color: #fff;
  font-weight: 700;
  border-left: 3px solid #8b5cf6;
}

.custom-time-picker {
  width: 100%;
}

.time-select-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(10, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-select-wrapper:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
  background: rgba(18, 22, 38, 0.95);
}

.time-select-styled {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: inherit;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}

.time-select-styled:hover {
  background: rgba(255, 255, 255, 0.06);
}

.time-select-styled option {
  background: #111422;
  color: #fff;
  font-size: 1rem;
  padding: 6px;
}

.time-separator {
  font-size: 1.25rem;
  font-weight: 800;
  color: #a78bfa;
  user-select: none;
}

.premium-status-box {
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  flex-shrink: 0;
}

.status-box-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-caption {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
}

.status-text {
  font-size: 0.83rem;
  color: #e0f2fe;
}

.premium-danger-zone {
  border-top: 1px dashed rgba(239, 68, 68, 0.22);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.danger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.danger-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f87171;
}

.danger-sub {
  font-size: 0.74rem;
  color: #64748b;
}

.btn-premium-danger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(185, 28, 28, 0.16));
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-danger:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(220, 38, 38, 0.32));
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.settings-modal-footer {
  padding: 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0 0 24px 24px;
  position: relative;
  z-index: 2;
}

.btn-modal-ghost {
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-modal-save {
  padding: 11px 24px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-save:hover {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.65);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.modal-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.12);
}

.modal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.modal-tab-btn:hover {
  color: #fff;
}

.modal-tab-btn.active {
  color: #fff;
  border-bottom-color: #8b5cf6;
  font-weight: 700;
}

.logs-badge-count {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.25);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.logs-intro-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-refresh-logs {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-refresh-logs:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.4);
}

.logs-history-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.logs-empty-state {
  text-align: center;
  padding: 30px 20px;
  color: #94a3b8;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  line-height: 1.6;
}

.log-entry-card {
  background: rgba(10, 13, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.log-entry-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.log-card-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.log-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-type-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.log-type-tag.tag-auto {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.log-type-tag.tag-manual {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.log-card-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.log-card-meta {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

.btn-log-toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.log-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.log-card-details {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  max-height: 240px;
  overflow-y: auto;
}

.log-members-table {
  width: 100%;
  border-collapse: collapse;
}

.log-members-table th {
  padding: 8px 14px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-members-table td {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.log-user-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-user-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.82rem;
}

.log-role-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.goal-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 27, 75, 0.85));
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.goal-banner-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}

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

.goal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.goal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
  color: #fff;
}

.goal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.goal-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.goal-stats-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.goal-current-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

.goal-target-val {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 600;
}

.goal-progress-bar-bg {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.goal-progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #38bdf8, #10b981);
  background-size: 200% 100%;
  animation: gradientFlow 4s ease infinite;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

.goal-milestones {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

.staff-badges-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-pilier {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-chouette {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-regulier {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-marathon {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.chart-container-wrap {
  position: relative;
  height: 260px;
  width: 100%;
}

.hall-of-fame-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.hall-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hall-card:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 179, 8, 0.3);
}

.hall-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hall-date-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hall-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.hall-winner-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hall-winner-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.hall-winner-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-rank-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
}

.hall-rank-1 { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.hall-rank-2 { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.hall-rank-3 { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: #0d121f;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-panel.active {
  transform: translateX(0);
}

.drawer-header {
  position: relative;
  padding: 30px 24px 20px;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.7) 0%, rgba(13, 18, 31, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.drawer-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.drawer-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
}

.drawer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.drawer-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #0d121f;
  background: #64748b;
}

.drawer-status-dot.connected {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.drawer-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.drawer-tag {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 2px;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drawer-mini-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
}

.drawer-mini-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
}

.drawer-mini-stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.drawer-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sessions-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.82rem;
}

.session-channel-name {
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-cat-name {
  font-size: 0.72rem;
  color: #64748b;
}

.session-dur {
  font-weight: 700;
  color: #a855f7;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.clickable-row:hover {
  background-color: rgba(168, 85, 247, 0.08) !important;
}



