/* Enhanced Dashboard Styles */

/* Smooth Animations */
* {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* ============================================
   Leaderboard Card Redesign
   ============================================ */

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.favorite-btn {
  color: #fbbf24;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.favorite-btn:hover {
  color: #fcd34d;
  transform: scale(1.1);
}

/* Card Title */
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 0.25rem;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(17, 24, 39, 0.5);
  padding: 1px 3px;
  border-radius: 2px;
  min-width: 0;
  overflow: hidden;
}

.stats-grid .stat-label,
.leaderboard-card .stat-label {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.2;
  flex-shrink: 0;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #9ca3af !important;
  background-clip: unset !important;
}

.stats-grid .stat-value,
.leaderboard-card .stat-value {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  background-clip: unset !important;
}

/* Card Actions */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.card-actions-row {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.card-actions-row .card-btn {
  flex: 1;
}

/* Card Buttons */
.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.card-btn i {
  font-size: 0.625rem;
}

.card-btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #fff;
}

.card-btn-primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  transform: translateY(-1px);
}

.card-btn-secondary {
  background: rgba(55, 65, 81, 0.8);
  color: #d1d5db;
  border: 1px solid rgba(75, 85, 99, 0.5);
}

.card-btn-secondary:hover {
  background: rgba(75, 85, 99, 0.8);
  color: #fff;
}

.card-btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #fff;
}

.card-btn-discord:hover {
  background: linear-gradient(135deg, #6d7af5 0%, #5865F2 100%);
}

.card-btn-disabled {
  background: rgba(55, 65, 81, 0.4);
  color: #6b7280;
  cursor: not-allowed;
}

.card-btn-full {
  width: 100%;
}

/* Rank Badge */
.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
}

/* Rank Title Badge (for players) */
.rank-title-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(147, 51, 234, 0.2);
  color: #c084fc;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Faction Tag Badge */
