:root {
  --primary-color: #5865F2;
  --primary-hover: #4752C4;
  --dark-bg: #0a0a0f;
  --secondary-bg: rgba(30, 30, 45, 0.7);
  --card-bg: rgba(25, 25, 40, 0.85);
  --text-color: #ffffff;
  --text-muted: #a0a0b0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --success-color: #43b581;
  --warning-color: #faa61a;
  --danger-color: #f04747;
  --gradient-primary: linear-gradient(135deg, #5865F2 0%, #7289da 50%, #5865F2 100%);
  --gradient-premium: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

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

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  filter: brightness(0.4);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: -1;
}

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.glass-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.navbar {
  background: rgba(10, 10, 20, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-muted);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  background: transparent;
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(88, 101, 242, 0.5);
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.3);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(88, 101, 242, 0.25);
}

.feature-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.6);
  background: var(--gradient-primary);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-premium {
  background: var(--gradient-premium);
  color: #000;
  font-weight: 700;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #e74c3c);
}

.features-section {
  padding: 80px 0;
}

.features-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar .nav-link {
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar .nav-link:hover {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

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

.card-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.form-control,
.form-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-color);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.25);
  color: var(--text-color);
}

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

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.table {
  color: var(--text-color);
}

.table-dark {
  background: transparent;
}

.table-dark th {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--glass-border);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.table-dark td {
  border-color: var(--glass-border);
  vertical-align: middle;
}

.table-dark tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.badge {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

.badge-premium {
  background: var(--gradient-premium);
  color: #000;
}

.guild-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.guild-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.3);
}

.guild-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
}

.guild-card.not-in-bot {
  opacity: 0.6;
}

.guild-card.not-in-bot:hover {
  opacity: 1;
}

.premium-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--gradient-premium);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

.premium-card {
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255, 215, 0, 0.1), transparent 30%);
  animation: rotate 4s linear infinite;
}

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

.premium-card .card-content {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
}

.premium-tier {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.premium-tier:hover {
  transform: scale(1.02);
}

.premium-tier h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.premium-tier .price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-tier .price span {
  font-size: 1rem;
  opacity: 0.7;
}

.premium-tier ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.premium-tier ul li {
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.premium-tier ul li i {
  color: var(--success-color);
  margin-right: 0.5rem;
}

.premium-tier.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.premium-tier.featured::after {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.alert-success {
  background: rgba(67, 181, 129, 0.2);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.alert-danger {
  background: rgba(240, 71, 71, 0.2);
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
}

.alert-warning {
  background: rgba(250, 166, 26, 0.2);
  border-left: 4px solid var(--warning-color);
  color: var(--warning-color);
}

.music-player {
  position: relative;
  padding: 2rem;
  border-radius: 20px;
  overflow: hidden;
}

.music-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(114, 137, 218, 0.1));
  z-index: 0;
}

.music-player .content {
  position: relative;
  z-index: 1;
}

.music-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.music-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  cursor: pointer;
}

.music-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
}

.music-btn.active {
  background: var(--primary-color);
}

.music-btn.large {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.filter-dropdown {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 200px;
}

.filter-dropdown .dropdown-item {
  color: var(--text-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filter-dropdown .dropdown-item:hover {
  background: rgba(88, 101, 242, 0.2);
}

.filter-dropdown .dropdown-item.active {
  background: var(--primary-color);
}

.progress-bar-custom {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-custom .fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.admin-stat {
  padding: 1.5rem;
  text-align: center;
}

.admin-stat .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.admin-stat .icon.primary {
  background: rgba(88, 101, 242, 0.2);
  color: var(--primary-color);
}

.admin-stat .icon.success {
  background: rgba(67, 181, 129, 0.2);
  color: var(--success-color);
}

.admin-stat .icon.warning {
  background: rgba(250, 166, 26, 0.2);
  color: var(--warning-color);
}

.admin-stat .icon.danger {
  background: rgba(240, 71, 71, 0.2);
  color: var(--danger-color);
}

.admin-stat h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.admin-stat p {
  color: var(--text-muted);
  margin: 0;
}

footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  margin-top: auto;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .sidebar {
    position: static;
    max-height: none;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .music-controls {
    gap: 0.25rem;
  }
  
  .music-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .music-btn.large {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  
  .premium-tier.featured {
    transform: scale(1);
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .admin-stat {
    padding: 1rem;
  }
  
  .admin-stat h3 {
    font-size: 1.5rem;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

.animate-pulse {
  animation: pulse 2s infinite;
}

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

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

.login-card .form-group {
  margin-bottom: 1.5rem;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

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

.status-dot.online {
  background: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

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