
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --discord-blurple: #5865F2;
    --discord-green: #57F287;
    --glass-bg: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #24243e 100%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}
        
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(88, 101, 242, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(67, 233, 123, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
        
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235865F2' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.bg-gradient-primary {
    background: rgba(15, 25, 45, 0.9) !important;
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 4px 12px;
    color: #e0e0e0 !important;
}

.sidebar .nav-link:hover {
    background: rgba(88, 101, 242, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.sidebar .nav-link.active {
    background: rgba(88, 101, 242, 0.2);
    color: #ffffff !important;
}

.sidebar-brand {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.topbar {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.topbar .nav-link span {
    color: #e0e0e0 !important;
}

.sticky-footer {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sticky-footer a {
    color: #a0a0a0 !important;
    transition: color 0.3s ease;
}

.sticky-footer a:hover {
    color: #43e97b !important;
}

.scroll-to-top {
    background: #5865F2;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top i {
    color: white;
}

/* Статистика стили */
.stats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.stats-header p {
    color: #c0c0c0;
    font-size: 1.1rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5865F2, #43e97b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #c0c0c0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(88, 101, 242, 0.5);
    display: inline-block;
}

.progress-custom {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-custom {
    background: linear-gradient(90deg, #5865F2, #43e97b);
    border-radius: 50px;
    height: 100%;
    width: 0%;
    transition: width 1s ease;
}

.fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

@media (max-width: 768px) {
    .stats-header h1 { font-size: 2rem; }
    .stat-number { font-size: 1.8rem; }
    .stat-icon { width: 50px; height: 50px; font-size: 1.5rem; }
}

.text-gradient {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge-stats {
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

canvas {
    max-height: 400px;
}