.faction-tag-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Console Badges */
.console-badge-xbox {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.console-badge-playstation {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Featured Card */
.featured-card {
  position: relative;
  padding-top: 2.5rem;
}

.featured-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}

.featured-badge i {
  font-size: 0.625rem;
}

.featured-notes {
  font-size: 0.6875rem;
  color: #c084fc;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.featured-notes i {
  margin-right: 0.25rem;
}

/* ============================================
   End Leaderboard Card Redesign
   ============================================ */

/* Enhanced Cards */
.enhanced-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 10px 30px -10px rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

/* Enhanced Buttons */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Small Enhanced Buttons */
.btn-sm-enhanced {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.6875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

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

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

.btn-enhanced:active {
  transform: scale(0.95);
}

.btn-primary-enhanced {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.btn-primary-enhanced:hover {
  box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
  transform: translateY(-2px);
}

.btn-danger-enhanced {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger-enhanced:hover {
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}

.btn-success-enhanced {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success-enhanced:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.btn-secondary-enhanced {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.btn-secondary-enhanced:hover {
  box-shadow: 0 6px 25px rgba(107, 114, 128, 0.6);
  transform: translateY(-2px);
}

/* Enhanced Inputs */
.input-enhanced {
  background: rgba(31, 41, 55, 0.8);
  border: 2px solid rgba(107, 114, 128, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: white;
  transition: all 0.3s ease;
}

.input-enhanced:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
  background: rgba(31, 41, 55, 0.95);
}

.input-enhanced::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

/* Enhanced Select */
.select-enhanced {
  background: rgba(31, 41, 55, 0.8);
  border: 2px solid rgba(107, 114, 128, 0.3);
  border-radius: 8px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  color: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-enhanced:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
  background-color: rgba(31, 41, 55, 0.95);
}

/* Enhanced Stat Card */
.stat-card-enhanced {
  position: relative;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #9333ea 0%, #7e22ce 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-enhanced:hover::before {
  opacity: 1;
}

.stat-card-enhanced:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 10px 40px -15px rgba(147, 51, 234, 0.4);
  transform: translateY(-4px);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.3);
  transition: all 0.3s ease;
}

.stat-card-enhanced:hover .stat-icon {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
  transform: scale(1.1) rotate(5deg);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Table */
.table-enhanced {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.table-enhanced thead {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(126, 34, 206, 0.1) 100%);
}

.table-enhanced th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(147, 51, 234, 0.3);
}

.table-enhanced td {
  padding: 1rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.table-enhanced tbody tr {
  transition: all 0.2s ease;
}

.table-enhanced tbody tr:hover {
  background: rgba(147, 51, 234, 0.05);
  transform: scale(1.01);
}

.table-enhanced tbody tr:last-child td {
  border-bottom: none;
}

/* Enhanced Badge */
.badge-enhanced {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-purple {
  background: rgba(147, 51, 234, 0.2);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Enhanced Progress Bar */
.progress-enhanced {
  width: 100%;
  height: 8px;
  background: rgba(31, 41, 55, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-enhanced {
  height: 100%;
  background: linear-gradient(90deg, #9333ea 0%, #7e22ce 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 50px 50px;
  animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Enhanced Toggle Switch */
.toggle-enhanced {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(75, 85, 99, 0.6);
  transition: 0.4s;
  border-radius: 34px;
  border: 2px solid rgba(107, 114, 128, 0.3);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-enhanced input:checked + .toggle-slider {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  border-color: rgba(147, 51, 234, 0.5);
}

.toggle-enhanced input:focus + .toggle-slider {
  box-shadow: 0 0 1px rgba(147, 51, 234, 0.5);
}

.toggle-enhanced input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Loading Spinner */
.spinner-enhanced {
  border: 3px solid rgba(147, 51, 234, 0.2);
  border-radius: 50%;
  border-top: 3px solid #9333ea;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Enhanced Section Header */
.section-header-enhanced {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(107, 114, 128, 0.2);
  margin-bottom: 1.5rem;
}

.section-header-enhanced h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.section-header-enhanced .icon {
  width: 2rem;
  height: 2rem;
  color: #9333ea;
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .enhanced-card {
    padding: 1rem;
  }

  .btn-enhanced {
    padding: 0.625rem 1.25rem;
    font-size: 0.813rem;
  }

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

  .section-header-enhanced h2 {
    font-size: 1.25rem;
  }
}

/* Notification Enhancement */
.notification-enhanced {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Tooltip Enhancement */
.tooltip-enhanced {
  position: relative;
  display: inline-block;
}

.tooltip-enhanced .tooltip-text {
  visibility: hidden;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  font-size: 0.875rem;
  border: 1px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(10px);
}

.tooltip-enhanced:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Alert */
.alert-enhanced {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-enhanced.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.alert-enhanced.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-enhanced.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-enhanced.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
/* Tab Bypass Banner Styles */
.tab-bypass-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
  border: 2px solid rgba(251, 191, 36, 0.6);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

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

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

.tab-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.25rem;
  color: #92400e;
  flex-shrink: 0;
}

.tab-banner-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-admin,
.badge-beta {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-admin {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.badge-beta {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.tab-banner-message {
  font-size: 0.875rem;
  color: #92400e;
  font-weight: 500;
  line-height: 1.5;
}

.tab-banner-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 6px;
  color: #92400e;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  flex-shrink: 0;
}

.tab-banner-close:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.tab-banner-close:active {
  transform: scale(0.95);
}

/* ============================================
   Local Leaderboard Table Styles
   ============================================ */

.local-leaderboard-container {
  padding: 0.5rem 0;
}

.local-lb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #6b7280;
  gap: 0.5rem;
}

.local-lb-empty i {
  font-size: 1.5rem;
  opacity: 0.5;
}

.local-lb-empty p {
  font-size: 0.75rem;
  margin: 0;
}

.server-leaderboard {
  margin-top: 0.5rem;
}

.local-lb-wrapper {
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.3);
  overflow-x: auto;
}

.local-lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
  table-layout: fixed;
}

.local-lb-header {
  padding: 0.375rem 0.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.5625rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  background: rgba(31, 41, 55, 0.8);
  border-bottom: 1px solid rgba(75, 85, 99, 0.4);
}

.local-lb-header.text-center {
  text-align: center;
}

/* Column widths */
.local-lb-table th:nth-child(1),
.local-lb-table td:nth-child(1) { width: 8%; }  /* # */
.local-lb-table th:nth-child(2),
.local-lb-table td:nth-child(2) { width: 36%; } /* Player */
.local-lb-table th:nth-child(3),
.local-lb-table td:nth-child(3) { width: 14%; } /* Kills */
.local-lb-table th:nth-child(4),
.local-lb-table td:nth-child(4) { width: 14%; } /* Deaths */
.local-lb-table th:nth-child(5),
.local-lb-table td:nth-child(5) { width: 14%; } /* K/D */
.local-lb-table th:nth-child(6),
.local-lb-table td:nth-child(6) { width: 14%; } /* HS */

.local-lb-row {
  animation: weaponRowFadeIn 0.3s ease forwards;
  opacity: 0;
  transform: translateX(-10px);
}

.local-lb-row:hover {
  background: rgba(147, 51, 234, 0.08);
}

.local-lb-row:not(:last-child) td {
  border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

.local-lb-rank {
  padding: 0.25rem;
  color: #fbbf24;
  font-weight: 700;
  text-align: center;
}

.local-lb-name {
  padding: 0.25rem 0.375rem;
  color: #e5e7eb;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.local-lb-stat {
  padding: 0.25rem 0.125rem;
  text-align: center;
  color: #d1d5db;
  font-variant-numeric: tabular-nums;
  font-size: 0.625rem;
}

.local-lb-kills {
  color: #f87171;
  font-weight: 600;
}

/* ============================================
   Weapon Stats Table Styles
   ============================================ */

.weapon-stats-container {
  padding: 0.5rem 0;
}

/* Empty state */
.weapon-stats-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6b7280;
  gap: 0.75rem;
}

.weapon-stats-empty i {
  font-size: 2rem;
  opacity: 0.5;
}

.weapon-stats-empty p {
  font-size: 0.875rem;
  margin: 0;
}

/* Search wrapper */
.weapon-search-wrapper {
  position: relative;
  margin-bottom: 0.75rem;
}

.weapon-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 0.875rem;
  pointer-events: none;
}

.weapon-search-input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.5rem;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.4);
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.weapon-search-input::placeholder {
  color: #6b7280;
}

.weapon-search-input:focus {
  outline: none;
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Table wrapper */
.weapon-table-wrapper {
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.3);
  overflow: hidden;
}

/* Table */
.weapon-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  table-layout: fixed;
}

/* Header */
.weapon-header-cell {
  padding: 0.5rem 0.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.625rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(31, 41, 55, 0.8);
  border-bottom: 1px solid rgba(75, 85, 99, 0.4);
}

.weapon-header-cell:first-child {
  width: 40%;
  padding-left: 0.5rem;
}

.weapon-header-cell.text-center {
  text-align: center;
}

/* Rows */
.weapon-row {
  animation: weaponRowFadeIn 0.3s ease forwards;
  opacity: 0;
  transform: translateX(-10px);
}

@keyframes weaponRowFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.weapon-row:hover {
  background: rgba(147, 51, 234, 0.08);
}

.weapon-row:not(:last-child) td {
  border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

/* Cells */
.weapon-name-cell {
  padding: 0.375rem 0.5rem;
  color: #e5e7eb;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weapon-stat-cell {
  padding: 0.375rem 0.25rem;
  text-align: center;
  color: #d1d5db;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.weapon-kills {
  color: #f87171;
  font-weight: 600;
}

.weapon-deaths {
  color: #9ca3af;
}

.weapon-distance {
  color: #93c5fd;
}

/* K/D Badge */
.weapon-kd-badge {
  display: inline-block;
  padding: 0.0625rem 0.25rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.weapon-kd-excellent {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.weapon-kd-good {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.weapon-kd-neutral {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.weapon-kd-poor {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Pagination */
.weapon-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0 0.25rem;
}

.weapon-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: rgba(55, 65, 81, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.4);
  border-radius: 6px;
  color: #d1d5db;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weapon-page-btn:hover:not(:disabled) {
  background: rgba(147, 51, 234, 0.3);
  border-color: rgba(147, 51, 234, 0.5);
  color: #e5e7eb;
}

.weapon-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.weapon-page-btn i {
  font-size: 0.625rem;
}

.weapon-page-info {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(31, 41, 55, 0.6);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
}
